Commit 9c727373 by BellCodeEditor

save project

parent c6dae833
Pipeline #11646 failed in 0 seconds
Showing with 9 additions and 2 deletions
...@@ -3,7 +3,14 @@ from pygame import locals ...@@ -3,7 +3,14 @@ from pygame import locals
pygame.init() pygame.init()
pygame.display.set_mode((800,600)) pygame.display.set_mode((800,600))
a=pygame.image.load("bg.png")
b=pygame.image.load("apple.png")
c=pygame.image.load("down.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()
\ No newline at end of file a.blit(a,(0,0))
b.blit(b,(240,30))
c.blit(c,(30,90))
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