Skip to content

Commit 26dde39

Browse files
authored
Merge pull request #8 from msgithubcodebase/slow-down
Slow down
2 parents b8fd10d + a19d966 commit 26dde39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
File renamed without changes.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
body { font-family: Helvetica, sans-serif; }
77
#tetris { margin: 1em auto; padding: 1em; border: 4px solid black; border-radius: 10px; background-color: #F8F8F8; }
88
#stats { display: inline-block; vertical-align: top; }
9-
#canvas { display: inline-block; vertical-align: top; background: url(texture.jpg); box-shadow: 10px 10px 10px #999; border: 2px solid #333; }
9+
#canvas { display: inline-block; vertical-align: top; background: url(images/texture.jpg); box-shadow: 10px 10px 10px #999; border: 2px solid #333; }
1010
#menu { display: inline-block; vertical-align: top; position: relative; }
1111
#menu p { margin: 0.5em 0; text-align: center; }
1212
#menu p a { text-decoration: none; color: black; }
@@ -75,7 +75,7 @@
7575
ctx = canvas.getContext('2d'),
7676
ucanvas = get('upcoming'),
7777
uctx = ucanvas.getContext('2d'),
78-
speed = { start: 0.6, decrement: 0.005, min: 0.1 }, // how long before piece drops by 1 row (seconds)
78+
speed = { start: .8, decrement: 0.005, min: 0.1 }, // how long before piece drops by 1 row (seconds)
7979
nx = 10, // width of tetris court (in blocks)
8080
ny = 20, // height of tetris court (in blocks)
8181
nu = 5; // width/height of upcoming preview (in blocks)

0 commit comments

Comments
 (0)