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

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

i=0m(1)i(mi)2i1=

Answered: 1 week ago

Question

3. What strategies might you use?

Answered: 1 week ago

Question

3. Write a policy statement to address these issues.

Answered: 1 week ago