Commit 7b8be455 by BellCodeEditor

save project

parent 67309929
Showing with 8 additions and 3 deletions
......@@ -2,8 +2,11 @@ import pygame
from pygame import locals
# 初始化pygame
pygame.init()
background =pygame.image.load('bg.png')
# 创建一个窗口
screen = pygame.display.set_mode((660,480))
while True:
......@@ -11,4 +14,7 @@ while True:
if event.type == locals.QUIT:
exit()
\ No newline at end of file
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