Improve level-up animation and unit audio assets
This commit is contained in:
@@ -99,6 +99,10 @@ class SoundDirector {
|
||||
}
|
||||
|
||||
playLevelUp() {
|
||||
if (this.playEffect('level-up', { volume: 0.36, stopAfterMs: 1200 })) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.playEffect('exp-gain', { volume: 0.42, rate: 1.08, stopAfterMs: 820 });
|
||||
this.playTone(520, 0.08, 0.035, 'triangle');
|
||||
window.setTimeout(() => this.playTone(720, 0.09, 0.04, 'triangle'), 82);
|
||||
|
||||
Reference in New Issue
Block a user