Computer Science - Rudimentary Graphical Game - Display Game Statistics - IT Assignment Help

Download Solution Order New Solution
Assignment Task:
Computer Science Assignment Help

 

Implement a graphical game that allows a user to burst bubbles that drop vertically. The user uses a baton, which can be moved horizontally, to cut through any portion of a bubble and burst it. You must use an HTML5 Canvas to implement the game. Some snapshots of various (not necessarily the same) runs are shown in this document.

 

Computer Science Assignment Help

The game will display game statistics at the bottom of the page – number of bubbles burst, escaped, and the number of steps elapsed since the game was begun.
You must implement the following additional requirements for the game:

1. Use the provided HTML file on CANVAS, making little, if any, changes to it. Your task is to write the associated Javascript file.

2. The background color for the canvas is #EAEDDC and the canvas has a width and height of 450 and 300 respectively. The width and height are already preset in the
HTML.

3. The timer for the graphics redraw should be set to repeat every 50 milliseconds. So a step in the game takes 50 milliseconds.

 

Computer Science Assignment Help

 

Computer Science Assignment Help

4. Each bubble must:
a. Be a circle of a random color, with a fixed radius of 10.
b. Start at the top of the canvas, at a random x location, and drop vertically down.
The x location is fixed for each bubble for its entire descent.
c. Have a vertical movement of exactly 2 in each step.

5. The game releases exactly 100 bubbles.

6. When all 100 bubbles have either hit the bottom or been burst by the baton, the game ends and a message is displayed, in the h2 element with id output, giving the overall success percentage.

7. The baton has the following specifics:
d. Its top left corner should have a fixed y coordinate of 250.
e. It should have a width of 50 and a height of 10.
f. It should be blue in color.
g. Every click of the left or right button should move the baton by exactly 20 per step.
h. Keeping the left or right button depressed should move the baton continuously, again by exactly 20 per step.
i. It should respect the left and right wall boundaries.

8. The easy, moderate and hard game modes should release a new bubble every 35, 20 and 10 steps respectively.

 

This Computer Science Assignment has been solved by our Computer Science experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.