Prime b

Prime b

  • NA
  • 810
  • 339.1k

My Final Project #4! Description ,discussion/ design part

Apr 7 2012 3:41 PM
So I have been thinking about it.

I am going to have 4 classes pretty much?
The ball class
The paddle class
The brick class
The game class
What other classes you think would be there?
Any tips , advice are welcome!

Description:

Create a clone of the old video game Breakout: http://en.wikipedia.org/wiki/Breakout_(video_game). If you Google breakout game, you will find many examples to play and get an idea of how your game will work.
If you complete your project fully and exactly as described in this document, you will receive 90% credit. To receive a full 100%, you must go above and beyond and add some extra functionality into the game. Extra functionality must be approved by me first and will not be taken into account unless ALL of the original requirements are met first.

User Story:

The user will choose to start or exit the game upon start. When the game starts, the player will start on level 1 of 5. The play will start with three balls to use to break all of the blocks on the levels. If the ball falls all the way to the bottom of the screen, the user looses that ball. You may add functionality for certain blocks to drop extra balls. Once all of the blocks on one level are broken and gone, the game will progress to the next level. At the end of all five levels, the play wins.

Code Requirements:

Classes:

In the past projects, I forced you into using certain classes promoting good Object-oriented design. N this project, the o-o design is up to you. Spend a good deal of time planning your design. Good decisions will make your life easier throughout the project while bad one will haunt you until the end, if you are able to make it that far.
You must use Graphics and drawing for your project.

Level Design

Each level is required to be 10 blocks wide with 5 – 10 blocks in height. The blocks will have a hit value from 0 to 4. A block with a Hit Value of 1 must be hit by the player's ball once for it to break and disappear. Please use the following table to color coordinate your blocks.
Hit Value
Outer Color
Inner Color
0 (Will never Break)
Black
Black
1
Dark Red
Red
2
Dark Blue
Blue
3
Dark Green
Green
4
Black
Yellow

Each level will be loaded from a file in your game directory. The file will define how many and what blocks appear for that level. You must use the following format for your files (I will create my own levels to test your game against! It will be bad for you if my levels do not load into your program.)
The first line in your file will be a single integer value defining what level it is (1-5). The second line in your file will be a single integer value defining how many rows of blocks the level has(5-10). Each following line will define the levels blocks. The top row (in your game) will be line 3 (in the file), second row down will be line 4, third row down will be line 5, and so forth. Each line that defines the rows must contain only single integers (0-4) and spaces. The integers will determine what Hit Value to use for that block.
Example:
4
8
4 4 4 4 4 4 4 4 4 4
4 4 4 4 0 0 4 4 4 4
4 4 3 3 3 3 3 3 4 4
3 3 3 3 3 3 3 3 3 3
3 3 2 2 2 2 2 2 3 3
2 2 2 2 2 2 2 2 2 2
2 2 1 1 1 1 1 1 0 0
0 0 4 4 4 4 4 4 1 1
This is level four. There are 8 rows in this level. The top row is made up of 10 4-Hit Value blocks so they should all be black/yellow.

Answers (5)