I am coding a game using the arcade module and don't know how to centre the window so it appears directly in the middle of my screen rather than in the top left. My current code for creating the window is as follows:
class MyGame(arcade.Window):
def __init__(self, width, height):
super().__init__(width, height, "Pong!")
arcade.set_background_color(arcade.color.BLACK)
After completing the methods for this class, my main function is:
def main():
""" Main method """
game = MyGame(SCREEN_WIDTH, SCREEN_HEIGHT)
arcade.run()
Edit: Re-worded a couple of sentences to better explain the issue