Commit 61828ee5 by BellCodeEditor

auto save

parent 0591c9f3
Showing with 4 additions and 0 deletions
......@@ -3,6 +3,8 @@ from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
#加载背景图、贪吃蛇蛇头(右)、身体、苹果的图片
# 创建一个窗口screen
screen=pygame.display.set_mode((660,480))
while True: #无限循环
......@@ -10,3 +12,5 @@ while True: #无限循环
if event.type==locals.QUIT: #判断事件类型是否为退出程序
exit()#结束程序
#渲染图片
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