1. Describe the purpose of each enhancement that you added to your app. Give brief descriptions of the enhancements and provide screenshots of important blocks and describe how you used them to solve certain programming problems. Include these descriptions in your write-up, below.
The purpose of this enhancement is to reset the game when the user clicks the reset button. The global score is reset to a value of 0 and the clock timer is reinitiated, allowing the user to play again.
This enhancement is triggered when the user reaches a score of 15. When the user reaches 15, the clock timer is stopped, causing the imagesprite to stop moving. In addition, a notifier appears with the message “Congratulations, you’ve won!” and this message is also played in text to speech.
2. When the user touches an ImageSprite, both the Canvas.Touched and ImageSprite.Touched events are triggered. This is important for more complex games. For instance, suppose there are "good" and "bad" sprites in your game. If you hit one, you earn a point. If you hit the other, you lose two points. If you hit the Canvas and don't hit the ImageSprite, you lose 1 point. How would you code this?
Answer
This would require the canvas.touched and image sprite.touched event handlers. The program would need to involve several math blocks, including if the user touches the good sprite, add 1 to global score, if you click the bad sprite, subtract 2 from the global score, and if you touch the canvas, subtract 1 from the global score.
3. How do you speed up the movement of the ImageSprite? What is the fastest it could move?
Answer
To speed up the image sprite, you need to shorten the time intervals of the clock component. The shortest interval that can be ran is one millisecond, or 1/1000 of a second.
LINK FOR RECYCLECANS APP WRITE UP: https://docs.google.com/document/d/1oppOmjjXtvaVKW8qx9clOBjRRGhPqKGOr4rTux0uCxw/edit?usp=sharing