/pyopengl-maze

An experimental maze built with Python and OpenGL.

Primary LanguagePythonMIT LicenseMIT

Experimental Maze with Python and PyOpenGL

An experimental maze built with Python and OpenGL. Textures generated by Midjourney.

3dmaze

Requirements

Tested with Python 3.10.12 on Ubuntu 22.04.4 LTS.

Running

In the root path, enter: python3 maze.py

Maps

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.

Controls

Esc = Exit

W = Move forward

S = Move back

A = Turn left

D = Turn right

, = Strafe left

. = Strafe right

Things to do

  • Collision detection
  • Free movement
  • Sprites
  • Decals
  • Doors
  • Animated textures
  • Loadable maps

Things to fix

  • Collision detection makes walls sticky
  • Cannot move and turn at the same time