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

Report as inappropriate.

Xenosis
Xenosis presents ...

2009/10/22

Kent Pong

well, it's pong...

8246 views / 19 in the last 7 days

2 votes | 0 in the last 7 days

Tags: game co320

Your browser does not support the canvas tag.
Drumlind11Drumlind11

2009/10/22

This gives me an error before it even loads.
A new version of this scenario was uploaded on Fri Oct 23 02:50:35 UTC 2009
plcsplcs

2009/10/23

Looks good, though you can create a weird situation where the ball follows the paddle if you catch it on either end of the paddle and continue to move. Probably something to do with how you hit the ball back (ie are you just doing some reverses of current direction?)
mjrb4mjrb4

2009/10/23

Can't reproduce the above situation personally but I'm not surprised it happens from the description - it's a classic bug in Greenfoot pong / breakout / ball / block style games. The problem usually occurs when you don't put a special case in for the ball contacting the left or right edges of the block - so it tries to move as though it hit the top of the block, and as a result usually either bounces up and down very quickly in the block or "sticks" to it for a while (depends on the implementation.) The solution is to add a check in when the ball hits the block to see whether it's hitting the edges (shouldn't be that hard, just check the ball's x position relative to the block's position and size) and add in the appropriate special behaviour - such as bouncing it to the side rather than straight up.
A new version of this scenario was uploaded on Fri Oct 23 14:25:36 UTC 2009

Want to leave a comment? You must first log in.

Who likes this?

plcs mik