Esempio n. 1
0
 def load_resources():
     Zombie.img.clear()
     Zombie.img_gore_particles.clear()
     Zombie.img_gore_particles = core.load_spritesheet_alpha(core.Var.path_zombiegore, 64, 3, 2)
     Zombie.img = core.load_spritesheet_alpha(core.Var.path_zombie, 128, 2, 2)
     Devil.img = core.load_image_alpha(core.Var.path_devil)
     Devil.img_gore_particles = core.load_spritesheet_alpha(core.Var.path_zombiegore, 64, 3, 2)
     Devil.img_fireball = core.load_image_alpha(core.Var.path_fireball)
Esempio n. 2
0
 def load_resources():
     imglist = core.load_spritesheet_alpha(core.Var.path_hero, 128, 3, 1)
     Hero.img_hero_body = imglist[0]
     Hero.img_hero_hands = [imglist[1], imglist[2]]
     Hero.img_flash = core.load_image_alpha(core.Var.path_flash)
     sabersprites = core.load_spritesheet_alpha(core.Var.path_starwars, 256, 3, 5)[0:14]
     Hero.img_saber = [sabersprites[0], sabersprites[7], sabersprites[1:7], sabersprites[8:14]]
     Hero.img_shell = core.load_spritesheet_alpha(core.Var.path_shell, 16, 2, 1)