Skip to content

Commit

Permalink
Fix timing in docs/index.html
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wulfland committed Jun 16, 2022
1 parent d7076e3 commit 11dec34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 11dec34

Please sign in to comment.