Add logo.
This commit is contained in:
parent
8d64ca7c36
commit
fd89c7d492
BIN
core/assets/logo.png
Normal file
BIN
core/assets/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
@ -22,7 +22,8 @@ public class PacDude extends ApplicationAdapter {
|
|||||||
public Viewport viewport;
|
public Viewport viewport;
|
||||||
|
|
||||||
public SpriteBatch batch;
|
public SpriteBatch batch;
|
||||||
public Texture img;
|
public Texture level;
|
||||||
|
public Texture logo;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void create () {
|
public void create () {
|
||||||
@ -31,7 +32,9 @@ public class PacDude extends ApplicationAdapter {
|
|||||||
viewport.apply(true);
|
viewport.apply(true);
|
||||||
|
|
||||||
batch = new SpriteBatch();
|
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
|
@Override
|
||||||
@ -39,7 +42,8 @@ public class PacDude extends ApplicationAdapter {
|
|||||||
Gdx.gl.glClearColor(0, 0, 0, 1);
|
Gdx.gl.glClearColor(0, 0, 0, 1);
|
||||||
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
|
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
|
||||||
batch.begin();
|
batch.begin();
|
||||||
batch.draw(img, 0, 0);
|
batch.draw(level, 0, 0);
|
||||||
|
batch.draw(logo, 0, 124, 224, 120);
|
||||||
batch.end();
|
batch.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,6 +59,6 @@ public class PacDude extends ApplicationAdapter {
|
|||||||
@Override
|
@Override
|
||||||
public void dispose () {
|
public void dispose () {
|
||||||
batch.dispose();
|
batch.dispose();
|
||||||
img.dispose();
|
level.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user