| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A minimal 8-bit NES game written in 6502 assembly (ca65 syntax).
Guide a diamond sprite with the D-pad into the yellow target zone on screen. When the diamond reaches the target:
Press Start to reset and play again.
Easter egg: Enter ↑ ↑ ↓ ↓ ← → ← → to trigger a 3-second rainbow colour flash.
┌──────────────────────────────────┐ │ │ │ ◆ │ │ ┌────┐ │ │ │ │ ← target zone │ │ └────┘ │ │ │ │ YOU WIN! │ │ PRESS START │ └──────────────────────────────────┘
| Button | Action |
|---|---|
| D-Pad | Move diamond |
| Start | Restart (on win) |
| Property | Value |
|---|---|
| Mapper | NROM-256 (mapper 0) |
| PRG-ROM | 2 × 16 KB = 32 KB |
| CHR-ROM | 1 × 8 KB |
| Mirroring | Horizontal |
| Audio | Pulse 1 (melody), Pulse 2 (SFX) |
| Resolution | 256 × 240, 8×8 sprites |
nes-game/ ├── game.s Main 6502 assembly source │ (reset, NMI, game loop, audio engine, easter egg) ├── game.cfg ca65/ld65 linker memory map ├── build.bat Windows build script ├── build.sh Linux/macOS build script ├── PLAN.md Original design document └── README.md This file
Install the cc65 toolchain (provides ca65 assembler and ld65 linker):
Verify: ca65 --version and ld65 --version
Windows:
cd nes-game
build.batLinux / macOS:
cd nes-game
chmod +x build.sh
./build.shBoth scripts produce game.nes (and game.nes.dbg for debugging).
Open game.nes in any NES emulator:
Install these VS Code extensions for a smoother workflow:
| Channel | Role | Details |
|---|---|---|
| Pulse 1 | Background melody | 10-note C-major loop, 50% duty, vol 8 |
| Pulse 2 | Sound effects | Move blip (3 frames) + win chime (C5→E5→G5) |
Music stops when the player wins; it restarts on game reset.
| Back | FazBrowse Home | New Git URL |