Commit 44f77ff1 by BellCodeEditor

save project

parent e38eaa98
Showing with 3 additions and 2 deletions
import pygame import pygame
from pygame import locals from pygame import locals
...@@ -9,8 +10,8 @@ grid_num_height = 25 # 纵向格子数量 ...@@ -9,8 +10,8 @@ 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.set_caption('俄罗斯方块')
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