2020-04-18 12:04:57 -07: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;
|
|
|
|
|
2020-04-19 06:54:11 -07:00
|
|
|
private Player player;
|
|
|
|
|
2020-04-18 12:04:57 -07:00
|
|
|
public GamePanel(Window window, Camera camera) {
|
|
|
|
this.window = window;
|
|
|
|
this.camera = camera;
|
2020-04-19 06:54:11 -07:00
|
|
|
|
|
|
|
player = new Player(window, camera);
|
2020-04-18 12:04:57 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
public void update() {
|
2020-04-19 06:54:11 -07:00
|
|
|
player.update();
|
2020-04-18 12:04:57 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
public void render() {
|
2020-04-19 06:54:11 -07:00
|
|
|
player.render();
|
2020-04-18 12:04:57 -07:00
|
|
|
}
|
|
|
|
}
|