Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

platformer

БесплатноЗапускает вложенные скриптыНе проверен

Designs 2D platformers in any engine: jump feel (coyote time, jump buffering, variable height, fall gravity, corner correction), wall jumps, hazards…

gamedev-skillsот gamedev-skills★ 12 656 звёзд на GitHub

Об этом скилле

Platformer

Owns how the jump feels and how levels are built around it. Numbers are engine-neutral, in tiles and seconds, so they survive a change of tile size or engine. The engine's movement skill supplies the body API (godot-2d-movement, unity-physics, phaser-arcade-physics).

When to use

  • Building a side-view game whose core verb is jumping between surfaces.
  • Fixing feel: "floaty", "heavy", "the jump didn't register", "I fell off and couldn't jump", "I bonk on corners", short hops that are too tall or too short.

When not to use: top-down movement without gravity (engine movement skill), 3D traversal (fps-shooter or the engine 3D skill), grid or turn-based movement (roguelike, puzzle).

Workflow

  1. Read the controller first. Find where velocity is integrated and at what rate: Godot _physics_process (60 Hz default), Unity FixedUpdate (0.02 s = 50 Hz default), Phaser Arcade (fixedStep on by default). Note the tile size, the y direction and the current constants. Ask which game the feel should resemble if the user has not said; "Mario-like" (momentum, heavy fall) and "Celeste-like" (instant, precise) need different targets.
  2. Pick targets from the table below, in tiles and seconds.
  3. Derive the constants with the calculator (path relative to this skill folder): python3 scripts/jump_tuner.py --height 3.5 --apex-time 0.35 --tile 16 --tick 60 --run-speed 8. It prints rise and fall gravity and launch velocity, simulates the jump at the project's tick, and warns about apex error from the integrator, grace windows that lose a tick, tap-hop ratio and tunnelling. Add --json for machine-readable output.
  4. Implement the feel core (Pattern 1) in this order: buffer, coyote, variable height, apex hang, fall cap, then corner correction. Run it on the fixed tick.
  5. Size the level to the measured reach. Critical-path platforms sit at least half a tile below the reached apex and gaps at least one tile shorter than the gap reach the tool prints. Optional routes may use the full reach.
  6. Check it. Add a debug switch that writes t,y for every physics tick of one jump (start on the tick the jump fires) to a CSV, run the scene (headless where the engine allows: godot --headless), then run python3 scripts/jump_tuner.py <same targets> --log jump.csv. Exit 1 means the measured apex height or time to apex is off by more than 5%. Then script these edge cases as tests and report what each one did: press 1 tick before landing, press before landing and release on the landing tick (must match an earlier release), press N ticks after walking off a ledge (N = coyote ticks, then N + 1), tap versus hold, and jump into a ceiling corner 2 px off the edge.

Feel targets

Starting points. The Celeste column comes from its published Player.cs (8 px tiles, 60 Hz); use it as a "precise and snappy" reference, not as the only right answer.

Knob Start here Range Celeste
Full jump height 3.5 tiles 2-5 about 3.5 tiles (28 px)
Time to apex 0.35 s 0.25-0.45 about 0.37 s
Full airtime on flat ground 0.6-0.7 s 0.5-0.9 about 0.68 s
Tap hop 30% of full 15-60% about 25% (one-frame tap)
Fall gravity 1.8 x rise 1.3-2.5 same as rise, but terminal speed capped low
Terminal fall speed 18-25 tiles/s keep under half a tile per tick 20 tiles/s, 30 with fast-fall
Apex hang half gravity while held and vertical speed under ~40% of launch speed 0.4-0.6 x half gravity under 40 of 105 px/s
Coyote time 0.1 s 0.06-0.15 0.1 s
Jump buffer 0.1-0.15 s 0.05-0.2 not in the published file
Ground acceleration top speed in 0.05-0.1 s instant to 0.2 s 0.09 s
Air control 0.65 x ground accel 0.5-1.0 0.65 x
Ceiling corner correction up to half a tile sideways 1/4-1/2 tile 4 px
Wall-jump steering lock 0.15 s 0.1-0.2 0.16 s

Floatiness usually comes from a long apex hang, a low terminal speed or a long time to apex, not only from symmetric gravity. Change one knob at a time and re-run the calculator.

Pattern 1: the feel core

Count grace windows in whole ticks at the fixed rate. A float countdown such as timer -= dt; if timer > 0 silently loses a tick at some rates (0.1 s at 50 Hz gives 4 ticks, not 5), so the same build feels different in Unity and Godot. Tick stamps avoid that and also let Unity's Update record a press for FixedUpdate to consume.

# Pseudocode at the fixed tick. y points DOWN. Constants come from jump_tuner.py.
COYOTE_TICKS = round(COYOTE_TIME * TICK_RATE)     # 0.1 s at 60 Hz -> 6
BUFFER_TICKS = round(JUMP_BUFFER * TICK_RATE)     # 0.12 s at 60 Hz -> 7
NEVER = -10**9                                     # initial value of both stamps

tick += 1
if on_floor and velocity.y >= 0:
    last_ground_tick = tick                        # refresh only wh
Полный SKILL.md на GitHub

Установить platformer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/feel-tuning.mdscripts/jump_tuner.py

FAQ

Что делает скилл platformer?

Designs 2D platformers in any engine: jump feel (coyote time, jump buffering, variable height, fall gravity, corner correction), wall jumps, hazards, checkpoints and one-way platforms. Use for a Mario- or Celeste-like, or a jump that feels floaty or laggy. Pair with the engine skill (`godot-2d-movement`, `phaser-arcade-physics`). Not for generic input buffering (`input-systems`) or juice (`game-feel`).

Как установить скилл platformer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл platformer запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить platformer с