第15758题 程序题
Scratch图形化等级考试四级编程题:实现打棒球交互功能

准备工作

  1. 选择Baseball 1背景;
  2. 选择Batter角色和Tennis Ball角色。

功能实现

  1. 按下空格键,Batter和Tennis Ball移到适当的位置,准备击球;
  2. 按下空格键,Batter挥动球杆后,Tennis Ball向右移动,直到碰到舞台边缘后消失;
  3. 再次按下空格键,可以再次挥动球杆,Tennis Ball再次从Batter旁边向右飞出。

场景示例1 场景示例2

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
编辑模式
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析