tell them they can chomp

This commit is contained in:
Haze Weathers 2025-07-17 21:49:43 -06:00
parent c57abb8358
commit 86ece55d14
2 changed files with 54 additions and 2 deletions

View file

@ -56,6 +56,8 @@ var first_land = true
var can_shield = true
var chomp_text_shown = false
# NODE REFERENCES #
onready var state_chart: StateChart = $StateChart
@ -118,6 +120,9 @@ func _physics_process(delta: float) -> void:
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)
if can_shoot and not chomp_text_shown:
$Label/TextAnimation.play("blink")
chomp_text_shown = true
# check for and propagate input events
if Input.is_action_just_pressed("shoot"): # shooting