Commit 9ac91a47 by BellCodeEditor

save project

parent f953fd9e
Showing with 2 additions and 2 deletions
......@@ -4,6 +4,7 @@ import os
pygame.init() # 初始化
# 创建窗口
FPSCLOCK = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数)
screen = pygame.display.set_mode((640, 480))
# 载入图片、资源
bg_img = pygame.image.load('background.png') # 背景图
......@@ -98,4 +99,4 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面
pygame.display.update()
FPSCLOCK.tick(60)
\ No newline at end of file
FPSCLOCK.tick(60)
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