Skip to content

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

Notifications You must be signed in to change notification settings

LelsersLasers/3D-Raycaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D-Raycaster

Live Demo: https://lelserslasers.itch.io/3d-raycaster

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

Features

  • Digital differential analyser (DDA) raycaster
    • Like Wolfenstein 3D
  • Textured walls
    • With multiple textures
  • Minimap
  • 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

Showcase

Showcase 1 Showcase 2

Controls

  • WASD to move
  • Arrow keys to turn/look around
  • R to replay "loading" animation
  • Mouse to movement to look around (must click inside window to grab mouse)
  • Tab to release mouse grab

Copyright stuff

  • Textures are from ID Software's Wolfenstein 3D

Bugs

  • Speed
    • Only CPU bound?
  • Mouse grab on Windows??
  • Mouse grab on web?