pygame is
Simple DirectMedia Layer is
Site Swing

Asteroids - 6.0.0

Ian Mallett (geometrian)



This is a recreate of Asteroids with better graphics.

I made version 1.0 in < one day.
The controls are arrow keys to move, spacebar to shoot, "s" to shield, "b" to drop bomb
You get one life, and then it restarts at level 1.
There are an infinite number of levels!
firing takes a small but significant amount of rechargeable energy.
A beautiful explosion which took me a while to do
the spaceship is based on a graphic someone made of a star trek vessel.
.jpg makes the screenshot low-quality. Better in reality
the bullets are UV Beta pictures of the sun


Made the asteroids and bombs [i]explode[/i]! A few minor issues corrected.


Home Page:


click to view original size


Asteroids - 7.1.0 - May 10, 2008
Asteroids - 6.0.0 - Oct 20, 2007
Asteroids - 5.0.0 - Oct 20, 2007
Asteroids - 4.0.0 - Oct 13, 2007
Asteroids - 1.0 - Oct 8, 2007 account Comments

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

May 12, 2008 5:41pm - Ian Mallett - nickname: (geometrian)
It's not. The game is mostly the same, but I've bumped the running framerate from 200fps to 60fps. You can't tell the difference, but it means that subsequent levels don't slowly degrade performance. The code is better too--optimized and clear. For this release, I focused mainly on "upgrading" this code rather than changing game elements.
May 12, 2008 11:59am - pymike - nickname: (pymike) - 4/5
Nice new code. Gameplay doesn't feel any different though.
May 10, 2008 9:05pm - Luca Fabbri - nickname: (keul) - 3/5
Explosion are really great.
May 10, 2008 6:43pm - Ian Mallett - nickname: (geometrian)
Version 7.1.0 released!
December 1, 2007 1:03pm - pymike - nickname: (pymike) - 4/5
Great game! I had fun playing it. Gave me some great ideas for my asteroids game.
October 20, 2007 9:13pm - Ian Mallett - nickname: (geometrian)
Version 6.0.0 released!
October 20, 2007 7:04pm - Ian Mallett - nickname: (geometrian)
Version 5.0.0 released about 2 hrs ago.
October 17, 2007 9:19pm - Ian Mallett - nickname: (geometrian)
It runs fine on newish hardware (Me: 2 gigs ram, 1.7GHz dual core), so I can see where older machine would run it slower. Luckily, I put most of the speed constants at the top, so you could just double them all. I'm not sure what you mean by "earthshaker"?
October 17, 2007 9:11am - Evan - nickname: (evdude) - 3/5
very slow, but graphics are good. where did you get the earthshaker?
October 13, 2007 6:55pm - Ian Mallett - nickname: (geometrian)
Version 4.0.0 released!
October 9, 2007 10:55pm - Ian Mallett - nickname: (geometrian)
I made the explosion by taking a (about) 30 frame animation...
(incidentally, this page contains a lot of annoying ads).

...and using Animation Shop Pro and Paint Shop Pro to save each frame as a low size .png with a mask for the transparent parts. They're in the directory Self_Explode. I then play the explosion at about (1 explosion frame)/(3 game frames) or something like that.

As for Astrocrash, I must say that the reason I decided to make this is because of Astrocrash. Astrocrash particularly inspired me because it has many things that I hoped could be improved, (less than spectacular explosions, physics, etc.), and according to the page you mentioned, Astrocrash is a dead project. Besides, simple games like this should be made by every programmer, as a learning experience. I realized I hadn't, and, though I didn't learn much new, I had fun.

The game concept is neither of our original ideas. It has been around under the name "Asteroids" since the dawn of graphical computers. I'm all for the Open-Source movement, but if you want me to say it, the only thing I took from Astrocrash is the image for the Asteroid.
October 8, 2007 11:13pm - Anonymous - nickname: (pywiz32)
P.S. how do get the seperate frames for a gif image?
October 8, 2007 11:07pm - Anonymous - nickname: (pywiz32)
nice :)

I was making a version of Astrocrash like this, but then came up with something else, and never touched it again.

Please link this page to the ariginal astrocrash, please.

Here is the link:

also give at least credit to all the people that made the original atrocrash for the idea.

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)