Update StartingRoom.tscn, game_manager.gd, game_manager.tscn, and 1 more file
This commit is contained in:
parent
e9a896a912
commit
311c0395ab
4 changed files with 35 additions and 2 deletions
22
game_manager.gd
Normal file
22
game_manager.gd
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue