Top down one or two player space game with gravity
PySpaceWar is an open-source game, loosely inspired by Spacewar, Gravity Wars, and a bit by Star Control (I and II).
Two ships duel in a gravity field. Gravity doesn't affect the ships themselves (which have spanking new anti-gravity devices), but it affects missiles launched by the ships.
You can play against the computer, or two players can play with one keyboard. There is also a Gravity Wars mode, where the two ships do not move, and the players repeatedly specify the direction and velocity of their missiles.
License: free
Requirements:
- Python 2.4 (or newer)
- PyGame 1.6 (or newer)
- Psyco is optional, but highly recommended for speeding up the game
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| no | yes | no | yes | no | no | yes |
Submitted by anonymous on 2006-01-22.

The trunk bombs out with this after you install it: File "/usr/bin/pyspacewar", line 33, in main() File "/usr/lib/python2.5/site-packages/pyspacewar/main.py", line 71, in main ui.init() File "/usr/lib/python2.5/site-packages/pyspacewar/ui.py", line 1911, in init self._init_pygame() File "/usr/lib/python2.5/site-packages/pyspacewar/ui.py", line 1954, in _init_pygame icon = pygame.image.load(find('icons', 'pyspacewar48.png')) pygame.error: Couldn't open /usr/lib/python2.5/site-packages/pyspacewar/icons/pyspacewar48.png
Looks like the new icon didn't make it into SVN.... :(
Very disorganized "release" if you can call it that...
I had trouble because 64-bit systems don't run python Numeric very well; I got an error about "arrays not aligned for copy", which was resolved by commenting out the offending line (ui.py line 845) or installing NumPy and replacing all the references to Numeric with NumPy. The the fun began!
I think limiting the number of shots is a good idea; I would also like to see autofire, the ships affected by gravity, different kinds of shots, powerups, and LAN play. But even without those "improvements", the game is currently playable and a load of fun!