LAB 5

Lab Description:

The purpose of this lab was to crate a simple app version of the whack-a-mole game.The feature that this particular version will be the random movements of the mole on the screen.When the mole is touched the phone will vibrate and the hit display goes up by one every time the mole is hit then then the mole immediately moves to a new location.The misses will also be displayed in increments every time the player misses the mole. The final feature of this particular app is the reset button.First and foremost , the canvas component is used to provide the image sprite,the second component, a surface to function as intended. From that point a reset component is added, along with two horizontal arrangement component which are occupied by two labels each providing the hit and misses count.The final two components are non visible components, the sound and clock components.

CODE:

molemashblock

 

Screenshot :

molemashrun

Leave a Reply

Your email address will not be published. Required fields are marked *