Match the original Pacman dimensions

Move the field up to match original Pacman
position.
This commit is contained in:
Matt Low 2019-12-24 12:51:42 +04:00
parent eae226b5bb
commit ae4069f9fc
3 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@ public class PacDude extends Game {
public static final String VERSION = "v0.0.1"; public static final String VERSION = "v0.0.1";
public static final int LEVEL_WIDTH = 224; public static final int LEVEL_WIDTH = 224;
public static final int LEVEL_HEIGHT = 248; public static final int LEVEL_HEIGHT = 288;
public AssetManager assets; public AssetManager assets;
public SpriteBatch batch; public SpriteBatch batch;

View File

@ -30,10 +30,10 @@ public class MenuState extends State {
@Override @Override
public void render() { public void render() {
level.render(game.batch, game.sr, 12, 12); level.render(game.batch, game.sr, 12, 28);
game.batch.begin(); game.batch.begin();
game.batch.draw(levelBackground, 0, 0); game.batch.draw(levelBackground, 0, 16);
game.batch.draw(logo, 0, 124, 224, 120); game.batch.draw(logo, 0, 124, 224, 120);
game.batch.end(); game.batch.end();
} }

View File

@ -8,9 +8,9 @@ public class DesktopLauncher {
public static void main (String[] arg) { public static void main (String[] arg) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.title = PacDude.TITLE + " - " + PacDude.VERSION; config.title = PacDude.TITLE + " - " + PacDude.VERSION;
config.width = (224 * 2); config.width = PacDude.LEVEL_WIDTH * 2;
config.height = (248 * 2); config.height = PacDude.LEVEL_HEIGHT * 2;
config.resizable = false; config.resizable = true;
new LwjglApplication(new PacDude(), config); new LwjglApplication(new PacDude(), config);
} }
} }