Skip to content

Commit

Permalink
#2 put the banner on the TitleScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
KOTerra committed Apr 11, 2023
1 parent 99350a9 commit ba173bc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added StrafeOverdead/assets/ui/backgrounds/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ba173bc

Please sign in to comment.