feat: Implement the core Stop 'n' Go game mechanic, including its manager, main scene, and associated animation assets.

This commit is contained in:
Yogi Wiguna
2026-03-24 17:50:22 +08:00
parent fc40a00fc2
commit 7ca63fea00
5 changed files with 143 additions and 1485 deletions
+12 -3
View File
@@ -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")