Hi there!
I've written a small demo pong game. There are 2 players, one is cpu
controlled. To sync there movement i use
clock = pygame.time.Clock()
and in the while loop:
milli = clock.tick()
seconds = milli/1000.
on checking the events it's:
if event.type == KEYDOWN:
if event.key ==
at a constant frame rate, say 60 FPS, and then define pixels
per frame speeds instead of pixels per second.
From: Thomas pummer.tho...@gmail.com
To: pygame-users@seul.org
Sent: Mon, January 31, 2011 6:22:46 AM
Subject: [pygame] PyGame Windows Key Behaviour
Hi
On Mon, Jan 31, 2011 at 4:22 AM, Thomas pummer.tho...@gmail.com wrote:
cpu changes his position with an equal function, until it reaches the
height of the ball
under winXP cpu and player can move with an equal speed
under win7 the player is significant slower than the cpu. it seems
that a
Hi Thomas,
can you just post all the code? in particular what's missing is seeing how
the player ball and cpu are moved and how those things relate together.
There are definitely people on the list who could easily identify the cause
of your problem in an instant with that information.
Also,