The 13th Blue Bridge Cup Scratch Trials Collection

The 13th Blue Bridge Cup Scratch Trials Collection
 

Programming Questions
Question 1 Questions and Answers
Dancing Machine Game
Description of the
topic Programming to realize
the dancing machine game.

Specific requirements:
1). Click the green flag, the upper left corner of the stage will display a score of 0 to represent the player's score, and count down to 10 on the right side of the score to represent the game duration (10s)
 

2). The game starts counting down, and one of the four arrows of up, down, left, and right is randomly displayed on the stage, wait for 1 second and then change to other direction arrows (the direction and color of the arrows are randomly changed);

3). The player observes the arrow that appears on the board, and presses the corresponding direction coin on the wrong board. If the direction of the arrow is consistent with the pressed direction mirror, the score will be increased by 1, and the arrow will say "correct", and it will display when the arrow appears. The reaction time until the corresponding arrow key is found,
 

4). If the direction of the arrow is inconsistent with the direction key pressed, the score will be reduced by 1, and the arrow will say "wrong";
 

5). When the countdown is 0, the game is over, and a list "scoreboard" is used to record

Guess you like

Origin blog.csdn.net/IT_Scratch/article/details/130846915