joa
This commit is contained in:
parent
09af71289f
commit
25229a3757
25 changed files with 299 additions and 178 deletions
23
start.gd
23
start.gd
|
@ -1,12 +1,27 @@
|
|||
extends Control
|
||||
|
||||
@onready var start_button = get_node("TextureRect/MarginContainer/HBoxContainer/VBoxContainer/PlayButton")
|
||||
@onready var quit_button = get_node("TextureRect/MarginContainer/HBoxContainer/VBoxContainer/QuitButton")
|
||||
@onready var levellist = $TextureRect/MarginContainer/HBoxContainer/LevelList
|
||||
var playbutton = false
|
||||
|
||||
func main():
|
||||
print("Hey!")
|
||||
|
||||
func _start_button_pressed():
|
||||
get_tree().change_scene_to_file("res://Level_Core.tscn")
|
||||
|
||||
func _ready():
|
||||
start_button.pressed.connect(_start_button_pressed)
|
||||
print("READY!!! >w<")
|
||||
levellist.hide()
|
||||
# start_button.pressed.connect(_start_button_pressed)
|
||||
# quit_button.pressed.connect(_quit_button_pressed)
|
||||
|
||||
func _start_button_pressed():
|
||||
if playbutton == false:
|
||||
playbutton = true
|
||||
levellist.show()
|
||||
elif playbutton == true:
|
||||
playbutton = false
|
||||
levellist.hide()
|
||||
# get_tree().change_scene_to_file("res://Level_Core.tscn")
|
||||
|
||||
func _quit_button_pressed():
|
||||
get_tree().quit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue