Commit 384a3bf5 by BellCodeEditor

save project

parent 4109bc3a
Showing with 2 additions and 2 deletions
...@@ -18,7 +18,7 @@ background = pygame.image.load('bg.png') ...@@ -18,7 +18,7 @@ background = pygame.image.load('bg.png')
font = pygame.font.Font('STKAITI.TTF', 60) # 字体\ font = pygame.font.Font('STKAITI.TTF', 60) # 字体\
center=[2,8] center=[2,8]
current_shape = [(-1,0),(0,0),(0,1),(0,-1)] current_shape = [(0,-1),(0,0),(0,1),(0,-1)]
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -35,7 +35,7 @@ while True: ...@@ -35,7 +35,7 @@ while True:
center[0] += 1 center[0] += 1
currrnt_pos + [] current_pos = []
for cube in current_shape: for cube in current_shape:
pos = (cube[0]+center[0],cube[1]+center[1]) pos = (cube[0]+center[0],cube[1]+center[1])
current_pos.append(pos) current_pos.append(pos)
......
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