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

Core game mechanics that go beyond pure graphics or audio. These examples demonstrate fundamental patterns – collision detection, movement, and interactive logic – that you will reuse in every game project.

Examples

Example Difficulty Description
collision_demo Intermediate Bounding-box collision detection between multiple sprites
panel_hud Intermediate 9-slice HUD + dialog box on one BG layer (the panel module)
game_skeleton Intermediate The smallest complete game: title → play → game-over state machine

Key Concepts

  • Bounding-box collision: compare rectangle edges to detect overlaps
  • The SNES has no hardware collision detection – it must be done in software
  • Efficient collision checks matter because the 65816 CPU is slow at 32-bit math

After completing the graphics and input examples, study collision_demo to see how sprites, input, and math come together into interactive gameplay.

aim_target Collision Detection Demo fix32_orbit game_skeleton — the smallest complete game panel_hud — a HUD that survives a dialog box Random Numbers Scene Stack VBlank Timer