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

A modern, open-source SDK for Super Nintendo development. Write game logic in C, produce .sfc ROMs that run on emulators or real hardware.

Start Here

Getting Started with OpenSNES – Install the SDK and build your first ROM

Learn SNES Development – The route through the examples, from "Hello World" to complete games

Browse Examples by Category – All 66 examples, by topic

Help

Troubleshooting OpenSNES – From a symptom to its cause

Frequently asked questions – Frequently asked questions

Migrating from PVSnesLib – Migrating a PVSnesLib project

Game-Craft

Game-Craft Guides – Design decisions: budgeting, choosing a mode, composing layers

Tools

The OpenSNES toolbox – The asset pipeline: turn images, maps, fonts and audio into SNES data

Tutorials

Graphics & Backgrounds Tutorial – Graphics & Backgrounds

Sprites & Animation Tutorial – Sprites & Animation

Animation Tutorial – Animation Techniques

Scrolling & Parallax Tutorial – Scrolling & Parallax

Controller Input Tutorial – Controller Input

Collision Detection Tutorial – Collision Detection

Scrolling maps – Scrolling Maps & the Tiled Pipeline

Music with SNESMOD – Music with SNESMOD

Samples, Voices and the Raw APU – Samples, Voices and the Raw APU

Game States Tutorial – Game States & Transitions

The Opt-In Framework Tutorial – The Opt-In Framework (game loop, asset bundles)

Text & Fonts Tutorial – Text & Fonts

Object Engine Tutorial – The Object Engine (entities, gravity, map collision)

How the Object Engine Works – How the Object Engine Works (workspace, fields, collision)

9-slice panels – 9-Slice Panels (dialog boxes, HUDs)

DMA Tutorial – DMA (direct memory access)

HDMA Tutorial – HDMA (per-scanline effects)

Mode 7 Tutorial – Mode 7 Rotation and Scaling

Colour math tutorial – Colour math (transparency, blending)

Mosaic Tutorial – Mosaic pixelation effect

Window Masking Tutorial – Window Masking

Fixed-Point Math Tutorial – Fixed-Point Math

SRAM Save Tutorial – SRAM Battery-Backed Saves

Far RAM Tutorial — FAR objects beyond the 8 KB band – Far RAM (FAR objects beyond the 8 KB band)

SA-1 Enhancement Chip Tutorial – SA-1 Coprocessor (10.74 MHz second CPU)

Super FX: a First Job – Super FX: a First Job (GSU RISC coprocessor)

Super FX: Running a Game Around the GSU – Super FX: Running a Game Around the GSU

DSP-1 Coprocessor Tutorial – DSP-1 Coprocessor (3D maths)

Interrupts: VBlank callbacks and timer IRQs – Interrupts: VBlank callbacks and timer IRQs

Interactive Debugging with luna – Debugging with luna

Profiling: measuring where the frame goes – Profiling: measuring where the frame goes

Hardware Reference

SNES Hardware Overview – CPU, PPU, APU architecture

The PPU – Background modes, tiles, VRAM, palettes, sprite sizes

The APU – SPC700, S-DSP, ARAM, BRR samples, echo

SNES Memory Map – Address space layout

SNES Hardware Register Reference – PPU, DMA, I/O registers

SNES OAM (Object Attribute Memory) – Sprite attribute memory

Examples (Annotated Source Code)

OpenSNES Examples – All examples grouped by category (sources + READMEs)

API Reference

API index — by what you are trying to do – API index, by what you are trying to do

Known Limitations – Known limitations: the silent failures, and how to avoid them

Measured frame costs of the library – What the library functions cost per frame, measured in five real scenes

Compiler Benchmark — OpenSNES vs PVSnesLib – Compiler benchmark against PVSnesLib

Headers

Framework opt-ins

Project

OpenSNES — Design Philosophy – Design philosophy

What 1.0 will freeze – What 1.0 will freeze

Upgrading from 0.48 to 0.49 – Upgrading from 0.48 to 0.49

Hardware verification protocol – Hardware verification protocol

OpenSNES Code Style Guide – Code style conventions

Contributing to OpenSNES – How to contribute

Third-Party Components – Third-party components and licenses

Acknowledgments

OpenSNES is built upon PVSnesLib by Alekmaul and contributors. We owe them an enormous debt of gratitude for the hardware library, the integration of Mukunda Johnson's SNESMOD audio engine, the asset tools, and decades of SNES development knowledge.

For the full list of dependencies, licenses, and contributors, see ATTRIBUTION.md.

Links

License

OpenSNES is released under the MIT License.