mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-28 10:19:41 +00:00
couple improvements
This commit is contained in:
@@ -30,6 +30,7 @@ func load_level(level_file := {}) -> void:
|
||||
func build_sublevel(level_idx := 0, level_file := {}) -> PackedScene:
|
||||
var level = BASE_LEVEL_SCENE.instantiate()
|
||||
level.sublevel_id = level_idx
|
||||
print(level_idx)
|
||||
sub_level_file = level_file["Levels"][level_idx]
|
||||
return pack_level_into_scene(build_level(level))
|
||||
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
[sub_resource type="GDScript" id="GDScript_0yjq3"]
|
||||
script/source = "extends Node
|
||||
|
||||
func _ready() -> void:
|
||||
update()
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
if LevelEditor.playing_level == false:
|
||||
update()
|
||||
|
||||
Reference in New Issue
Block a user