Commit 214012a0 by BellCodeEditor

save project

parent 76968286
Showing with 2 additions and 2 deletions
...@@ -24,7 +24,7 @@ while True: ...@@ -24,7 +24,7 @@ while True:
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key == locals.K_RIGHT: if event.key == locals.K_RIGHT:
if center[1]<15: if center[1]<15:
center[1] += 1 center[1] += 1
elif event.key == locals.K_LEFT: elif event.key == locals.K_LEFT:
...@@ -46,5 +46,5 @@ while True: ...@@ -46,5 +46,5 @@ while True:
text_surface = font.render(str(score),True,(0,0,0)) text_surface = font.render(str(score),True,(0,0,0))
screen.blit(text_surface,(350,70)) screen.blit(text_surface,(350,70))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
clock.tick(FPS) 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