feat: Implement the core Stop 'n' Go game mechanic, including its manager, main scene, and associated animation assets.
This commit is contained in:
+12
-3
@@ -3,9 +3,18 @@ extends Control
|
||||
@onready var animated_sprite_2d: AnimatedSprite2D = $StopPhase/AnimatedSprite2D
|
||||
@onready var animation_player: AnimationPlayer = $AnimationPlayer
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("grab_item"):
|
||||
animation_player.play("stop-phase")
|
||||
#func _input(event: InputEvent) -> void:
|
||||
#if event.is_action_pressed("grab_item"):
|
||||
#animation_player.play("stop-phase")
|
||||
|
||||
func play_ready_go():
|
||||
animation_player.play("ready-go")
|
||||
|
||||
func play_stop_phase():
|
||||
animation_player.play("stop-phase")
|
||||
|
||||
func play_safe_zone_appear():
|
||||
animation_player.play("safe-zone-appear")
|
||||
|
||||
func stop_phase_anim_play():
|
||||
animated_sprite_2d.play("stop-phase")
|
||||
|
||||
Reference in New Issue
Block a user