Jump to content
IGNORED

Very crude raycaster


gfvh

Recommended Posts

Hello. This is a very crude and horrendous raycaster I made. It is devoid of any complex math, just matrix comparisons.

The screen is rotated 90 degrees to take advantage of the Player Field graphics.

There is a little map below to show where you are and the structure of the walls in the world.

I didn't test it in Stella yet.

 

Source code: http://mauisland.byethost24.com/vh/ray2-6.txt

 

Thanks!!!

ray.bin

Edited by gfvh
  • Like 1
Link to comment
Share on other sites

It runs in Stella 5, too (actually, we are not currently aware of any broken ROM at all). However, your frame height seems to be inconsistent during movement --- this causes jitters on real CRTs (and on Stella if TV emulation is turned on). Also, moving backwards doesn't seem to work, either.

Link to comment
Share on other sites

Yes, during movement is where the tracing occurs, so it takes some time, but I think I can fix it using a timer, I'm not using timers. I will check not being able to go backwards. But in javatari it works. I am using javatari because I can't install Stella in my workplace ;)

Link to comment
Share on other sites

I guess I know why you cannot go backwards. Maybe you are playing with the first version. It's my fault I named both ray.bin. The first version allows you to rotate left and right and moving forward but not backwards. The second version allows you to go left and right (no rotation) and forward and backwards.

Link to comment
Share on other sites

I guess I know why you cannot go backwards. Maybe you are playing with the first version. It's my fault I named both ray.bin. The first version allows you to rotate left and right and moving forward but not backwards. The second version allows you to go left and right (no rotation) and forward and backwards.

 

Indeed, you're right. Going back works fine with the newer version. I thought I had tried that one before, but obviously, I messed up :) Sorry for the hassle!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...