Track the current position and direction of the ball

Assignment Help Python Programming
Reference no: EM131327347

Python Code

Your version of pong will be more complete and have the following features at a minimum:

1) The scores for each player should be displayed

2) Option for ball speed - Choose between three different speed levels: slow/medium/fast

3) Option for player paddle size - Choose between three different paddle sizes for the player: small/medium/large

4) Option for game length - Choose between three game lengths: 7/15/21 points

5) Option for opponent - Choose between a two player game and a one player game against an automated paddle

6) Automated paddle - If the player chooses to play against an automated paddle, your program should control the motion of the paddle. You can track the current position and direction of the ball to estimate whether it should move up or down from its current position.

7) Expanding net - in addition to having the ball bounce off of the walls and paddles, there will be an additional obstacle the ball must avoid. There should be an object moving up and down in the middle of the screen, essentially a moving net. The net size should be relatively small in the beginning of a point so that it is not too hard to have the ball avoid it. However, every time the ball hits it, the ball should bounce off of it as if it were a wall and the size of this net object should grow and the net should begin to move a little faster. The net should never get as big as the entire screen, so that there is always some chance of getting the ball through.

These are the basic features that your game should have. You can add in other options and features such as changing ball speed and paddle size after a certain number of hits, moving the ball in a squiggly direction rather than always straight, etc. You should submit your code and any additional images or other things that you need to run the program.

Reference no: EM131327347

Questions Cloud

What is the interest rate on the loan : A fully amortizing mortgage is made for $100,000 at 6.5 percent interest. If the monthly payments are $1,000 per month, when will the loan be repaid?
What must monthly payments be over the 10 year period : If the interest rate is 7 percent, what must monthly payments be over the 10-year period?- If the borrower chooses to repay the loan after 5 years instead of at the end of year 10, what must the loan balance be?
What will the monthly payments be : What will the monthly payments be?- What will be the loan balance after 5 years?- If the loan is repaid after 5 years, what will be the yield to the lender?
Track the current position and direction of the ball : If the player chooses to play against an automated paddle, your program should control the motion of the paddle. You can track the current position and direction of the ball to estimate whether it should move up or down from its current position.
Contemporary theories to support your evaluation : Demonstrate a systematic understanding and critical appreciation of theories and models of creativity, innovation and change management in the context of contemporary organisations.
Why did preston brooks beat him so mercilessly : Why did Preston Brooks beat him so mercilessly? What you need to keep in mind at this point is that, at this point in time, slavery is not only not illegal but it is a constitutional protected institution. Not only the right to own slaves, but th..
What must the loan balance be if it is repaid after year 4 : What must the loan balance be if it is repaid after year 4? What will be the yield to the lender if the loan is repaid at the end of year 4?
With all of the investment to be made at the outset : A Japanese electronics manufacturer is contemplating investing $1 billion (with all of the investment to be made at the outset) in a 10-year investment project in the U.S. The Japanese company is well known in world capital markets and is universally..

Reviews

Write a Review

Python Programming Questions & Answers

  Print out the average score accurate to two decimal places

print out the average score accurate to two decimal places.

  Write another python program to decode the encoded message

Write another Python program to decode the encoded message according to the "circular Caesar cipher" problem presented in Programming Exercises 7 and 8 of Book Chapter 5.

  Generate a plot with a point for every charging station

After you have imported your data, you should use matplotlib to generate a plot with a point for every charging station. Note that the first column of data is longitude, i.e., the y-values, and the second column is latitude, i.e., the x-values

  Display the percent-ages of the overall grade

Write a program that uses a bar chart to display the percent-ages of the overall grade represented by the project, quizzes the midterm exam and the final exam

  Design flowchart that ask actual value of piece of property

Design a flowchart and Python code that ask for the actual value of a piece of property and displays the assessment value and the property tax.

  How a vertical scroll bar is associated with a list box

What are instance variables, and what role does the name ‘self' play in the context of a class definition. Describe how a vertical scroll bar is associated with a list box.

  Write a program that obtains integer numbers from user

Emphasize standard approaches that verify you have successfully mastered the concepts of structured design - selects a menu item, program should perform calculation, display the result to the user, and return to the main menu.

  What prompted the authors to try and address

What is the question that this study is trying to answer and what prompted the authors to try and address this question?

  Implement a program in python that given names of students

Implement a program in Python that, given 500 names of students and 500 integers in the range (0,100) representing the scores of these 500 students, calculates

  Two-dimensional word puzzle

Write a python function called find_words that finds and prints the list of valid words in a two-dimensional word puzzle

  Permutation ciphers

Permutation Ciphers (a.k.a. Transposition Ciphers) are another class of simple cryptosystems. For this we use the functions apply(.,.) and inv(.) from Homework 4; copy these two functions into your le as auxiliary functions.

  What are the issues assciated with top-down analysis

what are the issues assciated with top-down analysis please explain?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd