Skip to content

Conversation

jb0gie
Copy link

@jb0gie jb0gie commented Aug 24, 2025

Summary

  • Implemented double jump functionality allowing players to perform a mid-air jump
  • Added flip animation (Mode 7) that plays during double jump for visual feedback
  • Integrated with existing coyote time and jump buffering for responsive controls

Implementation Details

  • Added canDoubleJump flag to track double jump availability
  • Added doubleJumpUsed flag to prevent multiple triggers while holding jump button
  • Flip animation plays for 0.6 seconds during air jump
  • Double jump resets when landing on ground
  • Works seamlessly with existing jump mechanics (coyote time, jump buffering)

Test Plan

  • Jump once, then press jump again in mid-air to perform double jump with flip animation
  • Verify flip animation plays for 0.6 seconds then stops
  • Confirm double jump can only be used once per air session
  • Test that landing resets double jump ability for next jump
  • Ensure normal walking/running animations work correctly when grounded
  • Verify double jump is disabled in builder mode (only enables flying)

Changes

  • Modified src/core/entities/PlayerLocal.js to add double jump mechanics
  • Modified src/core/extras/playerEmotes.js to add &l=0 so the flip does not continuously play
  • Added FLIP mode (Mode 7) to locomotion system
  • Implemented proper state management for double jump and flip animation

@ashconnell
Copy link
Contributor

i think i'll reimplement this because AI went nuts and added so much code.
we already have most of the double jump code in there, its just commented out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants