|
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. |
|
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 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).
Each player fires one shot in turn. Main controls:
| Up/Down | Shot power +/-1 |
| Ctrl+Up/Ctrl+Down | Shot power +/-5 |
| Left/Right | Angle +/-1 |
| Ctrl+Left/Ctrl+Right | Angle +/-5 |
| A | Select ammo/targeting/shield |
| Space | Fire (ends turn) |
| ESC | Pass (ends turn) |