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);
|
||||
|
||||
@@ -8,6 +8,7 @@ import combatImpactUrl from '../../assets/audio/sfx/combat-impact.mp3';
|
||||
import expGainUrl from '../../assets/audio/sfx/exp-gain.mp3';
|
||||
import footstepWalkUrl from '../../assets/audio/sfx/footstep-walk.mp3';
|
||||
import horseGallopUrl from '../../assets/audio/sfx/horse-gallop.mp3';
|
||||
import levelUpUrl from '../../assets/audio/sfx/level-up.wav';
|
||||
import strategyCastUrl from '../../assets/audio/sfx/strategy-cast.mp3';
|
||||
import swordSlashUrl from '../../assets/audio/sfx/sword-slash.mp3';
|
||||
import uiSelectUrl from '../../assets/audio/sfx/ui-select.mp3';
|
||||
@@ -27,6 +28,7 @@ export const effectTracks = {
|
||||
'strategy-cast': strategyCastUrl,
|
||||
'cart-roll': cartRollUrl,
|
||||
'exp-gain': expGainUrl,
|
||||
'level-up': levelUpUrl,
|
||||
'footstep-walk': footstepWalkUrl,
|
||||
'horse-gallop': horseGallopUrl
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user