pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Insectoid!

Insectoid! - 0.5

Jaroslav Pekar (nightblair)

Tags:

Description

Insectoid! is my first attempt to create a game in python 2.5, using pygame. I strongly discourage from using the code to learn something about programming. The game is in messy beta state. And I probably won't finish it. Controls: arrow keys for moving, left ctrl or right ctrl for fire.

Changes

Sound and new font are new to v0.5

Links

Home Page: http://dweller.php5.sk/index.php?page=stuff
Source: http://dweller.php5.sk/files/insectoid05src.zip

Screenshot


click to view original size

Releases

Insectoid! - 0.5 - Feb 6, 2010
Insectoid! - 0.4 - Jul 27, 2008

Pygame.org account Comments

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

July 30, 2008 4:20pm - Jaroslav Pekar - nickname: (nightblair)
Thank you for your comment! :)
It was coded in Python 2.5, so I presume the problem will be there. I do not know, what will work in 2.4 and what not, becouse I just know only 2.5.
No need to apologize, I am aware of the horrible code, as i wrote in the description. I'll try to improve it in the next project (I hope it will be any ;) )
July 29, 2008 11:53pm - Jordan Trudgett - nickname: (tgfcoder) - 1/5
There were a few problems on my machine:

Traceback (most recent call last):
File "insectoid.py", line 35, in ?
from explosions import *
File "explosions.py", line 17
class Effect():
^
SyntaxError: invalid syntax

() cannot be there in Python 2.4. Changing all class X(): to class X:,

text = self.font2.render(menuapp[1], 0, (5, 5, 210))
pygame.error: SDL_ttf render failed

Without anti-aliasing, my text renders fail for some reason. I changed them all to 1.

self.effect_field.add(Effect(10,10))
TypeError: __init__() takes exactly 4 arguments (3 given)

I can't explain this. I just passed in 20 for the fourth argument. But shooting was broken.

The graphics looks promising, but the code is horrible.
Sorry.
spotlight

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

Sep 8, 2014

Sep 7, 2014


Sep 5, 2014

Aug 26, 2014

Aug 22, 2014

Aug 21, 2014


Aug 18, 2014

Aug 2, 2014


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