re-arranged some variables

This commit is contained in:
2025-11-29 23:40:47 +01:00
parent 8a228685b1
commit c55bf8d043
3 changed files with 15 additions and 14 deletions

View File

@@ -17,10 +17,8 @@ public class GamePanel extends JPanel implements Runnable {
// SCREEN SETTINGS
final int originalTileSize = 16; //16x16 tile
final int scale = 3;
public final int tileSize = originalTileSize * scale; //48x48 tile
// 4:3 ratio
public final int maxScreenCol = 16;
public final int tileSize = originalTileSize * scale; //48x48 tile
public final int maxScreenRow = 12;
public final int screenWidth = tileSize * maxScreenCol; // 768 pixels
public final int screenHeight = tileSize * maxScreenRow; // 576 pixels
@@ -36,12 +34,12 @@ public class GamePanel extends JPanel implements Runnable {
// SYSTEM
public TileManager tileM = new TileManager(this);
public KeyHandler keyH = new KeyHandler(this);
Sound se = new Sound();
Sound music = new Sound();
public CollisionHandler collisionH = new CollisionHandler(this);
public AssetSetter assetSetter = new AssetSetter(this);
public UI ui = new UI(this);
public EventHandler eventH = new EventHandler(this);
Sound se = new Sound();
Sound music = new Sound();
Thread gameThread;
// ENTITY AND OBJECT