https://github.com/lelserslasers/3d-raycaster
Wolfenstein 3D like raycaster using Macroquad in Rust running on the web
https://github.com/lelserslasers/3d-raycaster
dda dda-algorithm digital-differential-analyzer fog itch-io macroquad raycaster raycaster-engine raycasting rust wolfenstein wolfenstein-3d wolfenstein-3d-engine
Last synced: 4 months ago
JSON representation
Wolfenstein 3D like raycaster using Macroquad in Rust running on the web
- Host: GitHub
- URL: https://github.com/lelserslasers/3d-raycaster
- Owner: LelsersLasers
- Created: 2023-04-22T23:28:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-19T01:18:12.000Z (9 months ago)
- Last Synced: 2024-12-04T13:12:08.513Z (6 months ago)
- Topics: dda, dda-algorithm, digital-differential-analyzer, fog, itch-io, macroquad, raycaster, raycaster-engine, raycasting, rust, wolfenstein, wolfenstein-3d, wolfenstein-3d-engine
- Language: Rust
- Homepage:
- Size: 15.9 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 3D-Raycaster
[Live Demo](https://lelserslasers.itch.io/3d-raycaster): 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

## 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?