Commit 9ac91a47 by BellCodeEditor

save project

parent f953fd9e
Showing with 1 additions and 0 deletions
...@@ -4,6 +4,7 @@ import os ...@@ -4,6 +4,7 @@ import os
pygame.init() # 初始化 pygame.init() # 初始化
# 创建窗口 # 创建窗口
FPSCLOCK = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数)
screen = pygame.display.set_mode((640, 480)) screen = pygame.display.set_mode((640, 480))
# 载入图片、资源 # 载入图片、资源
bg_img = pygame.image.load('background.png') # 背景图 bg_img = pygame.image.load('background.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