Commit 410dd03e by BellCodeEditor

auto save

parent a8e11563
Showing with 4 additions and 5 deletions
......@@ -2,7 +2,6 @@ import pygame
from pygame import locals
pygame.init() # 初始化
# 创建一个窗口
screen = pygame.display.set_mode((1000, 600))
......@@ -48,9 +47,9 @@ while True:
t=30
wukong=hero[index]
if jumpState=="runing":
if jumpState =="runing":
index += 1
if index>=5:
if index==5:
index=0
# 将背景图画上去
......@@ -59,4 +58,4 @@ while True:
screen.blit(wukong, (150, 400))
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
FPS.tick(30)
\ 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