Commit 1ae57b8a by BellCodeEditor

save project

parent 0d100d60
Showing with 1 additions and 2 deletions
......@@ -2,7 +2,7 @@ import pygame
from pygame import locals
pygame.init()
screen = pygame.display.set_mode((660, 480))
FPSCLOCK=pygame.Clock.tick()
FPSCLOCK=pygame.time.Clock()
# 背景
background = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
......@@ -13,7 +13,6 @@ positon={(210, 120),(180, 120),(180, 90)}
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
# 将背景图画上去
screen.blit(background, (0, 0))
......
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