Commit 18e1cb14 by BellCodeEditor

save project

parent 0c06ab1d
Showing with 15 additions and 3 deletions
......@@ -3,9 +3,21 @@ from pygame import locals
pygame.init()
a=pygame.display.set_mode((800,480))
bj=pygame.display.set_mode((800,480))
bg=pygame.image.load('bg.png')
r=pygame.image.load('right.png')
a=pygame.image.load('apple.png')
b=pygame.image.load('body.png')
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
\ No newline at end of file
exit()
bj.blit(bg,(0,0))
bj.blit(r,(240,120))
bj.blit(a,(360,240))
bj.blit(b,(210,120))
bj.blit(b,(210,90))
bj.blit(b,(210,60))
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