Added scene change to open up the game scene when pressing the start game button
This commit is contained in:
@ -1,11 +1,7 @@
|
|||||||
extends Window
|
extends Node
|
||||||
|
|
||||||
|
var game = preload("res://Assets/game.tscn").instantiate()
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
func _on_main_menu_start_game():
|
||||||
func _ready():
|
self.remove_child($"Main Menu")
|
||||||
pass # Replace with function body.
|
self.add_child(game)
|
||||||
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
||||||
func _process(delta):
|
|
||||||
pass
|
|
||||||
|
|||||||
Reference in New Issue
Block a user