pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Pythentic Asteroids

Pythentic Asteroids - 0.1

retroredge (retroredge)

Tags:

Description

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 asteroids.py 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 geometry.py 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!

Changes

First version.

Links

Home Page: http://www.pygame.org/
Source: http://www.mediafire.com/?nzmgdznnqdn
Windows: http://www.mediafire.com/?nzmgdznnqdn
Mac: http://www.mediafire.com/?nzmgdznnqdn

Screenshot


click to view original size

Releases

Pythentic Asteroids - 0.1 - Dec 4, 2008

Pygame.org account Comments

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

December 16, 2008 4:38pm - retroredge - nickname: (retroredge)
http://en.wikipedia.org/wiki/Asteroids_(video_game)
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!
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Nov 27, 2014


Nov 13, 2014

Nov 11, 2014


Nov 10, 2014

Nov 9, 2014

Nov 6, 2014


Nov 4, 2014

Nov 3, 2014

Oct 28, 2014

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