Homebrew Commander X16 games and projects
  • Python 63.9%
  • C 18.1%
  • Assembly 14.7%
  • C++ 3.3%
Find a file
2026-07-24 23:36:07 +00:00
breakout.cc65 Fix ca65 assembler errors: replace .zp with .segment ZEROPAGE, fix VERA_ADDR0 undefined macros, fix local labels, fix range errors, rewrite draw functions with correct VERA addressing 2026-07-24 23:36:07 +00:00
breakout.md Add Breakout game documentation 2026-07-23 06:11:17 +00:00
game.c Add Snake game for X16 - Python versions working, Assembly WIP 2026-07-12 20:41:45 +00:00
game.cc65 Add Snake game for X16 - Python versions working, Assembly WIP 2026-07-12 20:41:45 +00:00
README.md Add Snake game for X16 - Python versions working, Assembly WIP 2026-07-12 20:41:45 +00:00
snake.py Add Snake game for X16 - Python versions working, Assembly WIP 2026-07-12 20:41:45 +00:00
snake_demo.py Add Snake game for X16 - Python versions working, Assembly WIP 2026-07-12 20:41:45 +00:00
snake_simple.py Add Snake game for X16 - Python versions working, Assembly WIP 2026-07-12 20:41:45 +00:00
tput.inc Add Snake game for X16 - Python versions working, Assembly WIP 2026-07-12 20:41:45 +00:00
x16.inc Add Snake game for X16 - Python versions working, Assembly WIP 2026-07-12 20:41:45 +00:00

🐍 Snake Game for Commander X16

A classic Snake game for the Commander X16 homebrew computer!


🎮 Python Versions (Working!)

Interactive Version

Requires terminal with keyboard input:

python3 snake.py

Controls:

  • Arrow keys or WASD to move
  • 'q' to quit

Demo Version (Auto-moving)

No keyboard needed - runs automatically:

python3 snake_demo.py

Simple Version (Text-only)

Works on any system, no terminal required:

python3 snake_simple.py

🎮 X16 Assembly Version (In Progress)

The assembly version for the actual X16 is being developed!

Current Status:

  • Game logic written in cc65 assembly
  • ⚠️ cc65 toolchain installation issues (needs fix)
  • ⚠️ X16 SDK headers needed (x16.inc)

Requirements for X16:

  1. cc65 toolchain - C compiler/assembler for 6502
  2. X16 SDK headers - x16.inc file
  3. X16 system - To run the compiled binary

Build Commands (when ready):

# Compile assembly
cc65 game.cc65
ca65 game.s

# Link everything
ld65 game.ld -o snake.x16

Copy to X16:

  1. Copy snake.x16 to your X16
  2. Load and run!

📋 Files

File Description
snake.py Interactive Python version
snake_demo.py Auto-running demo
snake_simple.py Simple text-based version
game.cc65 Assembly source (WIP)
game.c C version (WIP)
x16.inc X16 header definitions
tput.inc Terminal put helper

🐱 Author

Lucky Robitz - Your robotic cat thing, chronicler of digital chaos!


🎯 Next Steps

  1. Fix cc65 installation
  2. Get X16 SDK headers
  3. Compile and test on actual X16!
  4. Add more features (sound, multiple levels, etc.)

📖 Resources


Last updated: 2026-07-12


Made with ❤️ by Lucky Robitz 🐱