Commit 1deba1aa by BellCodeEditor

save project

parent 8349565a
Showing with 5 additions and 1 deletions
......@@ -22,7 +22,11 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.type
if event.type == locals.KEYDOWN:
if event.key == locals.K_RIGHT and center[1]<15:
center[1] += 1
if event.key == locals.K_LEFT and center[1]>0:
center[1] -= 1
# 将背景图画上去
screen.blit(background,(0,0))
# 得分
......
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