Commit fe9c7d72 by BellCodeEditor

save project

parent 64e91cca
Showing with 4 additions and 0 deletions
......@@ -2,6 +2,8 @@ import pygame
from pygame import locals
pygame.init()
background = pygame.image.load('bg.png')
# 创建一个窗口
screen = pygame.display.set_mode((660,480))
while True:
......@@ -9,3 +11,5 @@ while True:
print(event)
if event.type == locals.QUIT:
exit()
screen.blit(background,(0,0))
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