snake: slightly increase speed

This commit is contained in:
Trianta 2024-11-09 03:18:42 -06:00
parent 9dea6014fe
commit 452c35c1b0

View File

@ -63,7 +63,7 @@ class SnakeCore {
this.canvas = document.getElementById('snake') as HTMLCanvasElement; this.canvas = document.getElementById('snake') as HTMLCanvasElement;
this.context = this.canvas.getContext('2d') as CanvasRenderingContext2D; this.context = this.canvas.getContext('2d') as CanvasRenderingContext2D;
this.grid = 25; // size of grid squares this.grid = 25; // size of grid squares
this.timeout = 35; // speed in ms this.timeout = 32; // speed in ms
this.width = 25; this.width = 25;
this.height = 15; this.height = 15;
this.board = []; this.board = [];