Practicing raycasting with python and pygame.
The mouse acts like a source of light. With an hold-and-drag action, users can add walls to the scene and see how the light interacts with them.
The project uses the following libraries:
- Pygame (2.0.1)
Make sure you have pygame installed, then type:
python run.py <a?>
The a
parameter is optional, and stands for the angle between the different rays. The default value is 1 (degree).
☕ Antonio Pantaleo dev