Tiling system
This commit is contained in:
parent
39e34e9be1
commit
31ee3550af
7 changed files with 147 additions and 26 deletions
|
@ -3,6 +3,7 @@ extends Control
|
|||
@onready var menu_principal = $Menu_principal
|
||||
@onready var menu_parametres = $Menu_parametres
|
||||
|
||||
var first_room = preload("res://scenes/Room.tscn").instantiate()
|
||||
|
||||
func _ready():
|
||||
menu_parametres.exit_parametres.connect(on_exit_parametres)
|
||||
|
@ -34,8 +35,8 @@ func on_exit_parametres() -> void :
|
|||
|
||||
|
||||
func _on_play_button_pressed():
|
||||
print("Jouer")
|
||||
|
||||
|
||||
get_tree().root.add_child(first_room)
|
||||
menu_principal.visible = false
|
||||
|
||||
func _on_load_button_pressed():
|
||||
print("Charger une sauvegarde")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue