Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm going to create a simple game in python. its a clone of the classic game Breakout. need help doing this: how can I do

I'm going to create a simple game in python. its a clone of the classic game Breakout.

need help doing this:

image text in transcribed

image text in transcribed

how can I do this?

Your game must support the basic mechanics of the original game. In Breakout, the player controls a platform at the bottom of the screen, and attempts to hit a ball. On the top half of the screen there is a set of bricks. When the ball hits the bricks they disappear. The game is won by removing all the bricks on the screen. If the player misses the ball so it disappears below the screen, the game is lost. It is important that the ball bounces off the platform with an angle dependant on where it hits the platform, so the player can control the ball. To implement this it may help to think of the platform as a semicircle, you may also draw the platform as a semicircle. The look of the game is up to you, you can use the built-in functions in pygame for drawing rectangles and circles of different colors, or import images for a more pleasing aesthetic. 2.1 Requirements Required elements in the implementation 1. Implement the game in accordance with object-oriented design, use ob- jects and classes. 2. The platform should be controlled by the mouse or keyboard. 3. The ball should bounce in a different direction based on where on the platform it hits. 4. A brick disappears when the ball hits it. 5. The ball bounces off the wall and ceiling, angle in = angle out. 5. The game is won when all bricks are removed, the game is lost when the ball hits the bottom of the screen. 6. Well structured and commented code. SCORE Your game must support the basic mechanics of the original game. In Breakout, the player controls a platform at the bottom of the screen, and attempts to hit a ball. On the top half of the screen there is a set of bricks. When the ball hits the bricks they disappear. The game is won by removing all the bricks on the screen. If the player misses the ball so it disappears below the screen, the game is lost. It is important that the ball bounces off the platform with an angle dependant on where it hits the platform, so the player can control the ball. To implement this it may help to think of the platform as a semicircle, you may also draw the platform as a semicircle. The look of the game is up to you, you can use the built-in functions in pygame for drawing rectangles and circles of different colors, or import images for a more pleasing aesthetic. 2.1 Requirements Required elements in the implementation 1. Implement the game in accordance with object-oriented design, use ob- jects and classes. 2. The platform should be controlled by the mouse or keyboard. 3. The ball should bounce in a different direction based on where on the platform it hits. 4. A brick disappears when the ball hits it. 5. The ball bounces off the wall and ceiling, angle in = angle out. 5. The game is won when all bricks are removed, the game is lost when the ball hits the bottom of the screen. 6. Well structured and commented code. SCORE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

Explain the difference between financial and management accounting

Answered: 1 week ago

Question

what is a peer Group? Importance?

Answered: 1 week ago

Question

Understand why empowerment is so important in many frontline jobs.

Answered: 1 week ago