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

Added stretchiness

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

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

@@ -132,6 +132,7 @@ let macro =
"baseTailLength": 1, "baseTailLength": 1,
"baseTailDiameter": 0.1, "baseTailDiameter": 0.1,
"tailDensity": 250, "tailDensity": 250,
"tailStretchiness": 2,
"tailScale": 1, "tailScale": 1,
"tailMaw": false, "tailMaw": false,


@@ -141,9 +142,15 @@ let macro =
get tailDiameter() { get tailDiameter() {
return this.scaling(this.baseTailDiameter * this.tailScale, this.scale, 1); return this.scaling(this.baseTailDiameter * this.tailScale, this.scale, 1);
}, },
get tailStretchDiameter() {
return this.scaling(this.tailStretchiness * this.baseTailDiameter * this.tailScale, this.scale, 1);
},
get tailGirth() { get tailGirth() {
return Math.pow(this.tailDiameter/2,2) * Math.PI; return Math.pow(this.tailDiameter/2,2) * Math.PI;
}, },
get tailStretchGirth() {
return Math.pow(this.tailStretchDiameter/2,2) * Math.PI;
},
get tailArea() { get tailArea() {
return this.tailLength * this.tailDiameter; return this.tailLength * this.tailDiameter;
}, },
@@ -157,6 +164,7 @@ let macro =
"baseDickLength": 0.3, "baseDickLength": 0.3,
"baseDickDiameter": 0.08, "baseDickDiameter": 0.08,
"dickDensity": 1000, "dickDensity": 1000,
"dickStretchiness": 2,
"dickScale": 1, "dickScale": 1,
get dickLength() { get dickLength() {
let factor = 1; let factor = 1;
@@ -181,6 +189,9 @@ let macro =
get dickGirth() { get dickGirth() {
return Math.pow((this.dickDiameter/ 2),2) * Math.PI; return Math.pow((this.dickDiameter/ 2),2) * Math.PI;
}, },
get dickStretchGreath() {
return this.dickGirth * this.dickStretchiness * this.dickStretchiness;
},
get dickArea() { get dickArea() {
return this.dickLength * this.dickDiameter* Math.PI / 2; return this.dickLength * this.dickDiameter* Math.PI / 2;
}, },
@@ -212,11 +223,13 @@ let macro =


"baseVaginaLength": 0.1, "baseVaginaLength": 0.1,
"baseVaginaWidth": 0.05, "baseVaginaWidth": 0.05,
"vaginaStretchiness": 2,
"vaginaScale": 1, "vaginaScale": 1,


get vaginaLength() { return this.scaling(this.baseVaginaLength * this.vaginaScale, this.scale, 1); }, get vaginaLength() { return this.scaling(this.baseVaginaLength * this.vaginaScale, this.scale, 1); },
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 vaginaStretchArea() { return this.vaginaStretchiness * this.vaginaStretchiness * this.vaginaLength * this.vaginaWidth; },
get vaginaVolume() { return this.vaginaArea * this.vaginaWidth; }, get vaginaVolume() { return this.vaginaArea * this.vaginaWidth; },
"baseFemcumRatio": 1, "baseFemcumRatio": 1,
"femcumScale": 1, "femcumScale": 1,
@@ -235,11 +248,16 @@ let macro =


"baseBreastDiameter": 0.1, "baseBreastDiameter": 0.1,
"breastScale": 1, "breastScale": 1,
"breastStretchiness": 2,
"breastDensity": 1000, "breastDensity": 1000,
get breastDiameter() { return this.scaling(this.baseBreastDiameter * this.breastScale, this.scale, 1); }, get breastDiameter() { return this.scaling(this.baseBreastDiameter * this.breastScale, this.scale, 1); },
get breastStretchDiameter() { return this.scaling(this.breastStretchiness * this.baseBreastDiameter * this.breastScale, this.scale, 1); },
get breastArea() { get breastArea() {
return 2 * Math.PI * Math.pow(this.breastDiameter/2,2); return 2 * Math.PI * Math.pow(this.breastDiameter/2,2);
}, },
get breastStretchArea() {
return 2 * Math.PI * Math.pow(this.breastStretchDiameter/2,2);
},
get breastVolume() { get breastVolume() {
let radius = this.breastDiameter / 2; let radius = this.breastDiameter / 2;
return 4/3 * Math.PI * Math.pow(radius,3); return 4/3 * Math.PI * Math.pow(radius,3);
@@ -1673,7 +1691,7 @@ function breast_milk(e,vol)


function unbirth() function unbirth()
{ {
let area = macro.vaginaArea;
let area = macro.vaginaStretchArea;
let prey = getPrey(biome, area, macro.sameSizeVore); let prey = getPrey(biome, area, macro.sameSizeVore);
let line = describe("unbirth", prey, macro, verbose); let line = describe("unbirth", prey, macro, verbose);
let linesummary = summarize(prey.sum(), false); let linesummary = summarize(prey.sum(), false);
@@ -1867,7 +1885,7 @@ function cockslap()


function cock_vore() function cock_vore()
{ {
let area = macro.dickGirth;
let area = macro.dickStretchGirth;
let prey = getPrey(biome, area, macro.sameSizeVore); let prey = getPrey(biome, area, macro.sameSizeVore);
let line = describe("cock-vore", prey, macro, verbose); let line = describe("cock-vore", prey, macro, verbose);
let linesummary = summarize(prey.sum(), false); let linesummary = summarize(prey.sum(), false);
@@ -2103,7 +2121,7 @@ function tail_slap()


function tail_vore() function tail_vore()
{ {
let area = macro.tailGirth * macro.tailCount;
let area = macro.tailStretchGirth * macro.tailCount;
let prey = getPrey(biome, area, macro.sameSizeVore); let prey = getPrey(biome, area, macro.sameSizeVore);
let line = describe("tail-vore", prey, macro, verbose); let line = describe("tail-vore", prey, macro, verbose);
let linesummary = summarize(prey.sum(), false); let linesummary = summarize(prey.sum(), false);


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

@@ -341,6 +341,10 @@
<label for="tailMaw">Tail maw(s)</label> <label for="tailMaw">Tail maw(s)</label>
<input type="checkbox" checked="true" name="tailMaw"/> <input type="checkbox" checked="true" name="tailMaw"/>
</li> </li>
<li>
<label for="tailStretchiness">Tail stretchiness</label>
<input type="number" name="tailStretchiness" placeholder="0.3"/>
</li>
</div> </div>
</div> </div>




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