Merge pull request #511 from KirbyKid256/pulls/misc-bugfixes-from-multiplayer-branch

Miscellaneous Bugfixes From My Multiplayer Branch
This commit is contained in:
guzlad
2025-10-06 13:28:23 +02:00
committed by GitHub
9 changed files with 20 additions and 23 deletions

View File

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