Match the original Pacman dimensions
Move the field up to match original Pacman position.
This commit is contained in:
parent
eae226b5bb
commit
ae4069f9fc
@ -17,7 +17,7 @@ public class PacDude extends Game {
|
||||
public static final String VERSION = "v0.0.1";
|
||||
|
||||
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 SpriteBatch batch;
|
||||
|
@ -30,10 +30,10 @@ public class MenuState extends State {
|
||||
|
||||
@Override
|
||||
public void render() {
|
||||
level.render(game.batch, game.sr, 12, 12);
|
||||
level.render(game.batch, game.sr, 12, 28);
|
||||
|
||||
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.end();
|
||||
}
|
||||
|
@ -8,9 +8,9 @@ public class DesktopLauncher {
|
||||
public static void main (String[] arg) {
|
||||
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
|
||||
config.title = PacDude.TITLE + " - " + PacDude.VERSION;
|
||||
config.width = (224 * 2);
|
||||
config.height = (248 * 2);
|
||||
config.resizable = false;
|
||||
config.width = PacDude.LEVEL_WIDTH * 2;
|
||||
config.height = PacDude.LEVEL_HEIGHT * 2;
|
||||
config.resizable = true;
|
||||
new LwjglApplication(new PacDude(), config);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user