gfvh Posted August 17, 2017 Share 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 Link to comment Share on other sites More sharing options...
gfvh Posted August 22, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
CrazyChris Posted August 22, 2017 Share Posted August 22, 2017 Does this work on Stella? Quote Link to comment Share on other sites More sharing options...
gfvh Posted August 22, 2017 Author Share Posted August 22, 2017 I don't know I don't have Stella right here. I tested it in javatari.org. Quote Link to comment Share on other sites More sharing options...
gfvh Posted August 22, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Arenafoot Posted August 23, 2017 Share Posted August 23, 2017 it runs on Stella 4.0........ Quote Link to comment Share on other sites More sharing options...
CrazyChris Posted August 23, 2017 Share 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 Link to comment Share on other sites More sharing options...
DirtyHairy Posted August 23, 2017 Share 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 Link to comment Share on other sites More sharing options...
gfvh Posted August 23, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
DirtyHairy Posted August 23, 2017 Share 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 Link to comment Share on other sites More sharing options...
gfvh Posted August 23, 2017 Author Share Posted August 23, 2017 It's the down button (of the keyboard). That makes you to step back. Quote Link to comment Share on other sites More sharing options...
DirtyHairy Posted August 23, 2017 Share 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 Link to comment Share on other sites More sharing options...
gfvh Posted August 23, 2017 Author Share Posted August 23, 2017 Strange. It works for me. I've run it in 6502.ts as you said. Quote Link to comment Share on other sites More sharing options...
DirtyHairy Posted August 23, 2017 Share Posted August 23, 2017 Mmmhhhh, gotta recheck, could be that I was just too stupid ? Quote Link to comment Share on other sites More sharing options...
gfvh Posted August 23, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
DirtyHairy Posted August 23, 2017 Share 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 Link to comment Share on other sites More sharing options...
gfvh Posted August 24, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
DirtyHairy Posted August 24, 2017 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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.