Update StartingRoom.tscn, game_manager.gd, game_manager.tscn, and 1 more file

This commit is contained in:
Clevertop 2024-08-13 01:04:01 +10:00
parent e9a896a912
commit 311c0395ab
4 changed files with 35 additions and 2 deletions

22
game_manager.gd Normal file
View file

@ -0,0 +1,22 @@
extends Node
@export var levels : Array[String] = [
""
]
var current_level = 0
# 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 load_next_level():
if current_level+1 < levels.size():
get_tree().change_scene_to_file(levels[current_level+1])
else:
#ending screen
pass