Commit 6b9592d2 by BellCodeEditor

save project

parent 04e18796
Showing with 11 additions and 0 deletions
......@@ -20,7 +20,18 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.type == locals.KEYDOWN:
if event.type == locals.K_RIGHT:
if centur[1]< 15:
centur[1] = centur[1]+1
elif event.key == locals.K_LEFT:
if centur[1]> 1:
centur[1] = centur[1]-1
elif event.key == locals.K_DOWN:
if centur[1]<25:
centur[1] = centur[0]+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