Exemplo n.º 1
0
 def load_knight(hue):
     knight_x, knight_y = self.map.get_coordinates(9 * hue, 9 * hue)
     direction = hue and Direction.WEST or Direction.SOUTH
     knight = Knight(knight_x, knight_y, direction)
     knight.zindex=10
     knight.color = 255 - (150 * hue), 255 - (150 * ((hue + 1) % 2)), 255
     mage_x, mage_y = self.map.get_coordinates(7 * hue + 1, 7 * hue + 1)
     mage = Mage(mage_x, mage_y, direction)
     mage.zindex=10
     mage.color = 255 - (150 * hue), 255 - (150 * ((hue + 1) % 2)), 255
     return [knight, mage]
Exemplo n.º 2
0
 def load_knight(hue):
     knight_x, knight_y = self.map.get_coordinates(9 * hue, 9 * hue)
     direction = hue and Direction.WEST or Direction.SOUTH
     knight = Knight(knight_x, knight_y, direction)
     knight.zindex = 10
     knight.color = 255 - (150 * hue), 255 - (150 *
                                              ((hue + 1) % 2)), 255
     mage_x, mage_y = self.map.get_coordinates(7 * hue + 1, 7 * hue + 1)
     mage = Mage(mage_x, mage_y, direction)
     mage.zindex = 10
     mage.color = 255 - (150 * hue), 255 - (150 * ((hue + 1) % 2)), 255
     return [knight, mage]