Creating a gaming web page

Assignment Help Web Project
Reference no: EM1381075

Build a Web page called "game.html" and add a layer to it, which will be treated as an object, with an picture for its contents. Add another picture 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: EM1381075

Questions Cloud

Explain why is important which this agency oversee : Explain why is important which this agency oversee or regulate these businesses. Illustrate what recent action or ruling has the agency made.
Describe the core competencies of the keurig k cups : Describe the core competencies of the Keurig K cups also elucidate how they will be used to achieve a Blue Ocean Strategy.
How would you characterize best buy''s competitive strategy : How would you characterize Best Buy's competitive strategy? Should it be classified as a low-cost provider strategy? A differentiation strategy?
Elucidate how would you participate in this debate : the leader of an environmental NGO in the low-cost country in which the MNE invests, elucidate how would you participate in this debate.
Creating a gaming web page : Build a Web page called "game.html" and add a layer to it, which will be treated as an object, with an picture for its contents. Add another picture which will start the game when clicked on.
Why segmentation efforts based on attempts to divide : Illustrate what is the difference among qualifying dimensions also determining dimensions. Explain why segmentation efforts based on attempts to divide the mass market utilizing a few demographic dimensions may be very disappointing.
Attempting to demonstrate knowledge and expertise : How can this be useful to organizations that might be seeking to develop a program that is attempting to demonstrate knowledge and expertise?
Compute the mean and standard deviation of the returns : Estimate the Optimal Portfolio. Use the current value of the 6 month T-bill as a proxy for the risk free rate. Find the expected return and variance for this portfolio.
Explain why have pet supply purchases been relatively : Explain why have pet supply purchases been relatively unaffected by the economic downturn of 2008-2010.

Reviews

Write a Review

Web Project Questions & Answers

  Question about hypertext technology

Website pages are not printed pages. Hypertext technology enables Website pages to be processed by the viewer very differently from the same data in printed form.

  Importance of a guided navigation system

Explain the use and importance of a guided navigation system and shopping cart for a website designed for e-commerce and business purpose.

  It consultant to a new nonprofit organization

Act as an IT consultant to a new nonprofit company, Free Flu, which gives flu shots to the elderly. The organization requires a domain name.

  Develop a list of factors associated with high performance

Choose an organization for examine and develop a list of factors associated with high Performance. For each factor you identify, develop a rating scale from 1 to 5.

  Linking to super encyclopedia or dictionary

It is possible to link every term and item in a website page to one super encyclopedia or dictionary so that you could expand on its definition or content?

  Creating a table with uneven cell sizes

Create a table with uneven cell sizes. I have made the cells and two tables which I am trying to combine into one table and then make borders around that table.

  Find the elements of budgets

Budgets are actually cost estimates tied to detailed distribution of revenues. Dissimilar conservative monetary statements, revenue and defeat and cash flow statements,

  Comparing email and email protocols

Discuss similarities and differences of the following email clients: Outlook, Outlook Express, Hotmail, Eudora, Mozilla Thunderbird, Opera Mail, Pine, and Lotus Notes.

  Using javascript to liven up web site

How to Use JavaScript to Liven up your site, how to protect users whose browsers will not load JavaScript. What is the tip?

  Traditional approaches for training professionals

Webinars and other web conferencing techniques have proved most beneficial for the provision of affordable quality corporate training.

  Internet for business

Discuss how can a business use the Internet and give at least three examples with web links demonstrating your answer.

  Computer program stored on world wide web server

Identify a small computer program stored on a World Wide Web server that is designed to run in conjunction with browser software called?

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