当前位置:网站首页>[programming problem] [scratch Level 2] 2019.09 make bat Challenge Game

[programming problem] [scratch Level 2] 2019.09 make bat Challenge Game

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

Make bat clearance game

1. preparation

(1) Import bat characters 、 Draw obstacles separately 、 Earth character .

2. Function realization

The effect that needs to be achieved : Use the space bar on the keyboard to control the bat to fly up , When encountering obstacles or the earth , Game over , Otherwise score .

(1) Bat character : When you click on the green flag , Bats fly from top to bottom , When you press the space bar , Bats fly up , When encountering obstacles or the earth , Stop all ;

(2) Obstacle role : Obstacles keep moving from left to right , After the obstacle reaches the rightmost end , Back to the beginning , Right movement , Repeat the process ;

(3) Earth character : Move to the top .

3. Design ideas and implementation

(1) Role analysis

  • role : Bat Bat, obstacle 、 The earth

(2) Background analysis

  • background : Default background , unchanged

(3) Introduction to the building blocks used

a. Sports

  • Put the character
原网站

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