Added high wall rays

This commit is contained in:
2026-02-13 00:55:15 +03:00
parent 0dff01da11
commit ebc0133a82
16 changed files with 65 additions and 31 deletions
@@ -15,7 +15,7 @@ func physics_process(delta: float) -> void:
if player != null:
switch_state.emit(chase_state)
else:
if _wall_ray_cast.is_colliding():
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)