diff --git a/README.md b/README.md index 377091e..6726b57 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,13 @@ A project based learning activity for people who are getting started with Git an You can play the game at: http://grecojava.github.io/github-games/ +Here is how you play the game: +1. Press the space bar to get started. +2. Press the up arrow to rotate the shape. +3. The goal is to create complete rows with no empty spaces. +4. Don't let the pieces stack up too high! +5. Comment with your high score! + >> _*SUPPORTED BROWSERS*: Chrome, Firefox, Safari, Opera and IE9+_ This fun open source game was cloned from: https://github.com/jakesgordon/javascript-tetris 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 068af66..8cfef66 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.9, decrement: 0.002, 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)