Commit f073f570 by BellCodeEditor

save project

parent 130418e0
Showing with 13 additions and 1 deletions
...@@ -4,4 +4,15 @@ import pygame ...@@ -4,4 +4,15 @@ import pygame
pygame.init() pygame.init()
# 创建一个窗 # 创建一个窗
pygame.diplay.set_mode((660,48)) scrern=pygame.diplay.set_mode((660,480))
a=pygame.image.load('bg.png')
b=pygame.image.load('left.png')
c=pygame.image.load('apple.png')
while True:
for event in pyame.event.get():
if event.type==locals.QUIT():
exit()
scrern.blit(a,(0,0))
scrern.blit(a,(240,180))
scrern.blit(a,(150,30))
pygame.dispiay.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