Pular para o conteúdo
Skillpedia
Código em geral6,6 mil · #13809

platformer

O que ela faz

Esta skill orienta a criação de platformers de rolagem lateral e o ajuste da sensação do pulo. Ela é para desenvolvedores que criam jogos 2D estilo Mario ou Celeste.

Quando usar

  • ✓Quando você está criando um platformer de rolagem lateral em que pular entre superfícies é a ação principal.
  • ✓Quando um pulo parece flutuante, pouco responsivo ou injusto e precisa de ajustes.
  • ✓Quando você precisa de deslizamento na parede, pulos na parede, perigos ou checkpoints.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/platformer/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“O pulo do meu platformer está lento e os jogadores erram as plataformas. Você pode adicionar coyote time, buffer de pulo e altura de pulo variável?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente ajusta os controles de corrida e pulo e depois adiciona coyote time, para que o jogador ainda possa pular logo após sair de uma borda, e buffer de pulo, para que um toque antecipado ainda conte. Também adiciona altura de pulo variável e correção de quinas.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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 
Perguntas frequentes

O que é coyote time?

É um pequeno período de tolerância que permite ao jogador pular logo depois de sair de uma borda.

O que é buffer de pulo?

Ele guarda um toque de pulo feito pouco antes de pousar, para que o pulo aconteça ao pousar.

Ela cobre jogos de visão de cima?

Não. Movimento de visão de cima, sem gravidade, é mais bem atendido pela skill de movimento da engine.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
6,6 mil
Posição no ranking
#13809
Licença
Apache-2.0
Atualizada em
28/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas