From db7c22d8b68e0b9a690982c172d4f138045e7b31 Mon Sep 17 00:00:00 2001 From: nbillard Date: Mon, 12 Dec 2022 16:21:09 +0100 Subject: [PATCH] =?UTF-8?q?le=20timer=20s'arr=C3=A8te=20quand=20on=20finit?= =?UTF-8?q?=20le=20jeu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 1 + todo.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index dfbb6e0..eecf2ec 100644 --- a/script.js +++ b/script.js @@ -27,6 +27,7 @@ let gameState = { playable: false, levelManager: new LevelManager( () => { alert("Toutes les bottes sont rangées"); + gameState.timer.stop(); } ), levelId: 0, }; diff --git a/todo.md b/todo.md index c726cee..7c7a93c 100644 --- a/todo.md +++ b/todo.md @@ -19,6 +19,7 @@ * Table with filled usernames ## Insectes + * Error when last level is successfully finished * Size of the canvas: tiles not squared with some levels - * alt tab starts game \ No newline at end of file + * Timer does not stop on win