Command Palette

Search for a command to run...

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

level-design

БесплатноБез исполняемых скриптовНе проверен

Engine-neutral level design with Godot checks: player metrics from the real controller, key and ability gating with a soft-lock check, and pacing. Use when…

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

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

Level design

A level is a sequence of intended experiences delivered through space. The order that works: measure the character, block out with primitives, check reachability and pacing, get playtest reports, then dress. This skill is engine-neutral with Godot 4.7 checks. Painting the grid is godot-tilemap or unity-tilemap-2d; generating layouts is procedural-gen.

When to use

  • Planning a level's structure: critical path, optional branches, gating order, encounters, and where a mechanic is taught versus tested.
  • Building a blockout and checking that every required jump and gate is possible.
  • Reviewing a level that confuses, bores or soft-locks players.

Not this skill: layout generators and dungeon algorithms (procedural-gen), jump and movement tuning (platformer, the engine movement skill), enemy behaviour in the space (game-ai), camera framing (camera-systems).

Core workflow

  1. Measure the metrics from the game, not from memory. Read the movement constants from the player script, then run the jump measurement (Pattern 1) to get the real apex, reach and airtime. Size every gap, ledge and corridor in those units.
  2. Block out the whole level with untextured primitives at true scale: Godot CSGBox3D and friends with use_collision on, Unity ProBuilder (com.unity.probuilder), Unreal Modeling Mode, or a plain grey tileset in 2D. CSG is for prototyping only; bake it with bake_static_mesh() and bake_collision_shape() before shipping.
  3. Write the room graph (rooms, exits, what each exit needs, what each room grants) and the beat list next to the level. Both are small data files the checks below read.
  4. Lay the critical path, then the golden path (the route most players will take), then optional branches that rejoin it.
  5. Pace and teach. Intensity rises in a sawtooth with a rest before each spike. Each mechanic appears first where failure is cheap, then under pressure.
  6. Gate with intent using keys, abilities and one-way drops. Guide with light, leading lines and landmarks rather than walls.
  7. Run the checks (see "Check it"), fix the blockout, and only then ask the user for a playtest with specific questions.
  8. Dress last, and re-run the checks after any geometry change.

Patterns

1. Measure the real jump (headless)

# tools/measure_jump.gd: godot --headless --path . --script res://tools/measure_jump.gd
# Runs the real player scene on flat ground with run + jump held and prints the reach.
extends SceneTree

const PLAYER := "res://player.tscn"            # the game's player scene
const RUN := &"move_right"
const JUMP := &"jump"

func _initialize() -> void:
    var ground := StaticBody2D.new()
    var shape := CollisionShape2D.new()
    shape.shape = WorldBoundaryShape2D.new()     # infinite floor at y = 0, normal up
    ground.add_child(shape)
    root.add_child(ground)
    var player: CharacterBody2D = load(PLAYER).instantiate()
    player.position = Vector2(0, -64)
    root.add_child(player)
    for i in 30:                                 # let the player land and settle
        await physics_frame
    Input.action_press(RUN)
    for i in 30:                                 # reach full run speed
        await physics_frame
    var start := player.position
    Input.action_press(JUMP)
    var apex := 0.0
    var ticks := 0
    var airborne := false
    while ticks < 600:
        await physics_frame
        ticks += 1
        apex = maxf(apex, start.y - player.position.y)
        if not player.is_on_floor():
            airborne = true
        elif airborne:
            break                                # landed back on the same height
    Input.action_release(JUMP)
    Input.action_release(RUN)
    var dt := 1.0 / Engine.physics_ticks_per_second
    print("JUMP apex=%.1f distance=%.1f airtime=%.3fs" % [apex, player.position.x - start.x, ticks * dt])
    quit(0 if airborne else 1)

Holding jump measures the full jump; release it after one tick to measure the short hop if the controller has variable height. The formulas h = v² / 2g and d = run_speed * 2v / g are only the ideal arc: a controller with RUN_SPEED 240, JUMP_VELOCITY 420 and gravity 980 gives 90 px and 206 px on paper and measured 93.6 px apex and 212 px reach here, because the fixed step integrates in whole ticks. Fall gravity, air acceleration, collider width and landing higher all change the number again. Size required gaps at about 0.7 of the measured reach and keep gaps near 0.95 for optional challenges. For 3D, swap in StaticBody3D, WorldBoundaryShape3D and CharacterBody3D.

2. Pacing as data, with a check

# Author the level as beats with an intended intensity (0..1), then check the curve.
const BEATS := [
    { "room": "entry",      "type": "teach",   "intensity": 0.1 },
    { "room": "hall_1",     "type": "combat",  "intensity": 0.5 },
    { "room": "vista",      "type": "rest",
Полный SKILL.md на GitHub

Установить level-design в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/pacing-and-flow.md

FAQ

Что делает скилл level-design?

Engine-neutral level design with Godot checks: player metrics from the real controller, key and ability gating with a soft-lock check, and pacing. Use when laying out a level or metroidvania gates, or players get lost or a key sits behind its own door. Not for generation (`procedural-gen`), painting tiles (`godot-tilemap`, `unity-tilemap-2d`) or jump tuning (`platformer`).

Как установить скилл level-design?

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

Скилл level-design запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить level-design с