Commit 01c8e704 by BellCodeEditor

save project

parent ddae0e1f
Showing with 9 additions and 4 deletions
......@@ -3,9 +3,13 @@ import random
from pygame import locals
# 初始化pygame,为使用硬件做准备
pygame.init()
pygame.image.load("bg.png")
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
for event in pygameevent.get():
if event.type==locals.QUIT:
exit()
while true:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
pygame.screen.blit(background(0,0)):
pygame.
\ 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