added UI with inventory and some notifications and an end screen + timer

This commit is contained in:
2025-11-27 18:32:08 +01:00
parent 67f2eeddf5
commit 521951129b
3 changed files with 97 additions and 3 deletions

View File

@@ -32,9 +32,10 @@ public class GamePanel extends JPanel implements Runnable {
KeyHandler keyH = new KeyHandler();
Sound se = new Sound();
Sound music = new Sound();
Thread gameThread;
public CollisionHandler collisionH = new CollisionHandler(this);
public AssetSetter assetSetter = new AssetSetter(this);;
public AssetSetter assetSetter = new AssetSetter(this);
public UI ui = new UI(this);
Thread gameThread;
// ENTITY AND OBJECT
public Player player = new Player(this, keyH);
@@ -99,6 +100,7 @@ public class GamePanel extends JPanel implements Runnable {
tileM.draw(graphics2d);
for (SuperObject superObject : obj) if (superObject != null) superObject.draw(graphics2d, this);
player.draw(graphics2d);
ui.draw(graphics2d);
graphics.dispose();
}