Quellcode durchsuchen

Fixed strolling for real. Fixed dark mode button outline. Improved layout for buttons at top

tags/v0.7.0
Fen Dweller vor 7 Jahren
Ursprung
Commit
eca373a7c5
3 geänderte Dateien mit 16 neuen und 3 gelöschten Zeilen
  1. +1
    -2
      game.js
  2. +8
    -1
      stroll.html
  3. +7
    -0
      style.css

+ 1
- 2
game.js Datei anzeigen

@@ -2372,8 +2372,8 @@ function update(lines = [])

function pick_move()
{
setTimeout(pick_move, 1500 * (1 + Math.log10(macro.scale)));
if (!strolling) {
setTimeout(pick_move, 1500 * Math.log10(macro.scale));
return;
}
let choice = Math.random();
@@ -2385,7 +2385,6 @@ function pick_move()
} else {
feed();
}
setTimeout(pick_move, 1500 * Math.sqrt(macro.scale));
}

function grow_pick(times) {


+ 8
- 1
stroll.html Datei anzeigen

@@ -161,11 +161,18 @@

<p>Or, load/save your own character internally here! It'll be saved in your browser, so you can come back to it later.</p>
<div>
<button class="option-button" id="button-reset-custom">Reset Custom Character</button>
<button class="option-button" id="button-load-custom">Load Custom Character</button>
<button class="option-button" id="button-save-custom">Save Custom Character</button>
</div>

<p>Reset the sheet here (custom character data isn't affected)</p>

<div>
<button class="option-button" id="button-reset-custom">Reset</button>
</div>

<br>

<div>
<button class="option-button" id="button-start">Start Game</button>
</div>


+ 7
- 0
style.css Datei anzeigen

@@ -148,6 +148,12 @@ body.dark #log {
height: 75px;
}

#button-start {
width:200px;
height:100px;
font-size: 32px;
}

.stat-button {
font-size: 20px;
width: 120px;
@@ -265,6 +271,7 @@ body.light input[type="checkbox"]:checked+
body.dark input[type="checkbox"]:checked+
.custom-header {
color: #fff;
border-style: solid;
margin: 10px;
background: #444;
}


Laden…
Abbrechen
Speichern