diff --git a/README.md b/README.md index 3f7d639..a29911b 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,6 @@ Rows with exploded mines cannot be cleared. See how far you can get! Left-click to clear a tile. Right-click to flag a mine. Middle-click a number to clear any non-flagged adjacent tiles. ## stuff to add -move middle-click functionality to left-click instead - -add support for mobile devices/1-button mice (probably hold down to flag a mine) - save game using html5 local storage so player can come back later make cleared columns slide left? @@ -21,8 +17,6 @@ Need to test on mobile devices etc. ## bugs the player can cheat under certain conditions; if there is only one tile left on a row, the player can flag it and if it is a mine, the row will clear. if not, the player can unflag it and click it. not sure how big a deal this is really. -the game adds too many rows and then deletes the extra rows, instead of just adding the correct number of rows in the first place. this is due to the row clearing method nesting and adding the new rows several times as a result +need a fallback for browsers that don't support CSS3 viewport sizing -the scoring system is wrong due to the above problem; if any tiles cascade during removal of rows, the score is added again for each step of the cascade leading to vastly inflated scores - -game is apparently broken in Safari (not sure which version) +colours used are not safe for red-green colourblindness diff --git a/index.html b/index.html index f9707a5..8ca8b13 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,7 @@ width: 100vw; overflow: hidden; font-family: Helsinki; + -webkit-user-select: none; } body { @@ -65,8 +66,8 @@ } #setup h1 { - margin-top: 8vmin; - margin-bottom: 8vmin; + margin-top: 6vmin; + margin-bottom: 6vmin; } #setup h2 { @@ -108,7 +109,7 @@ position: absolute; left: 38vmin; - top: 59vmin; + top: 75vmin; background: #768087; background: -moz-linear-gradient(top, #768087 0%, #53595e 100%); @@ -206,17 +207,28 @@ li.mines8 { color: #8c4600; } + + p { + color: #fff; + font-size: 4.3vmin; + padding: 0 10vmin; + } + + strong { + color: #fe7ac6; + } +
+ left click or tap to clear a tile.
+ right click or hold to flag a mine.
+ rows with exploded mines cannot be cleared.
+