Update libmttt

This commit is contained in:
2019-11-20 19:21:26 +01:00
parent 635d4a8703
commit a8c82f2ed2
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ backend = "js"
# Dependencies # Dependencies
requires "nim >= 1.0.0" requires "nim >= 1.0.0", "libmttt >= 2.0.0"
task debug, "Compile debug client": task debug, "Compile debug client":
exec "nim js --out:public/mttt.js -d:local mttt.nim" exec "nim js --out:public/mttt.js -d:local mttt.nim"

View File

@@ -56,7 +56,7 @@ proc newGame*(canvasId: string, width, height: int): Game =
result = Game( result = Game(
renderer: newRenderer2D(canvasId, width, height), renderer: newRenderer2D(canvasId, width, height),
scene: Scene.Game, scene: Scene.Game,
state: newGame(player1, player2), state: newGameState(player1, player2),
paused: false paused: false
) )
switchScene(result, Scene.Game) switchScene(result, Scene.Game)