Add logo.

This commit is contained in:
Matt Low 2019-12-24 00:11:18 +04:00
parent 8d64ca7c36
commit fd89c7d492
2 changed files with 8 additions and 4 deletions

BIN
core/assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -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();
}
}