some more stuff :O

This commit is contained in:
Haze Weathers 2025-07-17 16:49:56 -06:00
parent 60294d21dc
commit 2038b5ca7a
10 changed files with 76 additions and 29 deletions

View file

@ -114,7 +114,8 @@ func _physics_process(delta: float) -> void:
sprite.global_position = graphics.global_position.round() + Vector2(0.0, -10.0)
# update transition guard properties
# whether player can currently shoot an arrow
var can_shoot = Game.arrows > 0 and get_tree().get_nodes_in_group("player_arrow").size() == 0
var can_shoot = Game.stars >= 5
# var can_shoot = Game.arrows > 0 and get_tree().get_nodes_in_group("player_arrow").size() == 0
state_chart.set_guard_property("can_shoot", can_shoot)
# check for and propagate input events