# CSE 142 Python sessions # This is a basic template file that you can use for creating a new game. # Look at the examples from lecture and the pyGame web site tutorials # and fill in the rest of this file with your own game's code. from pygame import * from pygame.sprite import * init() # starts up pyGame screen = display.set_mode((width, height)) display.set_caption("window title") # create / set up sprites. while True: ev = event.wait() # pause until event occurs if ev.type == QUIT: quit() # shuts down pyGame break # update sprites, etc. screen.fill((255, 255, 255)) # white background display.update() # redraw screen