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

platformer

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

यह स्किल साइड-स्क्रॉलिंग प्लेटफ़ॉर्मर बनाने और छलाँग के अहसास को ट्यून करने में मार्गदर्शन देती है। यह Mario जैसे या Celeste जैसे 2D गेम बनाने वाले डेवलपर्स के लिए है।

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

  • ✓जब आप ऐसा साइड-स्क्रॉलिंग प्लेटफ़ॉर्मर बना रहे हों जिसमें सतहों के बीच कूदना मुख्य कार्रवाई हो।
  • ✓जब छलाँग तैरती, धीमी या अन्यायपूर्ण लगे और उसे ट्यून करना हो।
  • ✓जब आपको वॉल स्लाइड, वॉल जंप, खतरे या चेकपॉइंट चाहिए।

Skill का लिंक

https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/platformer/SKILL.md

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

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

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

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

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

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

“मेरे प्लेटफ़ॉर्मर की छलाँग सुस्त लगती है और खिलाड़ी किनारे चूक जाते हैं। क्या आप कोयोटे टाइम, जंप बफ़रिंग और परिवर्तनशील छलाँग ऊँचाई जोड़ सकते हैं?”

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

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

एजेंट दौड़ और छलाँग के कंट्रोल ट्यून करता है, फिर कोयोटे टाइम जोड़ता है ताकि खिलाड़ी किनारे से उतरने के ठीक बाद भी कूद सके, और जंप बफ़रिंग जोड़ता है ताकि जल्दी दबाया गया बटन भी गिने। वह परिवर्तनशील छलाँग ऊँचाई और कॉर्नर करेक्शन भी जोड़ता है।

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

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

Platformer

A playbook for 2D platformers — the run/jump controller "feel", level structure, hazards, and goals. This is a compositional skill: it wires an engine movement skill, a tilemap skill, and design skills into a working game. It does not re-teach physics or tilemaps; it tells you what to build and how to make jumping feel good.

When to use

  • Use when building a side-scrolling or single-screen platformer, a "Mario-like" / "Celeste-like", or any game whose core verb is jump between surfaces.
  • Use when a jump feels floaty, unresponsive, or "unfair" and you need feel fixes (coyote time, jump buffering, variable height, corner correction).

When not to use: top-down movement with no gravity → use the engine movement skill directly. 3D first-person traversal → fps-shooter. Grid/turn movement → roguelike. For the raw kinematic body API, use godot-2d-movement (or your engine's controller skill).

Core loop

Observe a gap/hazard → commit to a jump or move → land safely (or die) → reach the next checkpoint/goal. A platformer lives or dies on the moment-to-moment feel of that single jump, repeated thousands of times. Tighten the controller first; everything else is content.

Must-have systems

  1. Run/jump controller — horizontal accel/decel, gravity, jump, with the feel aids below.
  2. Solid + one-way collision — ground, walls, and "jump-through" platforms.
  3. Level geometry — a tilemap or hand-placed colliders; the playable space.
  4. Hazards + death/respawn — spikes, pits, enemies; reset to the last checkpoint.
  5. Checkpoints / level goal — progress markers and a win condition (flag, door, exit).
  6. Camera — follows the player with a deadzone and look-ahead, clamped to level bounds.
  7. Juice — landing dust, squash/stretch, hit-stop, sound. Cheap, huge feel payoff.

Design knobs (make the jump feel right)

Tune these by outcome (height in tiles, time to apex in seconds), not by raw numbers.

Knob Effect Sane starting point
Max jump height reach 3–4 tiles
Time to apex "weight"/snappiness 0.30–0.40 s
Fall gravity multiplier snappy, non-floaty fall 1.5–2.0× rise gravity
Coyote time jump just after leaving a ledge 0.08–0.12 s (~5–7 frames @60)
Jump buffer press just before landing still jumps 0.10–0.15 s
Variable jump cut tap = short hop, hold = full cut upward velocity ×0.4–0.5 on release
Apex hang brief float at the top for air control reduce gravity ×0.5 near `
Ground accel / friction responsiveness vs. ice reach top speed in 0.05–0.1 s
Corner correction nudge past a ledge clipped by 1–2 px nudge up to ~4 px sideways
Wall slide / wall jump controlled descent and kick-off wall grace, kick/steering lock, air-jump refresh policy; see refs §9

Derive gravity and jump velocity from the feel values rather than guessing — see Pattern 1.

Patterns

1. Solve jump physics from height + time (not magic numbers)

# Pseudocode. Pick the FEEL you want, then derive the physics. y-axis points DOWN.
# From kinematics: h = (g * t^2) / 2  and  v0 = g * t.
JUMP_HEIGHT   = 3.5 * TILE      # how high, in world units
TIME_TO_APEX  = 0.35            # seconds to reach the top

gravity       = (2 * JUMP_HEIGHT) / (TIME_TO_APEX ** 2)   # rising gravity
jump_velocity = -(2 * JUMP_HEIGHT) / TIME_TO_APEX         # negative = upward
fall_gravity  = gravity * 1.8   # heavier on the way down → less floaty

2. Coyote time + jump buffer + variable height (the feel core)

For wall or air jumps, replace this simple jump resolver with the unified resolver in refs §9; keep variable-height and gravity integration only once per tick.

# Pseudocode in the per-frame update. dt = seconds since last frame.
# Timers count DOWN; refresh coyote while grounded, buffer on a fresh press.
if on_floor:
    coyote_timer = COYOTE_TIME           # 0.1
if jump_pressed_this_frame:
    buffer_timer = JUMP_BUFFER           # 0.12
coyote_timer -= dt
buffer_timer -= dt

# A jump is allowed if we pressed recently AND were grounded recently.
if buffer_timer > 0 and coyote_timer > 0:
    velocity.y   = jump_velocity
    buffer_timer = 0
    coyote_timer = 0                     # consume both so we can't double-jump

# Variable height: releasing jump early while still rising cuts the arc short.
if jump_released_this_frame and 
अक्सर पूछे जाने वाले सवाल

कोयोटे टाइम क्या है?

यह एक छोटी ग्रेस अवधि है, जो खिलाड़ी को किनारे से दौड़कर उतरने के ठीक बाद भी छलाँग लगाने देती है।

जंप बफ़रिंग क्या है?

यह ज़मीन छूने से ठीक पहले किए गए छलाँग के बटन को याद रखती है, ताकि लैंड होने पर छलाँग हो जाए।

क्या यह टॉप-डाउन गेम कवर करती है?

नहीं। गुरुत्वाकर्षण के बिना टॉप-डाउन गति इंजन की मूवमेंट स्किल से बेहतर संभलती है।

जानकारी

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

Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, wall slide and wall jump, plus tiled levels and hazards. Use for a platformer or Mario/Celeste-like, or tuning jump feel.

repo: gamedev-skills/awesome-gamedev-agent-skills

लोकप्रियता

GitHub स्टार
6.6k
रैंकिंग में स्थान
#13809
लाइसेंस
Apache-2.0
अपडेट की गई
28/10/2026

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

0

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

कमेंट

  • …

इस repository की और skills

router

6.6k

यह आपके एजेंट को इंजन और काम के प्रकार को पहचानकर किसी अनुरोध के लिए सही गेम डेवलपमेंट स्किल चुनने में मदद करती है।

कोडिंगसामान्य कोडिंग

ai-behavior-trees-utility-ai

6.6k

यह आपके एजेंट को दुश्मनों और किरदारों के लिए बिहेवियर ट्री और यूटिलिटी AI सिस्टम बनाने में मदद करती है, जो प्राथमिकता और स्कोर से कार्रवाई चुनें।

कोडिंगसामान्य कोडिंग

audio-design

6.6k

आपके एजेंट को गेम ऑडियो मिक्सिंग सिखाती है: बस, डेसिबल में वॉल्यूम, डायलॉग में म्यूज़िक धीमा करना और साउंड इफ़ेक्ट की विविधता।

वीडियो और ऑडियोऑडियो और आवाज़

camera-systems

6.6k

यह आपके एजेंट को ऐसे गेम कैमरा बनाने में मदद करती है जो सहजता से पीछा करें, लेवल के भीतर रहें, और 3D में घूम या देख सकें।

कोडिंगसामान्य कोडिंग

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