Skip to content

Commit

Permalink
bug with light effects fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
michael authored and michael committed Aug 4, 2012
1 parent 6990c8b commit ea21cfc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sources/ship.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,17 @@ def blit(self, compteur):
self.sprite=self.single_sprites['sprite_ship_shooting_plasma.png']
screen.blit(self.single_sprites['glow_plasma_shooting.png'], \
(self.position_ship_x-54,self.position_ship_y-30))
else:
self.setRightSprite(self.weapon)



self.laser_light =self.laser_light-1
if self.laser_light >0:
self.sprite=self.single_sprites['sprite_ship_shooting_laser.png']
screen.blit(self.single_sprites['glow_laser_shooting.png'], \
(self.position_ship_x+14,self.position_ship_y-18))
else:

if self.laser_light <=0 and self.plasmaball_light <=0:
self.setRightSprite(self.weapon)


if self.bonus:
screen.blit(self.single_sprites['lifeBonusLight.png'],(self.position_ship_x-33,self.position_ship_y-32))
screen.blit(self.sprite,(self.position_ship_x,self.position_ship_y))
Expand Down

0 comments on commit ea21cfc

Please sign in to comment.