Commit 3361bae4 by BellCodeEditor

save project

parent a3e47702
Showing with 8 additions and 0 deletions
...@@ -2,4 +2,11 @@ import pygame ...@@ -2,4 +2,11 @@ import pygame
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
background=pygame.image.load('bg.png')
screen=pygame.display.set_mode((640,830)) screen=pygame.display.set_mode((640,830))
while Ture:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(background,(0,0))
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