第 5 步:是时候创建我们的第二个精灵了。

  • 并拖出Person 2
  • 将 = 符号左侧的变量名称从sprite更改为michael
  • 并拖出Set Size
  • .set_size()命令前面的名称从sprite更改为michael

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

stage.set_background("schoolentrance") stage.wait(2) stage.create_grid_overlay(50, "blue") stage.set_background_color("azure") person1 = codesters.Sprite("person1") person1.set_size(0.5)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)