Refactor some constants to Constants class

Use TILE_SIZE everywhere a magic 8 appears (in the context of a tile size)
This commit is contained in:
2020-01-22 02:34:59 +04:00
parent fb6f77b72c
commit b19daafc2b
16 changed files with 101 additions and 71 deletions

View File

@ -2,14 +2,15 @@ package com.me.pacman.desktop;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.me.pacman.Constants;
import com.me.pacman.PacDude;
public class DesktopLauncher {
public static void main (String[] arg) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
config.title = PacDude.TITLE + " - " + PacDude.VERSION;
config.width = PacDude.LEVEL_WIDTH * 2;
config.height = PacDude.LEVEL_HEIGHT * 2;
config.title = Constants.TITLE + " - " + Constants.VERSION;
config.width = Constants.GAME_WIDTH * 2;
config.height = Constants.GAME_HEIGHT * 2;
config.resizable = true;
new LwjglApplication(new PacDude(), config);
}