Commit 7b8be455 by BellCodeEditor

save project

parent 67309929
Showing with 7 additions and 1 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:
......@@ -12,3 +15,6 @@ while True:
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