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

Report as inappropriate.

davmac
davmac presents ...

2008/3/27

Bricks

Aim: knock all the bricks out of existence. Move the paddle (using A and S keys, or by moving the mouse) to deflect the ball. Try not to let the ball bounce on the bottom of the screen.

Note that the angle the ball bounces from the paddle depends on where it hits the paddle. You can use this fact to direct the ball.

8540 views / 33 in the last 7 days

8 votes | 2 in the last 7 days

Tags: game bricks with-source

open in greenfoot

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

mjoraidmjoraid

2011/11/18

One level ?
AkuhanoAkuhano

2012/1/9

Could you possibly upload the code for this game? I'm trying to create something similar, but I can't get my bricks to disappear correctly.
A new version of this scenario was uploaded on Mon Jan 09 17:38:19 UTC 2012 Upgraded to latest Greenfoot version, and upload source code.
AkuhanoAkuhano

2012/1/10

Thanks so much x]
toytttttttoytttttt

2012/1/24

There are three things that need implementing: 1. more levels 2. lose life or something when the ball hits bottom edge 3.something happening when you destroy all the blocks Otherwise its a nice simple game which is fine.
toytttttttoytttttt

2012/1/24

Sorry, looked at the source code, didnt realise it was that complex for such a simple game.
davmacdavmac

2012/1/24

Yeah, it's really just meant as a demo, not a full game. The nice thing about is it properly calculates the angle that a ball would bounce if it hits a brick, even if it hits the corner. But, it's more here so that others can borrow the code if they want. I don't really have time to make it into a full game.
Jamie-AzulayJamie-Azulay

2016/6/13

I am currently studying my GCSES and i am making a space programme where when the space ship hits the rock it disappears but i haven't been able to do that could you help please?

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

Who likes this?

SandDealer thegreencoolerman toytttttt dbal cteberg mjrb4