Commit 0e7a3c55 by BellCodeEditor

auto save

parent 0d40ef07
Showing with 7 additions and 4 deletions
......@@ -18,6 +18,7 @@ background = pygame.image.load('bg.png')
font = pygame.font.Font('STKAITI.TTF', 60) # 字体\
center=[2,8]
curr_shape = [(0, -1),(0, 0),(0, 1),(0, 2)]
while True:
for event in pygame.event.get():
......@@ -26,13 +27,15 @@ while True:
if event.type == locals.KEYDOWN:
if event.key == locals.K_RIGHT:
if center[1]<15:
center[1] += 1
center[1] = center[1]+1
elif event.key == locals.K_LEFT:
if center[1]>1:
center[1] -= 1
if center[1] > 1:
center[1] = center[1] - 1
elif event.key == locals.K_DOWN:
if center[0]<25:
center[0] += 1
center[0] += center[0] + 1
......
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