Raycaster -- By anarkavre


Author :  anarkavre

Hi, I have been working on a Raycaster project for the Arduboy and decided to port it to the Gamebuino META. It currently has the following features.


Move Forward

Move Backward

Turn Left

Turn Right

Strafe Left

Strafe Right


Wall and door collision with a nice sliding effect

Doors that open when you stand in front of them

This version includes texture mapped walls and doors. The Wolfenstein 3D textures are placeholders I used for testing.

I hope you enjoy this preview.

See more
Author :  STUDIOCRAFTapps

You did it! Greate job!

Author :  jicehel

Oh thanks. Many thanks, sure i like it. Thanks to shae your experience with us. I saw your works on Arduboy forum and i hoped so much that we have some gu like you to share incredible motors of games and give us some good tips, maybe making some tutorials about simple subjets or just how to use your motors in good condition to make games (of course Wolfenstein port or doom, but it's can do some dungeon master clones too or any other original projects.

I don't know if floors is only flat or if you can have gradients. It's just a question to know if this can be used for races system too.

So alot thanks and i hope you'll continue on both platforms (Arduboy with his amazing communauty and Meta because for me atm it's better with more capacities and because i have it  ;) ) and that you'll share with us something playable (a demo, a little game or a complete game) to test it in real conditions (even your gif give already a good preview)

Author :  jicehel

@alxm You'll have concurence on raytracing project. Great. You'll be able to take the better of the  systems and help each other with some technicals problems or perf.

@anarkavre. Yes alxm as worked on on a raycasting game and something with vector graphics. Maybe some others know this domain but you're two now near to deliver it.

Author :  anarkavre

Here is a BIN file if anyone wants to see it run on an actual Gamebuino META. Let me know if you have any problems.

Author :  jicehel

It's work well. Thanks for the playable demo. We can test how it's works fine. I have had no problem to explore with walk in front, turn, go back or straffe. I have made quickly  pictures to better recognize your demo on the Meta:



Author :  Sorunome

This is looking fantastic!

I'd recommend you to add the binary link as download link in the creation (top post).

I can only imagine what aweseome games can be made with a raycaster like this, awesome!

I wonder, does it use floats all over? because if so, our MCU doesn't have floating point operations, so fixed point might give some speed performance.

Author :  alxm

Nice work! I just tried it out, looking forward to seeing it run full screen!

By the way @jicehel, for anyone interested in learning more about this technique, here are two great resources:

Now I need to go add sliding doors to my own raycaster :-)

Author :  jicehel

Very good tutorials and good code examples ;) it's can help alot. Nice that you can help and compare your two programs to make your raycasting motor better. 

Author :  JulienGio

I highly recommend the second link you posted. The best one out there honestly for anyone who is just getting into this kind of stuff! 10/10