~rick-rickspencer3/pygame-template/trunk

« back to all changes in this revision

Viewing changes to crashteroids/bigbullets.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 pygame
 
3
import crashteroidsconfig
 
4
 
 
5
class BigBullets(PowerUp):
 
6
 def __init__(self, tank):
 
7
  self.tank = tank
 
8
  imgname = config.big_bullets_img
 
9
  PowerUp.__init__(self, None, imgname)
 
10
  self.startPos()
 
11
 
 
12
 def explode(self):
 
13
  self.kill()
 
14
  self.tank.bigbullets = True
 
15
  pygame.mixer.Sound(config.get_big_bullets_sound).play()