-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
275 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
197 changes: 197 additions & 0 deletions
197
.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
#Cached timestamps | ||
<<<<<<< HEAD | ||
#Wed Mar 23 10:27:35 CET 2022 | ||
======= | ||
#Wed Mar 23 06:42:39 CET 2022 | ||
>>>>>>> aefdc99b447f4c2e53fc68e4066d71ca85feec2e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
<<<<<<< HEAD | ||
#Wed Mar 23 10:42:33 CET 2022 | ||
======= | ||
#Wed Mar 23 06:36:45 CET 2022 | ||
>>>>>>> aefdc99b447f4c2e53fc68e4066d71ca85feec2e | ||
org.eclipse.core.runtime=2 | ||
org.eclipse.platform=4.23.0.v20220308-0310 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.paco.game; | ||
|
||
import com.badlogic.gdx.ApplicationAdapter; | ||
import com.badlogic.gdx.graphics.Texture; | ||
import com.badlogic.gdx.graphics.g2d.SpriteBatch; | ||
import com.badlogic.gdx.utils.ScreenUtils; | ||
|
||
public class Graphics extends ApplicationAdapter { | ||
SpriteBatch batch; | ||
Texture img; | ||
|
||
@Override | ||
public void create () { | ||
batch = new SpriteBatch(); | ||
img = new Texture("cloud.png") { | ||
@Override | ||
public int getHeight() { | ||
// TODO Auto-generated method stub | ||
return 200; | ||
} | ||
|
||
@Override | ||
public int getWidth() { | ||
// TODO Auto-generated method stub | ||
return 400; | ||
} | ||
}; | ||
} | ||
|
||
@Override | ||
public void render () { | ||
ScreenUtils.clear(0, 1, 1, 1); | ||
batch.begin(); | ||
batch.draw(img, 200, 800); | ||
batch.draw(img, 800, 400); | ||
batch.end(); | ||
} | ||
|
||
@Override | ||
public void dispose () { | ||
batch.dispose(); | ||
img.dispose(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters