def Main_Window(self): self.display = pygame.display.set_mode((1280,700)) manager = ResManager() pygame.display.set_icon(manager.get_image('icon.png')) pygame.display.set_caption("Map Editor") self.display.fill((200,220,100)) pygame.display.flip() i = 0
def slots_for_base(self): manager = ResManager() texture = manager.get_image("interface_bg.png") for i in range(3): first_texture = texture.get_rect() first_texture.center=(500,90+160*i) self.display.blit(texture,first_texture) pygame.display.update()
def __init__(self, width=640, height=480, color=(255, 255, 255), fps=40, scene=None, manager=ResManager()): pygame.init() self.set_display(width, height) self.fps = fps self.__manager = manager self.scene = scene self.__display.fill(color) pygame.display.flip()