This is the third project in part of the Python course at OC
Here is the link to the project
For this project, we had to create a 2D maze in where our hero tries to escape. So far, we have just established the first level of the game. It works under the terminal mode or you can play it in graphics mode (pygame library). You have the free option to select in which mode you wish to play.
The hero (Macgyver) in the game that is represented as MacGyver, he is controlled by the gamer, and he needs to find items among the maze. Those items will allow him to build automatically a seringe. This item becomes a weapon to fight against the guard that is standing at the exit. If you manage to make the guard fall asleep you will win, without the seringe, you will loose. If you want to suceed, I strongly recommand to find the items before reaching the exit.
- Use of OOP
- Use of pipenv (virtual environment with Python 3)
- Respect and follow recommandations from PEP8
- Clone this project if you wish to play.
First of all, first you need to install p ipenv
-
pipenv install
(install all requirements) This will install all requirements (pygame v.1.9.6 and python v.3.7.4) needed for this project. The advantage of pipenv is that it is cross-platform. It is recommended by the official documentation.
2.a. Then :
pipenv run python -m macgyver
You are now ready to play.
2.b. Same steps above except the last one will be
pipenv run python -m app
- Used artwork from jessefreeman, Licence : WTFPL
- Other game arts from : https://www.opengameart.org, CC0 1.0 Universal (CC0 1.0), Public Domain Dedication
I would like to give special thanks to Thierry Chappuis and Aurélien Massé for guiding me throughout this project.
Here is a screen shot of the game, enjoy !