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 _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
func _on_main_menu_start_game():
|
||||
self.remove_child($"Main Menu")
|
||||
self.add_child(game)
|
||||
|
||||
Reference in New Issue
Block a user