18 步:让我们添加代码,让计算机有机会施法。这段代码应该很熟悉!

  • ,将Call w/ Parameter into Variable到程序底部。
  • 将 my_var 更改为damage ,将my_function更改为my_var ,并将cast_spell my_parametercomputer
  • ,将Subtract Value拖到下一行。将player_hp my_var 1更改为damage
  • Update Display拖动到下一行。将player_display my_display my_var更改为player_hp

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)