Commit 281a23cf by BellCodeEditor

save project

parent 95406c85
Showing with 14 additions and 2 deletions
import pygame import pygame
from plgame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
w=pygame.image.load("bg.png")
e=pygame.image.load('right.png')
r=pygame.image.load('apple.png')
t=pygame.image.load('body.png')
# 创建一个窗口 # 创建一个窗口
q=pygame.display.set_mode((800,600)) q=pygame.display.set_mode((800,600))
while True:
for event in pygame.event.get():
print(event)
if event.type==6:
exit()
q.blit(background,(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