A Ray-casting 2D render engine based on python3 and pyglet. Inspired in retro FPS games.
- Download
requirements.txt,RayCastRenderEngine.pyandRayCast.pyx. - You need to have Python3 installed, then run:
pip install -r requirements.txtIn example.map and ExampleGame.py files, you can see an example of how to create custom maps and the use of the library respectively.
A custom map is just a plain text file with .map extension. "W" represents a wall and "-" represents a blank space. Maps are represented internally as a matrix of cells. Make sure that all rows and columns have the same dimensions, filling with "-" if necessary.
For running a game just type:
python3 ExampleGame.py