From cb52bd15617c2f61688c01a49dfe369046837c1d Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Sat, 9 Nov 2024 02:09:06 -0600 Subject: [PATCH] snake: slightly decrease game speed --- src/snake.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snake.ts b/src/snake.ts index 8e51e36..7932580 100644 --- a/src/snake.ts +++ b/src/snake.ts @@ -64,7 +64,7 @@ class SnakeCore { this.canvas = document.getElementById('snake') as HTMLCanvasElement; this.context = this.canvas.getContext('2d') as CanvasRenderingContext2D; this.grid = 25; // size of grid squares - this.timeout = 20; // speed in ms + this.timeout = 25; // speed in ms this.width = 25; this.height = 15; this.board = [];