扩展:现在定制你的房子!请务必满足以下最低技术要求:

  1. 添加背景!
  2. 改变你房子至少一部分的颜色!
  3. 添加一个人或动物精灵。更改我们用来引用您的精灵的变量名称!
  4. 点击提交以继续创建!

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

# sprite = codesters.Circle(x, y, diameter, "color") sun = codesters.Circle(-150, 175, 75, "gold") # sprite = codesters.Square(x, y, width, "color") house = codesters.Square(0, -125, 250, "purple") # sprite = codesters.Triangle(x, y, size, "color") roof = codesters.Triangle(0, 100, 300, "green") # sprite = codesters.Rectangle(x, y, width, height, "color") door = codesters.Rectangle(0, -175, 75, 150, "blue")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)