implement level menu
This commit is contained in:
parent
b275630598
commit
6831dd3a3f
8 changed files with 185 additions and 5 deletions
13
gmtk_2024/scripts/level_select.gd
Normal file
13
gmtk_2024/scripts/level_select.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Control
|
||||
|
||||
func _ready():
|
||||
setup_level_box()
|
||||
|
||||
func setup_level_box():
|
||||
for box in $Background/ClipControl/GridContainer.get_children():
|
||||
box.level_num = box.get_index() + 1
|
||||
box.locked = false
|
||||
|
||||
|
||||
func _on_quit_button_pressed():
|
||||
get_tree().change_scene_to_file("res://menu/main_menu/MainMenu.tscn")
|
Loading…
Add table
Add a link
Reference in a new issue