from generators import * W = 30 H = 20 MULT = 32 SIZE = (MULT*W, MULT*H) pygame.init() screen = pygame.display.set_mode(SIZE) tilemap = Tilemap(Tileset("sprites/Tiles/1 Tiles/FieldsTile_38.png"), (W, H)) trashcans = trashcanGenerator() houses = householdGenerator() garbagetruck = Garbagetruck().setHouses(houses).setTrashcans(trashcans) running = True while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False screen.fill((0, 0, 0)) tilemap.render() screen.blit(tilemap.image, tilemap.rect) screen.blit(garbagetruck.getImage(), garbagetruck.printme()) for i in trashcans: screen.blit(i.getImage(), i.printme()) for h in houses: screen.blit(h.getImage(), h.printme()) pygame.display.update() pygame.quit()