第 13 步:让我们为函数添加更多动作!确保这些都在函数内部!

  • 添加Treasure Chest INSIDE reward_scene()并命名 sprite treasure
  • treasure放置在( 0 , - 100 ) ,这样它就不会阻挡巫师! (提示:在图像标签后添加坐标!)
  • 在 LOGIC 中,从Function Call拖到您的程序中,在函数之外。
  • 将函数调用中的函数名称更改为reward_scene()

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)