Going From Tower Defense To 3D Platformer Made Me Respect Jump Physics A Lot More
ActionUnspecified

Forest Quest

Going From Tower Defense To 3D Platformer Made Me Respect Jump Physics A Lot More

Shared by u/Top-Cardiologist1011 ·

I previously built a small 3D tower defense game, so I thought a short 3D platformer would be only a little harder. That was very wrong. Game context: Tower defense had a lot of systems, but almost no real-time physical feel. Enemies followed paths, towers fired, UI updated. If a number was off, I could tune damage or speed. Forest Quest is also small, only 6 levels, but the player can feel bad physics in about two seconds. The current jump setup is: Jump velocity: 10 Double jump velocity: 8 Gravity: 25 Run multiplier: 1.6 Stomp bounce: 8 Those numbers look random, but they came from trying…

Genre
Action
  1. Showcase

    My Stomp Detection Broke Because Gravity Changed Velocity.y One Frame Later ↗

    I hit a very dumb platformer bug that took longer to find than I want to admit. Game context: The player could stomp a mushroom enemy, bounce upward, and still take damage immediately after. From the player's view it looked like: "I landed on top, why did I get hurt?" The first version checked whether the player had just stomped by comparing vertical velocity. Bad line: const alreadyStomped = player.velocity.y === PLAYER\CFG.stompImpulse The logic sounded reasonable. On stomp, I set: player.velocity.y = PLAYER\CFG.stompImpulse In my game that value is 8. The problem was gravity. Right after…

  2. Showcase

    Going From Tower Defense To 3D Platformer Made Me Respect Jump Physics A Lot More ↗

    I previously built a small 3D tower defense game, so I thought a short 3D platformer would be only a little harder. That was very wrong. Game context: Tower defense had a lot of systems, but almost no real-time physical feel. Enemies followed paths, towers fired, UI updated. If a number was off, I could tune damage or speed. Forest Quest is also small, only 6 levels, but the player can feel bad physics in about two seconds. The current jump setup is: Jump velocity: 10 Double jump velocity: 8 Gravity: 25 Run multiplier: 1.6 Stomp bounce: 8 Those numbers look random, but they came from trying…

A community listing with links to its sources. Source-described; details may need review. About the index