from object_classes import * from interaction import interaction from A_Star import A_Star pygame.init() pygame.font.init() pygame.mixer.init() pygame.mixer.music.load('audio/tristram.mp3') pygame.mixer.music.play(-1) pygame.mixer.music.set_volume(.25) screen = pygame.display.set_mode((1280, 960)) # 40, 30 Tile.pre_init(screen) clock = pygame.time.Clock() FPS = 20 total_frames = 0 dungeon = pygame.image.load('images/map1.png') survivor = Survivor(128, 512) while True: screen.blit(dungeon, (0,0) ) Zombie.spawn(total_frames, FPS) survivor.movement() Bullet.super_massive_jumbo_loop(screen)
from tileC import Tile from object_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) screen = pygame.display.set_mode((704, 448)) # 32, 32 Tile.pre_init(screen) clock = pygame.time.Clock() FPS = 60 total_frames = 0 dungeon = pygame.image.load('images/dungeon.jpg') # zombie1 = Zombie(80, 80) survivor = Survivor(32 * 2, 32 * 4) while True: screen.blit(dungeon, (0, 0)) Zombie.spawn(total_frames, FPS)