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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user