Skip to main content

A clone of the game Asteroids, with some extra bells and whistles

Project description

Pysteroids is a clone of the game Asteroids written in Python. Although I call it a clone, I might have added a few bells and whistles that weren’t in the original (I’m not exactly sure what the original had).

Also, this is the first game I’ve finished to completion, so it may not be the best. I did work hard on it, so hopefully you’ll have fun with it! If not, oh well.


Pysteroids depends on the following libraries:

  • NumPy >= 1.7.1
  • Pyglet > 1.4.1 (specifically, 1.2alpha1)

You also need OpenAL or AVBin installed for audio.

When installing, setuptools should pull Numpy and Pyglet down automatically (But not OpenAL or AVBin). It will pull the Pyglet alpha from its development site. The PyPI version of Pyglet (1.4.1) doesn’t include a patch which fixes some issues with pyglet not initializing. Not all users may have this issue, but Pyglet 1.2alpha1 seems to be stable and SHOULD work for everyone. If not, you can change the dependency in and try the stable version. Unfortunately, Pyglet development seems to be at a standstill, so this is the best option I could come up with.


  • W: Move ship forward
  • A/D: Rotate ship
  • Space: Fire
  • Shift: Teleport


Pysteroids is copyrighted under the MIT license. A copy of it should be included in the source distribution, in a file called LICENSE.txt. You can get more info there. The source code at Github also has the license.


You can find the source code in full at

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pysteroids, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pysteroids-1.0.1.tar.gz (369.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page