mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-23 07:58:09 +00:00
Fixed SMBS coin heavens, wrong warping you to SMB1, HOPEFULLY fixed some weird coin heaven deaths, and also added zip checking to the rom verifier, so that bad sprite rips dont happen (HOPEFULLY)
This commit is contained in:
@@ -3,6 +3,9 @@ extends Level
|
||||
|
||||
@export var all_coins_check: AllCoinsCollectedCheck = null
|
||||
|
||||
func _ready() -> void:
|
||||
Level.in_vine_level = true
|
||||
|
||||
func warp_back(player: Player) -> void:
|
||||
player.state_machine.transition_to("Freeze")
|
||||
if all_coins_check != null:
|
||||
|
@@ -67,7 +67,6 @@ func handle_player_interaction(delta: float) -> void:
|
||||
func on_player_entered(_player: Player) -> void:
|
||||
if can_tele == false:
|
||||
return
|
||||
Level.in_vine_level = true
|
||||
Level.vine_return_level = Global.current_level.scene_file_path
|
||||
Global.transition_to_scene(Level.vine_warp_level)
|
||||
|
||||
|
@@ -24,6 +24,9 @@ func physics_update(delta: float) -> void:
|
||||
in_air()
|
||||
handle_movement(delta)
|
||||
handle_animations()
|
||||
handle_death_pits()
|
||||
|
||||
func handle_death_pits() -> void:
|
||||
if player.global_position.y > 64 and not Level.in_vine_level and player.auto_death_pit:
|
||||
player.die(true)
|
||||
elif player.global_position.y < Global.current_level.vertical_height - 32 and player.gravity_vector == Vector2.UP:
|
||||
|
@@ -5,8 +5,8 @@ extends Node2D
|
||||
|
||||
func _ready() -> void:
|
||||
Level.vine_warp_level = heaven_scene
|
||||
Level.in_vine_level = false
|
||||
if Level.in_vine_level and PipeArea.exiting_pipe_id == -1:
|
||||
Level.in_vine_level = false
|
||||
for i in get_tree().get_nodes_in_group("Players"):
|
||||
i.global_position = global_position
|
||||
i.reset_physics_interpolation()
|
||||
|
@@ -18,7 +18,6 @@ func _ready() -> void:
|
||||
idx += 1
|
||||
|
||||
func activate() -> void:
|
||||
CameraHandler.cam_locked = true
|
||||
for i in get_tree().get_nodes_in_group("Labels"):
|
||||
i.show()
|
||||
for i in get_tree().get_nodes_in_group("Plants"):
|
||||
|
@@ -13,7 +13,10 @@ func _ready() -> void:
|
||||
|
||||
func on_file_dropped(files: PackedStringArray) -> void:
|
||||
for i in files:
|
||||
if is_valid_rom(i):
|
||||
if i.contains(".zip"):
|
||||
zip_error()
|
||||
return
|
||||
elif is_valid_rom(i):
|
||||
Global.rom_path = i
|
||||
verified()
|
||||
copy_rom(i)
|
||||
@@ -35,6 +38,10 @@ func error() -> void:
|
||||
%Error.show()
|
||||
$ErrorSFX.play()
|
||||
|
||||
func zip_error() -> void:
|
||||
$ErrorSFX.play()
|
||||
%ZipError.show()
|
||||
|
||||
func verified() -> void:
|
||||
$BGM.queue_free()
|
||||
%DefaultText.queue_free()
|
||||
|
Reference in New Issue
Block a user