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

  Evaluating an ecommerce website

Create a check list that contains key point for evaluating an ecommerce website - Write a short, reflective report about website

  Gpc and runtime magic quotes

Create a script that lets you know whether Zeus or Helios has the GPC and Runtime Magic Quotes turned on or off. The output should have appropriate labels that define what output signified and should display 'ON' or 'OFF' depending on the setting.

  Creating functions through conditional operator

Use the conditional operator and the cal_days_in_month function, determine the number of days in the current month and output to browser whether it is normal month or a leap month.

  Web development projects with database

Since the vast majority of web-development projects involve a database, do you think that computational activities should be performed there, or do you think they belong in the XML page or stylesheet?

  Comparing shelf software packages

Required assistance with comparing and contrasting two main off the shelf software packages that could be implemented in an organization.

  Web based scams

Web phishing, pharming and vishing are popular web based scams. Talk about currently used tools and recommended measures to defeat this kind of attacks efficiently?

  Explanation of contextual links

The most powerful hypertext capabilities is the the contextual link. Wikipedia . com is a great example of a site that utilizes contextual links.

  How architectural and protocol changes occur

Discuss how architectural and protocol changes happen, the administrative organization that oversees the technical development of the Internet,

  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.

  It influences the behavior of organizations

Information technology influences the behavior of organizations. Name one effect of Information technology implementation and long-term usage you suppose having a positive contribution and one having a negative consequence.

  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.

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