A game based off of tug of war games from starcraft.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.html
README.org
ai.py
colors.py
game.py
player.py
units.py
utils.py
world.py

README.org

Tug of war

Introduction

I wrote this game because I really enjoy the tug of war games on starcraft and I wanted to be able to play them with out starcraft installed + on linux. Xavier also really likes this game and how could I say no to him?

Installation

  1. Install python 2.7.
  2. Install pygame 1.91 for python 2.6.
  3. Download and extract the source for tug of war.
  4. Double click “game.py”
  5. Play!

Layout of the game:

/--------+----------------------------------------------------------------+--------\
|cBLU    | cAAA                                                           |cRED    |
|        |                                                                |        |
|        |                                                                |        |
|   *--> |                                                                | <--*   |
|        |                                                                |        |
| Blue   |      *--------->                               <---------*     | Red    |
| spawn  |                                                                | spawn  |
|        | *-------->                                          <--------* |        |
|        |                                                                |        |
|        |                                                                |        |
|        |                                                                |        |
\--------+----------------------------------------------------------------+--------/
                                                           
     /----\       /----------------------------------------------\       /----\
 Blue|cBLU|       |                                              |   Red |cBLU|
 pad:|    |       |                                              |   Pad:|    |
     |    |       |                                              |       |    |
/----+----+----\  |                                              |  /----+----+----\
|cGRE|cAAA|cRED|  |                                              |  |cGRE|cAAA|cRED|
|    |    |    |  |                                              |  |    |    |    |
|    |    |    |  |                                              |  |    |    |    |
\----+----+----/  |                                              |  \----+----+----/
     |cYEL|       |                                              |       |cYEL|
     |    |       |                                              |       |    |
     |    |       |                                              |       |    |
     \----/       \----------------------------------------------/       \----/

Further instructions to come…

Units:

Blue units
Fire rapid weak shots
  • HP: 9
  • Speed: 2
  • Damage: 1.5
  • Range: 30 + 20 for the radius
  • Rate: 3 ticks
Red units
Have a moderate strength area attack
  • HP: 9
  • Speed: 2
  • Damage: 1.5
  • Range: 10 + 20 for the radius
  • Rate: 1 tick
Yellow units
Have a quick weak melee
  • HP: 13
  • Speed: 3
  • Damage: 4
  • Range: 5 + 20 for the radius
  • Rate: 3 ticks
Green units
Have a strong slow shot
  • HP: 6
  • Speed: 1
  • Damage: 5
  • Range: 40 + 20 for the radius
  • Rate: 20 ticks

Tests

After one set of tests:

Blue beats Red
Blue loses to Yellow
Blue loses to Green
Green beats Blue
Green beats Red
Green Loses to Yellow
Red loses to Blue
Red loses to Green
Red beats Yellow
Yellow beats Blue
Yellow beats Green
Yellow loses to Red

Here’s a diagram of the dominance in one on one

/--------\        /--------\
|cBLU    |        |cRED    |
|        |        |        |
|        | -----> |        |
|        |        |        |
|        |        |        |
\--------/        \--------/
                      |
    ^  ^           ^  |
    |  |           |  |
    |  |           |  |
    |  +------------+ |
    |              || |
    |  +-----------+| v
    |  |            | 
/--------\        /--------\
|cGRE    |        |cYEL    |
|        |        |        |
|        | <----- |        |
|        |        |        |
|        |        |        |
\--------/        \--------/