Ejemplo n.º 1
0
 def onCreate(self, x, y):
     Entity.onCreate(self, x, y)
     self.maxHealth = 100
     self.health = self.maxHealth
     self.numShots = 4
     self.currShots = 0
     self.fireRate = 10
     self.currFireRate = 0
     self.thrustVal = 1.0
     self.maxVelX = 10
     self.maxVelY = 10
     self.thrusting = False
     return False