Make a game satisfying to touch, with responsive controls, readable impacts and rewarding feedback. Input latency and buffering, acceleration curves, anticipation and follow-through, hit-stop, screen shake with trauma, camera kick, flashes, squash and stretch, knockback, particles, sound layering and pitch variation, easing and tweens, UI juice, and an accessibility off-switch, applied in a pri...
Download skill (.zip) Files on GitHubGame feel engineering
Mechanics decide what happens; feel decides whether it’s satisfying. Build mechanics first (game-mechanics), then add
feel in this order. Each step is cheap and has a big effect. Drop-in helpers: assets/feel.js (tested).
1. Responsiveness (do first)
- Act on input down, not up. React the same frame (sound + animation start), even if the action itself has windup.
- Buffer inputs (~100–150 ms) and allow coyote time (~100 ms) (game-mechanics recipes).
- Acceleration in a few frames (0 → max in ~0.1 s), stopping a bit faster. Long ramps feel floaty; instant feels stiff.
- Never block input for long animations. Allow cancels where fair (attack → dodge).
2. Feedback on every action
| Event | Minimum feedback |
|---|---|
| Core action (jump, shoot) | Sound + animation change + small particle puff |
| Hit landed | Enemy white flash (60–100 ms) + hit sound + small shake + knockback |
| Big hit / kill | Hit-stop 50–100 ms + bigger shake + particles + pitch-up sound |
| Player hurt | Red flash/vignette + shake + hurt sound + invincibility blink |
| Pickup | Pop scale + sparkle + rising pitch for streaks + floating number |
| UI press | Scale 0.95 + click |
3. The toolbox (feel.js)
import { Shake, HitStop, Tweens, ease, Spring, Flash } from "./core/feel.js";
const shake = new Shake({ maxOffset: 12, maxAngle: 0.05, decay: 1.6 }); // trauma-based: small hits add up, big ones cap
const hitstop = new HitStop(); const tweens = new Tweens(); const flash = new Flash();
// on hit:
shake.add(0.3); hitstop.trigger(0.06); flash.trigger(enemy, 0.08);
tweens.to(coin, { scale: 1.4 }, 0.08, ease.outBack).then(() => tweens.to(coin, { scale: 1 }, 0.12, ease.outQuad));
// update(dt):
const simDt = hitstop.update(dt); // 0 during hit-stop: pass simDt to the world, dt to UI and effects
world.update(simDt); tweens.update(dt); shake.update(dt); flash.update(dt);
// render: ctx.save(); shake.apply(ctx, W / 2, H / 2); drawWorld(); ctx.restore(); if (flash.active(enemy)) drawWhite(enemy)
- Trauma shake: offset = max × trauma², noise-based, decays. Small hits barely shake; stacking feels big. Never constant shake.
- Hit-stop: freeze the simulation (not the UI) for a few frames on impact. Huge payoff, especially for melee.
- Squash and stretch: scale y 1.2 / x 0.8 on jump, 0.8 / 1.2 on landing, ease back over 0.1–0.15 s (
Springis great for this). - Easing:
outBackfor pops,outQuadfor movement,inOutSinefor loops. Linear tweens look mechanical. - Camera: small kick opposite to recoil, lead in the move direction, smooth with
damp(camera-system).
4. Sound is half the feel
Layer (punch + tail), vary pitch ±5–10%, raise pitch on streaks, duck music on big moments, and never let repeats clip (game-sound-design).
5. Tune and restrain
- All feel numbers in
config.feel(shake amounts, hit-stop length, flash time). Tune by playing, ×2 / ×0.5 first. - Less on frequent events, more on rare ones. Shooting 10×/s gets a tiny kick; a boss kill gets everything.
- Accessibility: a “Screen shake” toggle and
prefers-reduced-motion(shake.enabled = false, shorter flashes, no strobing > 3 Hz). - Compare before and after with a short recording (
render_preview) and ask the user which feels better.