第 8 步:让骑士看到龙时做出反应!

  • 将龙精灵的变量名从sprite更改为dragon
  • 在函数内部添加缩进的Say for Time
  • 更改中的字符串。 say()让骑士说"Oh no, a dragon!"

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)