mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +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:
|
||||
|
Reference in New Issue
Block a user