~rick-rickspencer3/pygame-template/trunk

« back to all changes in this revision

Viewing changes to crashteroids/freeguy.py

  • Committer: Rick Spencer
  • Date: 2010-02-27 17:02:38 UTC
  • Revision ID: rick.spencer@canonical.com-20100227170238-z66mz7vgy0tjwbwa
original input of crashteroids making generic game

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from powerup import PowerUp
 
2
import random
 
3
import crashteroidsconfig
 
4
 
 
5
class FreeGuy(PowerUp):
 
6
 def __init__(self, game):
 
7
  PowerUp.__init__(self, game, config.free_guy_img)
 
8
  
 
9
 def explode(self):
 
10
  self.kill()
 
11
  self.game.addFreeGuy()
 
12
 
 
13
 
 
14