All 41 OpenSNES example programs with annotated source code. More...
Files | |
| file | main.c |
| Tracker music playback with transport controls via SNESMOD. | |
| file | main.c |
| HiROM music playback via SNESMOD. | |
| file | main.c |
| Large soundbank music playback (>32KB, multi-bank LoROM) | |
| file | main.c |
| Sound effect playback with pitch control via SNESMOD. | |
| file | main.c |
| AABB and tile-based collision detection with visual feedback. | |
| file | main.c |
| Random number generation demo. | |
| file | main.c |
| VBlank frame counter display, written against the gameloop framework. | |
| file | main.c |
| Breakout game with brick collision, paddle physics, and level cycling. | |
| file | main.c |
| Side-scrolling platformer with scroll streaming and SNESMOD audio. | |
| file | main.c |
| Scrolling platformer with object engine and enemy AI. | |
| file | main.c |
| Tetris with 3-layer BG architecture, DAS input, and SNESMOD audio. | |
| file | main.c |
| Two-layer parallax scrolling with player sprite. | |
| file | main.c |
| Mixed scrolling with fixed and auto-scrolling background layers. | |
| file | main.c |
| Mode 0 parallax scrolling with four independent 2bpp backgrounds. | |
| file | main.c |
| Static 16-color background display in Mode 1 (4bpp) | |
| file | main.c |
| Mode 1 BG3 high-priority overlay for HUD-style layering. | |
| file | main.c |
| LZ77-compressed tile loading with LZSS decompression to VRAM. | |
| file | main.c |
| Mode 3 full-color (256-color, 8bpp) background with assembly DMA loader. | |
| file | main.c |
| Mode 5 hi-resolution background display. | |
| file | main.c |
| Mode 7 rotation and scaling demo. | |
| file | main.c |
| Mode 7 perspective with HDMA split-screen (F-Zero style) | |
| file | main.c |
| Screen fade in/out using INIDISP brightness control. | |
| file | main.c |
| HDMA-driven per-scanline backdrop color gradient. | |
| file | main.c |
| HDMA brightness gradient on an 8bpp Mode 3 background. | |
| file | main.c |
| Interactive showcase of all four HDMA library helper effects. | |
| file | main.c |
| HDMA-driven sinusoidal wave distortion on background. | |
| file | main.c |
| Mosaic and fade screen transition effects. | |
| file | main.c |
| HDMA-driven parallax scrolling with three speed zones. | |
| file | main.c |
| SuperFX 3D — auto-rotating wireframe cube (2-axis rotation) | |
| file | main.c |
| Color addition transparency between two background layers. | |
| file | main.c |
| Semi-transparent darkened rectangle via HDMA windows and color math. | |
| file | main.c |
| HDMA-driven triangle window masking on selectable BG layers. | |
| file | main.c |
| Direction-based sprite animation with horizontal flip. | |
| file | main.c |
| Dynamic metasprite engine demo — multi-tile characters with VRAM streaming. | |
| file | main.c |
| Dynamic sprite engine with per-frame VRAM tile streaming. | |
| file | main.c |
| Metasprite composition with switchable OBJ size modes. | |
| file | main.c |
| Interactive demo of all six SNES OBJ size modes. | |
| file | main.c |
| Display a single static 32x32 sprite. | |
| file | main.c |
| Single controller input display. | |
| file | main.c |
| SNES mouse input with cursor sprite, buttons, and sensitivity. | |
| file | main.c |
| SNES Super Scope light gun detection, calibration, and firing. | |
| file | main.c |
| Two-player simultaneous input with independent sprites. | |
| file | main.c |
| Tilemap-based sprite engine with 32x32 and 64x64 map modes. | |
| file | main.c |
| Scrolling map with animated sprite character. | |
| file | main.c |
| Platformer with diagonal slope collision detection. | |
| file | main.c |
| Tiled map editor integration with the map scrolling engine. | |
| file | main.c |
| HiROM memory mapping mode with 64KB bank access. | |
| file | main.c |
| SA-1 boot diagnostic (Phase 1) | |
| file | main.c |
| SA-1 Murmuration Demo — 128 dots in Lissajous sine patterns. | |
| file | main.c |
| SRAM battery-backed save with multiple save slots. | |
| file | main.c |
| SuperFX (GSU) Hello World — boot diagnostic. | |
| file | main.c |
| Minimal "Hello World" text display using hand-coded 2bpp font tiles. | |
| file | main.c |
| Text module validation using textInit / textLoadFont / textPrintAt. | |
All 41 OpenSNES example programs with annotated source code.
Each example demonstrates specific SNES hardware concepts. The source files include @par SNES Concepts (what hardware features are used), @par What to Observe (what to look for in the emulator), and @par Modules Used (which library modules to link).
Browse by category: Browse Examples by Category