Highlights of the 10th Lanqiao Cup Scratch Provincial Competition

Programming Questions
Question 1 Questions and Answers
Drumming Game
Title Description
Preparations:
Set the background of the complex to "spotight-stage", add a "Belerina" character, two "Drum1" characters and two "Drum2" characters, and follow the The location shown in Figure 7-1. The shape and color of the character "Beleina" must be set as shown in Figure 7-1. The order of the skirt colors of the five shapes is: white, red, blue, green, and yellow; the forehead colors of the four drums are respectively set as: red, Blue, green, yellow.

Programming implementation:
The little girl in the center of the complex will randomly change the shape and color of clothes 4 times. Players should remember the order in which the colors of the clothes appear, and hit the drums of the corresponding color in order. If the color order is correct, they will get 1 point, and Start
the next round of color change, until a round of drumming in the wrong order, the game ends, and the highest score is updated.

Specific requirements:
1. Every time the green flag is clicked, the "score" in the upper left corner of the stage (see Figure-2 for the display position) is 0; 2. The little girl is in shape 1 (white skirt) and says "Please observe the color sequence !" for 2 seconds (Figure-2) ;
3. The little girl switches her appearance 4 times, each time randomly switching to one of appearances 2 to 5 (duplication is allowed between the 4 appearances); and the first Say "1" for 1 second after switching once, say "2" for 1 second for the first time,

Guess you like

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