Skip to content

Commit

Permalink
Fix timing in docs/index.html (#2)
Browse files Browse the repository at this point in the history
* 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

* Update docs/index.html

Co-authored-by: kaufm <[email protected]>

Co-authored-by: kaufm <[email protected]>
  • Loading branch information
wulfland and kaufm authored Jun 16, 2022
1 parent 2b1becc commit 57023b8
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.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)
Expand Down

0 comments on commit 57023b8

Please sign in to comment.