Commit 1614a5ad by BellCodeEditor

save project

parent 56f2e3b2
Showing with 3 additions and 3 deletions
...@@ -4,9 +4,9 @@ from pygame import locals ...@@ -4,9 +4,9 @@ from pygame import locals
pygame.init() pygame.init()
a = pygame.time.Clock() a = pygame.time.Clock()
# 创建一个窗口 # 创建一个窗口
x,y = 240,120 x,y = 240,150
screen = pygame.display.set_mode((660, 480)) screen = pygame.display.set_mode((660, 480))
abc = [(210, 120),(180, 120),(180, 90),(x,y)] abc = [(180, 120),(180, 150),(210, 150),(x,y)]
# 背景 # 背景
background = pygame.image.load('bg.png') background = pygame.image.load('bg.png')
right = pygame.image.load('right.png') right = pygame.image.load('right.png')
...@@ -18,7 +18,7 @@ while True: ...@@ -18,7 +18,7 @@ while True:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
x += 30 x += 30
abc.insert(-1,(x,y)) abc.append((x,y))
abc.pop(0) abc.pop(0)
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) 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