第 20 步:再来一项活动!最后让我们使用程序顶部提供的那些辅助函数。

  • 单击逻辑。在,在main()中拖动Function Call两次
  • 将第一个调用从my_function()更改为add_sprite_controls( sprite )
  • 将第二个从my_function()更改为add_sprite_collision( sprite , start_coordinates )
  • 运行并玩游戏!避开红色方块并到达绿色方块!

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)