This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for Pinball Physics

Return to Pinball Physics

NintoNinto

2009/3/14

very nice idea!
NintoNinto

2009/3/14

Looks pretty nice with the out print too.
NintoNinto

2009/3/14

But if you want a hole circle use drawOval(0, 0, 9, 9) insted of (0, 0, 10, 10)
NintoNinto

2009/3/14

And it's easier to say Math.PI instead of 3.14...
mjrb4mjrb4

2009/3/15

Very nice! Could form the basis of this rare game I know - starts with a p - can't remember for the life of me what it is... Oh wait... ;)
mjrb4mjrb4

2009/3/15

Slight bug (sorry, I'm a right pain with pointing these out!) but after the ball came off the left hand high ledge and hit the bottom of the circle once it sort of skimmed around it instead of bouncing off.
Yeah, I'm well aware of this, and the new version fixes this and a lot more. It will be uploaded as soon as i can fix a few more of the bugs.
A new version of this scenario was uploaded on Sun Mar 15 20:01:00 UTC 2009
A new version of this scenario was uploaded on Sun Mar 15 20:02:14 UTC 2009
A new version of this scenario was uploaded on Tue Mar 17 16:39:09 UTC 2009
NintoNinto

2009/3/17

Looks much nicer!
A new version of this scenario was uploaded on Wed Mar 18 14:56:57 UTC 2009
mjrb4mjrb4

2009/3/19

Seems to run much better now with lots of balls in the world - nicely done.
Yeah, cause now I'm not giving a copy of the background to each ball ;)
mbreadmbread

2009/3/27

Very nice physics! Seems a little too bouncy against the bottom edges sometimes, when the balls seem to be traveling quite slowly beforehand. You could extend it to have some surfaces that are very bouncy (like the obstacles in the middle of a pinball game) and some which are less so (solid objects, as some areas of the boundary might be) - but that really depends on the nature of the game (I'm not a big pinballer myself...)
Its true that sometimes in the rolling physics, the ball can be kicked up unexpectedly, but its a problem i'm trying to fix.
DonaldDuckDonaldDuck

2010/11/21

I never would have though it to be that difficult to make objects bounce at the correct angle but I guess it would be quite difficult...
Gevater_Tod4711Gevater_Tod4711

2012/10/13

The szenario looks real great but I don't realy get how the balls bounce. I'd like to use something like this in my worms szenario but I can't understand the code. Isn't there an easyer way to make objects bounce off?
DutaDuta

2013/1/2

Gevater, have a look at http://sinepost.wordpress.com/2012/08/30/bouncing-off-the-walls-more-productively/
BradM313BradM313

2013/2/26

Hi, nice "game" I'm using this code for my Pinball game but I got one major problem, I can't figure out how to let the ball bounce back from my "Paddle.class" do you got any idea? Thanks in advance!