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

mjrb4's Comments

Back to mjrb4's profile

What's the flow shop problem? Some explanations would be nice :-)
mjrb4mjrb4

2009/10/30

Very nice take on the original, loving the graphical improvements!
mjrb4mjrb4

2009/10/26

Very nice :-)
mjrb4mjrb4

2009/10/25

Nice - how about having the ball speed up the further along the game gets to make it a bit more challenging? Or something similar :-)
mjrb4mjrb4

2009/10/25

Hmm, the paddles seem to move very slowly for me, and how do I start the ball off?
mjrb4mjrb4

2009/10/25

"Took out the particle effects as it seems to lag over the internet :/" Particle effects are perfectly do-able using applets, but for it to work without lag you'll have to make the images static so you don't reload them every time you use them - my guess is this was where your lag was coming from.
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.
The speed seems fine to me actually - nice start on this. Next step - powerups / cool graphics? :-)
mjrb4mjrb4

2009/10/23

If it's just a simple Greenfoot.delay() you want to put in, have a look at the started() method in World - this is called whenever execution starts. So if you simply override it and put a delay in there, I would've thought this would have the effect you're after :-)