예제 #1
0
파일: resources.py 프로젝트: sabren/blaze
 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
예제 #2
0
파일: resources.py 프로젝트: sabren/blaze
 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