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