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

Improved table styling. Increased femcum output. Clarified buttons

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

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

@@ -77,7 +77,7 @@ var macro =
get vaginaWidth() { return this.scaling(this.baseVaginaWidth * this.vaginaScale, this.scale, 1); }, get vaginaWidth() { return this.scaling(this.baseVaginaWidth * this.vaginaScale, this.scale, 1); },
get vaginaArea() { return this.vaginaLength * this.vaginaWidth }, get vaginaArea() { return this.vaginaLength * this.vaginaWidth },
get vaginaVolume() { return this.vaginaArea * this.vaginaWidth }, get vaginaVolume() { return this.vaginaArea * this.vaginaWidth },
"femcumRatio": 0.1,
"femcumRatio": 0.25,
"femcumScale": 1, "femcumScale": 1,
get femcumVolume() { get femcumVolume() {
return this.vaginaVolume * this.femcumRatio * this.femcumScale + Math.max(0,this.femcumStorage.amount - this.femcumStorage.limit); return this.vaginaVolume * this.femcumRatio * this.femcumScale + Math.max(0,this.femcumStorage.amount - this.femcumStorage.limit);
@@ -961,13 +961,13 @@ function grow()
function option_male() { function option_male() {
macro.maleParts = !macro.maleParts; macro.maleParts = !macro.maleParts;


document.getElementById("button-male-genitals").innerHTML = (macro.maleParts ? "Male genitals" : "No male genitals");
document.getElementById("button-male-genitals").innerHTML = (macro.maleParts ? "Male genitals on" : "Male genitals off");
} }


function option_female() { function option_female() {
macro.femaleParts = !macro.femaleParts; macro.femaleParts = !macro.femaleParts;


document.getElementById("button-female-genitals").innerHTML = (macro.femaleParts ? "Female genitals" : "No female genitals");
document.getElementById("button-female-genitals").innerHTML = (macro.femaleParts ? "Female genitals on" : "Female genitals off");
} }


function startGame() { function startGame() {
@@ -1000,12 +1000,13 @@ function startGame() {
var table = document.getElementById("victim-table"); var table = document.getElementById("victim-table");


var tr = document.createElement('tr'); var tr = document.createElement('tr');

var th = document.createElement('th'); var th = document.createElement('th');

th.innerHTML = "Method"; th.innerHTML = "Method";
tr.appendChild(th); tr.appendChild(th);
for (var i = 0; i < victimTypes.length; i++) { for (var i = 0; i < victimTypes.length; i++) {
var th = document.createElement('th'); var th = document.createElement('th');
th.classList.add("victim-table-cell");
th.innerHTML = victimTypes[i].charAt(0).toUpperCase() + victimTypes[i].slice(1); th.innerHTML = victimTypes[i].charAt(0).toUpperCase() + victimTypes[i].slice(1);
tr.appendChild(th); tr.appendChild(th);
} }


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

@@ -48,8 +48,8 @@
<button class=action-button id=button-verbose>Descriptions: Verbose</button> <button class=action-button id=button-verbose>Descriptions: Verbose</button>
</div> </div>
<div class=button-container id=option-panel> <div class=button-container id=option-panel>
<button class=option-button id=button-male-genitals>Male genitals</button>
<button class=option-button id=button-female-genitals>Female genitals</button>
<button class=option-button id=button-male-genitals>Male genitals on</button>
<button class=option-button id=button-female-genitals>Female genitals on</button>
<form class=option-form>Species:<br><input type="text" name="species" id="option-species"></input></form> <form class=option-form>Species:<br><input type="text" name="species" id="option-species"></input></form>
<button class=option-button id=button-start>Start game</button> <button class=option-button id=button-start>Start game</button>
</div> </div>


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

@@ -92,3 +92,7 @@ body {
margin: auto; margin: auto;
width: 80%; width: 80%;
} }

.victim-table-cell {
width: 10%;
}

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