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

2012/12/11

breakout

actinium actinium

2012/12/11

#
i have adapted the breakout game in the greenfoot files. Sometimes the ball takes out more than one brick even though im using getOneIntersectingObject method. I think this is because the ball rebounds quickly but catches another brick that is then removed. The above happens a lot if a brick is hit from the side. Im using the original movement code, anyone know of any fixes for this.
danpost danpost

2012/12/11

#
I do not know -- maybe move your bricks closer together. horizontally; and possibly further apart, vertically? or change the size of your ball? I think that no matter what you do, you will still have some of this kind of action. The suggestions above were given as a way to possibly change the frequency of it happening.
actinium actinium

2012/12/11

#
Thanks, will give your suggestions a try.
You need to login to post a reply.