All pastes #471808 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-05 04:06 UTC
rendered paste body
import sys, pygame,time
from pprint import pprint as ppr
pygame.init()

size = width, height = 320, 240
speed = [1,1]
black = 0, 0, 0

screen = 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()