Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

gamedev-2d-art-animation-frames

БесплатноБез исполняемых скриптовНе проверен

Frame-by-frame animation for 2D games: typical frame counts (idle 2-4f / walk 6-8f / run 6-8f / attack 4-6f), squash/stretch limits in pixel art, looping…

claude-dev-suiteот claude-dev-suite★ 51 звезда на GitHub

Об этом скилле

Animation Frames

Quick refs: walk-cycle-keyframes.md, attack-anticipation.md

Frame-by-frame = drawing each frame. The pixel-art-classic technique. Different from skeletal where you transform parts of the rig — see unity-2d-animation for that.

Frame count conventions

Animation       Frames   FPS      Total time   Notes
Idle (subtle)   2        4        500ms        Breathe, sway. Avoid 1f (static).
Idle (active)   4-6      6-8      500-1000ms   Tail wag, weapon shimmer.
Walk            6-8      10-12    600-700ms    Full gait cycle, must loop.
Run             6-8      12-15    400-550ms    Faster cadence than walk.
Sprint          4-6      15-20    250-350ms    Stretched legs, hair flow.
Jump            3-5      ad-hoc   200-400ms    Anticipation + release + air.
Attack (light)  4-6      12-15    300-450ms    Anticipation + impact + recovery.
Attack (heavy)  6-10     8-12     600-1000ms   More wind-up, slower recovery.
Damage / hit    2-4      ad-hoc   100-200ms    Brief, snappy.
Death           4-8      8-10     500-1000ms   One-shot, ends with last frame.

These are rough. Adjust to character feel: a heavy character has slower, more weighted animation; a kid has fewer, snappier frames.

Cadence rules

A walk cycle has two contact frames (foot lands) and two passing frames (foot crosses below body). Full cycle = 8 keyframes ideally, but reusable: cycle frames mirror legs left/right so 4 unique drawings

  • horizontal-mirror copies.
F1: contact (right foot forward)
F2: down position (knees bent, body lowest)
F3: passing (right foot under body, left ahead)
F4: up position (body highest)
F5: contact (left foot forward) - mirror of F1
F6: down position - mirror of F2
F7: passing - mirror of F3
F8: up position - mirror of F4

For 6-frame walks, drop F2 and F6 (compresses the down-position phase).

See quick-ref/walk-cycle-keyframes.md for the canonical sequence with arm + body bob notation.

Anticipation, impact, recovery

The 3-beat structure of any action animation:

Anticipation (1-3 frames)

Character prepares: pulls back, crouches, draws weapon. Tells the player "something's about to happen." Length scales with attack power.

Impact (1 frame, sometimes 2)

The actual hit. Single most important frame. Often paired with hitstop (game freezes for 1-3 frames) and visual flash. Pose is most extreme.

Recovery (1-3 frames)

Character returns to neutral. Eases back into idle. Vulnerable window in fighting games.

Example light attack (5 frames):

F1: anticipation (sword raised)
F2: anticipation (weight shift forward)
F3: impact (sword extended, hit) ← hitstop trigger
F4: recovery (sword past target)
F5: recovery (returning to neutral)

See quick-ref/attack-anticipation.md for canonical anticipation poses.

Squash and stretch (limits in pixel art)

In animation principles, squash-and-stretch shows weight + flexibility. In pixel art, hard-pixel constraints limit how much you can deform:

  • Subtle squash: 1-2 pixel vertical compression on impact / landing. Always works.
  • Heavy squash: 4+ pixel compression. Looks cartoony, may break character silhouette. Reserved for comedic / cartoon styles.
  • Stretch on jump: 1-2 pixel vertical extension. Natural for athletic characters.

Avoid sub-pixel deformation (looks blurry). Use whole-pixel deform.

Looping cycles

A loop must be seamless: last frame must transition naturally to first frame.

Test: play frames F1-F8-F1-F8 manually in Aseprite (with onion skin) — the F8 → F1 transition should feel as natural as F4 → F5.

Common bug: F8 designed as "end pose" instead of "predecessor of F1" — loop hitches.

Easing in frame timing

Frame timing controls the FEEL. Two approaches:

Constant FPS

Every frame = same duration. Mechanical. OK for idle / walk.

Eased timing (variable per frame)

Hold key poses longer, brisk through transitions. More expressive.

Example heavy attack with variable durations:

F1: 100ms (slow anticipation start)
F2: 80ms (committing)
F3: 250ms (HOLD on impact - emphasizes power)
F4: 60ms (snap to recovery)
F5: 150ms (settle)

Aseprite supports per-frame duration. Unity Animator supports curves on sprite-swap. Engine support varies.

Sub-pixel motion problem

A sprite at world position (10.3, 5.7) renders at integer pixel (10, 6) on screen — but if the camera moves at 0.1 px/frame, the sprite might shimmer between (10, 5) and (10, 6) frame-to-frame. Looks broken.

Solutions:

  1. Snap world positions to integer pixel before rendering. Most "pixel-perfect cameras" do this.
  2. Use a higher render resolution for pixel-perfect, render to a smaller texture, blit. Allows sub-pixel motion at the cost of half-pixel sprite locations (still cleaner than shimmer).
  3. **Lock camera to integer
Полный SKILL.md на GitHub

Установить gamedev-2d-art-animation-frames в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob

Вложенные файлы

quick-ref/attack-anticipation.mdquick-ref/walk-cycle-keyframes.md

FAQ

Что делает скилл gamedev-2d-art-animation-frames?

Frame-by-frame animation for 2D games: typical frame counts (idle 2-4f / walk 6-8f / run 6-8f / attack 4-6f), squash/stretch limits in pixel art, looping cycles, sub-pixel motion problem, anticipation/impact/ recovery beats, sprite sheet layout (Aseprite tags, TexturePacker JSON, Unity Sprite Editor), frame timing easing. USE WHEN: animating sprites, choosing frame counts, debugging "stiff" or "floaty" motion, organizing sprite sheets. DO NOT USE FOR: skeletal 2D animation (Spine/DragonBones, Unity 2D Animation) - different rules. See `unity-2d-animation` skill.

Как установить скилл gamedev-2d-art-animation-frames?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл gamedev-2d-art-animation-frames запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить gamedev-2d-art-animation-frames с