Commit 34aad979 by BellCodeEditor

auto save

parent c231e7cb
Showing with 7 additions and 0 deletions
...@@ -8,6 +8,9 @@ screen=pygame.display.set_mode((660,480)) ...@@ -8,6 +8,9 @@ screen=pygame.display.set_mode((660,480))
back=pygame.image.load('bg.png') back=pygame.image.load('bg.png')
b=pygame.image.load('apple.png') b=pygame.image.load('apple.png')
a=pygame.image.load('right.png') a=pygame.image.load('right.png')
c=pygame.image.load('body.png')
v=pygame.image.load('body.png')
d=pygame.image.load('body.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -15,4 +18,8 @@ while True: ...@@ -15,4 +18,8 @@ while True:
screen.blit(back,(0,0)) screen.blit(back,(0,0))
screen.blit(b,(0,0)) screen.blit(b,(0,0))
screen.blit(a,(120,360)) screen.blit(a,(120,360))
screen.blit(c,(120,330))
screen.blit(v,(120,300))
screen.blit(d,(120,270))
pygame.display.update() pygame.display.update()
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