Circle 1: When you start the program the Beetle sprite will always check if it is touching the Ball sprite. If the Ball and Beetle touch the Score increases by 1, plays a sound, and switches costume so the beetle will face downward. While it faces downward, it will fall down the screen and send out the Go message after reaching the bottom.
Circle 2: After receiving the Go message, the LaserPower variable is initialized to 7 so the user can shoot up to 7 balls. The Beetle will randomly appear from either the left or right side of the screen. Then, the Beetle will move across the screen until it is hit by the Ball or reaches the edge of the screen. If Beetle touches the ball the game continues and if it reaches the edge the game ends.
No comments:
Post a Comment