Jump to content

Raycasting demo (written in c) 1.0.0

   (1 review)

3 Screenshots

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.

# Usage

To compile: (this assumes cc65 is installed)

    cl65 -t cx16 -o RAY.PRG -l ray.list ray.c

To run:

    x16emu.exe -prg RAY.PRG -run

To play:

    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 😉

Having fun! 🙂





  • Like 5

User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.



   1 of 1 member found this review helpful 1 / 1 member

Very cool idea!  Was thinking of doing something like this myself in assembly, but you've beaten me to it 😀

  • Like 1

Share this review

Link to review
  • Create New...

Important Information

Please review our Terms of Use