10 lines
294 B
GDScript3
10 lines
294 B
GDScript3
|
extends CanvasLayer
|
||
|
|
||
|
@onready var animation_player: AnimationPlayer = $AnimationPlayer
|
||
|
|
||
|
|
||
|
func _process(delta: float) -> void:
|
||
|
if Input.is_action_just_pressed("lclick") and not Persister.get_value("game_started"):
|
||
|
Persister.persist_data("game_started", true)
|
||
|
animation_player.play("start")
|