First Prototype
This commit is contained in:
parent
e18beb6c4c
commit
9e3349eec3
40 changed files with 1100 additions and 48 deletions
|
|
@ -1,11 +1,26 @@
|
|||
extends Node
|
||||
|
||||
func _ready() -> void:
|
||||
loadGame()
|
||||
loadStartMenu()
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if G.extracted and get_child(0).name != "EndScreen":
|
||||
loadEndScren()
|
||||
|
||||
func loadGame():
|
||||
G.resetValues()
|
||||
for i in get_children():
|
||||
i.queue_free()
|
||||
add_child(load("res://scenes/game/mainGame/main_game.tscn").instantiate())
|
||||
|
||||
func loadEndScren():
|
||||
for i in get_children():
|
||||
i.queue_free()
|
||||
add_child(load("res://scenes/menu/endScreen/end_screen.tscn").instantiate())
|
||||
|
||||
|
||||
func loadStartMenu():
|
||||
G.resetValues()
|
||||
for i in get_children():
|
||||
i.queue_free()
|
||||
add_child(load("res://scenes/menu/startMenu/start_menu.tscn").instantiate())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue