![]() ![]() Public class Paddle extends Actor A paddle object has the following fields: width – of the paddle height – of the paddle moveAmount – amount to move the paddle color – of the paddle BreakoutĦ What can actors do? Double click on the Actor class Breakoutĥ The Paddle Class Paddle is a subclass of Actor Use the paddle to hit the ball into the bricks to get rid of them Get rid of all the bricks to win the game The ball will bounce off most of the walls, paddle, and bricks You get up to three balls to use If you still have bricks after using 3 balls you lose If a ball hits the bottom wall it is removed and a new ball is added Use the exported applet of Breakout in Breakout-export to show them the final game working. ![]() BreakoutĤ Game Rules Use the left and right arrow keys to move the paddle There are Bricks, a Message that says we are starting with Ball 1, a Ball, and a Paddle But if you click on act or run nothing happens Give your students the Breakout-Start and Breakout-export folders. Presentation on theme: "Breakout in Greenfoot Barb Ericson"- Presentation transcript:ġ Breakout in Greenfoot Barb Ericson Institute of Technology September 2010 BreakoutĢ What are the objects? Open Breakout.html in Breakout-exportĪnd play the game (use the arrow keys to move the paddle and hit the ball into the bricks) How do you lose? How do you win? What are the objects in the game? Breakout ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |