diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-10 22:59:32 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-10 22:59:32 +0200 |
commit | 86e0e122a475dfd4f627fc95a9458e7527d72a00 (patch) | |
tree | 6c85c5b28d1f94cf146b16039f6df27aeeb484d3 /core/src | |
download | RustAndDust-86e0e122a475dfd4f627fc95a9458e7527d72a00.zip RustAndDust-86e0e122a475dfd4f627fc95a9458e7527d72a00.tar.gz |
Initial commit
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/TankOnTank.gwt.xml | 5 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/TankOnTank.java | 27 |
2 files changed, 32 insertions, 0 deletions
diff --git a/core/src/TankOnTank.gwt.xml b/core/src/TankOnTank.gwt.xml new file mode 100644 index 0000000..d27ee0e --- /dev/null +++ b/core/src/TankOnTank.gwt.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit trunk//EN" "http://google-web-toolkit.googlecode.com/svn/trunk/distro-source/core/src/gwt-module.dtd"> +<module> + <source path="ch/asynk/tankontank" /> +</module>
\ No newline at end of file diff --git a/core/src/ch/asynk/tankontank/TankOnTank.java b/core/src/ch/asynk/tankontank/TankOnTank.java new file mode 100644 index 0000000..4ed5f89 --- /dev/null +++ b/core/src/ch/asynk/tankontank/TankOnTank.java @@ -0,0 +1,27 @@ +package ch.asynk.tankontank; + +import com.badlogic.gdx.ApplicationAdapter; +import com.badlogic.gdx.Gdx; +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"); + } + + @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(); + } +} |