From 2b654d728e46b9d45cd4297d261dbc675894142b Mon Sep 17 00:00:00 2001 From: RomaniukNatalia Date: Thu, 5 Dec 2024 17:12:39 +0200 Subject: [PATCH] Commiting the changes made to the files in slow-down branch --- texture.jpg => images/texture.jpg | Bin index.html | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) 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 87e71f8..c9eb988 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; } @@ -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.025, 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)