summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-10 23:21:37 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-10 23:21:37 +0200
commitb343916d5eb29af957783f9ea8b28c75daf2e511 (patch)
treeb5bd1f9bf59a461f31d3d4cd20213152301b7a5d
parent86e0e122a475dfd4f627fc95a9458e7527d72a00 (diff)
downloadRustAndDust-b343916d5eb29af957783f9ea8b28c75daf2e511.zip
RustAndDust-b343916d5eb29af957783f9ea8b28c75daf2e511.tar.gz
reformat TankOnTank.java
-rw-r--r--core/src/ch/asynk/tankontank/TankOnTank.java37
1 files changed, 20 insertions, 17 deletions
diff --git a/core/src/ch/asynk/tankontank/TankOnTank.java b/core/src/ch/asynk/tankontank/TankOnTank.java
index 4ed5f89..34f067e 100644
--- a/core/src/ch/asynk/tankontank/TankOnTank.java
+++ b/core/src/ch/asynk/tankontank/TankOnTank.java
@@ -6,22 +6,25 @@ import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
-public class TankOnTank extends ApplicationAdapter {
- SpriteBatch batch;
- Texture img;
-
- @Override
- public void create () {
- batch = new SpriteBatch();
- img = new Texture("badlogic.jpg");
- }
+public class TankOnTank extends ApplicationAdapter
+{
+ SpriteBatch batch;
+ Texture img;
- @Override
- public void render () {
- Gdx.gl.glClearColor(1, 0, 0, 1);
- Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
- batch.begin();
- batch.draw(img, 0, 0);
- batch.end();
- }
+ @Override
+ public void create ()
+ {
+ batch = new SpriteBatch();
+ img = new Texture("badlogic.jpg");
+ }
+
+ @Override
+ public void render ()
+ {
+ Gdx.gl.glClearColor(1, 0, 0, 1);
+ Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
+ batch.begin();
+ batch.draw(img, 0, 0);
+ batch.end();
+ }
}