Create a web page called "game.html" and add a layer to it

Assignment Help Web Project
Reference no: EM13951631

Create a Web page called "game.html" and add a layer to it, 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.

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 "FlyLogo" exactly 50 milliseconds after this line is executed:

setTimeout("FlyLogoIE()",50);

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.

Reference no: EM13951631

Write a gui-based program that analyzes a round of golf

Write a GUI-based program that analyzes a round of golf. You will retrieve the data for 18 holes from a text file. On each line in the file will be the par for that hole (3,

Explain the conversion strategy you would implement

Explain the conversion strategy you would implement and defend your choice (justify your answer). Provide a critical analysis and evaluation of the paper based on discussion i

Benefits of using uml

Imagine that you are on a team that that has been tasked with creating an online course delivery system. One of your coworkers wants to model the entire course in UML. Anoth

Assignment - build a simple ecommerce site

300582 - Technologies for Web Applications - Web Application Assignment. Your assignment is to build a simple eCommerce site. The products available for this site is up to yo

Develop an e-business prototype website solution

You as a group need to develop an e-business prototype website solution using open source (Joomla CMS) in any industry of your choice for an SME (small to mid-size business)

Produce an games review website

Your task is to produce an games review website. This can cover all sorts of games, including computer games, multiplayer role playing games, board games or card games; or y

Project in it

To define the addressing scheme of the company XYZ network you will indicate: 1) The subnet mask selected, 2) the maximum number of subnets provided by the selected subnet mas

Create a portfolio page for yourself

SYST10049: Assignment. Create a portfolio page for yourself. This should be the home page of your website. You will use it to showcase your work. Call it Home.html. Include yo

Reviews

Write a Review

 
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