diff --git a/index.html b/index.html
index a926820..dac7fe4 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
-
3.5
+
0
Snakes turn at a rate up to 0.15 / (lengthFactor) * speed; higher is more agile.
diff --git a/script.js b/script.js
index 598a4e4..ebf4b55 100644
--- a/script.js
+++ b/script.js
@@ -17,7 +17,7 @@ const DEFAULT_DROPPED_FOOD_POINTS = 10;
const DEFAULT_SURVIVAL_BONUS = 2;
const DEFAULT_BODY_LENGTH_INCREMENT = 10;
const DEFAULT_THICKNESS_INCREMENT = 0.05;
-const DEFAULT_SNAKE_COUNT = 15;
+const DEFAULT_SNAKE_COUNT = 20;
const DEFAULT_LENGTH_BONUS = 3;
const DEFAULT_KILL_BONUS = 3;
@@ -175,6 +175,15 @@ function updateLayout() {
removeDraggable(tlPanel);
removeDraggable(ctrlPanel);
+
+ // RE-wire help button in the new clone
+ const helpBtn = document.getElementById('helpButton');
+ const helpModal = document.getElementById('helpModal');
+ const helpClose = document.getElementById('helpClose');
+ if (helpBtn && helpModal && helpClose) {
+ helpBtn.onclick = () => { helpModal.style.display = 'flex'; };
+ helpClose.onclick = () => { helpModal.style.display = 'none'; };
+ }
}
}
@@ -536,6 +545,18 @@ function wireUIEvents() {
updateControlValue('respawnDelayVal', DEFAULT_RESPAWN_DELAY);
updateControlValue('foodDecayTimeVal', DEFAULT_FOOD_DECAY_TIME);
+ // Wire up the help button to open the modal
+ const helpBtn = document.getElementById('helpButton');
+ const helpModal = document.getElementById('helpModal');
+ const helpClose = document.getElementById('helpClose');
+ if (helpBtn && helpModal && helpClose) {
+ helpBtn.onclick = () => {
+ helpModal.style.display = 'flex';
+ };
+ helpClose.onclick = () => {
+ helpModal.style.display = 'none';
+ };
+ }
}
/* Adjust snake population */
@@ -1186,18 +1207,5 @@ function init() {
attachTopLevelTabLogic(document.getElementById("timeAndLeaderboardPanel"));
wireUIEvents();
-
- // Wire up the help button to open the modal
- const helpBtn = document.getElementById('helpButton');
- const helpModal = document.getElementById('helpModal');
- const helpClose = document.getElementById('helpClose');
- if (helpBtn && helpModal && helpClose) {
- helpBtn.onclick = () => {
- helpModal.style.display = 'flex';
- };
- helpClose.onclick = () => {
- helpModal.style.display = 'none';
- };
- }
}
init();