Page 1 of 2
[minigame] Circular Pong
Posted: Sat Feb 23, 2013 6:32 pm
by pakoskyfrog
In my search to make some simple examples (there are two on the forum atm)
I've got the idea of a pong, it's simple ! but... already seen many times.. so... a solo / rotative one !
And it turns out that it is not simple to make it work properly (mathematically mostly), and from an example it became a minigame ! Behold ... the Circular Pong !
- screenshot with geometrics
- Capture-cirpong.PNG (67.22 KiB) Viewed 5423 times
You can make it show geometric information with "g"
"escape" will reinit the game
"left" and "right" will make you accelerate/decelerate
Keep the ball inside the circle as long as you can
Just one last thing... repeat to yourself "i am calm, i am peaceful" when you playing it
Re: [minigame] Circular Pong
Posted: Sat Feb 23, 2013 7:03 pm
by Hexenhammer
Really cool idea. But hard!
Re: [minigame] Circular Pong
Posted: Sun Feb 24, 2013 3:39 am
by markgo
The momentum of the paddle makes it very tricky to control. Nice concept though.
Re: [minigame] Circular Pong
Posted: Sun Feb 24, 2013 11:31 am
by Roland_Yonaba
That's original. You might have to work more on the controls, but I do love the idea, though.
Re: [minigame] Circular Pong
Posted: Sun Feb 24, 2013 3:37 pm
by pakoskyfrog
When i tweaked the controls, i tried to make the game short, since you have to beat your own best time on each try.
But i think i can make the deceleration faster than the acceleration, it should help a bit
I will work on that after what i'm doing !
Re: [minigame] Circular Pong
Posted: Sun Feb 24, 2013 5:27 pm
by 10$man
Looks like a cool idea, but it runs so fast that I can't do anything before the ball goes out...
Re: [minigame] Circular Pong
Posted: Sun Feb 24, 2013 5:38 pm
by pakoskyfrog
Well... it's a fast paced and precision game... Personally, i manage to stay alive around 30 sec and one minute.
And you have to think about decelerating at half way, so you don't just pass in front of the ball and miss it
Re: [minigame] Circular Pong
Posted: Sun Feb 24, 2013 6:10 pm
by 10$man
pakoskyfrog wrote:Well... it's a fast paced and precision game... Personally, i manage to stay alive around 30 sec and one minute.
And you have to think about decelerating at half way, so you don't just pass in front of the ball and miss it
I understand that, I mean, it's running so fast on my PC that I don't have time to press a key before the ball gets out of the screen... It's running at ~750 FPS... When I tried to record a video with FRAPs so you could see what I mean, it slowed down to 150FPS and it's playable at that speed. Obviously, I don't want to have to be recording the screen everytime I want to try your game.
Perhaps you could incorporate DT into the movement so that it isn't any more (or less) impossible for me then for everyone else?
Re: [minigame] Circular Pong
Posted: Sun Feb 24, 2013 6:34 pm
by pakoskyfrog
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
)
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)
Re: [minigame] Circular Pong
Posted: Sun Feb 24, 2013 7:48 pm
by Hexenhammer
It's much more playable now. Nice way to mindlessly kill time.