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:
JHDev2006
2025-09-16 10:41:31 +01:00
parent e39bfa4cd5
commit e438354bf8
15 changed files with 1789 additions and 1756 deletions

View File

@@ -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:

View File

@@ -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)

View File

@@ -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: