ewrogers/sgdk-skills

sgdk-platformer

Build and tune side-scrolling SGDK platformers with responsive jumps, slopes, one-way and moving platforms, enemy stomps, power-ups and hidden passages.

Ver código-fonte

Como usar

  1. Copie o comando e verifique o pacote antes de instalar no seu ambiente de agente.
  2. Consulte no original as ferramentas, credenciais e ambientes necessários.
  3. Descreva os dados de entrada e a entrega esperada; confira a saída com as fontes.
npx skills add https://github.com/ewrogers/sgdk-skills --skill sgdk-platformer

Antes de começar

  • A instalação não inclui assinatura de modelo, franquia API ou acesso aos seus arquivos.
  • Estrelas e instalações indicam atividade, não um teste independente de qualidade ou segurança.
Documento original do Skill

Renderizado do repositório de origem, preservando títulos, exemplos, código, tabelas, links e imagens.

SGDK Platformer

Start with a short course that proves the movement feels right. A character that jumps well in an empty room can still feel awkward beside ledges, low ceilings, moving platforms and enemies.

Use these patterns to solve platformer mechanics and hardware constraints. The lab’s art, music, mood and tuning illustrate one game; they do not prescribe another game’s style or feel. Follow the project’s creative direction.

Choose a starting point

time, buffering, slopes, one-way platforms and moving-platform ownership.

hoppers, flyers, guarded enemies, stomps, charge moves and secrets.

native pixel art, VRAM/DMA ownership and performance checks.

scrolling course, original art/music, controls and a playtest checklist.

The example implements its own physics in ordinary C. SGDK supplies input, fixed-point formats, map/sprite rendering, audio and frame processing; it does not supply this platformer controller. Use ewrogers/sgdk:latest, pull it before building, and inspect the selected SDK headers before using an unfamiliar API. The integration reference was checked against SGDK 2.11.

Build the feel before the content

Agree on responsive movement versus momentum, jump height/time, air control, stomp behavior and available abilities. Make tuning values easy to change. Use small hitboxes that match the intended contacts, not every decorative pixel. Keep movement coordinates independent of the camera.

Take one cached input snapshot per display frame. Give press edges to one simulation step; held input can feed every step. Keep the simulation bounded. If PAL uses two updates on some frames, test that case, including collision, input edges, animation, cooldowns and audio event aggregation. A nominal clock does not recover time lost when the game misses its hardware deadline.

Resolve solid terrain before enemy interactions. Use half-open footprints, previous feet and descending motion to distinguish a stomp from a side hit. Test ceilings, wall corners, maximum dash speed, slope transitions and landing on a platform at the same height as another surface. Define what happens when a platform cannot carry its rider instead of silently pushing through a wall.

Make abilities readable

A power should change both gameplay and presentation. Show equipped boots, charge progress and a distinct ready cue. Tell the player when armor is open or dangerous. Reveal secret cover in both the rendering and saved game model; keep its visual tiles separate from solid collision.

Use a small fixed roster/pool appropriate to the game. Every enemy should have a bounded update and a defined retirement/reset rule. Separate damage invulnerability from enemy state so a stunned, guarded or falling enemy does not accidentally become harmless or harmful for unrelated reasons.

Validate the actual course

Run executable model tests for jump windows, one-way crossings, moving support, stomps, invulnerability, ability limits and checkpoint recovery. Include a long collision-safe run and target-code checks for important arithmetic. Then build and play the optimized ROM: confirm controls, telegraphs, streaming, sound and frame rate. Compilation and host tests cannot establish Mega Drive timing.

Core skills such as sgdk-input, sgdk-levels, sgdk-math, sgdk-graphics, sgdk-audio and sgdk-performance can help when installed. They are optional; this skill's lab and references do not depend on sibling folders.

Relacionados por tarefa

do mesmo repositório

Mais Skills

Todos os Skills
ewrogers
Comunidade

sgdk-ai

Implement enemy behavior in SGDK games with patrol/chase/attack states, sight cones, target selection, bounded pathfinding and staggered updates. Use when enemies see through walls, get stuck, switch targets erratically, return stale paths or cause frame spikes while searching.

instalações
1
GitHub Stars
0
Atualizado
20 de out.
ewrogers
Comunidade

sgdk-assets

Prepare, import and troubleshoot Mega Drive graphics, palettes, spritesheets, tiles, maps, fonts and audio resources with SGDK ResComp in Docker. Use for .res files, palette or tile budgets, broken imports, sprite cutting and asset pipeline changes.

instalações
1
GitHub Stars
0
Atualizado
20 de out.
ewrogers
Comunidade

sgdk-best-practices

Write or review SGDK C for defined arithmetic, clear module boundaries, resource lifetimes, safe queued transfers and interrupt sharing. Use for implementation quality and project code organization, rather than toolchain setup, game design or performance profiling alone.

instalações
1
GitHub Stars
0
Atualizado
20 de out.
ewrogers
Comunidade

sgdk-cartridge

Plan and implement large SGDK cartridges with Sega/SSF bank switching, FAR resources, pinned shared code and audio, and safe SRAM access. Use when a ROM exceeds the linear address window, stage assets live in separate banks, a FAR pointer becomes invalid, or saving interferes with banked content.

instalações
1
GitHub Stars
0
Atualizado
20 de out.