PÖNG

Show off your games, demos and other (playable) creations.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: PÖNG

Post by TechnoCat »

Yeah, both pong and pong2 move at the speed of light.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: PÖNG

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 56 guests