Frame from 16-bit pixel-art wizard casting a spell
PromptFull
Create a single self-contained HTML file that renders an animated pixel art wizard casting a spell, using vanilla JavaScript and Canvas 2D. No external assets, libraries, or network requests.

RENDERING
- Draw everything to an offscreen canvas at a fixed logical resolution of 128x96, then blit to a fullscreen display canvas scaled by the largest integer factor that fits the window, centered, with imageSmoothingEnabled = false and CSS image-rendering: pixelated.
- All drawing snaps to integer coordinates on the logical canvas. No sub-pixel positions, anti-aliasing, gradients, or shadowBlur.
- Fixed palette of ~24 hex colors: deep blues/purples for night sky, warm robe tones, 3-4 bright magic colors. Every pixel comes from this palette.

CHARACTER
- Build the wizard procedurally from filled rects and pixel runs, ~24x32 logical pixels: pointed hat with a bend, long beard, two-shade robe with darker outline, staff with a gem at the tip.
- Parameterize the pose (staff angle, arm raise, head tilt, robe sway). Animate parameters smoothly, then quantize to the pixel grid each frame so motion reads at an 8-12 fps pixel animation feel even though the loop runs at 60fps.

ANIMATION
- Looping state machine: IDLE (2-frame bob, beard sway) -> CHARGE (staff raises, gem flickers, sparks spiral inward) -> CAST (bright burst, projectile fires across the scene, 1-2 pixel screen shake) -> RECOVER (settle back). Ease pose parameters between keyframes.
- Pooled allocation-free particle system: preallocate and reuse. Sparks orbit the gem during CHARGE, explode outward on CAST, each particle stepping its palette index from white to magic color to dark before despawn. Snap particle positions to the grid when drawing.
- Fixed 60hz timestep update with rAF rendering. Zero object allocation inside the loop.

SCENE
- Minimal background: dark sky, a few twinkling 1px stars, moon, stone floor line. Character silhouette must read clearly.
- Subtle 1px rim light on the wizard from the gem, brightening during CHARGE and CAST.

QUALITY BAR
- Crisp pixels at any window size, seamless loop, stable 60fps, readable silhouette. Should look like a polished 16-bit sprite animation, not vector shapes scaled down.

Make it yours. Swap the subject in "an animated pixel art wizard casting a spell" and rewrite the CHARACTER and ANIMATION sections to match it. Keep the RENDERING block ("128x96", integer scaling, "Fixed palette of ~24 hex colors") to hold the crisp 16-bit look.

Make it hereFree runs soon

16-bit pixel-art wizard casting a spell

An 11-second pixel-art loop of a wizard who charges sparks at his staff, casts a bolt, and settles, drawn at 128x96 with a fixed palette. The prompt is a compact spec for authentic sprite animation in one self-contained HTML file.

“it took ~30 min and barely dented usage”

You'll need

  • A browser to open the HTML file, and a screen recorder if you want a video file
How it was made

The prompt asks for a single HTML file that animates live in the browser, so the posted clip is a recording of that page; how it was captured isn't stated. The creator says the run "barely dented usage".

Posted Sep 22, 2026 · X · 2.6k likes · 454k views · 72 comments

Prompt from: Reply on X

Reply with the prompt

Look notesby Reference

A small pixel-art wizard in a red robe and pointed hat stands on a stone ledge under a moonlit night sky, holding a staff tipped with a blue gem.

Color
Banded indigo-to-violet sky, a cream moon, slate-gray stone, crimson robe with gold trim, a white beard, and cyan-blue magic.
Type
No on-screen text.
Framing
One locked wide shot. The wizard stands left of center on a brick floor line across the lower third, the moon sits top right, and single-pixel stars dot the sky. Hard pixel edges with no smoothing.
Structure
Idle pose, sparks gathered around the raised gem, the staff leveled to the right, idle again, a second charge, a cyan ring burst at the staff tip as the spell fires, then idle.

More like this

0:58

Ninja Gaiden-style ad for an ordering bot

Opus 5.5 · Plain JavaScript

0:30

Pixel-game rhythm short, synced in code

Opus 5.5 · HyperFrames

5:23

SNES-style anime battle: Sydney vs. Claude

Partial prompt · Claude Code · Plain JavaScript

0:13

Looping pixel-art Halloween diorama

Opus 5.5 · TypeScript

0:15

Pixel-art kākāpō party with confetti

Claude.ai · HTML canvas

6:23

1990s demoscene demo set to tracker music

Opus 5.5 · C/C++

0:18

Terminal under a curved CRT shader

Claude Code · Remotion

0:10

Pixel-block logo built by four cursors

Claude Code · Remotion

0:20

Street-poster kinetic type identity bumper

Opus 5.5 · HTML and CSS

0:14

One morphing UI shape on a 120 BPM beat

Opus 5.5 · HTML and CSS

0:06

Stat count-up with a burst of paper money

Partial prompt · HyperFrames

0:05

Particle logo sting with swirl transition

Partial prompt · HyperFrames

0:05

Seamless side-view car loop with parallax

Perplexity · HTML canvas

2:08

Galileo, Bernoulli and the fastest path

Opus 5.5 · Canvas 2D

0:45

Narrated trailer for an events map app

Opus 5.5 · Playwright

1:05

Perler-bead pixel-art music video

Claude Code

1:16

The beauty of physics, one continuous shot

Claude Code

1:25

Crayon piano performance with a black cat

Opus 5.5 · Canvas 2D

0:57

Collage-style vertical reel about a novel

Prompt described · Opus 5.5 · HTML and CSS

0:08

Low-poly 3D horse at five effort levels

Cursor · Three.js

0:52

Hand-drawn collage of a startup's story

Opus 5.5 · Plain JavaScript

2:55

Pixel-art rap about Claude, made in code

Claude Code · TypeScript

1:41

Anime battle trailer: Claude vs ChatGPT

Opus 5.5 · Plain JavaScript

0:20

Infinite-zoom loop through vintage objects

Claude.ai

0:47

Launch video for the Wasmer SDK for Swift

Opus 5.5 · HTML and CSS

6:53

Code-drawn character in six art styles

Claude Code · HyperFrames

0:48

Paper-collage promo for a nutrition app

Partial prompt · Opus 5.5 · Plain JavaScript

2:32

ASCII flight through Claude's inner mind

Opus 5.5 · WebGL2

1:00

The First Spark, a black-ink short film

Claude.ai · Canvas 2D

1:48

Origami doodle story from humanity to AI

Partial prompt · Opus 5.5 · Plain JavaScript