创建:创建一个迷宫并使用精灵导航迷宫到达其尽头。

有用的链接: 示例 #1

请务必阅读评论中的技术要求!

保存并提交:点击经常提交保存!

To navigate the page using the TAB key, first press ESC to exit the code editor.

### ---------------------------------- ### MINIMUM TECHNICAL REQUIREMENTS ### ### ---------------------------------- ###----------------------------------------- ### Create a function with a docstring to set up ### a maze or race track and add an end to the maze. ### ### Note: The maze and its end should be different colors. ### ------------------------------------------ ###----------------------------------------- ### Add a function to add the sprite which will move ### through the maze or track. ###----------------------------------------- ###----------------------------------------- ### Add functions to move the sprite. ###----------------------------------------- ###----------------------------------------- ### Add a Collision with Shape event to determine what ### happens when the sprite collides with the maze and ### the maze's end. ###----------------------------------------- ###----------------------------------------- ### Create a main() that calls the above functions ### and uses event handlers to events to your sprite. ###-----------------------------------------
  • Run Code
  • 提交作品
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)