GAME MAKER ASSIGNMENT- Brick Breaker
Your goal is to learn by doing! The game you are to create is to get you used to the following:
- Using Keypresses to control movement
- Collision events and destroy actions
- Score
- SetUp objects
- Many of the actions under the Control tab

| This is a picture of a Brick Breaker game from the Internet, it does not exactly match what I want for this assignment but you should get the idea.
|
Step 1: Create a new Game Maker file and begin by saving it as Assign1BrickBreaker. Then add the name of the game (make up something unique), your name and some instructions to the Game Information window.
Step 2: Create the following Sprites/Objects and give them the properties indicated. Add each to the room one at a time, in this order and test them. Part marks will be awarded so do what you can first and then go back to anything you missed.
Where to find the sprites:
S:\Computing Science\Computer Science 10\Gaming\Resources - sprites sounds\Sprites
ObjWall – The walls should cover the top and sides of the room, leaving the bottom open. They will likely have no events attached to them.
ObjBat – Create a bat object, with the following properties:
- You can move it left or right with the arrow keys.
- It should stop when you release the key.
- It should stop when it hits the wall.
ObjBlueStone & ObjRedStone – Add ANY TWO DIFFERENT COLOUR objects to represent the stones that the ball will bounce against. No properties are needed for these at this time. EVENTUALLY you should add rows of many bricks. For testing purposes, only add 2 or 2 of each.
ObjBall – Create a ball object, with the following properties:
- A creation event gets it moving with a speed of AT LEAST five. I recommend that you give it the four angle options to start.
- If it collides with the wall, it should just bounce.
- If it collides with the first colour stone, it should:
- add one to the score
- and the ball should bounce
- destroy the stone
- If it collides with the second colour stone, it should:
- add 5 to the score
- ball should bounce
- increase the speed of the ball by 10%. How?
- Look for the MOVE FREE action, then choose relative. Relative means you can change the current direction and speed.
- Set the Direction to change by ZERO
- Set the Speed to speed * 1.1 . (This will access a built in variable and multiply it by 110%. )
- Use an Outside Room event (found under Other events) to trigger the end of the game (or handle the ball leaving the bottom of the room in some other way).
Step 3: Extra Challenges
- Add a second ball object that can not destroy the upper level of bricks. It just bounces around on its own until you open a space for it to escape.
- Game Information - Look for this window near the bottom of the Resources panel. In this window write:
- Brick Breaker 2000 (or whatever you want to call your name)
- Created by Your Name
- Instructions (what keys are used, how do you win)
- Intro Screen – your first room should simply be a background that you have created in Paint that is a ‘title page’ for your game. It should say ‘Click to continue’ and the user can then click anywhere to move to the first level.
- Add a second level. This level can be very similar to the first but should include a third Stone object that makes the game harder in some way.
- Animate’ one of your stones’ sprites in some way. This will likely just mean it switches colours... but you could make it vibrate, spin or something else.
Finished? Make any adjustments necessary to make it run more smoothly. Try adding a high score table at the end. If you still have more time, try to add a new “bonus” object or any other features you can think of.
Evaluation
This assignment will be marked in class by you or another student. We will simply use a checklist based on the above requirements.
Assignment Updated 2016 – by S. Couprie