Skip to content

wyattferguson/raycaster-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raycaster

📺 Raycaster Python Demo

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.

Controls

  • W - Forward
  • S - Backwards
  • A - Rotate Left
  • D - Rotate Right

Installation & How To Use

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

📮 Contact & Support

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: