Commit 00f8fa2e by BellCodeEditor

auto save

parent d7fabb8e
Showing with 1 additions and 7 deletions
import pygame
from pygame import locals
xy = [(0,90),(30,90),(60,90),(90,90)]
xy = []
FPS = pygame.time.Clock()
x = 90
y = 90
# 初始化pygame,为使用硬件做准备
pygame.init()
......@@ -23,10 +21,6 @@ while True:
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
x += 30
for i in range(4):
xy.del(i)
xy.insert(i,(x-4*30+i*30,y))
# 将背景图画上去
screen.blit(background, (0, 0))
# 将贪吃蛇画上去
......
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