猫史档案馆


Python作品(未完成)

用户:MC呆萌大明MC呆萌大明查看:0 回复:2 评论:0 创建时间:2020-11-03T23:23:31


先公开代码

import turtle
import turtle as t

t.bgcolor('yellow')
caterpillar = t.Turtle()
caterpillar.shape('喵')
caterpillar.color('red')
caterpillar.speed(0)
caterpillar.penup()
caterpillar.hideturtle()
leaf = t.tuetle()
leaf_shape = ((0, 0), (14, 2), (18, 6), (20, 20), (6, 18), (2, 14))
t.register_shape('leaf', leaf_shape)
leaf.shape('leaf')
leaf.color('green')
leaf.penup()
leaf.hideturtle()
leaf.speed(0)
game_started = False
text_turtle = t.Turtle()
text_turtle.write('Press SPACE to start', align='center',font=('Arial', 16, 'bold'))
text_turtle.hidetuetle()

score_tuetle = t.Turtle()
score_turtle.hideturtle()
score_turtle.speed(0)
def outside_window():
    pass

def game_over():
    pass

def display_scoer(current_score):
    pass

def place_leaf():
    pass

def start_game():
    global game_started
    if game_started:
        return
    game_started = True
    
    score = 0
    text_turtle.clear()

是不是很长?这只是百分之70


回复

上一页1 页 / 共 1下一页
༺༽༾ཊ源代码(养佬中)ཏ༿༼༻༺༽༾ཊ源代码(养佬中)ཏ༿༼༻

不长

点赞0


评论


༺༽༾ཊ源代码(养佬中)ཏ༿༼༻༺༽༾ཊ源代码(养佬中)ཏ༿༼༻

我java都比你长!

点赞0


评论