Commit 526457be by BellCodeEditor

auto save

parent 15a77a1e
Showing with 16 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
screen = pygame.display.set_mode((600,480))
#循环
while True:
#事件监听
for event in pygame.event.get():
#print(event)
if event.type == locals.QUIT:
exit()
\ No newline at end of file
......@@ -9,8 +9,10 @@ background=pygame.image.load('bg.png')#背景图
right=pygame.image.load('right.png')#头 朝右
food=pygame.image.load('apple.png')#食物 苹果
body=pygame.image.load('body.png')#身体
#创建一个窗口
scree=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
#print(event)
......
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