Codename Naja ============= Entry in PyWeek #18 URL: http://pyweek.org/e/naja Team: Naja Members: Simon Cross Neil Muller Adrianna Pinska Stefano Rivera David Sharpe Jeremy Thurgood License: see LICENSE.txt Requirements ============ The game requires pygame and pymunk. Requirements can be installed by pip install -e . Or pip install -r requirements.txt It was developed using python 2.7 and pygame 1.9.2. Older versions may or may not work. Running the Game ---------------- On Windows or Mac OS X, locate the "run_game.pyw" file and double-click it. Othewise open a terminal / console and "cd" to the game directory and run: python run_game.py How to Play the Game -------------------- You are a robot, frantically trying to set the correct bits to gain points, for reasons that are unlikely to ever become clear. Your robot has 8 bits. Four bits control the directions you can move in, 3 allow you to unlock various actions, and the last, the Most Significant Bit, makes everything work better. The game has two phases. Movement and Actions. During Movement, you can explore the board and learn about the available tiles. Tiles you can legally move onto are highlighted. It's always possible to stay on your current tile. After moving, select an action from the tile. Most actions require various bits to be set, although all tiles have a default action, although this may be "No effect". After the action, the tile will be replaced with a new tile. Some actions cost you health. When you run out of health, the game is over and you lose. If you have all three colour bits set, and are on the right tile, you can gain a point, although this unsets all the colour bits. Once you have enough points, you win the game, and there is much rejoicing. (In true 8-bit style, the Konami Code is accepted.) Development notes ----------------- Ensure the JSON is generated from the YAML, for people with out pyyaml:: ./tools/gen_json.py Creating a source distribution with:: python setup.py sdist You may also generate Windows executables and OS X applications:: python setup.py py2exe python setup.py py2app Later you might be able to upload files to PyWeek with:: python pyweek_upload.py Later you might be able to upload to the Python Package Index with:: python setup.py register python setup.py sdist upload