From a8c82f2ed258bf47937d7221848e4e4e02c22ab5 Mon Sep 17 00:00:00 2001 From: luxick Date: Wed, 20 Nov 2019 19:21:26 +0100 Subject: [PATCH] Update libmttt --- mttt.nimble | 2 +- src/game.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)