OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
Learn SNES Development

A curated path through the examples — not a feature tour, a developer's journey. You don't wake up wanting "Mode 7"; you wake up with a question about the game you're building, and it changes as you go. Each stage below is one of those questions, and the confidence it buys you. This is a hand-picked subset; for the exhaustive index see Browse Examples by Category.

Two companions run alongside this journey: Game-Craft Guides for the design decisions behind each step — what to build, and how to budget it on the hardware — and The OpenSNES toolbox for turning your own art, maps and audio into SNES data.

At every step the goal is the same: never a wall you can't climb with what you just learned, always a result that works, always the why.

Stage 0 — "Does my setup even work?"

Confidence: the toolchain isn't scary. Get one ROM built and running, and learn the rhythm of a frame — you set things up during blanking, then let the machine run at 60 Hz.

Print a string

Stage 1 — "Can I put something on screen?"

Confidence: I control the picture. Text, a background from your own art, a sprite that isn't tied to the grid. The tile / palette / VRAM trinity that underpins everything visual on the SNES.

Pixel Text

Mode 1 Example

Simple Sprite -- Your First OAM Sprite

Animated Sprite -- Direction States and Sprite Sheets

Dynamic Sprite -- VRAM Streaming for Animated Sprites

sprite_swarm — a bouncing swarm, and the OAM throughput ceiling

Making it your art: opensnes-tileset — pictures to tilesets and tilemaps turns a PNG into the tiles, palette and tilemap this stage builds on, and Planning your SNES game budgets the VRAM before you draw a pixel.

Under the hood — how a glyph becomes pixels with no module at all: Fundamentals: how a glyph is drawn

Stage 2 — "Can the player act?"

Confidence: it's a game, not a demo. Read the pad, move something with it, then branch out to the SNES's exotic controllers.

Controller Input — Both Pads, the Edges, the Frame Count

SNES Mouse

Super Scope

Now that the pad moves things, the sprites that answer it: the OBJ size pairs one character is built from (and, behind SELECT in Dynamic Sprite -- VRAM Streaming for Animated Sprites, a metasprite streamed under each pair), a world larger than the screen with its sprites in world coordinates, and an Aseprite timeline played on a button.

Object Size -- All 6 SNES Sprite Size Modes

World Sprites

Aseprite Pipeline

Stage 3 — "Can I build a world?"

Confidence: bigger than one screen. Scroll a background past the camera, stream a world larger than VRAM, drive it from a Tiled map, and stand on the ground with tile collision.

Mixed Scroll

Map Scroll

Continuous Scroll

Collision Detection Demo

Tile Ring

Author the world, don't hand-code it: From tiles to levels is the think-in-metatiles workflow, and opensnes-level — Tiled levels to SNES map data converts a Tiled level into the map binaries map_scroll loads.

Stage 4 — "Can I make it feel good?"

Confidence: it feels like a real game. This is where the SNES becomes the SNES — fades and mosaic transitions, per-scanline HDMA effects, colour math, windows, the Mode 7 plane, and sound.

Fade and Mosaic — Screen Transitions

HDMA Wave

Parallax Scrolling

Gradient Colors -- HDMA Color Gradients

palette_cycle — animate by rotating CGRAM

Color Addition Transparency — and Pseudo-Hires

shadow_tint — recolour a whole scene at once

Window -- HDMA Torch Beam: Masking and Lighting

Mode 7 -- Rotation and Scaling

Mode 7 Perspective -- Pseudo-3D Ground Effect

Mode 7 rotating perspective — the full matrix, per scanline

SNESMOD Music and Sound Effects

SFX from WAV

soundboard — the audio v2 engine, driven entirely from C

SFX voices

Sample swap

Stage 5 — "Can I hold it all together?"

Confidence: architecture, not spaghetti. Stop hand-rolling the main loop and the state machine; assemble a skeleton, and pick up the reusable maths every game needs.

Scene Stack

panel_hud — a HUD that survives a dialog box

game_skeleton — the smallest complete game

ppu_reset — the next screen starts from a clean PPU

aim_target

Stage 6 — "Can I finish and ship?"

Confidence: a complete cartridge. Persist progress, choose a mapper, fit more data in the cartridge with compression, reach for a coprocessor when you need more, study playable demos that fuse everything above, and three complete games.

Save Game -- SRAM Persistence

HiROM Demo -- Understanding SNES Memory Mapping

LZ77 into RAM — lzssDecodeRam

Breakout

Blocks

shard_dash — a game in several files, with a test for each screen

rooftop_run — Kit's Rooftop Run

Map and Objects

rpg — an RPG template driven by a Tiled map

shmup

mode7_racing — an F-Zero-style mini game

More horsepower — the cartridge coprocessors

When the base hardware isn't enough. SA-1 is the same 65816 ISA at 10.74 MHz; Super FX / GSU is a custom RISC processor for bitmaps and 3D.

SA-1 Starfield (Murmuration)

SuperFX 3D Cube

Super FX Game Skeleton

Saving on a coprocessor cartridge uses the same sram calls as any other: SA-1 Enhancement Chip Tutorial shows it in BW-RAM, Super FX: Running a Game Around the GSU in the Game Pak RAM while a job may run.

Further — the rest of the hardware

Every example not on the path above, by topic. Each stands on what the path taught; read the one your game needs.