Commit bcfbbc1e by BellCodeEditor

save project

parent 55a3646c
Showing with 4 additions and 0 deletions
......@@ -4,6 +4,9 @@ from random import*
pygame.init() # 初始化
class
# 创建一个窗口
screen = pygame.display.set_mode((1000, 600))
FPS = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数)
......@@ -19,6 +22,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
#变量初始化
lu_x=0
shan_x=0
index = 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