# start with a blank game #--------------------# # 1. beginning import pygame import gamebox # create a game window, # assign the instance to a variable called camera camera = gamebox.Camera(800, 600) # width=800, height=600 #--------------------# # 2. prep #--------------------# # 3. method that will be called every frame. # named "tick" with a parameter "keys" def tick(keys): ''' This is where the game goes :param keys: recognizes what the user does with :return: doesn't return anything, it is actively running ''' camera.display() # make that screen appear # set how many times the tick method is called # (i.e., # times to refresh the screen) ticks_per_second = 30 # keep this line the last one in your program gamebox.timer_loop(ticks_per_second, tick) # keep running the game until the window is closed