wobblyhead hg > minor_monsters
comparison game/js/wave.js @ 4:2d46729a022e
sound processing and in-game sounds
| author | ark |
|---|---|
| date | 2026-10-18 20:58 +0200 |
| parents | 5492efd60e2c |
| children | 7fda634d15ad |
comparison
equal
deleted
inserted
replaced
| 3:cc0c32e71090 | 4:2d46729a022e |
|---|---|
| 47 Waves.prototype.start = function () { | 47 Waves.prototype.start = function () { |
| 48 this.queue = schedule(this.list[this.next]); | 48 this.queue = schedule(this.list[this.next]); |
| 49 this.clock = 0; | 49 this.clock = 0; |
| 50 this.phase = "spawning"; | 50 this.phase = "spawning"; |
| 51 this.next++; | 51 this.next++; |
| 52 MM.audio.play("wave_start"); | |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 // start the next wave during a break. returns the bonus coins. | 55 // start the next wave during a break. returns the bonus coins. |
| 55 Waves.prototype.startEarly = function () { | 56 Waves.prototype.startEarly = function () { |
| 56 if (this.phase !== "break") return 0; | 57 if (this.phase !== "break") return 0; |
