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

Questions Cloud

Investing for dummies book at barnes and noble : In the following situations, explain what is counted in this year's GDP:a. You bought a new Wii at GameStop last year and resold it on eBay this year.
How to use css to change the layout of an html page : Code Comments are used to identify the location of rubric objectives. Code Formatting is used to increase the readability of the HTML Code.
Portion of the principle from its endowment fund : Central Penn College is evaluating making an investment with a portion of the principle from its endowment fund. Calculate the investment's expected return if there's a 40% probability of a 10% return, a 30% probability of a 9% return, and a 15% prob..
Given an optimal capital structure : Given an optimal capital structure that is 50% debt and 50% common stock, calculate the weighted average cost for capital. Coupon rate on bonds: 9 %. Yield to maturity on bonds: 11% next expected dividend on common stock 3.00$, current price for comm..
Create a web page called "game.html" and add a layer to it : 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.
Net asset value-exchange traded funds : Net Asset Value (NAV) of a mutual fund is calculated every day. The book suggests that a closed-end fund (a fund that has a fixed number of shares) can trade above or below the NAV. As an example, someone could invest in Exchange Traded Funds (ETF) o..
Calculate labor rate and efficiency variances for august : Calculate labor rate and efficiency variances for August, and comment on whether labor costs for technicians appear to be in control or out of control.
How volvo car corporation transforms data into knowledge : Use at least three (3) quality resources in this assignment. Note: Wikipedia and similar Websites do not qualify as quality resources
Global business and the global economy : What experience and interest do you have in global business and the global economy? How might the knowledge and skills associated with this course support your career or life aspirations?

Reviews

Write a Review

Web Project Questions & Answers

  Create an admin page

Create an admin page that provides the following functionalities- Add a new book to the appropriate table. Item should have data for each of the fields in your table. Delete an existing book from the appropriate table

  Creat and test an html documents that has at least half page

Creat and test an html documents that has at least a half page of text and a small box of text embedded on the left margin with main text flowing around the small box.

  Innate leadership abilities

Some discuss that corporation's should put more effort into identifying managers with innate leadership abilities, and helping to develop these,

  Create wireframes web site design

Also create three Wireframes [storyboards] for your web site design (Home Page and two others). These are rough designs to show placement of navigation, text and other elements on each of the pages. These pages should indicate hierarchy in the pag..

  Define how to develop a pair of web services

You are to develop a pair of Web Services, complete with matching WSDLs and client software, which implement the functions of a Local Time Converter (LTC) service. A Local Time Converter service allows users to provide the Local Time (e.g. 13:30) ..

  Discussion on future of web

Create a 1 or 2 screen prediction on what effects you think the Website, and in particular, the enormous amount of documents accumulating on the Web will play in your life, and your children's life in future.

  Create a test application demonstrating architecture for hci

Create a test application demonstrating the architecture and design for HCI and Data Management layers you have developed in Parts 1 and 2.

  Project for developing a corporate website

In a 2- to 3-page Microsoft Word document, create a project charter for the project for developing a corporate Website. The project charter should consist of detailed description of different aspects in all the different phases of the project

  Create a new web application that displays a form

Create a new Web application titled Week8. Next, create a JSP that displays a form when the doGet method is invoked. The form will contain a post action that directs the form post back to the same JSP, which in the doPost method will save the form..

  Design and develop a secure and working prototype

Design and develop a secure and working prototype of database and a website for the aforementioned company in which wants to sell its products online as well as advertising and marketing its professional PCs and laptops' repair services.

  Nec project

Management of the NEC is concerned about keeping their employees current on education, training and certification so that when they have the next Security Manager’s Quality Assurance Inspection they will pass with 100% rate.  Currently there is ..

  What value does this web site provide to the firm

Visit the Web site of your choice and explore it thoroughly. Prepare a report analyzing the various functions provided by the Web site and its information requirements. What value does this Web site provide to the firm

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