The goal of Hextris is to stop blocks from leaving the inside of the outer gray hexagon.
" + (settings.platform != 'mobile' ? 'Press the right and left arrow keys' : 'Tap the left and right sides of the screen') + " to rotate the Hexagon." + (settings.platform != 'mobile' ? ' Press the down arrow to speed up the block falling': '') + "
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 by thecoloredlineson the outer hexagon
The goal of Hextris is to stop blocks from leaving the inside of the outer gray hexagon.
" + (settings.platform != 'mobile' ? 'Press the right and left arrow keys' : 'Tap the left and right sides of the screen') + " to rotate the Hexagon." + (settings.platform != 'mobile' ? ' Press the down arrow to speed up the block falling': '') + "
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 by thecoloredlineson the outer hexagon
The goal of Hextris is to stop blocks from leaving the inside of the outer gray hexagon.
" + (settings.platform != 'mobile' ? 'Press the right and left arrow keys' : 'Tap the left and right sides of the screen') + " to rotate the Hexagon." + (settings.platform != 'mobile' ? ' Press the down arrow to speed up the block falling': '') + "
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 by thecoloredlineson the outer hexagon
Casual Mode
By Logan Engstrom & Garrett Finucane Find Hextris on iOS & Android More @ the Hextris Website");
+ $("#casualToggle").on('touchstart mousedown', function() {
+ console.log("CausalMode triggered!")
+ });
+
if (gameState == 1) {
pause();
}
From d83076599a1b4fad144823b4db2c6f93a3c7ad5d Mon Sep 17 00:00:00 2001
From: Rb64 <91498309+Rb64@users.noreply.github.com>
Date: Thu, 3 Feb 2022 15:44:03 +0100
Subject: [PATCH 3/4] casualMode setting influence on blockdestroy handeling
---
js/main.js | 3 ++-
js/wavegen.js | 5 +++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/js/main.js b/js/main.js
index 96fd588c7..f4c69875f 100644
--- a/js/main.js
+++ b/js/main.js
@@ -364,7 +364,8 @@ function showHelp() {
$("#inst_main_body").html("
HOW TO PLAY
The goal of Hextris is to stop blocks from leaving the inside of the outer gray hexagon.
" + (settings.platform != 'mobile' ? 'Press the right and left arrow keys' : 'Tap the left and right sides of the screen') + " to rotate the Hexagon." + (settings.platform != 'mobile' ? ' Press the down arrow to speed up the block falling': '') + "
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 by thecoloredlineson the outer hexagon
The goal of Hextris is to stop blocks from leaving the inside of the outer gray hexagon.
" + (settings.platform != 'mobile' ? 'Press the right and left arrow keys' : 'Tap the left and right sides of the screen') + " to rotate the Hexagon." + (settings.platform != 'mobile' ? ' Press the down arrow to speed up the block falling': '') + "
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 by thecoloredlineson the outer hexagon
The goal of Hextris is to stop blocks from leaving the inside of the outer gray hexagon.
" + (settings.platform != 'mobile' ? 'Press the right and left arrow keys' : 'Tap the left and right sides of the screen') + " to rotate the Hexagon." + (settings.platform != 'mobile' ? ' Press the down arrow to speed up the block falling': '') + "
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 by thecoloredlineson the outer hexagon
Casual Mode
By Logan Engstrom & Garrett Finucane Find Hextris on iOS & Android More @ the Hextris Website");
$("#casualToggle").on('touchstart mousedown', function() {
- settings.casualMode = document.getElementById("casualSwitch").checked
- console.log(settings.casualMode);
+ settings.casualMode = !document.getElementById("casualSwitch").checked
});
if (gameState == 1) {
diff --git a/js/wavegen.js b/js/wavegen.js
index 7c09a7b93..63d774924 100644
--- a/js/wavegen.js
+++ b/js/wavegen.js
@@ -1,9 +1,11 @@
function blockDestroyed() {
+ var maxDifficulty = 35;
if (settings.casualMode === undefined){
settings.casualMode = false
} else if (settings.casualMode){
- return;
+ maxDifficulty = 8;
}
+
if (waveone.nextGen > 1350) {
waveone.nextGen -= 30 * settings.creationSpeedModifier;
} else if (waveone.nextGen > 600) {
@@ -12,10 +14,10 @@ function blockDestroyed() {
waveone.nextGen = 600;
}
- if (waveone.difficulty < 35) {
+ if (waveone.difficulty < maxDifficulty) {
waveone.difficulty += 0.085 * settings.speedModifier;
} else {
- waveone.difficulty = 35;
+ waveone.difficulty = maxDifficulty;
}
}