Match the original Pacman dimensions

Move the field up to match original Pacman
position.
This commit is contained in:
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 int LEVEL_WIDTH = 224;
public static final int LEVEL_HEIGHT = 248;
public static final int LEVEL_HEIGHT = 288;
public AssetManager assets;
public SpriteBatch batch;

View File

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