Series · 20 mechanics
Platformer game feel, one mechanic at a time
The techniques that decide how a platformer feels, from a jump that forgives a late press to a boss that asks for everything. Each post explains one in a few lines and lets you play it, with the technique on and off.
- 20
- posts
- 25
- playable sheets
- 20
- clips
- 43 min
- reading
Updated
Start here: all the juice on one jump
Squash and stretch, hitstop, screen shake, particles and sound on a single jump. Press T and they're gone: the jump is the same, but it no longer feels like anything. That's what the series is about.
1 · technique on 2 · T pressed: off Hopping bugs and bouncing off springs with all the juice on. Then T strips it: same jumps, same rules, nothing to feel.
You're in control from the first frame. The steps are below.
- Run right with →, jump on the bugs with Space and land on the springs.
- Get up the tower and drop the 10 tiles on the other side. Watch the landing.
- Press T and do it again. Same jumps, same rules, no juice.
On a phone you get on-screen buttons: ← → to move, JUMP, and T for the technique.
The real game, running in your browser. The first load fetches the engine; after that it is cached.
Part 1–10
Movement
What decides whether a jump works: forgiving timers, gravity, corners, slopes and the camera.
-
Coyote time and jump buffer
Coyote time lets you jump just after leaving a ledge. A jump buffer keeps a jump you pressed just before landing. See both on a timeline and play them. -
Variable jump height
Variable jump height turns how long you hold jump into how high you go: a tap is a 1.1-tile hop, a hold 3.6 tiles. See the timing and play it. -
Jump gravity
Asymmetric gravity makes a jump rise in 0.38 s and fall in 0.30 s; apex hang halves gravity near the top. Why both work, with a sheet to play for each. -
Wall jump
A wall jump throws you up and away from a wall. Five small assists keep it fair: 5 px of reach, 100 ms of wall coyote time and more. See them and play it. -
Dash
A platformer dash is a fixed-speed burst with gravity off: 900 px/s for 0.16 s, 3.6 tiles every time. See its freeze and buffer on a timeline and play it. -
Acceleration and friction
Acceleration and friction set how fast a character starts, stops and turns: 0.11 s, 0.07 s and 0.06 s here. Why to tune them as times, and play it. -
Corner correction
Corner correction nudges a jump past a ceiling corner it clips by a few pixels, or up onto a ledge it just missed. See how much it forgives and play it. -
Slopes and floor snap
Floor snap pulls a running character back onto the ground after each move, so it runs down slopes instead of hopping off them. See the numbers and play it. -
One-way and moving platforms
A one-way platform is solid from above and lets you drop through on purpose. A moving platform hands you its speed when you jump. See both and play them. -
Platformer camera
A platformer camera should ignore hops, look ahead of the player and smooth the same at any frame rate. See the three rules with numbers and play them.
Part 11–20
Combat
Hitting and getting hit: hit boxes, attack phases, invincibility and what an enemy shows you before it swings.
-
Hitbox vs hurtbox
A hitbox is where an attack deals damage and a hurtbox is where a character takes it. See the three boxes, why none should match the sprite, and play it. -
Attack phases
Every attack has startup, active and recovery frames: before it can hit, while it hits, and until you can act again. See 35, 100 and 200 ms and play them. -
Hitstop and hit confirm
Hitstop freezes the game for 50 ms when an attack connects. With recoil, a flash and sparks, it tells the player the hit landed. See it and play it. -
Pogo attack
A pogo attack is a down-slash in the air that bounces you off whatever it hits, spikes included, and recharges your dash. See its timing and play it. -
Invincibility frames
Invincibility frames are the window after a hit where nothing can hit you again: 1.2 s here. Spikes cost a mask instead of a life. See both and play them. -
Dodge i-frames
A dodge dash grants invincibility frames: 0.21 s of protection on a 0.16 s dash. The cooldown must be twice that, or mashing wins. See it and play it. -
Telegraphing attacks
Telegraphing an attack means announcing it before it can hurt you: a pose, a ring and a sound of fixed length. See it on a timeline and play it. -
Risk-reward healing
Risk-reward healing: every hit you land charges energy, and healing means 0.9 s standing still that any hit cancels. See it on a timeline and play it. -
Enemy attack patterns
An enemy attack pattern is a fixed loop: warn, attack, recover. The recovery is the opening where you hit back. See it on a timeline and play it. -
Boss design
Good boss design tests what the player already learned: a few readable attacks, randomness with rules, a stagger bar and a faster phase two. Play it.
Quick answers
What is game feel?
How a game answers your input: how fast, how hard, how forgiving. Juice, what the game shows you after you act, is the visible half; that's game feel on the web. This series is the other half: the rules that decide whether your action works.
Do I need to know how to code?
No. Each post explains the idea first, and you can play it in the browser. At the end there is a section on how to implement it, with the code in Godot 4, and it carries to any engine.
Where should I start?
With coyote time and the jump buffer for movement, or hitbox vs hurtbox for combat.