From 16242e95ca8529b5599e930fea237cb7a8bd99e1 Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Mon, 30 Dec 2024 17:03:50 -0600 Subject: [PATCH] pong: increase speed of game --- src/pong.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pong.ts b/src/pong.ts index afe9c6c..34c5190 100644 --- a/src/pong.ts +++ b/src/pong.ts @@ -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;