Commit 8dfd9bd4 by BellCodeEditor

save project

parent dd3b3243
Showing with 22 additions and 2 deletions
......@@ -4,4 +4,24 @@ import pygame
pygame.init()
# 创建一个窗口
pygame.display.set_mode((800,600))
\ No newline at end of file
pygame.display.set_mode((800,600))
x,y=240,120
position = [(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
x += 30
position.append((x,y))
position.pop(0)
screen.bilt(backgroind,(0,0))
screen.bilt(right,position[-1])
for i in range(len(position)-1):
screen.bilt(body,position[i])
\ 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