Skip to content
Raisul Sohan

2D Cel Animation & Code-Drawn Promo Film

KFC Sniper

A Rooftop Sniper Who Fires Drumsticks: a 30-Second 2D Cel Animation Drawn Entirely in Code

Raisul Sohan — Story, Character Design, Storyboard, Code Animation & Sound Design Fan-Made Spec Ad • HTML5 Canvas 2D • 2D Cel Look • 16:9 & 4:5 • 60 fps • 30 Secs

  • GitHub stars: 0
KFC Sniper

At golden hour, Agent Crispy kneels on a rooftop with a rifle that fires hot, crispy chicken drumsticks. His scope finds Rafi, a teen yawning in the park below; BANG, a drumstick glides over the park in slow motion and lands right in the open mouth: CHOMP! Then the whole park looks up at the roof, and one by one nobody stays hungry, not even Biskut the corgi. Story, character sheet, a 26-panel storyboard, animation and sound are all Raisul Sohan's; the picture, the animation and the music are made entirely in code, with no image files, in HTML5 Canvas 2D at 60 fps in both 16:9 and 4:5. A fan-made spec ad: not an official KFC ad, and not affiliated with KFC.

The challenge

The aim was a complete story in 30 seconds that makes people laugh, lands every hit on the beat and looks like a premium 2D cartoon: with no drawn images, no sprites and no animation software, only code. The first version did not look professional enough, so the whole film was rebuilt in a premium 2D cel look, starting again from a character sheet and a storyboard.

Core Challenges:
1. A Premium Cartoon Look in Code: one ink outline colour, hard-edged cel shading, a warm rim on the lit side and crispy food texture, all drawn in Canvas 2D so that no shape ever looks pasted on in any shot.
2. Seven Characters, One Rig: the sniper, Rafi, Mitu the jogger, Nana, little Tuntuni, Mr. Karim and Biskut the corgi each turn, look up, hold props, bite and chew, and stay on model across 25 shots.
3. Timing Locked to the Music: every bite, jaw drop, glint and shot sits on a 120 BPM grid counted from the CHOMP, and the four hero hits (two BANGs, the CHOMP and TARGET LOCKED.) land picture and sound on the same frame.
4. One Film, Two Formats: a 16:9 master and a 4:5 social cut, with its own layout wherever a centre crop would lose the action.
5. The Same Frame, Every Time: any frame has to be reachable by a direct seek and draw exactly the same picture every time, so the player, the stills and a 4K render can never drift apart.

The solution

1. Pre-production First: a 5-page character sheet and a 26-panel storyboard with Bengali captions, both HTML pages drawn with the same code library as the film. One shot whose silhouette did not read on the board was dropped, and the film settled at 25 shots.

2. A Cel-Shading Library of Its Own: cel.js draws every part in three tones (fill, shade, rim) with one deep-purple ink outline (#2A1633) in every shot, its weight constant on screen even as the camera zooms. Shadows are cut away from a sun at the upper right, inner folds use a darker shade of the part's own colour, never black, and backgrounds carry no outline and soften with distance, one blur per layer. Crispy food is painted on an offscreen canvas, and its ink outline is made by stamping its silhouette in 12 directions.

3. Seven Characters, One Rig: RIG.human in chars.js draws six people with head turns, looking up, sitting, inverse-kinematics arms and legs and open, fist, thumbs-up or pointing hands, a held prop drawn before the fingers so it really sits in the fist. Biskut the corgi has a rig of his own that sits, stands and leaps to catch a drumstick in his mouth, and the sniper's rig carries the rifle angle, recoil, the bolt and the trigger finger.

4. A Seekable Engine: the whole film is one deterministic function that draws any moment it is given (window.__film.seek(t)), with no random values and nothing carried over from the frame before. The seek bar, frame stepping, stills and 2× renders at 3840×2160 and 2160×2700 always match exactly.

5. A Film Language: macro shots in the gear-up, a muzzle cam, a bullet-time track that ramps into slow motion, comic hit bursts (BANG, CHOMP!, CRUNCH!), speed lines, film grain and a vignette, and a 4:5 cut framed on its own.

6. Sound Built on the Beat: the music is synthesized in code (score.js) on a 120 BPM grid counted from the CHOMP, under 53 recorded SFX cues, all CC0. The mix sits at −14.2 LUFS with a −2 dBTP true peak, and an automatic QA passes all four hero hits for sync and audibility.

7. A Full Player: play/pause, restart, frame by frame, a seek bar, time and frame number, speed, loop, mute, volume, a 16:9 / 4:5 switch and fullscreen, with keyboard shortcuts; the sound follows every seek, pause, speed and volume change.

Highlights

  • A full story in 30 seconds: a rooftop sniper, a slow-motion drumstick, CHOMP! and a park-wide feast
  • Picture, animation and music made entirely in code in HTML5 Canvas 2D; no image files
  • A premium 2D cel look: one ink outline colour, hard cel shading, a warm rim light
  • 25 shots built from a 5-page character sheet and a 26-panel storyboard
  • Seven characters on one rig: IK arms and legs, head turns, hand poses, biting and chewing
  • Every hit on a 120 BPM grid; picture and sound on the same frame at all four hero hits
  • Music synthesized in code and 53 CC0 SFX cues, mixed to −14.2 LUFS
  • 16:9 and 4:5, 60 fps, renders up to 4K at 2× scale
  • Seek to any frame directly and get exactly the same picture every time
  • Watch it in the browser with a full player and keyboard shortcuts
  • A fan-made spec ad: not an official KFC ad

Built with

  • 2D Animation
  • Cel Shading
  • HTML5 Canvas
  • JavaScript
  • Character Rigging
  • Sound Design
  • Spec Ad