Make a web page called "game.html"

Assignment Help Computer Engineering
Reference no: EM1337807

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: EM1337807

Questions Cloud

Define how to use css : CSS is a very powerful tool for changing the way a webpage is displayed. It is too flexible and allows the designer to deliver HTML code to many devices without changing the markup.
Elucidate why at one point in time a keynesian approach : Elucidate why, at one point in time, a Keynesian approach to managing the macro-economy might be appropriate while, at another point in time, a classical approach might be more likely to produce a superior outcome.
Negative effect of aiming for perfection : Perhaps there is a negative effect of aiming for PERFECTION rather that just aiming high.
Regarding international criminal court : Can the international criminal court (ICC) award reparations to victims?
Make a web page called "game.html" : design 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.
Sells government bonds will short-term interest rates rise : If the Federal Reserve sells government bonds, will short-term interest rates rise or fall. Explain how this will affect aggregate demand and the rate of growth of the economy.
Explain segmenting a market : Explain Segmenting a Market and To be useful and effective market segments should have five different characteristics.
Create an assessment model : Create an assessment model tailored to a company.
Cost function of the market requirement : Is cost often a function of the market requirements and can high quality is achieved at any cost point? Why or why not?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Make gui application that a clerk can use to choose services

Create a GUI application that a clerk can use to select services and that will total and display the charge for a customer's visit to the Automobile Maintenance Service.

  Make a windows form program for a nina''s cookie source

contain at least one other functional control such as a button (Exit button) or a MenuStrip having an Exit and an About selection.

  Separate following program into appropriate lexemes

Separate following program into appropriate lexemes

  Make use of method iteration to find a formula expressing

How several elementary operations are used in the following algorithm? The elementary operations are comparison operations (such as > and

  Make use of a for loop to step through all 32 bits

The bitwise-manipulation operators perform simultaneous bit manipulations and enable programs to process large quantities of binary information well.

  Asynchronous sequential logic circuit

An asynchronous sequential logic circuit

  How to change the employee class

design a program, employe_data.cpp, with the Employee class that has two employees; sets their age, yearsOfService, and salary (rounded to the nearest thousands of dollars; and prints their values.

  How various cells can be in a computer''s main memory

How several cells can be in a computer's main memory if each cell's address can be represented by two hexadecimal digits? What if four hexadecimal digits are used? Explain your answer.

  Give a variable whose value is a letter grade

suppose that grade is a variable whose value is a letter grade-- any one of the following letters: 'A', 'B', 'C', 'D', 'E', 'F', 'W', 'I'. Assume further that there are the following int variables, declared and already initialized: acount, bcount,..

  What type of procedures might a company put into place

What are some common steps and what type of procedures might a company put into place.

  Relational algebra tree for queries

Sketch a relational algebra tree (RAT) for each of queries and use the heuristic rules to convert the queries into a more efficient form. Describe each step and state any transformation rules utilized in the process.

  Developing the lan for cpa firm

Instructed to develop a LAN for the very successful CPA firm with the five departments within one building and a total of the 560 employees, presently your team can offer.

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