Commit 72d1f517 by BellCodeEditor

save project

parent ea6e6a0e
Showing with 6 additions and 3 deletions
...@@ -9,9 +9,12 @@ grid_num_width = 15 # 横向格子数量 ...@@ -9,9 +9,12 @@ grid_num_width = 15 # 横向格子数量
grid_num_height = 25 # 纵向格子数量 grid_num_height = 25 # 纵向格子数量
FPS = 30 FPS = 30
# 创建窗口 #
screen = pygame.display.set_mode((460, 500)) screen = pygame.display.set_mode((460,500))
pygame.display.set_caption("俄罗斯方块") pygame.display.time.Clock()
clock = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数) clock = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数)
# 载入素材 # 载入素材
background = pygame.image.load('bg.png') background = pygame.image.load('bg.png')
......
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