added UI with inventory and some notifications and an end screen + timer
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user