Commit db82e4b9 by BellCodeEditor

auto save

parent b256d69b
Showing with 5 additions and 0 deletions
...@@ -2,6 +2,7 @@ import pygame ...@@ -2,6 +2,7 @@ import pygame
from pygame import locals from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
t=pygame.time.Clock() t=pygame.time.Clock()
s
x,y=240,120 x,y=240,120
she=[(210,120),(180,120),(180,90),(x,y)] she=[(210,120),(180,120),(180,90),(x,y)]
pygame.init() pygame.init()
...@@ -15,6 +16,10 @@ while True: ...@@ -15,6 +16,10 @@ while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit() exit()
x += 30 x += 30
she.append((x,y)) she.append((x,y))
she.pop(0) she.pop(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