feat: implement Music and SoundEffects systems for enhanced audio management, including background music and sound effects playback
All checks were successful
Build and Publish Docker Image / Build and Validate (pull_request) Successful in 10s
All checks were successful
Build and Publish Docker Image / Build and Validate (pull_request) Successful in 10s
This commit is contained in:
parent
143072f0a0
commit
2213f64e60
16 changed files with 739 additions and 14 deletions
|
|
@ -33,7 +33,8 @@ export class AISystem extends System {
|
|||
const playerController = this.engine.systems.find(
|
||||
(s) => s.name === SystemName.PLAYER_CONTROLLER
|
||||
) as PlayerControllerSystem | undefined;
|
||||
const player = playerController ? playerController.getPlayerEntity() : null;
|
||||
const player = playerController?.getPlayerEntity();
|
||||
if (!player) return;
|
||||
const playerPos = player?.getComponent<Position>(ComponentType.POSITION);
|
||||
const config = GameConfig.AI;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue