Commit 673c0fb7 by BellCodeEditor

save project

parent 6b1290d6
Showing with 3 additions and 1 deletions
import pygame
from pygame import locals
import random
# 初始化pygame,为使用硬件做准备
pygame.init()
FPSLCLDCK=pygame.time.Clock()
......@@ -48,6 +48,8 @@ while True:
tancheshe.append((x,y))
tancheshe.pop(0)
# 将背景图画上去
if apple_x and apple_y:
screen.blit(background, (0, 0))
# 将贪吃蛇画上去
screen.blit(right, tancheshe[-1])
......
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