Commit 9ed8ed9a by BellCodeEditor

save project

parent 284ae834
Showing with 0 additions and 39 deletions
# 初始使用硬件做准备
pymnit()
# 创建一个窗口
scr # pygame数)
# 背景
backgme.image.load('bg.png')
right =im'apple.png') # 食物 苹果
body = pygapng') # 头 朝左
up = pyg.png') # 头 朝上
score = 0
while Tru:
for evet():
if eve.QUIT:
# 接收到退出事件后退出程序
exit()
if event
randint(1,22)
num2
appl30
apple_y 30
else:
position.pop(0)
if x < 0 o0 or y > 450:
exit(
screen.blund, (0, 0))
screen.blit(sna蛇的身体画上去
forrdy, position[i])
pyay.update()
FPSCk(3)
\ 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