Written in a comibination of html and javascript

Assignment Help Chemistry
Reference no: EM13701000

A HTML game code for my website any help.

Video Game

Some web pages are written in a comibination of HTML and JavaScript. In this Application, you will create a video game using HTML and JavaScript. The idea of the game is that an image will move on screen randomly and the player will try to click the image as many times as possible before time runs out. The score will increase each time the player successfully clicks the image.

Perform the following steps:

1. Create a Web page called "game.html" and place it in the root directory. To that page, add a layer, which will be treated as an object, with an image for its contents. Add another image which will start the game when clicked on. When the game starts, the layer, including the image, will move randomly in any direction but not more than 10 pixels. The layer will not leave the visible screen space. You may assume an 800x600 resolution setting. Be creative when choosing your images, but avoid anything that may be considered explicit or offensive.

2. Add a timer, or loop, to determine how long the game will run. This should be set to 30 seconds. You will need to experiment to determine how many times a loop must repeat to make it last 30 seconds. One of the ways to accomplish this is by using the command "setTimeout()" which executes a code some time in the future. As an example, the following command will call the function "FlyLogoIE" exactly 50 milliseconds after this line is executed:

setTimeout("FlyLogoIE()",50);

3. The game should proceed as follows:

a. The score starts at 0. Each time the user clicks the image, one point is added to the score. This score is constantly displayed either on the status bar or somewhere in the background.

b. On every click, the layer also moves randomly, by not more than 10 pixels, to another part of the screen.

c. The game continues until the time runs out. Optionally, a dialog box appears telling the user his or her final score. The user now has the option to restart the game by clicking the "Start" image again.

4. For an extra challenge, implement levels of difficulty for the game. Add instructions that prompt the user for the level of difficulty at which he or she wants to play. A higher level of difficulty would correspond to either faster motion, a smaller target, or both. Perform this step only if all other requirements are met and you still have time before the due date. No extra points will be given to you for this step.

5. Add a link from your homepage to this web page.

6. Test the code thoroughly before publishing it.

7. Publish your work by uploading the new and modified files to your web host.

8. You can use the checklist to test the code thoroughly after it has been uploaded. It is highly unlikely that your game will work perfectly the first time. This step illustrates the need for code validation, especially on dynamic content.

Use this rubric to estimate your grade on the assignment. Submit a copy of the completed form with your assignment.

Zip your files, including the Word document, into a single file and submit it.

Reference no: EM13701000

Questions Cloud

Compute the capability indices for both firms : An appliance manufacturer wants to contract with a repair shop to handle authorized repairs in Indianapolis - Compute the capability indices for both firms.
Netstack college has received a grant to wire all : Netstack College has received a grant to wire all of its six buildings for 10/100 Ethernet. Four of the buildings contain classrooms and laboratories and will need to support 250 network connections each. One building is for administration and ..
What do you think of ai : What do you think of AI. Do you exalt AI? Do you think that there are also dangers involved? Please discuss the benefits and the perils of artificial intelligence and everything about AI.
Acquire a bit-stream copy from the flash drive : During a criminal case investigation, a computer was taken as part of the evidence. The computer was found with a flash drive connected to one of the USB ports. It is suspected that this flash drive contains image files relevant to the case. Pr..
Written in a comibination of html and javascript : Some web pages are written in a comibination of HTML and JavaScript. In this Application, you will create a video game using HTML and JavaScript. The idea of the game is that an image will move on screen randomly and the player will try to clic..
Discuss briefly some of the financial market risks : Discuss briefly some of the financial market risks associated with the project and develop a detailed NPV model in excel showing Cash Inflows.
Material and comment on the accounting treatment : Discuss whether the non-disclosure of information about operations in Pakistan and Nigeria would be material and comment on the accounting treatment of the debenture issue in accordance with the requirements of the AASB 110.
Another metal phosphate is nickel phosphate : Another metal phosphate is nickel phosphate. It will behave similar to calcium phosphate in an acid solution. What is the net ionic equation including phases for NiPO4(s) dissolving in H3O+(aq)?
How many milliliters of 0.424 m kmno4 are needed to react : How many milliliters of 0.424 M KMnO4 are needed to react with 5.06 g of iron(II) sulfate, FeSO4?

Reviews

Write a Review

Chemistry Questions & Answers

  Draw the protein molecule

Draw the following protein molecule, Need to draw the following molecule (using the lewis condensed line structure).

  What is the conclusion for determination of percent

what is the conclusion for determination of percent composition in hydrated compound

  State the theoretical yield to calculate the percent yield

If you were to perform this reaction in a lab, you would make far less than the theoretical yield of product due to a wide range of outside factors. We can compare the actual yield to the theoretical yield to calculate the percent yield:

  Explain the net ionic equation for a solution of calcium

What is the net ionic equation for a solution of calcium chloride and a solution of mercury (I) nitrate

  Explain the contrations of acetate and acetate acid

A solution of acetic acid is prepared in water by adding 11.1 g of sodium acetate to a volumetric flask and bringing the volume to 1.0 L with water. the final pH is measured to be 5.25. what are the contrations of acetate and acetate acid in solut..

  How to calculate the partial pressure of each gas

Calculate the partial pressure of each gas and the total pressure if the temperature of the gas is 18 degrees celsius

  Explain compounds in the increasing ph

Arrange equimolar solutions of the following compounds in the increasing pH (lowest to highest). Explain your answer.

  Explain two different compounds with oxygen

An unknown metal forms two different compounds with oxygen. When a 2.412 g sample of the metal is combined with oxygen, 3.466 g of Oxide A are formed. What is the cation charge for oxide A

  Some alloys of early also late transition metals

Some alloys of early and late transition metals (e.g., ZrPt3) have much higher enthalpies of vaporization (per metal atom) than either of the pure metals

  Explain the longest wavelength in nm of light necessary

eject electrons from a mixed alkali metal photocathode, what is the longest wavelength in nm of light necessary to eject these electrons by the photoelectric effect?

  How many liters of o2 are needed to react completely

How many liters of O2 are needed to react completely with 45.0L of H2S at STP? 2H2S(g) + 3O2(g) -> 2SO2(g) +2H20(g)

  What is the density of gallium

What is the density of gallium in grams per cubic centimeter at 25 C if a 1.00 cube has a mass of 0.2133.

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