Commit 29f042cc by BellCodeEditor

save project

parent 124a137f
Showing with 10 additions and 3 deletions
...@@ -10,11 +10,17 @@ pygame.init() ...@@ -10,11 +10,17 @@ pygame.init()
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
sou=pygame.image.load("apple.png") sou=pygame.image.load("apple.png")
so=pygame.image.load("bg.png") so=pygame.image.load("bg.png")
su=pygame.image.load("down.png") su=pygame.image.load("body.png")
s=pygame.image.load("right.png") s=pygame.image.load("right.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:
exit() exit()
screen.blit(so,(0,0))
screen.blit(su,(210,120))
screen.blit(su,(180,120))
screen.blit(su,(180,90))
screen.blit(sou,(270,180))
screen.blit(s,(240,120))
pygame.display.update()
\ No newline at end of file
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