diff --git a/mttt.nimble b/mttt.nimble index 4791db3..efb70c1 100644 --- a/mttt.nimble +++ b/mttt.nimble @@ -11,7 +11,7 @@ backend = "js" # Dependencies -requires "nim >= 1.0.0" +requires "nim >= 1.0.0", "libmttt >= 2.0.0" task debug, "Compile debug client": exec "nim js --out:public/mttt.js -d:local mttt.nim" diff --git a/src/game.nim b/src/game.nim index ac7fcde..5a1a2d8 100644 --- a/src/game.nim +++ b/src/game.nim @@ -56,7 +56,7 @@ proc newGame*(canvasId: string, width, height: int): Game = result = Game( renderer: newRenderer2D(canvasId, width, height), scene: Scene.Game, - state: newGame(player1, player2), + state: newGameState(player1, player2), paused: false ) switchScene(result, Scene.Game)