Commit 10de424b by BellCodeEditor

save project

parent 05eeabc9
while i<len(bug):
moveto(bug[i])
wait(2)
i=i+1
\ No newline at end of file
def fire(a):
setcostume("激发")
setsize(a)
moveto("鼠标指针")
show()
wait(0.1)
setcostume("重置")
hide()
setcostume("未激发")
hide()
i=10
while i>0:
if ismousedown():
fire(50)
i=i-1
\ No newline at end of file
def rescue(x,y):
goto(x,y+40)
wait(0.5)
goto(x+25,y)
wait(0.5)
goto(x,y-40)
wait(0.5)
goto(-80,-150)
rescue(120,0)
rescue(-120,0)
rescue(0,-110)
\ No newline at end of file
def debug(name,size):
setcostume("侦查波奇")
if size>68:
glideto(1,name)
setcostume("吸能波奇")
wait(0.5)
moveto("秩序球")
setcostume("侦查波奇")
goto(22,-16)
\ No newline at end of file
def eat(fooda,foodb):
A=["虾仁","板栗","汉堡","鸡翅","冰淇淋"]
B=["玉米","火腿","蛋糕","糖葫芦","排骨"]
if fooda in A:
if foodb in A:
say("走,今天我们去A餐厅!",1)
else:
say("今天我们各吃各的吧!",1)
if fooda in B:
if foodb in B:
say("走,今天我们去B餐厅!",1)
else:
say("今天我们各吃各的吧!",1)
eat("虾仁","鸡翅")
\ No newline at end of file
goods = ["粮食","矿石","能量碎片","斗篷","定位器","抗生素","面罩","火箭头","绷带","药膏"]
def search(name):
i=0
while i<len(goods):
if goods[i]==name:
glideto(0.3,goods[i])
say("找到了",0.1)
say(name,0.5)
i = i + 1
search("矿石")
search("抗生素")
search("药膏")
\ No newline at end of file
speed = 0
while True:
speed=speed+1
right(speed)
if speed>50:
speed=50
\ No newline at end of file
while True:
if gety()<50:
changey(10)
\ No newline at end of file
setsize(50)
while True:
if gety()==50:
setsize(40)
silpto(3,0,50)
\ No newline at end of file
goal=rando(1,20)
answer=0
while True:
if answer < goal:
say("可以试试大一点的数字",1)
if answer > goal:
say("可以试试小一点的数字",1)
if answer == goal:
say("恭喜你答对了!")
\ No newline at end of file
while True:
if distanceto("bug") < 50:
forward(-3)
else:
forward(3)
\ No newline at end of file
while True:
if iskeydown("space"):
else:
pendown()
\ No newline at end of file
name=input("勇于挑战的创造师你叫什么呀?")
print(name+",你是最棒的创造师耶")
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
for i in range(5): for i in range(5)
pen.forward(200) \ No newline at end of file
pen.right(144)
pen.hideturtle()
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment