how to create a pygame rect code example Example: pygame.Rect pygame.Rect(top, left, width, height) # all values are integers in pixels