Commit ae5e4d32 by BellCodeEditor

auto save

parent a282d1de
Showing with 16 additions and 4 deletions
import pygame import pygame
# 初始化pygame,为使用pygame做准备 from pygame import locals
#pygame,display.set_mode(size=(width,beight),flags=0,depth=0,display=0)
pygame.init() pygame.init()
#pygame,display.set_mode(size=(width,beight),flags=0,depth=0,display=0)
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
backgroundpygame.image.load,(bg.png')
backgroundpygame.image.load,(0,0))
# 创建一个窗口 # 创建一个窗口
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(background,(0,0))
pygame.display.updat
\ 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