antoniopantaleo / python-raycasting

Raycasting demo with python and pygame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python RayCasting

Codefactor quality badge

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.

Demo

demo

Dependecies

The project uses the following libraries:

  • Pygame (2.0.1)

How to run

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

About

Raycasting demo with python and pygame


Languages

Language:Python 100.0%