简答题
偏难
#14881
丛林危机 1.准备工作 (1)默认小猫角色,添加角色:Ladybug2,Strawberry; (2)添加背景:Woods。 2.功能实现 (1)小猫、蜘蛛、草…
丛林危机
1.准备工作
(1)默认小猫角色,添加角色:Ladybug2,Strawberry;
(2)添加背景:Woods。
2.功能实现
(1)小猫、蜘蛛、草莓的大小为60,三个角色的初始位置如下图所示;

(2)按下上下左右键,能够控制小猫上下左右移动;小猫的方向不变,始终面向右;
(3)蜘蛛每隔1秒移到随机位置;
(4)当小猫碰到蜘蛛时说出“游戏失败”2秒,程序结束;

(5)当小猫成功躲避蜘蛛,碰到草莓后说出“游戏通关”2秒,程序结束。

答案与解析
正确答案:<p><span style="text-wrap-mode: nowrap;">参考程序:</span></p><p><span style="text-wrap-mode: nowrap;">小猫</span></p><p><span style="text-wrap-mode: nowrap;"></span></p><p><img height="833" src="/codeimages/202512scratch2_zg/ans14881_1.png" style="width: 253px; height: 833px;" width="253"/></p><p><span style="text-wrap-mode: nowrap;">蜘蛛</span></p><p><span style="text-wrap-mode: nowrap;"></span></p><p><img src="/codeimages/202512scratch2_zg/ans14881_2.png"/></p><p><span style="text-wrap-mode: nowrap;">草莓</span></p><p><img src="/codeimages/202512scratch2_zg/ans14881_3.png"/></p>
解析
评分标准:
(1)角色、背景选择正确;(3分)
(2)通过键盘的“↑”、“↓”、“←”、“→”键来控制小猫行走;(5分)
(3)蜘蛛每隔1秒移到随机位置;(3分)
(4)当小猫碰到蜘蛛时说出“游戏失败”2秒,程序结束;(2分)
(5)当小猫成功躲避蜘蛛叮咬,碰到草莓后说出“游戏通关”2秒,程序结束。(2分)