<commit_before>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). Spacewar is licensed
under the LGPL (see LICENSE.LGPL-2.1).

### 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 June 2011 I discovered that the basic pygame library that the
python version of the game is built on had been ported to Javascript
in the form of [gamejs](http://gamejs.org) so I decided to dig up
original, push the sources to github and work on a Javascript version
of the game.


### Screenshots

<img src="http://kanaka.github.com/spacewar/spacewar1.png" width=400>&nbsp;<img src="http://kanaka.github.com/spacewar/spacewar2.png" width=400>


### 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.  The game is timed
and 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-Ctrl

    Player 2:
        Left:     a
        Right:    d
        Thrust:   w
        R-Thrust: s<commit_msg>Expand screenshot size and add labels.<commit_after>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). Spacewar is licensed
under the LGPL (see LICENSE.LGPL-2.1).

### 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 June 2011 I discovered that the basic pygame library that the
python version of the game is built on had been ported to Javascript
in the form of [gamejs](http://gamejs.org) so I decided to dig up
original, push the sources to github and work on a Javascript version
of the game.


### Screenshots

The game menu:

<img src="http://kanaka.github.com/spacewar/spacewar1.png">


1 human player against 3 AI players:

<img src="http://kanaka.github.com/spacewar/spacewar2.png">


### 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.  The game is timed
and 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-Ctrl

    Player 2:
        Left:     a
        Right:    d
        Thrust:   w
        R-Thrust: s
{'fraction_non_alphanumeric': 0.06056563500533618, 'fraction_numerical': 0.0096051227321238, 'mean_word_length': 3.2218468468468466, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1129970', 'n_tokens_mistral': 1094, 'n_tokens_neox': 1014, 'n_words': 551}