mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-23 16:00:54 +00:00
Merge pull request #511 from KirbyKid256/pulls/misc-bugfixes-from-multiplayer-branch
Miscellaneous Bugfixes From My Multiplayer Branch
This commit is contained in:
@@ -425,7 +425,7 @@ func add_stomp_combo(award_score := true) -> void:
|
||||
score_note_spawner.spawn_note(10000)
|
||||
else:
|
||||
Global.lives += 1
|
||||
AudioManager.play_global_sfx("1_up")
|
||||
AudioManager.play_sfx("1_up", global_position)
|
||||
score_note_spawner.spawn_one_up_note()
|
||||
else:
|
||||
if award_score:
|
||||
@@ -564,8 +564,6 @@ func die(pit := false) -> void:
|
||||
visible = not pit
|
||||
flight_meter = 0
|
||||
dead.emit()
|
||||
Global.p_switch_active = false
|
||||
Global.p_switch_timer = 0
|
||||
stop_all_timers()
|
||||
Global.total_deaths += 1
|
||||
sprite.process_mode = Node.PROCESS_MODE_ALWAYS
|
||||
@@ -804,8 +802,6 @@ func jump() -> void:
|
||||
gravity = JUMP_GRAVITY
|
||||
AudioManager.play_sfx("small_jump" if power_state.hitbox_size == "Small" else "big_jump", global_position)
|
||||
has_jumped = true
|
||||
await get_tree().physics_frame
|
||||
has_jumped = true
|
||||
|
||||
func calculate_jump_height() -> float: # Thanks wye love you xxx
|
||||
return -(JUMP_HEIGHT + JUMP_INCR * int(abs(velocity.x) / 25))
|
||||
|
Reference in New Issue
Block a user