Log In  


Cart #raycastsh19-0 | 2022-12-02 | Code ▽ | Embed ▽ | No License
3


A simple raycast 3D engine.
Porting of sorts of 3DSage's raycast engine

3


Hi @shantih19.

I'm not sure but I think it's possibly you can travel through the walls for this cart.


Cool! Would love to check out the code sometime (don't know how lol). I watched this video on Doom's raycasting (https://www.youtube.com/watch?v=hYMZsMMlubg&t=1280s) and this reminded me of that. Cool idea to implement in Pico!


1

If you want to fix the fish eye effect here is a video explaining how Wolfenstein 3D did ray casting. And the solution is at 3:21 mark.
https://www.youtube.com/watch?v=eOCQfxRQ2pY


@dw817 This is just a tech demo for the raycasting implementation, so it would seem likely that collision (among other things) was entirely skipped on purpose.

@mgrange1998 There is a "Code 🔽" button underneath the cart player at center that reveals a flyout containing the source.



[Please log in to post a comment]