Просмотр исходного кода

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

tags/v0.7.0
Fen Dweller 8 лет назад
Родитель
Сommit
eca373a7c5
3 измененных файлов: 16 добавлений и 3 удалений
  1. +1
    -2
      game.js
  2. +8
    -1
      stroll.html
  3. +7
    -0
      style.css

+ 1
- 2
game.js Просмотреть файл

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


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


function grow_pick(times) { function grow_pick(times) {


+ 8
- 1
stroll.html Просмотреть файл

@@ -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> <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> <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-load-custom">Load Custom Character</button>
<button class="option-button" id="button-save-custom">Save Custom Character</button> <button class="option-button" id="button-save-custom">Save Custom Character</button>
</div> </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> <div>
<button class="option-button" id="button-start">Start Game</button> <button class="option-button" id="button-start">Start Game</button>
</div> </div>


+ 7
- 0
style.css Просмотреть файл

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


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

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


Загрузка…
Отмена
Сохранить