Commit 49ac77f4 by BellCodeEditor

auto save

parent 3283f6d0
Showing with 3 additions and 5 deletions
......@@ -35,11 +35,10 @@ while True:
if event.key == locals.K_DOWN:
if center[0] < 25:
center[0]=center[0]+1
pygame.draw.rectpygame.draw.rect(Surface,color,rect,width = 0)
pygame.draw.rect(Surface,color,rect,width = 0)
# 将背景图画上去
screen.blit(background,(0,0))
pygame.draw.rect(screen,(255,0,0),(120,20,20,20),0)
pygame.draw.rect(screen,(255,255,255),(120,20,20,20),1)
pygame.draw.rect
curr_pos = []
for cube in curr_shape:
aa = (cube[0] + center[0],cube[1] + center[1])
......@@ -57,4 +56,4 @@ while True:
screen.blit(text_surface,(350,70))
# 刷新画面
pygame.display.update()
clock.tick(FPS)
\ No newline at end of file
clock.tick(FPS)
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