An experimental maze built with Python and OpenGL. Textures generated by Midjourney.
- Python 3
- PyOpenGL
- NumPy 1.26.4
pip install numpy==1.26.4(there are issues with recent versions of NumPy)
Tested with Python 3.10.12 on Ubuntu 22.04.4 LTS.
In the root path, enter: python3 maze.py
Maps can be found in the /map directory. To load a map, pass the map name as a parameter:
python3 maze.py --map 001
Leave out the map parameter to generate a random map.
Esc = Exit
W = Move forward
S = Move back
A = Turn left
D = Turn right
, = Strafe left
. = Strafe right
Collision detectionFree movementSprites- Decals
- Doors
- Animated textures
Loadable maps
Collision detection makes walls stickyCannot move and turn at the same time
