All pastes #471809 Raw Edit

Miscellany

public python v1 · immutable
·published 2007-05-05 04:06 UTC
rendered paste body
import 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()