소스 검색

Add a digestion loop sound

mass-vore
Fen Dweller 6 년 전
부모
커밋
57d0adb96f
1개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. +8
    -4
      stories/mass-vore.js

+ 8
- 4
stories/mass-vore.js 파일 보기

@@ -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: [


불러오는 중...
취소
저장