9步 运行 你的程序,找到下一个雪花!

  • 点击 ,将 Glide To 拖动到程序底部。
  • 更改 .glide_to() 指令中的数字,将精灵引向下一个雪花。
  • 记住,当坐标在轴上时,意味着其中一个数字必须为 0

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

stage.set_background("winter") sprite = codesters.Sprite("snowman") sprite.set_size(.5) sprite.pen_down() sprite.glide_to(5, -6) def collision(sprite, hit_sprite): hit_sprite.hide() # add any other actions... sprite.event_collision(collision) sprite.glide_to(5, 1)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)