Skip to content
Browse files

bug with light effects fixed

  • Loading branch information...
1 parent 6990c8b commit ea21cfc4eb3533d89e8dec2f990fb2d5b1d2ffcf michael committed Aug 4, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 sources/ship.py
View
9 sources/ship.py
@@ -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))

0 comments on commit ea21cfc

Please sign in to comment.
Something went wrong with that request. Please try again.