Kaynağa Gözat

Add a digestion loop sound

mass-vore
Fen Dweller 6 yıl önce
ebeveyn
işleme
57d0adb96f
1 değiştirilmiş dosya ile 8 ekleme ve 4 silme
  1. +8
    -4
      stories/mass-vore.js

+ 8
- 4
stories/mass-vore.js Dosyayı Görüntüle

@@ -5,7 +5,7 @@
}
function digest(state, count) {
if (count === undefined) {
count = state.player.stats.stomach.value / 10;
count = state.player.stats.stomach.value / 200;
}
state.player.stats.stomach.value -= count;
state.player.stats.gas.value += count;
@@ -20,10 +20,11 @@
],
sounds: [
"sfx/belches/belch.ogg",
"sfx/swallows/swallow.ogg"
"sfx/swallows/swallow.ogg",
"loop/stomach/stomach.ogg"
],
preload: [
"loop/stomach/stomach.ogg"
],
intro: {
start: "city",
@@ -78,9 +79,12 @@
id: "digestion",
func: state => {
digest(state);
let vol = state.player.stats.fullness.value / state.player.stats.fullness.max
vol = Math.sqrt(vol);
playLoop("loop/stomach/stomach.ogg", vol);
return true;
},
delay: 100,
delay: 1000/60,
loop: true,
classes: [


Yükleniyor…
İptal
Kaydet