Week 6 — Sep 29 — Ex 4: Juice It

Exercise: Ex 4 — Juice It. Students rebuild the exact same action from Ex 2 — the same jump, dash, or swing — with animation, particles, sound, and screen shake layered on. Nothing about the mechanic itself changes; only how it reads.

Design skill: Game feel and player feedback — the idea that the same underlying logic can feel completely different depending on what confirms it to the player.

Lecture topics, expanded

Sprite animation and Animator states. A state machine per verb, not per sprite: Idle, Move, Jump, Land, each with its own clip, wired with simple bool/trigger parameters rather than a tangle of conditions. The teaching moment is transition timing — a jump animation that starts a frame late reads as unresponsive even if the physics is instant.

VFX Graph particle feedback. One well-placed burst (a landing puff, a dash trail, a jump dust cloud) does more for feel than a fully animated sprite. Keep it simple: a Particle System or VFX Graph asset triggered from the same event that fires the mechanic, not from a coroutine guessing at timing.

SoundPlayer, pitch variance, and screen shake. SoundPlayer from the helper library plays one-shots with a pitch-variance range so the fifth jump in a row doesn't sound identical to the first — a one-line change that removes a lot of perceived repetitiveness. Pair it with a small camera-shake pulse (Cinemachine impulse or a simple position-offset coroutine) on impact events only, never on routine movement, or the shake stops meaning anything.

Connecting it forward

Ex 4 is graded on the same two criteria as every exercise (Implementation: it builds and plays with no console errors; Design decision: a deliberate choice in timing, intensity, or layering — not just "I added a sound"). There's no milestone tied to this week directly, but the game-feel pass students do here is the last thing standing between their Core Game Mechanic build and something that reads as designed rather than assembled — worth pointing out explicitly, since some students will treat juice as optional polish rather than as the actual deliverable of the week.