Exemplo n.º 1
0
 def __init__(self, unit, maxHp, position = Coordinate(0, 0)):
   RunnableList.__init__(self)
   self.unit = unit
   self.position = Coordinate(position)
   unitImage = unit.getImage()
   self.append(GameObject(image = unitImage,
                          position = self.position - Coordinate(60, 0)))
   self.append(LifeBar(unit, maxHp, self.position + Coordinate(20, 0)))
Exemplo n.º 2
0
 def __init__(self, unit, maxHp, position):
   RunnableList.__init__(self)
   self.append(GameObject(image = 'graphics/lifeBox.bmp', position = position))
   self.append(self.Bar(unit, maxHp, position))