From b873009c9a79553a9f78765fcc9064c880c4c564 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann <5276337+wulfland@users.noreply.github.com> Date: Thu, 16 Jun 2022 09:45:16 +0200 Subject: [PATCH 1/2] Fix timing in docs/index.html This commit fixes the timing error in docs/index.html by setting correct start and min properties for the speed object. This commit fixes #1 --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index acc4e39..37d4af0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -75,7 +75,7 @@ ctx = canvas.getContext('2d'), ucanvas = get('upcoming'), uctx = ucanvas.getContext('2d'), - speed = { start: 1000.6, decrement: 0.005, min: 1.1 }, // how long before piece drops by 1 row (seconds) + speed = { start: 0.6, decrement: 0.005, min: 0.1 }, // how long before piece drops by 1 row (seconds) nx = 10, // width of tetris court (in blocks) ny = 20, // height of tetris court (in blocks) nu = 5; // width/height of upcoming preview (in blocks) From 5986d59d101d4fa06ab8a435431bd7e6381a0020 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann <5276337+wulfland@users.noreply.github.com> Date: Thu, 16 Jun 2022 13:06:05 +0200 Subject: [PATCH 2/2] Update docs/index.html Co-authored-by: kaufm <62788609+kaufm@users.noreply.github.com> --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index 37d4af0..4423c26 100644 --- a/docs/index.html +++ b/docs/index.html @@ -75,7 +75,7 @@ ctx = canvas.getContext('2d'), ucanvas = get('upcoming'), uctx = ucanvas.getContext('2d'), - speed = { start: 0.6, decrement: 0.005, min: 0.1 }, // how long before piece drops by 1 row (seconds) + speed = { start: 0.6, decrement: 0.006, min: 0.1 }, // how long before piece drops by 1 row (seconds) nx = 10, // width of tetris court (in blocks) ny = 20, // height of tetris court (in blocks) nu = 5; // width/height of upcoming preview (in blocks)