Commit 44f77ff1 by BellCodeEditor

save project

parent e38eaa98
Showing with 4 additions and 4 deletions
import pygame
from pygame import locals
......@@ -9,8 +10,8 @@ grid_num_height = 25 # 纵向格子数量
FPS = 30
# 创建窗口
screen = pygame.display.set_mode((460, 500))
pygame.display.set_caption("俄罗斯方块")
screen = pygame.display.set_mode((460,500))
pygame.display.set_caption('俄罗斯方块')
clock = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数)
# 载入素材
background = pygame.image.load('bg.png')
......@@ -46,4 +47,4 @@ while True:
screen.blit(text_surface,(350,70))
# 刷新画面
pygame.display.update()
clock.tick(FPS)
\ No newline at end of file
clock.tick(FPS)
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