项目作者: loictessier

项目描述 :
Little game, my first project with Python
高级语言: Python
项目地址: git://github.com/loictessier/Macgyver_Labyrinth.git
创建时间: 2017-10-12T00:04:08Z
项目社区:https://github.com/loictessier/Macgyver_Labyrinth

开源协议:

下载


MACGYVER’S LABYRINTH

MacGyver’s labyrinth is a little game coded in Python using object-oriented programmation in which the player must guide MacGyver to escape a Labyrinth. To achieve this he has to collect different object before confronting the guard which keeps the exit. This project is part of a learning path “Python applicaton developper” which you can find on OpenClassrooms web site.

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

First you need to have Python 3 installed on your system.

For this project I used Pipenv to create a virtual env that can be easily recreated on your environment. First you need to install Pipenv if you don’t already have it :

  1. pip install pipenv

Then you will have to download the source code of the project, unload it inside a folder and from this folder use the command :

  1. pipenv install

which will automatically create a virtual environment with all the packages used for this project.

Finally to launch the game in the context of its virtual environment use the command :

  1. pipenv run python Labyrinth.py

Run Labyrinth_text.py instead if you want console mode.

How to play

Use arrow to move MacGyver’s accross the labyrinth. pick up object by walking on them. If you have all 3 items when you meet the guard you complete the level. Press ‘Esc’ if you want to end the game at anytime.

Packages used

  • pygame - Free and Open Source python programming language library for making multimedia applications