PROJECT 1: INTERACTIVE SCRIPTING PONG GAME
PROJECT DESCRIPTION
For your first assignment, you are required to modify an existing interactive JavaScript (JS) program. This project requires you to modify a remake of the famous Pong game invented by Nolan Bushnell in 1972 using JavaScript. Nolan Bushnell founded Atari two years later.
About the Game
The game of Pong resembles real-life Table Tennis or Ping Pong. The object of the game is to make your opponent miss the ball, thus earning a point. Paddles are used to bounce the ball in your opponent’s direction. This is a one-player version. The user controls the left paddle. The computer artificial intelligence (AI) controls the paddle on the right. The remakes of both versions of the game are incomplete but functional as an instructional guide.
PROJECT REQUIREMENTS
The JavaScript code for this assignment is embedded into an HTML file. Modify the HTML file to complete the assignment.
Please follow the steps below:
1. Download the JavaScript project file (project1JS.html.txt) attached to this project description.
2. Rename the file from project1JS.html.txt to project1JS.html (Remove the .txt file extension)
3. Place the downloaded project file into a folder you create on your computer. All of the files for your project should be placed in the same folder.
4. Open the project1JS.html file in a browser (e.g. Internet Explorer, Safari, Firefox).
5. Make sure the script works as it is intended.
5. Open the project1JS.html file in a text editor or web editor.
6. Modify the JavaScript code in the HTML file.
7. IMPORTANT! Rename the file back from project1JS.html to project1JS.html.txt (Re-add the .txt file extension). If you do not do this, your file will not be able to be downloaded and graded from LEO.
8. Upload your modified txt file to your Assignments Folder.
9. Verify that your submission was successful.
10. Complete and submit a Project Reflection.
WHAT DO YOU NEED TO COMPLETE THIS ASSIGNMENT?
To complete this assignment, you will need to edit the HTML project file. You can accomplish this by using:
1. a Text Editor such as Notepad++ for Windows or TextWrangler for Mac computers (both are free to download and use).
2. an online JavaScript compiler such as w3schools’ Try It Editor v3.0
Just replace the existing code in the column on the left with the contents of the HTML project file, modify it and test it by clicking the green Run button. The output appears in the right column..
PROJECT RESOURCES
The following resources may be helpful.
1. W3Schools.com JavaScript Tutorial
2. Project 1: Pong Game (instructional video)
Submission Requirements
Please complete the following changes:
1. Modify the speed of the ball.
2. Modify the size of the ball.
3. Modify the height of the canvas.
4. Modify the width of the canvas.
5. Modify the speed of the player’s paddle. (Note: The player’s paddle is located on the left side of the canvas)
6. Modify the speed of the AI’s (computer’s) paddle. (Note: the AI’s paddle is located on the right side of the canvas)
Note: Your modifications must alter the game but not in a way that makes the game unplayable. Experiment with different values to find ones that are not too extreme.
GRADING
Completing 6 out of 6 modifications in accordance with the assignment instructions will earn you 100% (A) on this project.
PROJECT REFLECTION
Answer the following questions when you submit your assignment files:
1. What modifications did you make to the script? Include details on what you changed in the code in order to achieve these modifications.
2. Did you make any advanced modifications? If yes, include details on what you changed in the code in order to achieve these modifications.
3. What issues and/or challenges did you face completing this project? How did you resolve them? If you did not face any issues and/or challenges in completing this project, what do you think are some issues and/or challenges someone new to scripting might face in completing a project like this? Note: Your reflection should describe issues and/or challenges related to completing the project itself and not to setting up the project, such as downloading/opening the files needed for the project, or issues in the online classroom. If you did not face any issues and/or challenges in completing this project, what do you think are some issues and/or challenges someone new to completing this kind of project might face in completing a project like this? How could they resolve them? Note: Your reflection must be a total of at least 200 words.
Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount