Simple 2D-Raycasting simulation with pygame.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Draw lines or boundaries and move a light source to observe the rays.
Major frameworks/libraries used to bootstrap the project.
See requirements.txt
for more information.
Mouse:
- Left mouse button:
Draw lines/boundaries - Right mouse button:
Set/move light source - Mouse wheel:
Increase/decrease number of rays
Keys:
- Key b:
Add/Remove invisible lines/boundaries at the edge of the window - Key h: Hide/reveal the drawn lines
- Key z: Delete last drawn line
- Class for ray
- Decouple ray intersection algorithm from draw method (still quite dirty)
- Improve ray intersection algorithm
- Add argparser
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Jan Thomas Müller
Project Link: https://github.com/janthmueller/2D-Raycasting