现在我们可以使用精灵从列表中随机选择一个单词。

  • 中选择一个精灵作为游戏播报者。将这个精灵命名为 announcer
  • 中,使用 Go To 将播报者移动到控制台底部。
  • 中拖入 Say 。将字符串替换为变量 draw_word

确保将 .go_to().say() 前面的名称替换为 announcer.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)