Added absGDX dependency
This commit is contained in:
BIN
core/lib/absGDX-framework-1.0-source.jar
Normal file
BIN
core/lib/absGDX-framework-1.0-source.jar
Normal file
Binary file not shown.
BIN
core/lib/absGDX-framework-1.0.jar
Normal file
BIN
core/lib/absGDX-framework-1.0.jar
Normal file
Binary file not shown.
@@ -1,27 +1,18 @@
|
||||
package de.samdev.cannonshooter;
|
||||
|
||||
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;
|
||||
import de.samdev.absgdx.framework.AgdxGame;
|
||||
|
||||
public class CannonGame extends AgdxGame {
|
||||
|
||||
public class CannonGame extends ApplicationAdapter {
|
||||
SpriteBatch batch;
|
||||
Texture img;
|
||||
|
||||
@Override
|
||||
public void create () {
|
||||
batch = new SpriteBatch();
|
||||
img = new Texture("badlogic.jpg");
|
||||
public void onCreate() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@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();
|
||||
public void onUpdate(float arg0) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
}
|
||||
|
6
core/src/de/samdev/cannonshooter/Textures.java
Normal file
6
core/src/de/samdev/cannonshooter/Textures.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package de.samdev.cannonshooter;
|
||||
|
||||
public final class Textures {
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user