Commit 2505ba41 by BellCodeEditor

save project

parent 13a4c6c7
Showing with 2 additions and 1 deletions
...@@ -2,7 +2,7 @@ import pygame ...@@ -2,7 +2,7 @@ import pygame
import os import os
from pygame import locals from pygame import locals
FPS=pygame.time.Clock()
pygame.init() # 初始化 pygame.init() # 初始化
# 创建窗口 # 创建窗口
screen = pygame.display.set_mode((640, 480)) screen = pygame.display.set_mode((640, 480))
...@@ -94,3 +94,4 @@ while True: ...@@ -94,3 +94,4 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(50)
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