Fixed enemy player lost sound. Some file organazing. Updated version number

This commit is contained in:
2026-03-15 13:18:47 +03:00
parent 8b1635aad8
commit 60c36d8666
51 changed files with 110 additions and 110 deletions
@@ -16,6 +16,8 @@ func physics_process(delta: float) -> void:
cultist.target_x = player.position.x
if _is_target_reached() or _wall_high_ray_cast.is_colliding():
var stream := SoundManager.sfx_stream_player_lost
SoundManager.play_sfx_stream(stream, cultist.global_position)
switch_state.emit(look_around_state)
elif _wall_low_ray_cast.is_colliding():
switch_state.emit(jump_state)
@@ -16,8 +16,6 @@ func physics_process(delta: float) -> void:
switch_state.emit(chase_state)
else:
if _wall_low_ray_cast.is_colliding() or _wall_high_ray_cast.is_colliding():
var stream := SoundManager.sfx_stream_player_lost
SoundManager.play_sfx_stream(stream, cultist.global_position)
switch_state.emit(another_direction_walk_state)
else:
cultist.update_x_velocity(_direction, cultist.MAX_WALK_SPEED, delta)