summaryrefslogtreecommitdiffstats
path: root/level_main_menu.gd
blob: 2ee46bd5c0eb06f956016f658f26319c49307985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class_name LevelMainMenu
extends Node2D

@onready var root: Root = get_tree().root.get_child(0)

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	$TestLevelButton.pressed.connect(_test_level_button_pressed)

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
	pass

func _test_level_button_pressed():
	root.change_level("test")