Commit 9f662f22 by BellCodeEditor

auto save

parent 5880eb52
Showing with 12 additions and 0 deletions
1.png

148 KB

import pygame
from pygame import locals
pygame.init()#硬件准备
bgground=pygame.image.load("1.png")#导入素材库图片
screen=pygame.display.set_mode((888,600))#设置窗口大小(宽,高)
while True:
for event in pygame.event.get():#持续获取状态
if event.type==locals.QUIT:
exit()
screen.blit(bgground,(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