Wolfenstein 3D like raycaster using Macroquad in Rust running on the web

Controls

  • WASD to move
  • Arrow keys to turn/look around (or mouse)
  • Arrow keys to turn/look around
  • Click inside window to enable mouse grab
  • Tab to release mouse grab

Features

  • Digital differential analyser (DDA) raycaster
    • Like Wolfenstein 3D
    • Only uses the CPU!
  • Textured walls
    • Multiple textures supported
  • Ability to look up and down
  • Fog effect
  • Wall collisions
  • This was mostly a proof of concept
    • The math was actually pretty fun to figure out and I have used the reverse of it (screen positions to angles, distances, etc) for robotics 

Copyright stuff

Textures are from ID Software's Wolfenstein 3D

Download

Download NowName your own price

Click download now to get access to the following files:

3D Raycaster - Web Build.zip 686 kB
3D Raycaster - MacOS and Linux Build 4 MB
3D Raycaster - Windows Build 894 kB
3D Raycaster - Source Code.zip 40 kB

Leave a comment

Log in with itch.io to leave a comment.