From a024a43993349661c9e9234ff99ccaf589a27732 Mon Sep 17 00:00:00 2001 From: Vkakaraparthy Date: Wed, 10 May 2017 14:36:12 -0700 Subject: [PATCH 1/2] moved image file to Images folder and made changes to image path --- texture.jpg => Images/texture.jpg | Bin index.html | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename texture.jpg => Images/texture.jpg (100%) diff --git a/texture.jpg b/Images/texture.jpg similarity index 100% rename from texture.jpg rename to Images/texture.jpg diff --git a/index.html b/index.html index 3adb501..8b493f8 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ body { font-family: Helvetica, sans-serif; } #tetris { margin: 1em auto; padding: 1em; border: 4px solid black; border-radius: 10px; background-color: #F8F8F8; } #stats { display: inline-block; vertical-align: top; } - #canvas { display: inline-block; vertical-align: top; background: url(texture.jpg); box-shadow: 10px 10px 10px #999; border: 2px solid #333; } + #canvas { display: inline-block; vertical-align: top; background: url(Images/texture.jpg); box-shadow: 10px 10px 10px #999; border: 2px solid #333; } #menu { display: inline-block; vertical-align: top; position: relative; } #menu p { margin: 0.5em 0; text-align: center; } #menu p a { text-decoration: none; color: black; } From 2e474e5ded5be1726f576a215fd2a3d3595cff25 Mon Sep 17 00:00:00 2001 From: Vkakaraparthy Date: Wed, 10 May 2017 14:37:06 -0700 Subject: [PATCH 2/2] slow downe the game --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 8b493f8..c4ccf02 100644 --- a/index.html +++ b/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: 1.0, 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)