pong: increase speed of game

This commit is contained in:
Trianta 2024-12-30 17:03:50 -06:00
parent d1d9631ae8
commit 16242e95ca

View File

@ -81,7 +81,7 @@ class PongCore {
this.grid = 15; // size of grid squares
this.paddleHeight = this.grid * 5;
this.paddleHeightMax = this.canvas.height - this.grid - this.paddleHeight;
this.timeout = 32; // speed in ms
this.timeout = 4; // speed in ms
this.width = this.canvas.width;
this.height = this.canvas.height;
this.gameover = false;