Exemplo n.º 1
0
 def __init__(self, char):
         pygame.sprite.Sprite.__init__(self)
         self.char = char
         self.maxMana = 300
         self.image, self.rect = load_png("mana.png")
         self.rect = self.image.get_rect().move(50, 570)
         self.update()
Exemplo n.º 2
0
 def __init__(self, char):
         pygame.sprite.Sprite.__init__(self)
         self.char = char
         self.maxLife = char.life
         self.image, self.rect = load_png("health.png")
         self.update()
         self.rect = self.image.get_rect().move(50, 550)
Exemplo n.º 3
0
 def __init__(self, position):
         pygame.sprite.Sprite.__init__(self)
         self.life = 100
         self.position = position
         self.image, self.rect = load_png('red.png')
         screen = pygame.display.get_surface()
         self.area = screen.get_rect()
         self.reinit(self.position)
Exemplo n.º 4
0
 def __init__(self, position, facing):
         pygame.sprite.Sprite.__init__(self)
         self.life = 65
         self.state = "still"
         self.image, self.rect = load_png('powershot.png')
         screen = pygame.display.get_surface()
         self.area = screen.get_rect()
         self.reinit(position, facing)
Exemplo n.º 5
0
 def __init__(self, char, facing):
     pygame.sprite.Sprite.__init__(self)
     self.state = "still"
     self.positioning = char
     self.image, self.rect = load_png("gun.png")
     screen = pygame.display.get_surface()
     self.area = screen.get_rect()
     self.reinit(facing)
Exemplo n.º 6
0
 def __init__(self, position):
     pygame.sprite.Sprite.__init__(self)
     self.life = 100
     self.position = position
     self.image, self.rect = load_png("block.png")
     screen = pygame.display.get_surface()
     self.area = screen.get_rect()
     self.rect.midtop = self.position
     pygame.event.pump()
Exemplo n.º 7
0
 def __init__(self, position, facing):
         pygame.sprite.Sprite.__init__(self)
         self.life = 10
         self.state = "still"
         self.clock = 0
         self.position = position
         self.image, self.rect = load_png('club.png')
         screen = pygame.display.get_surface()
         self.area = screen.get_rect()
         self.reinit(self.position, facing)
Exemplo n.º 8
0
 def __init__(self, spawn):
         pygame.sprite.Sprite.__init__(self)
         self.facing = "right"
         self.nature = "runt"
         self.speed = [1,1]
         self.life = 100
         self.state = "still"
         self.graphic = "runt.png"
         self.counter = 100
         self.spawn = spawn
         self.image, self.rect = load_png(self.graphic)
         screen = pygame.display.get_surface()
         self.area = screen.get_rect()
         self.reinit()
Exemplo n.º 9
0
 def __init__(self, nature, spawn, speed, life, state, graphic, attack):
         pygame.sprite.Sprite.__init__(self)
         self.facing = "right"
         self.nature = nature
         self.speed = speed
         self.life = life
         self.state = state
         self.graphic = graphic
         self.attack = attack
         self.counter = 100
         self.spawn = spawn
         self.image, self.rect = load_png(graphic)
         screen = pygame.display.get_surface()
         self.area = screen.get_rect()
         self.reinit()
Exemplo n.º 10
0
 def __init__(self, attack):
         pygame.sprite.Sprite.__init__(self)
         self.facing = "right"
         self.nature = "gunner"
         self.speed = [3,3]
         self.life = 100
         self.state = "still"
         self.graphic = "hero.png"
         self.counter = 100
         self.spawn = [650, 550]
         self.attack = attack
         self.mana = 0
         #Keeps the score, in all hopes.
         self.exp = 0
         self.image, self.rect = load_png(self.graphic)
         screen = pygame.display.get_surface()
         self.area = screen.get_rect()
         self.reinit()
Exemplo n.º 11
0
 def __init__(self, spawn, attack, facing, running):
         pygame.sprite.Sprite.__init__(self)
         self.facing = facing
         self.nature = "assassin"
         self.speed = [1,2]
         self.life = 1
         self.state = "whatever"
         #move with the assassin
         self.movepos = running
         self.graphic = "assassin.png"
         self.counter = 50
         self.spawn = spawn
         self.shotcounter = 50
         self.attack = attack
         self.image, self.rect = load_png(self.graphic)
         screen = pygame.display.get_surface()
         self.area = screen.get_rect()
         self.reinit()
Exemplo n.º 12
0
 def __init__(self, attack):
         pygame.sprite.Sprite.__init__(self)
         self.facing = "right"
         self.nature = "tesi"
         self.speed = [3,3]
         self.life = 300
         self.state = "still"
         self.graphic = "tesi.png"
         self.counter = 100
         self.spawn = [650, 550]
         self.attack = attack
         #Determines whether the user is pulling the mana.
         self.pull = 0
         self.mana = 0
         self.healing = 0
         self.exp = 0
         self.image, self.rect = load_png(self.graphic)
         screen = pygame.display.get_surface()
         self.area = screen.get_rect()
         self.reinit()