Skip to content

petronius/black-mango

Repository files navigation

Black Mango

Please make sure to add docstrings to everything and adhere to the style guide.

Git commit messages should follow the standard format.

Requirements

  • pyglet and xmltodict are install_requires entries (ie, you do not need to install those dependencies manually).
  • mock and nose for testing (unit tests are on hold)
  • setuptools must be manually installed before you begin.
  • In all commands, python refers to a Python 2.7 interpreter. If you do not have Python 2.7 installed, you can download a prepackaged installer from the Python website (on Windows or OS X) or, under Linux, install it on your favorite package manager (Arch: sudo pacman -S python2; Debian: sudo apt-get install python)

Build requirements

NB.: You do not need to build binaries to test the functionality of the game. Binaries should only be build when you need to actually test whether the game builds correctly on a given system. Skip to "Setup instructions for development" for infomation on normal testing.

  • For building binary executables, you will need PyInstaller:
$ git clone git://github.com/pyinstaller/pyinstaller.git
$ cd pyinstaller
$ sudo python setup.py install
  • You will also need access to a Bash interpreter. On Windows, Cygwin should suffice.

Setup instructions for development

Start by cloning the repository and cding into the directory, like so:

$ git clone git@github.com:chicken-mover/black-mango.git
$ cd black-mango

You should then install Black Mango as a development module. The run-setup.sh script will take care of selecting the proper Python binary to use, assuming you have Python 2.7 installed, as well as installing Black Mango and the Git commit hooks that will perform automatic validation when pulling and commiting.

$ bash scripts/run-setup.sh

Running the development version

Once you have set up Black Mango, you can run the program with all debug flags set by executing the script run-debug.sh:

$ ./scripts/run-debug.sh

To run the program manually, simply execute the __init__.py file and pass any command line flags directly. To see a complete list of flags, do

$ python blackmango/__init__.py --help

Build instructions

Note that the build process is still being worked out, so the instructions below should be considered highly experimental.

After running the setup command above, you can run the build.sh script from the project directory like so:

$ ./scripts/build.sh make-debug

The full set of options is as follows:

  • make - Build the executable using PyInstaller.
  • make-debug - Run make, but with all debugging options enabled.
  • clean - Clean up all build output files.

If build.sh isn't executable, fix the permissions with:

$ chmod u+x scripts/build.sh

Any extra options beyond the first will be passed directly to PyInstaller. See the manual for more information, or do pyinstaller --help at the command line.

Progress and notes

Please see the wiki.

About

2D top-down game engine written with Pyglet (WIP)

Resources

Stars

Watchers

Forks

Packages

No packages published