मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग48k · #4682

2d-games

यह क्या करती है

यह टूल 2D गेम बनाने में मदद करता है। यह समझाता है कि किरदारों को कैसे चलाया जाए, tilemap कैसे इस्तेमाल करें, camera कैसे सेट करें और physics कैसे लगाएँ, ये सब browser या app में चलने वाले गेम के लिए।

कब इस्तेमाल करें

  • ✓special jump mechanics वाला platformer गेम बनाते समय।
  • ✓खुली हरकत वाला top-down गेम विकसित करते समय।
  • ✓किसी बड़े app के अंदर एक छोटा 2D गेम सेक्शन जोड़ते समय।

Skill का लिंक

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/game-development/2d-games/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/game-development/2d-games/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं अपने 2D गेम के किरदार की jump को और responsive कैसे बना सकता हूँ, जैसे वह प्लेटफ़ॉर्म से उतरने के एक पल बाद भी jump कर सके?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह 2D गेम डिज़ाइन के सिद्धांतों का उपयोग करता है, जैसे images को group करना (atlas), animations बनाना, collisions सेट करना और camera को नियंत्रित करना। इसे अपने गेम के visual और interactive हिस्सों को व्यवस्थित करने की गाइड समझें।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

2D Game Development

Principles for 2D game systems. Pair with game-development/web-games / game-development/engine-selection for framework choice.


Shell vs guest (web)

Setup 2D systems live…
Full-screen 2D game Entire app (Phaser/Kaplay/Pixi/Canvas)
Hybrid DOM + challenges Only inside guest viewports; tear down when done

1. Sprite Systems

Component Purpose
Atlas Combine textures, reduce draw calls
Animation Frame sequences (often 8-24 FPS)
Pivot Rotation/scale origin
Layering Z-order control

Animation Principles

  • Squash and stretch for impact
  • Anticipation before action
  • Follow-through after action

2. Tilemap Design

Factor Recommendation
Size 16x16, 32x32, 64x64
Auto-tiling Use for terrain
Collision Simplified shapes
Layer Content
Background Non-interactive scenery
Terrain Walkable ground
Props Interactive objects
Foreground Parallax overlay

3. 2D Physics

Shape Use Case
Box Rectangular objects
Circle Balls, rounded
Capsule Characters
Polygon Complex shapes
  • Choose a movement/collision model per mechanic; pixel-art rendering can coexist with physics
  • Fixed timestep for consistency
  • Layers for filtering

4. Camera Systems

Type Use
Follow Track player
Look-ahead Anticipate movement
Multi-target Two-player
Room-based Metroidvania
Static Board games, modal skill-checks

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
  • Decide whether rotation matters

6. Anti-Patterns

❌ Don't ✅ Do
Separate textures Use atlases
Complex collision shapes Simplified collision
Jittery camera Smooth following
Uncoordinated movement and physics Define one authority per body
Orphaned RAF/listeners after a guest closes Full teardown

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

When to Use

Use for canvas/Phaser/Kaplay/Pixi 2D systems, or guest viewports inside hybrid web apps.

Example

User request:

Add coyote time and jump buffering to our platformer while preserving the fixed physics timestep and testing corner collisions.

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.
अक्सर पूछे जाने वाले सवाल

'atlas' क्या है?

यह कई छोटी images को एक बड़ी image में जोड़ने जैसा है, ताकि गेम जल्दी load हो और बेहतर चले।

'tilemap' क्या है?

यह छोटे-छोटे ब्लॉक (tiles) से बना नक्शा है, जैसे पुराने गेमों में होता था। इसका इस्तेमाल दृश्य (scenery) को कुशलता से बनाने के लिए होता है।

'coyote time' क्या है?

यह गेम की ओर से खिलाड़ी को दी जाने वाली छोटी सी 'मदद' है। इसमें खिलाड़ी प्लेटफ़ॉर्म से थोड़ा हटने के बाद भी jump कर सकता है, जिससे गेम ज़्यादा माफ़ करने वाला लगता है।

जानकारी

लेखक का मूल विवरण

2D game development principles. Sprites, atlases, tilemaps, physics, cameras, and genre patterns (platformer, top-down). Use for canvas/Phaser/Kaplay/Pixi 2D games or guest viewports inside hybrid web apps.

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#4682
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills