https://github.com/kanaka/spacewar
Spacewar arcade game using python and pygame/SDL
https://github.com/kanaka/spacewar
Last synced: 2 months ago
JSON representation
Spacewar arcade game using python and pygame/SDL
- Host: GitHub
- URL: https://github.com/kanaka/spacewar
- Owner: kanaka
- Created: 2011-06-24T16:58:12.000Z (almost 14 years ago)
- Default Branch: gh-pages
- Last Pushed: 2016-07-05T17:41:59.000Z (almost 9 years ago)
- Last Synced: 2025-03-25T14:51:16.821Z (3 months ago)
- Language: Python
- Homepage:
- Size: 4.65 MB
- Stars: 13
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.json
- License: LICENSE.LGPL-2.1
Awesome Lists containing this project
README
Spacewar is an arcade game in the rich tradition of creating knockoffs
of the original [Spacewar!](http://en.wikipedia.org/wiki/Spacewar!)
(considered one of the first computer games).### Background
Building something real is always a good way to force yourself to
learn a program. It so happened that at the end of 2004 I wanted to
learn python (for various reasons) and this game was the result. In
2016 I ported the game to the web using the Phaser game framework.
Play it online.### Screenshots
The game menu:
1 human player against 3 AI players:
### Game Play
Spacewar is a multi-player game. Each person controls a ship on
a looping "toroid" plane. Each ship can rotate, has a thruster that
accelerates the ship forward or backward, and has has a blaster weapon.
There is also a sun in the center of the screen. All game objects exert
gravitational force on all other objects. The sun is much more massive
(but not larger) than other objects. Ships take damage if if they
collide with a bullet, the sun, or another ship. Players score a point
when they kill another player. If a player dies "accidentally", they
lose a point.The controls for each player are as follows:
Player 1:
Left: Left Arrow
Right: Right Arrow
Thrust: Up Arrow
R-Thrust: Down Arrow
Fire: Right-CtrlPlayer 2:
Left: a
Right: d
Thrust: w
R-Thrust: s
Fire: TabPlayer 3:
Left: j
Right: l
Thrust: i
R-Thrust: k
Fire: SpacePlayer 4:
Left: Numpad 2
Right: Numpad 8
Thrust: Numpad 4
R-Thrust: Numpad 5
Fire: Numpad 0### License
Spacewar is licensed under the LGPL 2.1 (Less GNU Public License 2.1).
See LICENSE.LGPL-2.1 for the full license.### Acknowlegements
Some of the graphics, music/sfx, and original initialization code in
Spacewar were derived from
[SolarWolf](http://pygame.org/shredwheat/solarwolf) by Pete Shinners.