Compare commits
No commits in common. "7b20b0e8ec76d3873906afd54320d77d3249e07d" and "c850d9ffa9e39c702155596582bc0f5d9809a620" have entirely different histories.
7b20b0e8ec
...
c850d9ffa9
4 changed files with 4 additions and 24 deletions
|
@ -1,6 +1,4 @@
|
|||
{
|
||||
"debug": false,
|
||||
|
||||
"player.name": "Player",
|
||||
"player.leaderboards": false,
|
||||
|
||||
|
|
|
@ -47,22 +47,6 @@
|
|||
A timed game only lasts for 30 seconds, and the goal is to get as high a score as possible.
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h3>Survival</h3>
|
||||
<p>
|
||||
In survival mode, the playfield doesn't loop, fruits don't spawn, and you can't win.<br>
|
||||
This modes get progressively harder, with speed increases, and snake growth.<br>
|
||||
At first, this process is slow, but it gets faster with time.
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h3>Puzzle mode</h3>
|
||||
<p>
|
||||
In puzzle mode, time doesn't flow until you move.<br>
|
||||
Weird tiles make their debut, like portals, keys, etc.<br>
|
||||
Your goal is to get the fruits in as little moves as you can.
|
||||
</p>
|
||||
</section>
|
||||
</article>
|
||||
<article>
|
||||
<h2>Tiles</h2>
|
||||
|
@ -74,8 +58,6 @@
|
|||
<li><em>Oil</em> is flammable and will periodically catch on fire, which will kill you. It is otherwise perfectly safe</li>
|
||||
<li><em>Super fruits</em> give you 10 points, and sometimes spawn in arcade mode</li>
|
||||
<li><em>Decaying fruits</em> give you 5 points and sometimes spawn in arcade mode, but they also decay after 2 seconds and disappear</li>
|
||||
<li><em>Portals</em> teleport you to the corresponding portal</li>
|
||||
<li><em>Keys</em> make <em>Doors</em> disappear</li>
|
||||
</ul>
|
||||
</article>
|
||||
</main>
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue