feat(game): 添加全套音效系统(背景BGM+7种攻击音+波次/Boss/死亡/建塔音效),纯Web Audio API合成

This commit is contained in:
Cloud Bot
2026-03-24 08:01:27 +00:00
parent c8b8c7109f
commit 08a3612ba1
12 changed files with 351 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
import type Phaser from 'phaser'
import { TowerBase } from './TowerBase'
import { AudioEngine } from '../AudioEngine'
import type { EnemyBase } from '../enemies/EnemyBase'
/**
@@ -15,6 +16,7 @@ export class PMTower extends TowerBase {
}
attack(target: EnemyBase): void {
AudioEngine.getInstance().playPMAttack()
this.firePRD(target)
}