简答题
偏难
#2560
消灭蝙蝠 1.准备工作 (1)选择背景 Night City; (2)选择角色 Bat、Ripley。 2.功能实现 (1)初始的背景为 Night City,…
消灭蝙蝠
1.准备工作
(1)选择背景 Night City;
(2)选择角色 Bat、Ripley。
2.功能实现
(1)初始的背景为 Night City,Bat 的初始位置在舞台上方,Ripley 初始位置在舞台下方;

(2)点击绿旗,Bat 调整方向后,在整个舞台上飞来飞去,飞行过程中不断煽动翅膀;
(3) Ripley 随着鼠标移动,碰到 Bat,Bat 发出声音 owl,Bat 移到舞台随机位置。
答案与解析
正确答案:<p>参考程序:</p><p>角色 Bat 代码:</p><p><img src="/codeimages/Scratch2_zg_202112/1_ans_090618_2533.png" width="369"/></p><p><br/></p><p>角色 Ripley 代码:</p><p><img src="/codeimages/Scratch2_zg_202112/1_ans_090618_2533.png" width="184"/></p>
解析
评分标准:
(1)能够选择题目要求的背景和角色。(3 分)
(2)初始化背景和坐标。(3 分)
(3)Bat 在舞台上飞来飞去。(3 分)
(4)Bat 飞行过程中可以切换造型。(3 分)
(5)Ripley 碰到到 Bat,Bat 发出声音,Bat 移到随机位置。(3 分)