Objective:
Improve the Android Mash app by adding score, end game, and restart to the game.
Watch the video about the Android Mash Customizations you will add to your app today.
Question: What are 2 customizations that you could add to Android Mash?
Complete the following customization challenges to improve your app:
Challenge #1: Personalize the game by adding your own image for both the background and the “mole” or the "Android."
Challenge #2: Keep score. Add a label (“ScoreLabel”) to the user interface and use what you have learned about incrementing values to increase the score when the Android is touched. (Hint: You can create a variable, or use the text property of the label component.)
Challenge #3: Timer. Add a Label that Counts down from 20. The game should stop when the countdown reaches 0. (Hint: You can use the same clock component to activate the countdown).
Challenge #4: Re-set Button. Add a Button that re-sets the Score to 0 and the Timer to 20.
Challenge #5: Android Squash. When user whacks the android, make the android squash. (Hint: When sprite.touchdown activated, set picture of sprite to a new picture image).
Challenge yourself by adding more customizations to your app.
Challenge #6: Set a winning score: Try adding in a winning score feature that congratulates the user when they reach a certain score. When the player reaches a certain score, you could use a TextToSpeech component and have it say something or use the Player to play a sound.
Challenge #7: Change the speed of the mole when the player reaches a certain score. (Hint: Use a conditional and the set Clock1.TimerInterval block.)
Challenge #8: Add an obstacle: Add a second ImageSprite with a picture of something that the user should not hit, such as a flower. If the user touches it, penalize her by reducing his score or ending the game.
Challenge #9: Add levels: When the user hits the "mole" a certain number of times, show the user that the level has changed.
If you finish early: