2024-08-07 05:02:53 +00:00
|
|
|
package com.gnarwhal.ld46.game;
|
|
|
|
|
|
|
|
import com.gnarwhal.ld46.engine.display.Camera;
|
|
|
|
import com.gnarwhal.ld46.engine.display.Window;
|
|
|
|
|
|
|
|
public class GamePanel {
|
|
|
|
|
|
|
|
private Window window;
|
|
|
|
private Camera camera;
|
|
|
|
|
2024-08-07 05:02:54 +00:00
|
|
|
private Player player;
|
|
|
|
|
2024-08-07 05:02:53 +00:00
|
|
|
public GamePanel(Window window, Camera camera) {
|
|
|
|
this.window = window;
|
|
|
|
this.camera = camera;
|
2024-08-07 05:02:54 +00:00
|
|
|
|
|
|
|
player = new Player(window, camera);
|
2024-08-07 05:02:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void update() {
|
2024-08-07 05:02:54 +00:00
|
|
|
player.update();
|
2024-08-07 05:02:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void render() {
|
2024-08-07 05:02:54 +00:00
|
|
|
player.render();
|
2024-08-07 05:02:53 +00:00
|
|
|
}
|
|
|
|
}
|