Exemplo n.º 1
0
 def getShot():
     shoot = dict()
     shootMap = loadGrid(pygame.image.load('data/animations/shoot.png').convert(),(35,50))
     angles = ['0','45','90','135','180','225','270','335']
     for angle in angles:
         shoot[angle] = Animation(shootMap[angles.index(angle)],True)
     return shoot
Exemplo n.º 2
0
 def getWalk():
     walk = dict()
     walkMap = loadGrid(pygame.image.load('data/animations/walk.png').convert(),(35,50))
     angles = ['0','45','90','135','180','225','270','335']
     for angle in angles:
         walk[angle] = Animation(walkMap[angles.index(angle)],True)
     return walk