Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

Smooth Jazz Tower Defence

Entry in PyWeek #13 http://www.pyweek.org/13/

URL: http://pyweek.org/e/gradlassians

Team: Gradlassians

Members:

  • Brian McKenna
  • Ian Grunert
  • Joe Xie
  • Rupert Shuttleworth
  • Nathan Wilson

License: MIT

Sound license: Creative Commons from freesound.org - attributions to:

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

If you're using a 64-bit version of Mac OS X, you might need to run the game like so:

VERSIONER_PYTHON_PREFER_32_BIT=yes /usr/bin/python run_game.py

How to Play the Game

This is a tower defence game with a twist: creeps mutate! The game uses a genetic algorithm to select the best creeps and breed them together. A little bit of mutation is thrown in for a bit of spice, just like in evolution.

For both creeps and turrets, colours signify the specialties:

  • Red: health
  • Blue: armour
  • Green: speed

A good first strategy is to place one of each turret at the start of the map.

To place a turret, click its icon from the right side of the screen. Hover your cursor over a bright red square and click.

Sit back, relax and let the smooth jazz sooth your soul.

Development notes

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

Upload files to PyWeek with:

python pyweek_upload.py

Upload to the Python Package Index with:

python setup.py register
python setup.py sdist upload

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.