2022-06-20 00:18:47 +00:00
|
|
|
class Game {
|
2022-06-20 00:59:51 +00:00
|
|
|
constructor(tileSize, gridSize, world, status) {
|
2022-06-20 00:18:47 +00:00
|
|
|
this.tileSize = tileSize;
|
|
|
|
this.gridSize = gridSize;
|
|
|
|
this.world = world;
|
2022-06-20 00:59:51 +00:00
|
|
|
this.status = status;
|
|
|
|
}
|
|
|
|
reset() {
|
2022-06-21 14:46:34 +00:00
|
|
|
game = new Game(16, [32, 32], null, false);
|
2022-06-20 00:18:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-21 14:46:34 +00:00
|
|
|
export var game = new Game(16, [32, 32])
|