Przeglądaj źródła

Paws/tails can be grown. Part growth now works normally. Parts are hidden if not chosen

tags/v0.7.0
Fen Dweller 7 lat temu
rodzic
commit
e0883ea17d
4 zmienionych plików z 81 dodań i 35 usunięć
  1. +1
    -0
      .jshintrc
  2. +48
    -16
      game.js
  3. +19
    -13
      stroll.html
  4. +13
    -6
      style.css

+ 1
- 0
.jshintrc Wyświetl plik

@@ -10,6 +10,7 @@
"areas": true, "areas": true,
"fill_area": true, "fill_area": true,
"length": true, "length": true,
"area": true,
"mass": true, "mass": true,
"volume": true, "volume": true,
"round": true, "round": true,


+ 48
- 16
game.js Wyświetl plik

@@ -41,11 +41,12 @@ let macro =
get height() { return this.scaling(this.baseHeight, this.scale, 1); }, get height() { return this.scaling(this.baseHeight, this.scale, 1); },
"baseMass": 135, "baseMass": 135,
get mass () { return this.scaling(this.baseMass, this.scale, 3); }, get mass () { return this.scaling(this.baseMass, this.scale, 3); },
"pawScale": 1,
"basePawArea": 0.1, "basePawArea": 0.1,
get pawArea() { return this.scaling(this.basePawArea, this.scale, 2); },
get pawArea() { return this.scaling(this.basePawArea * this.pawScale * this.pawScale, this.scale, 2); },
"baseAnalVoreDiameter": 0.1, "baseAnalVoreDiameter": 0.1,
get analVoreArea() { return this.scaling(Math.pow(this.baseAnalVoreDiameter, 2), this.scale, 2); },
"baseAssArea": 0.4,
get analVoreArea() { return this.scaling(Math.pow(this.baseAnalVoreDiameter * this.assScale, 2), this.scale, 2); },
"baseAssArea": 0.25,
get assArea() { return this.scaling(this.baseAssArea * this.assScale, this.scale, 2); }, get assArea() { return this.scaling(this.baseAssArea * this.assScale, this.scale, 2); },
"baseHandArea": 0.1, "baseHandArea": 0.1,
get handArea() { return this.scaling(this.baseHandArea, this.scale, 2); }, get handArea() { return this.scaling(this.baseHandArea, this.scale, 2); },
@@ -3182,8 +3183,10 @@ function grow_pick(times) {


let button = document.querySelector(".growth-part-active"); let button = document.querySelector(".growth-part-active");


switch (button.id.replace("button-", "")) {
switch (button.id.replace("button-growth-", "")) {
case "body": grow(times); break; case "body": grow(times); break;
case "paws": grow_paws(times); break;
case "tail": grow_tail(times); break;
case "ass": grow_ass(times); break; case "ass": grow_ass(times); break;
case "dick": grow_dick(times); break; case "dick": grow_dick(times); break;
case "balls": grow_balls(times); break; case "balls": grow_balls(times); break;
@@ -3212,66 +3215,93 @@ function grow(factor=1)
update(["Power surges through you as you grow " + heightStr + " taller and gain " + massStr + " of mass",newline]); update(["Power surges through you as you grow " + heightStr + " taller and gain " + massStr + " of mass",newline]);
} }


function grow_dick(times=1)
function grow_paws(factor)
{

let oldArea = macro.pawArea;

macro.pawScale *= factor;

let areaDelta = macro.pawArea - oldArea;

let areaStr = area(areaDelta, unit, false);

update(["Power surges through you as your " + macro.footDesc(true) + " grow, gaining " + areaStr + " of area.",newline]);
}

function grow_tail(factor)
{

let oldLength = macro.tailLength;
let oldMass = macro.tailMass;

macro.tailScale *= factor;

let lengthDelta = macro.tailLength - oldLength;
let massDelta = macro.tailMass - oldMass;
update(["Power surges through you as your " + macro.tailType + " tail grows " + length(lengthDelta, unit, false) + " longer and gains " + mass(massDelta, unit, false) + " of mass",newline]);
}

function grow_dick(factor)
{ {


let oldLength = macro.dickLength; let oldLength = macro.dickLength;
let oldMass = macro.dickMass; let oldMass = macro.dickMass;


macro.dickScale = Math.pow(macro.dickScale * macro.dickScale + 1.02*times, 1/2) ;
macro.dickScale *= factor;


let lengthDelta = macro.dickLength - oldLength; let lengthDelta = macro.dickLength - oldLength;
let massDelta = macro.dickMass - oldMass; let massDelta = macro.dickMass - oldMass;
update(["Power surges through you as your " + macro.dickType + " cock grows " + length(lengthDelta, unit, false) + " longer and gains " + mass(massDelta, unit, false) + " of mass",newline]); update(["Power surges through you as your " + macro.dickType + " cock grows " + length(lengthDelta, unit, false) + " longer and gains " + mass(massDelta, unit, false) + " of mass",newline]);
} }


function grow_balls(times=1)
function grow_balls(factor)
{ {




let oldDiameter = macro.ballDiameter; let oldDiameter = macro.ballDiameter;
let oldMass = macro.ballMass; let oldMass = macro.ballMass;


macro.ballScale = Math.pow(macro.ballScale * macro.ballScale + 1.02*times, 1/2) ;
macro.ballScale *= factor;


let diameterDelta = macro.ballDiameter - oldDiameter; let diameterDelta = macro.ballDiameter - oldDiameter;
let massDelta = macro.ballMass - oldMass; let massDelta = macro.ballMass - oldMass;
update(["Power surges through you as your balls swell by " + length(diameterDelta, unit, false) + ", gaining " + mass(massDelta, unit, false) + " of mass apiece",newline]); update(["Power surges through you as your balls swell by " + length(diameterDelta, unit, false) + ", gaining " + mass(massDelta, unit, false) + " of mass apiece",newline]);
} }


function grow_breasts(times=1)
function grow_breasts(factor)
{ {




let oldDiameter = macro.breastDiameter; let oldDiameter = macro.breastDiameter;
let oldMass = macro.breastMass; let oldMass = macro.breastMass;


macro.breastScale = Math.pow(macro.breastScale * macro.breastScale + 1.02*times, 1/2) ;
macro.breastScale *= factor;


let diameterDelta = macro.breastDiameter - oldDiameter; let diameterDelta = macro.breastDiameter - oldDiameter;
let massDelta = macro.breastMass - oldMass; let massDelta = macro.breastMass - oldMass;
update(["Power surges through you as your breasts swell by " + length(diameterDelta, unit, false) + ", gaining " + mass(massDelta, unit, false) + " of mass apiece",newline]); update(["Power surges through you as your breasts swell by " + length(diameterDelta, unit, false) + ", gaining " + mass(massDelta, unit, false) + " of mass apiece",newline]);
} }


function grow_vagina(times=1)
function grow_vagina(factor)
{ {


let oldLength = macro.vaginaLength; let oldLength = macro.vaginaLength;


macro.vaginaScale = Math.pow(macro.vaginaScale * macro.vaginaScale + 1.02*times, 1/2) ;
macro.vaginaScale *= factor;


let lengthDelta = macro.vaginaLength - oldLength; let lengthDelta = macro.vaginaLength - oldLength;


update(["Power surges through you as your moist slit expands by by " + length(lengthDelta, unit, false),newline]); update(["Power surges through you as your moist slit expands by by " + length(lengthDelta, unit, false),newline]);
} }


function grow_ass(times=1)
function grow_ass(factor)
{ {




let oldDiameter = Math.pow(macro.assArea,1/2); let oldDiameter = Math.pow(macro.assArea,1/2);


macro.assScale = Math.pow(macro.assScale * macro.assScale + 1.02*times, 1/2) ;
macro.assScale *= factor;


let diameterDelta = Math.pow(macro.assArea,1/2) - oldDiameter; let diameterDelta = Math.pow(macro.assArea,1/2) - oldDiameter;
update(["Power surges through you as your ass swells by " + length(diameterDelta, unit, false),newline]); update(["Power surges through you as your ass swells by " + length(diameterDelta, unit, false),newline]);
@@ -3409,7 +3439,7 @@ function enable_stat(name) {
} }


function enable_growth_part(name) { function enable_growth_part(name) {
//document.querySelector("#part-" + name + "+label").style.display = 'inline';
document.querySelector("#button-growth-" + name).style.display = 'block';
} }


function disable_button(name) { function disable_button(name) {
@@ -3441,6 +3471,7 @@ function startGame(e) {
macro.tailCount = 0; macro.tailCount = 0;
} }


enable_growth_part("paws");
enable_victim("stomped","Stomped"); enable_victim("stomped","Stomped");
enable_victim("flex-toes","Squished between toes"); enable_victim("flex-toes","Squished between toes");
enable_victim("eaten","Devoured"); enable_victim("eaten","Devoured");
@@ -3490,6 +3521,7 @@ function startGame(e) {


if (macro.tailCount > 0) { if (macro.tailCount > 0) {
enable_panel("tails"); enable_panel("tails");
enable_growth_part("tail");
enable_button("tail_slap"); enable_button("tail_slap");
enable_victim("tail-slap","Tail slapped"); enable_victim("tail-slap","Tail slapped");


@@ -3546,7 +3578,7 @@ function startGame(e) {


enable_stat("femcum"); enable_stat("femcum");


enable_growth_part("vagina");
enable_growth_part("slit");


if (macro.arousalEnabled) { if (macro.arousalEnabled) {
enable_victim("femcum-flood","Flooded by femcum"); enable_victim("femcum-flood","Flooded by femcum");


+ 19
- 13
stroll.html Wyświetl plik

@@ -162,18 +162,24 @@
<div class="stat-header-self">Growth</div> <div class="stat-header-self">Growth</div>


<div class="growth-box"> <div class="growth-box">
<button class="growth-part growth-part-active" id="button-body">Body</button>
<button class="growth-part" id="button-ass">Ass</button>
<button class="growth-part" id="button-dick">Cock</button>
<button class="growth-part" id="button-balls">Balls</button>
<button class="growth-part" id="button-slit">Slit</button>
<button class="growth-part" id="button-breasts">Breasts</button>
<button class="growth-amount" id="button-growth-1.1">1.1x</button>
<button class="growth-amount" id="button-growth-1.5">1.5x</button>
<button class="growth-amount" id="button-growth-2">2x</button>
<button class="growth-amount" id="button-growth-5">5x</button>
<button class="growth-amount" id="button-growth-20">20x</button>
<button class="growth-amount" id="button-growth-100">100x</button>
<div id="growth-box-left">
<button class="growth-part growth-part-active" id="button-growth-body">Body</button>
<button class="growth-part" id="button-growth-paws">Paws</button>
<button class="growth-part" id="button-growth-tail">Tail</button>
<button class="growth-part" id="button-growth-ass">Ass</button>
<button class="growth-part" id="button-growth-dick">Cock</button>
<button class="growth-part" id="button-growth-balls">Balls</button>
<button class="growth-part" id="button-growth-slit">Slit</button>
<button class="growth-part" id="button-growth-breasts">Breasts</button>
</div>
<div id="growth-box-right">
<button class="growth-amount" id="button-growth-1.1">1.1x</button>
<button class="growth-amount" id="button-growth-1.5">1.5x</button>
<button class="growth-amount" id="button-growth-2">2x</button>
<button class="growth-amount" id="button-growth-5">5x</button>
<button class="growth-amount" id="button-growth-20">20x</button>
<button class="growth-amount" id="button-growth-100">100x</button>
</div>
</div> </div>


<div class="stat-container"> <div class="stat-container">
@@ -411,7 +417,7 @@
</li> </li>
<li> <li>
<label for="baseAssArea">Ass area</label> <label for="baseAssArea">Ass area</label>
<input autocomplete="off" type="number" step="any" id="baseAssArea" name="baseAssArea" data-unit="area" placeholder="0.4">
<input autocomplete="off" type="number" step="any" id="baseAssArea" name="baseAssArea" data-unit="area" placeholder="0.25">
<div class="preview" id="baseAssAreaPreview"></div> <div class="preview" id="baseAssAreaPreview"></div>
</li> </li>
</div> </div>


+ 13
- 6
style.css Wyświetl plik

@@ -607,18 +607,25 @@ body.dark .meterLabel {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
flex-direction: column; flex-direction: column;
flex: 0 1 300px;
flex: 0 1 400px;
} }


.growth-box > * {
.growth-box > div > * {
margin: 0px; margin: 0px;
display: block;
width: 50%;
width: 100%;
height: 50px; height: 50px;
} }


.growth-part {
#growth-box-left {
height: 100%;
}


#growth-box-right {
height: 100%;
}

.growth-part {
display: none;
} }


.growth-part-active { .growth-part-active {
@@ -626,5 +633,5 @@ body.dark .meterLabel {
} }


.growth-amount { .growth-amount {
display: block;
} }

Ładowanie…
Anuluj
Zapisz