PluginBench
Skill
Review
Audit score 70

2d-games

sickn33/antigravity-awesome-skills

2D game development principles: sprites, tilemaps, physics, and camera systems.

What is 2d-games?

Reference guide for building 2D games covering sprite organization, tilemap design, collision physics, and camera behavior. Use this when designing or implementing core 2D game systems to follow proven patterns and avoid common pitfalls.

  • Sprite atlasing and animation frame sequencing
  • Tilemap layering and auto-tiling for terrain
  • Collision shape selection and physics configuration
  • Camera following and screen shake techniques
  • Platformer mechanics (coyote time, jump buffering)
  • Top-down movement and aiming patterns

How to install 2d-games

npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill game-development
Claude Code
Cursor
Windsurf
Cline

How to use 2d-games

  1. 1.Review the sprite organization table to plan atlas layout and animation frame rates
  2. 2.Determine tilemap tile size (16x16, 32x32, or 64x64) and set up background, terrain, props, and foreground layers
  3. 3.Select collision shapes (box, circle, capsule, polygon) based on your game objects
  4. 4.Choose a camera type (follow, look-ahead, multi-target, or room-based) matching your game genre
  5. 5.Implement genre-specific mechanics: for platformers add coyote time and jump buffering; for top-down configure movement direction and aiming
  6. 6.Test and avoid anti-patterns: use atlases instead of separate textures, simplify collision shapes, ensure smooth camera movement

Use cases

Good for
  • Setting up sprite atlases to reduce draw calls in a 2D game engine
  • Designing tilemap layers for a Metroidvania or platformer level
  • Choosing appropriate collision shapes for character and object physics
  • Implementing smooth camera follow with look-ahead for player anticipation
  • Adding screen shake effects to impact moments like explosions or hits
Who it's for
  • Game developers building 2D games
  • Level designers working with tilemaps
  • Programmers implementing physics and camera systems
  • Anyone creating platformers or top-down games

2d-games FAQ

What frame rate should I use for sprite animations?

Typical range is 8-24 FPS. Lower rates work for pixel art; higher rates for smoother animations. Test with your art style.

How do I choose between pixel-perfect and physics-based collision?

Pick one approach and commit to it. Mixing both causes inconsistency. Physics-based is more flexible; pixel-perfect is more predictable for precise platformers.

What is coyote time and why use it?

Coyote time is a brief window (typically 4-6 frames) after leaving a platform where the player can still jump. It makes platformers feel more forgiving and responsive.

Should I use separate textures or atlases?

Always use atlases. They reduce draw calls, improve performance, and simplify batching. Combine multiple sprites into one texture sheet.

How do I implement smooth camera following?

Use a follow camera type with smooth interpolation rather than snapping. Add look-ahead to anticipate player movement direction for better framing.

Full instructions (SKILL.md)

Source of truth, from sickn33/antigravity-awesome-skills.


name: 2d-games description: "2D game development principles. Sprites, tilemaps, physics, camera." risk: none source: community date_added: "2026-02-27"

2D Game Development

Principles for 2D game systems.


1. Sprite Systems

Sprite Organization

ComponentPurpose
AtlasCombine textures, reduce draw calls
AnimationFrame sequences
PivotRotation/scale origin
LayeringZ-order control

Animation Principles

  • Frame rate: 8-24 FPS typical
  • Squash and stretch for impact
  • Anticipation before action
  • Follow-through after action

2. Tilemap Design

Tile Considerations

FactorRecommendation
Size16x16, 32x32, 64x64
Auto-tilingUse for terrain
CollisionSimplified shapes

Layers

LayerContent
BackgroundNon-interactive scenery
TerrainWalkable ground
PropsInteractive objects
ForegroundParallax overlay

3. 2D Physics

Collision Shapes

ShapeUse Case
BoxRectangular objects
CircleBalls, rounded
CapsuleCharacters
PolygonComplex shapes

Physics Considerations

  • Pixel-perfect vs physics-based
  • Fixed timestep for consistency
  • Layers for filtering

4. Camera Systems

Camera Types

TypeUse
FollowTrack player
Look-aheadAnticipate movement
Multi-targetTwo-player
Room-basedMetroidvania

Screen Shake

  • Short duration (50-200ms)
  • Diminishing intensity
  • Use sparingly

5. Genre Patterns

Platformer

  • Coyote time (leniency after edge)
  • Jump buffering
  • Variable jump height

Top-down

  • 8-directional or free movement
  • Aim-based or auto-aim
  • Consider rotation or not

6. Anti-Patterns

❌ Don't✅ Do
Separate texturesUse atlases
Complex collision shapesSimplified collision
Jittery cameraSmooth following
Pixel-perfect on physicsChoose one approach

Remember: 2D is about clarity. Every pixel should communicate.

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.