Commit 83387a6a by BellCodeEditor

auto save

parent fe320d9c
Showing with 6 additions and 2 deletions
......@@ -6,7 +6,7 @@ pygame.init() # 鍒濆鍖?
# 鍒涘缓涓€涓獥鍙?
screen = pygame.display.set_mode((1000, 600))
FPS = pygame.time.Clock() # pygame鏃堕挓锛屾帶鍒舵父鎴忛€熷害锛堝抚鏁帮級
pygame.display.set_caption("鎮熺┖閰疯窇")
pygame.display.set_caption("悟空跑酷")
# 杞藉叆鍥剧墖
background = pygame.image.load('bg.png') # 鑳屾櫙
road = pygame.image.load('road.png') # 璺?
......@@ -23,8 +23,12 @@ index = 0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 鎺ユ敹鍒伴€€鍑轰簨浠跺悗閫€鍑虹▼搴?
exit()
if event.type == locals.KEYDOWN:
if event.key == locals.K_SPACE:
``
wukong = hero[index]
index += 1
......
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