diff --git a/build.gradle b/build.gradle index bc2ebd1..c570201 100644 --- a/build.gradle +++ b/build.gradle @@ -60,6 +60,7 @@ project(":core") { dependencies { compile "com.badlogicgames.gdx:gdx:$gdxVersion" + compile files("lib/absGDX-framework-1.0.jar") } } diff --git a/core/lib/absGDX-framework-1.0-source.jar b/core/lib/absGDX-framework-1.0-source.jar new file mode 100644 index 0000000..1c88577 Binary files /dev/null and b/core/lib/absGDX-framework-1.0-source.jar differ diff --git a/core/lib/absGDX-framework-1.0.jar b/core/lib/absGDX-framework-1.0.jar new file mode 100644 index 0000000..e8b8249 Binary files /dev/null and b/core/lib/absGDX-framework-1.0.jar differ diff --git a/core/src/de/samdev/cannonshooter/CannonGame.java b/core/src/de/samdev/cannonshooter/CannonGame.java index a4142a8..238f343 100644 --- a/core/src/de/samdev/cannonshooter/CannonGame.java +++ b/core/src/de/samdev/cannonshooter/CannonGame.java @@ -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 + } } diff --git a/core/src/de/samdev/cannonshooter/Textures.java b/core/src/de/samdev/cannonshooter/Textures.java new file mode 100644 index 0000000..f084886 --- /dev/null +++ b/core/src/de/samdev/cannonshooter/Textures.java @@ -0,0 +1,6 @@ +package de.samdev.cannonshooter; + +public final class Textures { + + +} diff --git a/desktop/src/de/samdev/cannonshooter/desktop/DesktopLauncher.java b/desktop/src/de/samdev/cannonshooter/desktop/DesktopLauncher.java index 88148ed..faabc0b 100644 --- a/desktop/src/de/samdev/cannonshooter/desktop/DesktopLauncher.java +++ b/desktop/src/de/samdev/cannonshooter/desktop/DesktopLauncher.java @@ -2,11 +2,17 @@ package de.samdev.cannonshooter.desktop; import com.badlogic.gdx.backends.lwjgl.LwjglApplication; import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration; + +import de.samdev.absgdx.framework.util.AndroidResolutions; import de.samdev.cannonshooter.CannonGame; public class DesktopLauncher { public static void main (String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); + + config.width = AndroidResolutions.RES__16_9.x; + config.height = AndroidResolutions.RES__16_9.y; + new LwjglApplication(new CannonGame(), config); } }