Miscellany
public python v1 · immutableimport sys, pygame,timefrom pprint import pprint as pprpygame.init()size = width, height = 320, 240speed = [1,1]black = 0, 0, 0screen = pygame.display.set_mode(size)ball = pygame.image.load("ball.gif")ballrect = ball.get_rect()ppr(ballrect)while 1: time.sleep(1) ballrect = pygame.mouse.get_pos() ppr(ballrect) screen.fill(black) screen.blit(ball, ballrect) pygame.display.flip()