diff --git a/core/assets/logo.png b/core/assets/logo.png new file mode 100644 index 0000000..4b078d3 Binary files /dev/null and b/core/assets/logo.png differ diff --git a/core/src/com/me/pacman/PacDude.java b/core/src/com/me/pacman/PacDude.java index b2e8585..da29b27 100644 --- a/core/src/com/me/pacman/PacDude.java +++ b/core/src/com/me/pacman/PacDude.java @@ -22,7 +22,8 @@ public class PacDude extends ApplicationAdapter { public Viewport viewport; public SpriteBatch batch; - public Texture img; + public Texture level; + public Texture logo; @Override public void create () { @@ -31,7 +32,9 @@ public class PacDude extends ApplicationAdapter { viewport.apply(true); batch = new SpriteBatch(); - img = new Texture("level.png"); + level = new Texture("level.png"); + logo = new Texture("logo.png"); + logo.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear); } @Override @@ -39,7 +42,8 @@ public class PacDude extends ApplicationAdapter { Gdx.gl.glClearColor(0, 0, 0, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); batch.begin(); - batch.draw(img, 0, 0); + batch.draw(level, 0, 0); + batch.draw(logo, 0, 124, 224, 120); batch.end(); } @@ -55,6 +59,6 @@ public class PacDude extends ApplicationAdapter { @Override public void dispose () { batch.dispose(); - img.dispose(); + level.dispose(); } }