diff --git a/StrafeOverdead/android/assets/ui/backgrounds/banner.png b/StrafeOverdead/android/assets/ui/backgrounds/banner.png new file mode 100644 index 0000000..fca2de1 Binary files /dev/null and b/StrafeOverdead/android/assets/ui/backgrounds/banner.png differ diff --git a/StrafeOverdead/assets/ui/backgrounds/banner.png b/StrafeOverdead/assets/ui/backgrounds/banner.png new file mode 100644 index 0000000..6d0cb84 Binary files /dev/null and b/StrafeOverdead/assets/ui/backgrounds/banner.png differ diff --git a/StrafeOverdead/core/src/com/strafergame/screens/LoadingScreen.java b/StrafeOverdead/core/src/com/strafergame/screens/LoadingScreen.java index 2d09c14..cb9c501 100644 --- a/StrafeOverdead/core/src/com/strafergame/screens/LoadingScreen.java +++ b/StrafeOverdead/core/src/com/strafergame/screens/LoadingScreen.java @@ -90,6 +90,7 @@ private void queueAssetsToLoad() { Strafer.assetManager.setLoader(Texture.class, new TextureLoader(new InternalFileHandleResolver())); Strafer.assetManager.load("images/pep.png", Texture.class); Strafer.assetManager.load("images/back.png", Texture.class); + Strafer.assetManager.load("ui/backgrounds/banner.png", Texture.class); Strafer.assetManager.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver())); Strafer.assetManager.load("maps/test/map.tmx", TiledMap.class); diff --git a/StrafeOverdead/core/src/com/strafergame/screens/TitleScreen.java b/StrafeOverdead/core/src/com/strafergame/screens/TitleScreen.java index 81c47f4..dc571e1 100644 --- a/StrafeOverdead/core/src/com/strafergame/screens/TitleScreen.java +++ b/StrafeOverdead/core/src/com/strafergame/screens/TitleScreen.java @@ -4,9 +4,9 @@ import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Screen; import com.badlogic.gdx.graphics.Cursor; -import com.badlogic.gdx.graphics.Cursor.SystemCursor; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Pixmap; +import com.badlogic.gdx.graphics.Texture; import com.strafergame.Strafer; import com.strafergame.ui.menus.TitleMenu; @@ -27,6 +27,9 @@ public void resize(int width, int height) { @Override public void render(float delta) { Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); + Strafer.spriteBatch.begin(); + Strafer.spriteBatch.draw(Strafer.assetManager.get("ui/backgrounds/banner.png", Texture.class), 0, 0); + Strafer.spriteBatch.end(); Strafer.uiManager.act(delta); Strafer.uiManager.draw(); Strafer.uiManager.setDebugAll(Strafer.inDebug); diff --git a/StrafeOverdead/desktop/assets/ui/backgrounds/banner.png b/StrafeOverdead/desktop/assets/ui/backgrounds/banner.png new file mode 100644 index 0000000..6d0cb84 Binary files /dev/null and b/StrafeOverdead/desktop/assets/ui/backgrounds/banner.png differ