About This File
This is a raycaster demo written in c for the Commander x16.
I've been trying out the x16 and thought it would be a cool idea to start working on a raycaster.
Ultimately it would be great if "Wolfenstein 3D" can somehow be ported to the x16. That would be a BIG challenge though!
Right now I've got a simple raycaster working in c. Just to try out how VERA works mainly.
To compile: (this assumes cc65 is installed)
cl65 -t cx16 -o RAY.PRG -l ray.list ray.c
x16emu.exe -prg RAY.PRG -run
use a,s,d,w for control
# Known issues:
- There is no collision detection
- Nearby walls have strange colors
- Performace is not great. It's just a proof of concept.
- The top and bottom of the walls are 'edgy' because a 'naive' ray-casting approach (see comments source code)
- No textures
- No sprites
I would like to start working on a version that works in assembly. After doing some calculations, I've
concluded we need to do some crazy things to get this to work at 60fps... But I am willing give it a try