当前位置:网站首页>[programming questions] [scratch Level 2] March 2019 garbage classification

[programming questions] [scratch Level 2] March 2019 garbage classification

2022-07-08 00:04:00 Youth programming competition communication

refuse classification

Garbage classification has become a very important part of our daily life , This is for environmental protection 、 Resource recycling is of great significance .

Now let's play a simple interactive garbage sorting game .

1. preparation

(1) Import... In the background library “Mural”, And edit the background , Add two trash cans as shown in the figure below , Indicate the “ Recyclable waste ” and “ Non recyclable garbage ” The text of ;

(2) Import... From the role library “Takeout” As a kind of paper bag garbage .

2. Function realization

(1) Click the green flag , Garbage on the ground “Takeout”( modelling a), The location of garbage does not contact the garbage can , Garbage static 1 second .

(2) Garbage moves towards the mouse pointer .

(3) When the garbage meets the green recyclable garbage can, it disappears , And said “ Correct classification ”2 second : When the garbage meets the blue non recyclable garbage can, it will not disappear , And said “ Classification error ”2 second .

3. Design ideas and implementation

(1) Role analysis

  • role :Takeout

(2) Background analysis

  • background :Mural( Draw two trash cans on it )

(3) Introduction to the building blocks used

a. Sports

原网站

版权声明
本文为[Youth programming competition communication]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207072149233237.html