Building a quick, easy-to-use maze game and level creator in Python. Will add an additional file to play the game with LED lights on a breadboard instead of in the terminal.
- Clone the repository with
git clone github.com/cwrightlibrary/raspberry-pi-library.git
cd raspberry-pi-library
- Create a virtual environment with
python3 -m venv .venv
- Update pip with
pip install --upgrade pip
- Install the required libraries with
pip3 install -r requirements.txt
- Run
level-maker.py
withpython3 level-maker.py
to create your own level map and press [Save] when done to export your map in text format tolevel.txt
- Run
game.py
to play the game in your terminal
Below is an example of the game.py
and level-maker.py
scripts running.
Game | Level Maker |
---|---|
![]() |
![]() |