AAAAAAAAAAAAAAAAAAAAAAAAA.
This commit is contained in:
@@ -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(); }
|
||||
}
|
||||
|
Reference in New Issue
Block a user