A simple demo of a 2D raycaster (think Wolfenstein 3D). By giving the caster only a 2d list it will render it into 3d, by casting rays out from the players POV and using that distance to calculate the hieght of each ractangle to draw.
This is just a simple proof of concept and would need a good refactor before being used in prime time.
- W - Forward
- S - Backwards
- A - Rotate Left
- D - Rotate Right
Installation is pretty straight forward, Im using UV to manage everything.
To get it all running from scratch:
# spin up a virtual enviroment
uv venv
# activate virtual enviroment
.venv\Scripts\activate
# install all the cool dependancies
uv sync
# use taskipy to simplify running everything
task run
Created by Wyatt Ferguson
For any questions or comments heres how you can reach me:
📬 Email me at [email protected]
🍹 Follow on BlueSky @wyattf
If you find this useful and want to tip me a little coffee money: