# pygame's init method must be called before all other pygame methods pygame.init() # Define colors colorBlack = pygame.Color(0, 0, 0) colorWhite = pygame.Color(255, 255, 255) # Define fonts font = pygame.font.Font('freesansbold.ttf', 32) # Init subsystems eventSystem = EventSystem() gameState = GameState() clock = pygame.time.Clock() world = World() world.loadWorldFromFile('Testworld.pfe') camera = Camera() movement = Movement() movement.setPuppet(camera) KeyMapping.setMovement(movement) # Create window screen = pygame.display.set_mode((1024, 758)) pygame.display.set_caption('Procedural Generation Viewer') # Initialization complete, continue with game loop gameState.advanceCurrentState() while gameState.getCurrentState() == gameState.GAME_STATE_RUNNING: # Reset screen screen.fill(colorBlack)