from classes import * from interaction import interaction from A_Star import A_Star from time import sleep pygame.init() pygame.font.init() pygame.mixer.init() pygame.mixer.music.load('Audio/zombie_theme.ogg') pygame.mixer.music.play(-1) #-1 : iur music will replay again, never stops screen = pygame.display.set_mode((704, 448)) # 32, 32 Tile.preInit(screen) #tiles are made using function. clock = pygame.time.Clock() FPS = 20 totalFrames = 0 dungeon = pygame.image.load('images/dungeon.jpg') survivor = Survivor(32 * 2, 32 * 4) while True: screen.blit(dungeon, (0,0) ) Zombie.spawn(totalFrames, FPS)
from tileC import Tile from classes import * from interaction import interaction from A_Star import A_Star from time import sleep pygame.init() pygame.font.init() pygame.mixer.init() pygame.mixer.music.load('Audio/zombie_theme.ogg') pygame.mixer.music.play(-1) #-1 : iur music will replay again, never stops screen = pygame.display.set_mode((704, 448)) # 32, 32 Tile.preInit(screen) #tiles are made using function. clock = pygame.time.Clock() FPS = 20 totalFrames = 0 dungeon = pygame.image.load('images/dungeon.jpg') survivor = Survivor(32 * 2, 32 * 4) while True: screen.blit(dungeon, (0, 0)) Zombie.spawn(totalFrames, FPS) Zombie.update(screen, survivor)