Commit 77165d4f by BellCodeEditor

save project

parent 42d73b23
Showing with 3 additions and 4 deletions
import pygame import pygame
pygame.init()
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
# 创建一个窗口 # 创建一个窗口
from pygame import locals from pygame import locals
pygame.init()
screen=pygame.display.set_mode((800,600)) screen=pygame.display.set_mode((800,600))
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
print(event) print(event)
if event.type==locals.QUIT: if event.type==locals.QUIT:
exits() exits()
\ No newline at end of file
screen.blitl(background,(0,0))
\ 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