Total Fragmentation

Total Fragmentation is a 2D gunnery game in the style of the classic DOS game Scorched Earth.

Total Fragmentation is written in Python/Pygame, so it runs on Windows, Mac, and Linux. Total Fragmentation also features Internet multiplayer action. Total Fragmentation is distributed as Python source code under BSD.

Downloading and Installation

Total Fragmentation

Download this and unzip anywhere.

Download Total Fragmentation (94 KB)

Python Stuff

To run Total Fragmentation, you need Python and the Pygame and Numeric libraries for Python. These can be downloaded here:

Python

Pygame

Numeric Python


How To Play

Starting a game

Run a command line like this:
    python game.py 3 Dave Biff CPU1:lob CPU2:solve

The number after "game.py" is the number of rounds to play.

The remaining items are the names of the players. A name without a colon is a human player. A name with a colon is a bot. The part after the colon specified the bot AI algorithm to use. It can be any of "stupid" (aims randomly), "lob" (aims by trial and error), "bank" (tries to set up bank shots when the ceiling is bouncy), "solve" (aims by solving dynamical equations that predict the shot trajectory), and "kill" (aims by simulating trajectories--the best AI).

In-Game Controls

Each player fires one shot in turn. Main controls:

Up/DownShot power +/-1
Ctrl+Up/Ctrl+DownShot power +/-5
Left/RightAngle +/-1
Ctrl+Left/Ctrl+RightAngle +/-5
ASelect ammo/targeting/shield
SpaceFire (ends turn)
ESCPass (ends turn)

Authors and Contact


David Mandelin -- mandelin@cs.berkeley.edu
Bill McCloskey
AJ Shankar