Commit 7851812b by BellCodeEditor

save project

parent 64fca0e9
Showing with 3 additions and 3 deletions
...@@ -13,7 +13,7 @@ stone = pygame.image.load('stone.png') # 石头 ...@@ -13,7 +13,7 @@ stone = pygame.image.load('stone.png') # 石头
cacti = pygame.image.load('cacti.png') # 仙人掌 cacti = pygame.image.load('cacti.png') # 仙人掌
apple = pygame.image.load('bush.png') # 灌木丛 apple = pygame.image.load('bush.png') # 灌木丛
hero=['hero1.png','hero2.png','hero3.png','hero4.png','hero5.png'] hero=['hero1.png','hero2.png','hero3.png','hero4.png','hero5.png']
index = 0 index = 0
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -30,4 +30,4 @@ while True: ...@@ -30,4 +30,4 @@ while True:
screen.blit(hero1, (150, 400)) screen.blit(hero1, (150, 400))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.tick(6)
\ No newline at end of file \ No newline at end of file
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