Page 2 of 2

Re: PÖNG

Posted: Mon Mar 07, 2011 5:30 am
by TechnoCat
Yeah, both pong and pong2 move at the speed of light.

Re: PÖNG

Posted: Mon Mar 07, 2011 7:41 am
by nevon
furi wrote:
TechnoCat wrote:
furi wrote:Well, you've convinced me. Pong2 is the changed one, with a weird way of using dt, and I kept up the original one for a pseudo-diff.
I still can't react in the fraction of a second the ball takes to move off screen.
Are you serious? It moves a crapload slower for me, and in fact, it's quite unplayable because of it. Do you own a supercomputer or something?
I suspect you're not using DT quite right. Here's the general idea:

Code: Select all

--We want x to increase by 50px per second
x = x+50*dt
By doing that, x will always move at 50px per second, regardless of your hardware.