Commit 80e46b40 by BellCodeEditor

auto save

parent ef00ae50
Showing with 4 additions and 3 deletions
# 创建面板
import pygame import pygame
from pygame import locals from pygame import locals
pygame.init() pygame.init()
# 导入图片
bg=pygame.image.load('bg.png') bg=pygame.image.load('bg.png')
rt=pygame.image.load('right.png') rt=pygame.image.load('right.png')
ae=pygame.image.load('apple.png') ae=pygame.image.load('apple.png')
by=pygame.image.load('body.png') by=pygame.image.load('body.png')
#
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
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:
exit() exit()
......
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