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

  What single question can you ask a person

assume you were in a country where each person was either a truth teller or a liar. (A truth teller always tells the truth, a liar always lies.) What single question could you ask a person that would allow you to detect whether that person was a t..

  Write down a program using the vector class

create a program using vector class that allows the user to input the number of days worked in a 7 day workweek and, using a fixed hourly rate, calculates the weeks wages and the average number of hours worked per day.

  Utilizing the dss-es-ess or intelligent systems

An American Company announced that it was interested in attaning a company in the health maintenance organization (HMO) field. Two decisions were included in this act: The decision to attain an HMO.

  Designing the dfd

Construct a context diagram for the new system. Construct a diagram 0 DFD for the new system.

  Determining the total price of an order by program

You have been asked to develop a program in order to determine the total price of an order from an Office Supply store. Program shall prompt user for name of the product, price of the product, and quantity of the order.

  Write down the normalized entities in the correct format

Write down the normalized entities in the correct format.

  What are the benefits of networked computers

What are the advantages and drawbacks of email communication, or what if the email system went down in a major company. how will this impact productivity? Do companies rely on heavily on electronic communication today.

  Implement needham-schroeder protocol using python

Implement Needham-Schroeder protocol using python

  Design a program that bounces a blue ball inside a jpanel

design a program that bounces a blue ball inside a JPanel. The ball should begin moving with a mousePressed event. When the ball hits the edge of the JPanel, it should bounce off the edge and continue in the opposite direction. The ball should be u..

  How to calculate the area of a circle

Your employer has requested the development of a software application to compute the area of a circle. The application must accept only one value (i.e., the radius), and it must display the result in decimal value.

  Write down a driver program to test your library

create a library containing functions to compute the surface area and volume of a sphere. For a sphere of radius r, these values can be calculated using.

  Program declaring an integer variable

Write down a complete program that declares an integer variable, reads a value from keyboard into that variable.

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