Page 2 of 2

Re: [minigame] Circular Pong

Posted: Sun Feb 24, 2013 10:01 pm
by 10$man
pakoskyfrog wrote:If you had looked inside the code you would have seen :

Code: Select all

function love.update(dt)
    -- platform moving ?
    if platform.pushLeft then
        platform.omega = platform.omega + platform.acc*dt
    elseif platform.pushRight then
        platform.omega = platform.omega - platform.acc*dt
    end
    platform.angle = platform.angle + platform.omega*dt
I got a master's degree in physics... I would be a shame on me to not use an acceleration/velocity/position system ^^

I don't know how you manage to get that much FPS, and it should have an impact on acceleration... unless...

Hmmm, my bad. I though i did something that i didn't ^^ (okay, shame on me :P )
Go back on the first post to have the corrected version.
i also tweaked the controls (eg, you decelerate now twice as much as you accelerate)
Ok, thank you :)
It works much better now!
Looks and runs pretty smooth

My best is 58 Seconds

Re: [minigame] Circular Pong

Posted: Mon Feb 25, 2013 4:00 am
by substitute541
Originally, in the fast paced version, my best was 4.4 seconds. Now, my best is 60.4 or one minute and 0.4 seconds.

Re: [minigame] Circular Pong

Posted: Mon Feb 25, 2013 11:26 am
by pakoskyfrog
That's what I call an improvement ^^
My personal record is 87s