第18 步:让我们添加代码,让计算机有机会施法。这段代码应该很熟悉!
- 从,将Call w/ Parameter into Variable到程序底部。
- 将 my_var 更改为damage ,将my_function更改为my_var ,并将cast_spell my_parameter为computer 。
- 从,将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.