diff --git a/assets/config.json b/assets/config.json index 0dd4800..09c1aba 100644 --- a/assets/config.json +++ b/assets/config.json @@ -1,6 +1,4 @@ { - "debug": false, - "player.name": "Player", "player.leaderboards": false, diff --git a/public/help.html b/public/help.html index 34d040f..39bb8df 100644 --- a/public/help.html +++ b/public/help.html @@ -47,22 +47,6 @@ A timed game only lasts for 30 seconds, and the goal is to get as high a score as possible.

-
-

Survival

-

- In survival mode, the playfield doesn't loop, fruits don't spawn, and you can't win.
- This modes get progressively harder, with speed increases, and snake growth.
- At first, this process is slow, but it gets faster with time. -

-
-
-

Puzzle mode

-

- In puzzle mode, time doesn't flow until you move.
- Weird tiles make their debut, like portals, keys, etc.
- Your goal is to get the fruits in as little moves as you can. -

-

Tiles

@@ -74,8 +58,6 @@
  • Oil is flammable and will periodically catch on fire, which will kill you. It is otherwise perfectly safe
  • Super fruits give you 10 points, and sometimes spawn in arcade mode
  • Decaying fruits give you 5 points and sometimes spawn in arcade mode, but they also decay after 2 seconds and disappear
  • -
  • Portals teleport you to the corresponding portal
  • -
  • Keys make Doors disappear
  • diff --git a/src/js/configEditor.js b/src/js/configEditor.js index 377f995..fc9baed 100644 --- a/src/js/configEditor.js +++ b/src/js/configEditor.js @@ -22,7 +22,7 @@ class ConfigEditor extends Popup { let id='cfgInput-'+(lastCEId++)+'-'+key.replace(/\./g, '-'); let label=span.appendChild(document.createElement('label')); label.innerText=data.name; - if(config.getB('debug')) label.title=key; + label.title=key; let input; if(data.type=='boolean') { @@ -67,7 +67,7 @@ class ConfigEditor extends Popup { input.disabled= data.excludes .some(key => config.getB(key)); - input.title=input.disabled?`Disable '${data.excludes.map(k => metaConfig[k].name).join('\', \'')}' to enable`:''; + input.title=input.disabled?`Disable ${data.excludes.join(',')} to enable`:''; }; setEnabled(); @@ -78,7 +78,7 @@ class ConfigEditor extends Popup { } else if(data.parent) { const setEnabled=() => { input.disabled=!config.getB(data.parent); - input.title=input.disabled?`Enable '${metaConfig[data.parent].name}' to enable`:''; + input.title=input.disabled?`Enable ${data.parent} to enable`:''; }; setEnabled(); diff --git a/src/js/progress.js b/src/js/progress.js index 0c33ad3..973f0bc 100644 --- a/src/js/progress.js +++ b/src/js/progress.js @@ -34,7 +34,7 @@ class ProgressBar { ctx.fillRect(0, 0, canvas.width*this.completeCount/this.taskCount, canvas.height); ctx.fillStyle=textColor; ctx.textAlign='center'; - ctx.textBaseline='middle'; + ctx.textBaseline='center'; ctx.font=`${canvas.height/2}px 'Fira Code'`; ctx.fillText(this.percent+'%', canvas.width/2, canvas.height/2); }