diff --git a/index.html b/index.html
index ec70ce7..4acbeba 100644
--- a/index.html
+++ b/index.html
@@ -76,34 +76,7 @@
Instructions
-
- The goal of Hextris is to stop blocks from leaving the inside of the outer gray hexagon
-
-
- Tap the left and right sides of the screen to rotate the Hexagon
-
-
- Clear blocks by making 3 or more blocks of the same color touch
-
-
- Get points by clearing blocks
-
-
- Time left before your combo streak disappears is indicated shown by the coloredlines in the outer hexagon
-
-
- You can speed up the game by tapping the inner hexagon on mobile, or holding the down arrow on the desktop
-
-
- Pause by pressing
-
- Restart by pressing
-
- Bring up this menu by pressing
-
-
- Comments? Email hextrisgame@gmail.com
-
+
diff --git a/js/initialization.js b/js/initialization.js
index 26dbc63..ee4f438 100644
--- a/js/initialization.js
+++ b/js/initialization.js
@@ -110,7 +110,7 @@ function initialize(a) {
comboTime: 240
};
- $("#inst_main_body").html("The goal of Hextris is to stop blocks from leaving the inside of the outer gray hexagon
Either press the right and left arrow keys or tap the left and right sides of the screen to rotate the Hexagon
Clear blocks by making 3 or more blocks of the same color touch
Get points by clearing blocks
Time left before your combo streak disappears is indicated shown by the colored lines in the outer hexagon
You can speed up the game by tapping the inner hexagon on mobile or by holding the down arrow on the desktop
Pause by pressing or the letter p
Restart by pressing or enter
Bring up this menu by pressing
Found a bug? Go here
" + (settings.platform != 'mobile' ? 'Press the right and left arrow keys' : 'tap the left and right sides of the screen') + " to rotate the Hexagon
Clear blocks and get points by making 3 or more blocks of the same color touch
Time left before your combo streak disappears is indicated shown by the colored lines in the outer hexagon
" + (settings.platform == 'mobile' ? 'Toggle speeding up the game by tapping the inner hexagon' : "Speed up the game 2x by holding the down arrow"));
}
window.canvas = document.getElementById('canvas');
diff --git a/js/render.js b/js/render.js
index 6397f4f..977be12 100644
--- a/js/render.js
+++ b/js/render.js
@@ -41,9 +41,9 @@ function render() {
}
}
- if ((MainHex.ct < 400 && (gameState !== 0) && !MainHex.playThrough)) {
- if (MainHex.ct > 350) {
- ctx.globalAlpha = (50 - (MainHex.ct - 350))/50;
+ if ((MainHex.ct < 650 && (gameState !== 0) && !MainHex.playThrough)) {
+ if (MainHex.ct > (650 - 50)) {
+ ctx.globalAlpha = (50 - (MainHex.ct - (650 - 50)))/50;
}
if (MainHex.ct < 50) {
@@ -76,7 +76,7 @@ function renderBeginningText() {
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/2 - 35 - 125 * settings.scale, 20, '#2c3e50', 'Rotate the Hexagon to make combos of 3+ touching blocks!', '20px Roboto');
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/2 - 35 - 105 * settings.scale, 20, '#2c3e50', 'Make combos in a row to receive a score multiplier!', '20px Roboto');
renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/2 - 35 - 85 * settings.scale, 20, '#2c3e50', 'Don\'t let the blocks stack outside of the gray Hexagon!', '20px Roboto');
- renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/2 - 35 - 65 * settings.scale, 20, '#2c3e50', 'To speed things up a bit tap the inner hexagon on mobile, or hold the down arrow on the desktop!', '20px Roboto');
+ renderText((trueCanvas.width)/2 + 1.5 * settings.scale, (trueCanvas.height)/2 - 35 - 65 * settings.scale, 20, '#2c3e50', (settings.platform == 'mobile' ? 'Tap the middle to toggle 2x speed!' : 'Hold the down arrow to toggle 2x speed!'), '20px Roboto');
}
function drawKey(key, x, y) {