2d-games

Guides 2D game development covering sprites, tilemaps, physics, and camera systems.

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/virahitvin8/crafty-gis --skill 2d-games-virahitvin8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 2d-games
Source: https://github.com/virahitvin8/crafty-gis/tree/main/GIT_STAR/.agent/skills/game-development/2d-games
Command: npx skills add https://github.com/virahitvin8/crafty-gis --skill 2d-games-virahitvin8

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Designing 2D games requires consistent decisions about sprite organization, tilemap structure, collision handling, and camera behavior, and this Skill provides structured principles so developers avoid common pitfalls like jittery cameras, over-complex collision shapes, and unoptimized textures. ## Core Features & Use Cases - Sprite and Animation Guidance: Covers texture atlases, frame rates, pivots, layering, and animation principles like squash and stretch. - Tilemap and Physics Design: Recommends tile sizes, layer organization, collision shapes, and fixed-timestep physics approaches. - Camera and Genre Patterns: Details follow, look-ahead, and room-based cameras plus platformer techniques like coyote time and jump buffering. - Use Case: When building a 2D platformer, use this Skill to decide on tile sizes, set up collision layers, implement coyote time, and configure a smooth follow camera with subtle screen shake. ## Quick Start Ask the AI to help design the sprite animation, tilemap layers, and camera system for your 2D platformer game.

Frequently Asked Questions about 2d-games

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure sprites and animations for a 2D game?

Combine textures into atlases to reduce draw calls, define pivots for rotation and scaling, and control z-order through layering. Animate at 8-24 FPS using squash and stretch, anticipation, and follow-through for impact.

What tile size should I use for a 2D tilemap?

Common tile sizes are 16x16, 32x32, or 64x64 pixels depending on your art style and target resolution. Use auto-tiling for terrain and organize content into background, terrain, props, and foreground layers.

How do I make a 2D platformer feel responsive?

Implement coyote time to allow jumps shortly after leaving a ledge, jump buffering to register early jump inputs, and variable jump height based on button hold duration. These techniques compensate for imperfect player timing.

Should I use pixel-perfect or physics-based collision in 2D games?

Choose one approach and stay consistent rather than mixing them. Physics-based collision with simplified shapes like boxes, circles, and capsules is easier to maintain, while pixel-perfect suits precise retro-style games.

Why does my 2D camera feel jittery when following the player?

Jittery cameras usually result from directly snapping to player position each frame. Use smooth interpolation toward the target, add look-ahead based on movement direction, and keep screen shake short at 50-200ms with diminishing intensity.