pygame is
Simple DirectMedia Layer is
Site Swing
Asteroids 2: The Vector

Asteroids 2: The Vector - 2.0.0

Ian Mallett (geometrian)



This is a vector graphics version of asteroids. I made v.1.0.0 in less than one day, and late at night, so obviously this game is neither perfect nor incredibly impressive. Still, it is kind of fun.

I decided to make an asteroids game just because PyMike has so many. Remakes are OK to do, but they just aren't as thrilling as making a game the first time, in my opinion. This scientific experiment proved that, at least for me...

As you may have guessed by the name and the screenshot, this is not the next version of my previous Asteroids game: ; It is a SEQUEL.

Have fun!


This program features:
-Vector Graphics
-Anti-Aliased Asteroids
-Particle Systems (see screenshot)
-Perfect Ship/Bullet/Asteroid Collision Detection
-FPS regulator for constant framerate.


CTRL, SPACE, x, z, ENTER = Fire
Left Arrow = Turn Left
Right Arrow = Turn Right
Forwards Arrow = Accelerate Forwards
Backwards Arrow = Slow Down


-Added asteroids with sides of 3-8
-Made perfect collision detection with each asteroid.
-Made it so you can't see particles through yourself.
-You get a life after every five levels
-Added a timer, and so a constant framerate. The max framerate I got was in the 400s, so I set the framerate at 200. That way, the framerate shouldn't drop until like level 25 or so.


Home Page:


click to view original size


Asteroids 2: The Vector - 4.0.0 - Nov 11, 2013
Asteroids 2: The Vector - 3.0.0 - Feb 29, 2008
Asteroids 2: The Vector - 2.0.0 - Feb 29, 2008
Asteroids 2: The Vector - 1.0.0 - Feb 26, 2008 account Comments

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

November 11, 2013 12:40am - Ian Mallett - nickname: (geometrian)
Version 4.0.0 released!
February 29, 2008 8:28pm - pymike - nickname: (pymike) - 5/5
I'm jealous of your math skills... ;)
February 29, 2008 7:48pm - Ian Mallett - nickname: (geometrian)
Version 3.0.0 released!
February 29, 2008 5:53pm - pymike - nickname: (pymike) - 5/5
Wow! Getting even better! Thanks for letting me use your awesome collisions!
February 29, 2008 3:46pm - Wil Alvarez - nickname: (satanas666) - 4/5
Hey very cool game. I love the particles effect... Boost it's pretty amazing :D

- Explosion effect for the spaceship when it smash against an asteroid
- Invincibility time when you're appearing on screen after a crash
- A nice message that works like intro for each level
- Maybe a little of color for the boost particles (some kind of orange could be)

Overall great game! And i'll tell you again... I really love your game physics
February 29, 2008 3:00pm - Ian Mallett - nickname: (geometrian)
Version 2.0.0 released!
February 28, 2008 5:32am - publeo - nickname: (publeo)
yes it's "pygame.time.Clock()", pymike uses it for his Asteroids follow up.
Thanks for the code anyway! I'm busy writing a first python game myself, always great to see the way others make their games!
February 27, 2008 5:23pm - Ian Mallett - nickname: (geometrian)
Theoretically, after a certain point, processor speed doesn't matter much because the display must catch up. I have no timer, but it would be easy to add one. I think it's the pygame.time module?
February 27, 2008 9:22am - publeo - nickname: (publeo) - 5/5
great game, neat code! one thing i'm interested in is do you use a timer or runs the game twice the speed if my computer is twice as fast, i couldn't find a timer or something like that. realy like your work anyway!
February 26, 2008 8:34am - pymike - nickname: (pymike) - 5/5
Yay! Asteroids! A very different sort of asteroids though.. interesting concept. Beautiful vector graphics! I want to make an asteroids game now! ;-) Nice work!
February 26, 2008 2:20am - Ian Mallett - nickname: (geometrian)
Version 1.0.0 released!

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

Jan 24, 2017

Jan 19, 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)