Commit 61c713d0 by BellCodeEditor

save project

parent f23509ef
Showing with 1 additions and 1 deletions
......@@ -2,6 +2,7 @@ import pygame
from pygame import locals
x=240
y=120
position = [(180,90),(180,120),(180,150),(180,180)]
# 初始化pygame,为使用硬件做准备
pygame.init()
......@@ -20,7 +21,6 @@ while True:
# 接收到退出事件后退出程序
exit()
x += 30
y +=0
# 将背景图画上去
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