2d-games

Guide 2D game development covering sprites, tilemaps, physics, and camera mechanics.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/VoTruongDanh/AI_Cafe --skill 2d-games-votruongdanh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 2d-games
Source: https://github.com/VoTruongDanh/AI_Cafe/tree/main/ai-service/.agent/skills/game-development/2d-games
Command: npx skills add https://github.com/VoTruongDanh/AI_Cafe --skill 2d-games-votruongdanh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to the core principles and patterns involved in 2D game development, helping developers create more engaging and efficient game systems.

Core Features & Use Cases

  • Sprite Systems: Understand sprite organization, atlasing, and animation principles.
  • Tilemap Design: Learn best practices for tile size, auto-tiling, and layering.
  • 2D Physics: Explore collision shapes and physics considerations.
  • Camera Systems: Implement various camera types and screen shake effects.
  • Genre Patterns: Discover common patterns for platformers and top-down games.
  • Use Case: A game developer looking to implement a robust character controller for a new 2D platformer game can use this Skill to understand concepts like coyote time and jump buffering.

Quick Start

Explain the principles of sprite organization for 2D games.

Frequently Asked Questions about 2d-games

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

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

Organize 2D game sprites by grouping them into texture atlases to optimize rendering, then apply animation principles to cycle through frames efficiently. This approach streamlines asset management and improves overall game performance.

What are the best practices for designing tilemaps in 2D games?

Design 2D game tilemaps by selecting consistent tile sizes, applying auto-tiling rules for smooth transitions, and separating layers for backgrounds and foregrounds. These practices ensure structured level design and efficient rendering.

How does 2D physics collision handling work for game characters?

2D physics collision handling works by assigning specific collision shapes to game objects to detect intersections and calculate physical responses. Proper shape selection ensures accurate player interaction and prevents movement glitches.

What is coyote time and how do I implement it in a 2D platformer?

Coyote time is a 2D platformer pattern allowing players to jump shortly after leaving a ledge, providing more forgiving controls. Implement it by tracking grounded status and permitting jumps for a brief grace period after dropping.

How do I set up a 2D game camera with screen shake effects?

Set up a 2D game camera by defining its follow logic for the player target, then apply screen shake effects by injecting random offsets to the camera position during events like impacts. This creates dynamic visual feedback.

Can I use these 2D game development principles for top-down games?

Yes, you can apply these 2D game development principles to top-down games by adapting the shared patterns for sprite systems and physics. The guidance specifically covers common genre patterns for both platformers and top-down titles.