conductor/scripts/intro.gd

28 lines
451 B
GDScript3
Raw Permalink Normal View History

2026-03-16 04:25:37 +00:00
#@tool
#@icon(icon_path: String)
#class_name MyNode
extends Node
## Documentation comments
#signal
#enum
#const
const LEVEL_0 = preload("uid://1mhb537c1qxd")
@onready var start_button: Button = %StartButton
## OVERRIDES
func _ready() -> void:
start_button.connect("pressed", on_start_button_pressed)
## CORE
## PRIVATE/HELPER
## RECEIVERS
func on_start_button_pressed() -> void:
get_tree().change_scene_to_packed(LEVEL_0)
## SETTERS/GETTERS