Projectile is a totally legit pygame game. It's a bit basic, but it's easy to hack and tweak.
Continue down this page for installation instructions.
See pygame docs.
MacOS doesn't have python3 by default. An easy way to get it is with Homebrew. From a terminal, install Homebrew:
$> /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$> brew update
Then, install python3:
$> brew install python3
Then, use pip to install pygame:
$> pip3 install pygame
These instructions are for Windows 7. They might also work for later versions of Windows.
Windows doesn't have python3 by default. Download the installer for the latest version of Python 3.6 from here.
Then, run the installer. Make sure to check the "Add Python 3.6 to PATH" box, and click "Install Now." See Python documentation for more details.
When Python has finished installing, click on the Start Menu, type cmd.exe
, and hit [enter]
.
This opens a terminal.
To install pygame, type
py -m pip install pygame --user
and hit [enter]
.
You can check that it worked by running the Aliens game included with pygame:
py -m pygame.examples.aliens
See also pygame documentation.
Clone the game's repository to a suitable location:
$> git clone https://github.com/etomzak/projectile.git projectile_trunk
At the top of the Projectile project page (probably the same page that you're reading this text on), click "Clone or download," then "Download ZIP."
It will download a file named projectile-master.zip
.
Once it's finished downloading, open your Downloads folder.
Right-click on projectile-master.zip
, and click "Extract all..."
Choose where to extract the game to with "Browse."
It doesn't really matter where you put it as long as you can find it.
From a terminal:
$> cd projectile_trunk
$> ./projectile-game.py
A short help page is available with
$> ./projectile-game.py -h
Navigate to the folder where you extracted projectile-master.zip
.
Then, open the folder projectile-master
.
There is another folder in there named projectile-master
.
Open that one as well.
Then, find the file named projectile-game.py
(or just projectile-game
).
Double-click it to start the game.
Projectile is a simple platformer where you jump around and shoot at stuff. The game is composed of levels, players, baddies, and projectiles. You control a player and shoot projectiles at baddies. Baddies shoot projectiles back at you. Killing baddies gives you points. Getting killed by baddies makes you lose the game. My current personal best for the default, unmodified game is 3945 points.
The game has been designed to make it easy to add new players, baddies, projectiles, and levels. Currently there are two each of players, baddies, projectiles, and levels.
Key | Action |
---|---|
⬅️➡️ | Move |
⬆️⬇️ | Look up, look down |
[space] | Jump |
f | Shoot |
p | Pause |
q | Quit |
Level | Description |
---|---|
Zero is a simple level with some barriers. | |
BigRock is a hectic level with a picture of a big rock in the background. |