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

This commit is contained in:
Juan Sebastián Montoya 2026-01-06 23:25:33 -05:00
parent 143072f0a0
commit 2213f64e60
16 changed files with 739 additions and 14 deletions

View file

@ -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;