From 532d8a480c1521340939498cf4a06875201a94b2 Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Sat, 9 Nov 2024 01:39:46 -0600 Subject: [PATCH] snake: decrease timeout to make it faster --- src/snake.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snake.ts b/src/snake.ts index 789c7d6..8e51e36 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 = 100; // speed in ms + this.timeout = 20; // speed in ms this.width = 25; this.height = 15; this.board = [];