snake: decrease timeout to make it faster

This commit is contained in:
Trianta 2024-11-09 01:39:46 -06:00
parent 92cfd954c1
commit 532d8a480c

View File

@ -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 = [];