gfvh #1 Posted August 17, 2017 (edited) 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 August 17, 2017 by gfvh 1 Quote Share this post Link to post Share on other sites
gfvh #2 Posted August 22, 2017 Fixed. Now it is more accurate, but with one drawback, you can't rotate, just walk sideways, forward, and backwards. And the map doesn't work anymore (never worked) Source code: http://mauisland.byethost24.com/vh/ray92.txt ray.bin 1 Quote Share this post Link to post Share on other sites
CrazyChris #3 Posted August 22, 2017 Does this work on Stella? Quote Share this post Link to post Share on other sites
gfvh #4 Posted August 22, 2017 I don't know I don't have Stella right here. I tested it in javatari.org. Quote Share this post Link to post Share on other sites
gfvh #5 Posted August 22, 2017 I tested it in an emulator for android that I suppose it's based on Stella. It worked. But it is so horrible this raycaster that you may think it is not working Quote Share this post Link to post Share on other sites
Arenafoot #6 Posted August 23, 2017 it runs on Stella 4.0........ Quote Share this post Link to post Share on other sites
CrazyChris #7 Posted August 23, 2017 I tested it in an emulator for android that I suppose it's based on Stella. It worked. But it is so horrible this raycaster that you may think it is not working Thanks for verifying this. Quote Share this post Link to post Share on other sites
DirtyHairy #8 Posted August 23, 2017 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. Quote Share this post Link to post Share on other sites
gfvh #9 Posted August 23, 2017 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 Quote Share this post Link to post Share on other sites
DirtyHairy #10 Posted August 23, 2017 (edited) Didn't work for me in either Stella 4, Stella 5 or 6502.ts (provided back is 'joystick back') I haven't checked in real hardware though. Edited August 23, 2017 by DirtyHairy Quote Share this post Link to post Share on other sites
gfvh #11 Posted August 23, 2017 It's the down button (of the keyboard). That makes you to step back. Quote Share this post Link to post Share on other sites
DirtyHairy #12 Posted August 23, 2017 That's what I thought. You can check 6502.ts on the web (see my signature). I'll give it a try in real hardware later.... Quote Share this post Link to post Share on other sites
gfvh #13 Posted August 23, 2017 Strange. It works for me. I've run it in 6502.ts as you said. Quote Share this post Link to post Share on other sites
DirtyHairy #14 Posted August 23, 2017 Mmmhhhh, gotta recheck, could be that I was just too stupid 😉 Quote Share this post Link to post Share on other sites
gfvh #15 Posted August 23, 2017 (edited) By the way, it works really good in 6502.ts, great emulator. It made an awful code like mine to run smoothly. Edited August 23, 2017 by gfvh Quote Share this post Link to post Share on other sites
DirtyHairy #16 Posted August 23, 2017 By the way, it works really good in 6502.ts, great emulator. It made an awful code like mine to run smoothly. Thanks I think what you are seeing is the result of 6502.ts being very (as in unrealistically) tolerant about frame timings. Quote Share this post Link to post Share on other sites
gfvh #17 Posted August 24, 2017 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. Quote Share this post Link to post Share on other sites
DirtyHairy #18 Posted August 24, 2017 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! Quote Share this post Link to post Share on other sites