Commit e82f9919 by BellCodeEditor

auto save

parent 2ac98be0
Showing with 3 additions and 2 deletions
......@@ -26,11 +26,12 @@ while True:
center[1]+=1
elif event.key==locals.K_RIGHT:
center[1]-=1
elif event.key==locals.K_DOWN
elif event.key==locals.K_DOWN:
center[0]-=1
# 将背景图画上去
screen.blit(background,(0,0))
pygame.draw.rect(screen,(255,0,0),(120,20,20,20),0)
pygame.draw.rect(screen,(255,0,0),(center[1],20,20,20),0)
pygame.draw.rect(screen,(255,255,255),(120,20,20,20),1)
# 得分
score_text=font.render(str(score),True,(10,10,100))
......
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