pygame is
Simple DirectMedia Layer is
Site Swing
Pythentic Asteroids

Pythentic Asteroids - 0.1

retroredge (retroredge)



In 1998 I wrote my first Java program, 'Authentic Asteroids' which was a clone of the classic Atari Asteroids arcade game of 1979. This is a Python / Pygame port of my Java game. To run the game go to the src directory and type: python Keys: Z,X rotate, N,B thrust & fire, H hyperspace or Cursor keys rotate and thrust, Space fire Enter start P pause O frame advance whilst paused F toggle full screen moode Features: Intersecting line geometry used for collision detection. Authentic asteroids shapes Damped ship handling Small and large saucers Full screen Fading explosion debris Engine thrust jet Extra life at 10,000 Hyperspace My original Java clone of this game used simple bounding collision detection. I wanted to improve on that in this Python version. If a bounding box collision occurs between the ship and a rock extra checks are made using the code in the to determine if any of the line segments intersect. All the code is Open Source GPL This is my first game with Pygame. The code is pretty rough around the edges and is probably not very Pythonic. Any feedback welcome. Turn down the lights, turn up the volume and travel back to 1979!


First version.


Home Page:


click to view original size


Pythentic Asteroids - 0.1 - Dec 4, 2008 account Comments

If you wish to leave a comment with your account, please sign in first.

November 4, 2015 9:02pm - retroredge - nickname: (retroredge)
I've put the code on GitHub -
December 16, 2008 4:38pm - retroredge - nickname: (retroredge)
December 7, 2008 11:57am - retroredge - nickname: (retroredge)
Thank you all for the comments, it's great to get feedback. I put a few nights in to this even though it's a simple game.

@geometrain The keys are left, right, up and space. I provide two key mappings, one for those who like cursor keys (probably what everyone tries first) and then the one I like which is the z,x,n,b mapping.

As for slowing the ship down you could edit the ship class try changing the 'maxVelocity' variable to a lower value or alter the 'acceleration' variable.

What I'll do for the next release is provid a properties file with all these tweakables in them.
December 5, 2008 12:13am - Ian Mallett - nickname: (geometrian)
Slow the ship and bullets down a bit (maybe), and get some other keys (I recommend LEFT ARROW, RIGHT ARROW, UP ARROW, and SPACE for left turn, right turn, accelerate, and shoot, respectively).
December 4, 2008 9:43pm - pymike - nickname: (pymike) - 5/5
Ahhhh.... Asteroids...
*Re-enters reality*

I love this! You did an awesome job with it. Only one minor complaint; you move a wee bit too fast. Otherwise, this is perfect! Niiiiice work =)
December 4, 2008 9:37pm - pymike - nickname: (pymike)
Zomagadz! Asteroids! Downloading!

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Feb 21, 2017

Jan 31, 2017

Jan 24, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)