mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-28 18:29:44 +00:00
have tested all levels in the contest with this new fork, all ran great, pretty happy to merge this after a bit of a tidy up
This commit is contained in:
@@ -279,18 +279,38 @@ region_rect = Rect2(8, 0, 8, 8)
|
||||
script = ExtResource("6_abjth")
|
||||
metadata/_custom_type_script = "uid://364rywt44hy6"
|
||||
|
||||
[node name="Loading" type="Label" parent="BG"]
|
||||
unique_name_in_owner = true
|
||||
process_thread_group = 2
|
||||
process_thread_group_order = 0
|
||||
process_thread_messages = 0
|
||||
visible = false
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -96.0
|
||||
offset_top = 8.0
|
||||
offset_right = 96.0
|
||||
offset_bottom = 32.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "BUILDING LEVEL..."
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 3.0
|
||||
one_shot = true
|
||||
|
||||
[node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
|
||||
script = ExtResource("8_ehrek")
|
||||
labels = [NodePath("../BG/Control/World"), NodePath("../BG/Control/LivesCount"), NodePath("../BG/Control/MarathonPB"), NodePath("../BG/Control/WorldNum"), NodePath("../BG/Control/CustomLevelName"), NodePath("../BG/Control/CustomLevelAuthor"), NodePath("../BG/Control/ChallengeScore"), NodePath("../BG/Control/ChallengeScoreText"), NodePath("../BG/Control/ChallengeScoreText/Target"), NodePath("../BG/Control/ChallengeCoins2")]
|
||||
labels = [NodePath("../BG/Control/World"), NodePath("../BG/Control/LivesCount"), NodePath("../BG/Control/MarathonPB"), NodePath("../BG/Control/WorldNum"), NodePath("../BG/Control/CustomLevelName"), NodePath("../BG/Control/CustomLevelAuthor"), NodePath("../BG/Control/ChallengeScore"), NodePath("../BG/Control/ChallengeScoreText"), NodePath("../BG/Control/ChallengeScoreText/Target"), NodePath("../BG/Control/ChallengeCoins2"), NodePath("../BG/Loading")]
|
||||
metadata/_custom_type_script = "uid://co6tjg3w6qpd8"
|
||||
|
||||
[node name="TextShadowColourChanger" type="Node" parent="." node_paths=PackedStringArray("labels", "shadow_node")]
|
||||
script = ExtResource("10_abjth")
|
||||
labels = [NodePath("../BG/Control/World"), NodePath("../BG/Control/LivesCount"), NodePath("../BG/Control/MarathonPB"), NodePath("../BG/Control/WorldNum"), NodePath("../BG/Control/CustomLevelName"), NodePath("../BG/Control/CustomLevelAuthor"), NodePath("../BG/Control/ChallengeScoreText"), NodePath("../BG/Control/ChallengeScore"), NodePath("../BG/Control/ChallengeScoreText/Target"), NodePath("../BG/Control/ChallengeCoins2")]
|
||||
labels = [NodePath("../BG/Control/World"), NodePath("../BG/Control/LivesCount"), NodePath("../BG/Control/MarathonPB"), NodePath("../BG/Control/WorldNum"), NodePath("../BG/Control/CustomLevelName"), NodePath("../BG/Control/CustomLevelAuthor"), NodePath("../BG/Control/ChallengeScoreText"), NodePath("../BG/Control/ChallengeScore"), NodePath("../BG/Control/ChallengeScoreText/Target"), NodePath("../BG/Control/ChallengeCoins2"), NodePath("../BG/Loading")]
|
||||
shadow_node = NodePath("../BG/Control/ChallengeCoins/1/Shadow")
|
||||
metadata/_custom_type_script = "uid://dt2p68xl462v2"
|
||||
|
||||
|
||||
@@ -12,10 +12,6 @@ signal killed
|
||||
|
||||
const BASE_LINE := 48
|
||||
|
||||
func _ready() -> void:
|
||||
if Global.current_game_mode != Global.GameMode.LEVEL_EDITOR and global_position.y > -32:
|
||||
Global.log_warning("Podoboo is too low! Forgot to update!")
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
velocity += (5 / delta) * delta
|
||||
velocity = clamp(velocity, -INF, 280)
|
||||
|
||||
@@ -84,6 +84,7 @@ static var can_set_time := true
|
||||
|
||||
func _enter_tree() -> void:
|
||||
Global.current_level = self
|
||||
if is_inside_tree():
|
||||
update_theme()
|
||||
SpeedrunHandler.timer_active = true
|
||||
SpeedrunHandler.ghost_active = true
|
||||
|
||||
@@ -40,6 +40,7 @@ func _ready() -> void:
|
||||
Level.in_vine_level = false
|
||||
Global.p_switch_active = false
|
||||
Lakitu.present = false
|
||||
Door.exiting_door_id = -1
|
||||
Global.p_switch_timer = -1
|
||||
if Checkpoint.passed_checkpoints.is_empty() == false:
|
||||
Door.unlocked_doors = Checkpoint.unlocked_doors.duplicate()
|
||||
@@ -103,6 +104,8 @@ func _ready() -> void:
|
||||
Global.clear_saved_values()
|
||||
Global.reset_values()
|
||||
wait_for_build_completion()
|
||||
%Loading.show()
|
||||
await get_tree().create_timer(0.1, false).timeout
|
||||
NewLevelBuilder.load_level(LevelEditor.level_file)
|
||||
else:
|
||||
await get_tree().create_timer(0.1, false).timeout
|
||||
@@ -111,6 +114,7 @@ func _ready() -> void:
|
||||
func wait_for_build_completion() -> void:
|
||||
await NewLevelBuilder.level_building_complete
|
||||
can_transition = true
|
||||
%Loading.hide()
|
||||
|
||||
func handle_challenge_mode_transition() -> void:
|
||||
$BG/Control/LivesCount.hide()
|
||||
|
||||
Reference in New Issue
Block a user