Commit 070ff501 by BellCodeEditor

auto save

parent 04fa7089
Showing with 2 additions and 2 deletions
...@@ -2,6 +2,7 @@ import pygame ...@@ -2,6 +2,7 @@ import pygame
from pygame import locals from pygame import locals
pygame.init() pygame.init()
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
backgrade = pygame.image.load('bg.png') backgrade = pygame.image.load('bg.png')
...@@ -10,10 +11,9 @@ food = pygame.image.load('apple.png') ...@@ -10,10 +11,9 @@ food = pygame.image.load('apple.png')
body = pygame.image.load('body.png') body = pygame.image.load('body.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
print(event) #print(event)
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() 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