AAAAAAAAAAAAAAAAAAAAAAAAA.

This commit is contained in:
Jacob Signorovitch
2025-04-28 09:10:13 -04:00
parent 9bdbffdf62
commit e6e85dd60f
4 changed files with 62 additions and 2 deletions

View File

@@ -5,8 +5,29 @@ import javalib.impworld.*;
class Game extends World {
Actor white;
Actor black;
Board board;
WorldScene scene;
public WorldScene makeScene() { return new WorldScene(0, 0); }
Game(Actor white, Actor black, Board board) {
this.white = white;
this.black = black;
this.board = board;
}
void run() { this.bigBang(0, 0, 0.01); }
Game() {
this(
new Player(Util.Col.WHITE), new Player(Util.Col.BLACK), new Board()
);
}
public WorldScene makeScene() {
this.scene = this.getEmptyScene();
this.draw();
return this.scene;
}
void run() {
this.bigBang(Util.boardW * Util.scale, Util.boardW * Util.scale, 0.01);
}
void draw() { this.scene = this.board.draw(); }
}