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
@@ -25,13 +25,13 @@ func _run() -> void:
|
||||
|
||||
|
||||
func _test_safe_start() -> 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:
|
||||
_check(false, "Level02 could not be loaded")
|
||||
_check(false, "Level00 could not be loaded")
|
||||
return
|
||||
_world = packed.instantiate() as Node2D
|
||||
if _world == null:
|
||||
_check(false, "Level02 could not be instantiated")
|
||||
_check(false, "Level00 could not be instantiated")
|
||||
return
|
||||
root.add_child(_world)
|
||||
current_scene = _world
|
||||
|
||||
Reference in new issue
Block a user