Animated pixel art wizard casting a spell
- Views
- 462K
- Likes
- 2.6K
- Replies
- 74
- Saves
- 2.7K
A self-contained animated pixel-art wizard casting a spell, rendered with vanilla JavaScript and Canvas 2D from one long structured text prompt, no images or libraries used.
Full prompt2,209 chars
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.
Source: the creator's reply under the post. Kept in its original language, unedited.
Want more prompts like this one?
Get the 50 most-viewed Claude 5.5 video prompts on one page: the full original text, the creator and the post it came from. We'll only email you when there's a new prompt worth trying. Unsubscribe anytime.
Original post: https://x.com/majidmanzarpour/status/2102476258948927543
All works are open data at GitHub · awesome-opus-5.5-video.
Model attribution is as stated by the creator and was not independently reproduced. View counts are a snapshot from 2026-11-13. The work belongs to its creator; DM @GoSailGlobal on X for corrections or removal.
More motion graphics
1:05Portfolio data dashboard and animation
2.9M views
0:1515-second motion designer showreel (the original viral prompt)
2.3M views
0:32Showreel from the viral one-liner (Skia + Blender)
1.9M views
0:32AI-made video demo
1.8M views
0:15Motion Design Launch Video
1.8M views
0:14Code-based UI motion design showreel
1.2M views
Related articles
The Complete Workflow for Creating Educational Training Videos: Four Skills to Take You from Slides to Video
Use four Skills to build a complete pipeline from course PDF to content extraction, quiz generation, mind maps, and video.
Same Name, Different Game: Comparing Two SEO Audit Skills and Which to Use
The Claude Code Skills ecosystem is growing fast — fast enough that naming collisions are starting to happen. Two skills both called seo-audit exist, and they take completely different approaches. Here's a side-by-side breakdown and recommendation.
How I Built JasonZhu.AI: Tech Stack, Architecture, and Full Cost Breakdown
A complete record of building the JasonZhu.AI personal brand website — from choosing the tech stack to going live, including the full stack, implementation details, development tools, and cost breakdown. How an AI blogger built a website using AI tools.
Andrew Ng's 2026 AI Prompting Course – Module 3 Complete Notes: Let AI Generate Images, Build Apps, and Analyze Data
Complete notes for Andrew Ng's AI Prompting for Everyone, Module 3. Six lessons covering multimodal cost awareness, image understanding and generation, building mini apps with prompts, AI-assisted coding and data analysis, and a final project walkthrough. Includes 9 ready-to-use prompt templates.