Menu de inicio, nuevo nivel y ajustes en objetos
This commit is contained in:
1 parent
cd9f31c8c1
commit
827e16cf50
61 files changed
+2685
-3553
No files matched your search
@@ -13,14 +13,14 @@ func _initialize() -> void:
|
||||
|
||||
|
||||
func _run() -> void:
|
||||
var packed: PackedScene = load("res://levels/level_02.tscn") as PackedScene
|
||||
var packed: PackedScene = load("res://levels/level_00.tscn") as PackedScene
|
||||
if packed == null:
|
||||
push_error("Cannot load Level02")
|
||||
push_error("Cannot load Level00")
|
||||
quit(1)
|
||||
return
|
||||
var level: Node2D = packed.instantiate() as Node2D
|
||||
if level == null:
|
||||
push_error("Cannot instantiate Level02")
|
||||
push_error("Cannot instantiate Level00")
|
||||
quit(1)
|
||||
return
|
||||
root.add_child(level)
|
||||
|
||||
Reference in new issue
Block a user