尝试调整结构,添加各项类组

This commit is contained in:
zhiyuan committed 2026-08-07 22:06:36 +08:00
1 parent f76bbc6442
commit b581f4def2
3 files changed
+43 -3

No files matched your search

+5 -3
View File
@@ -7,6 +7,7 @@
# Description:
# ---------------------------------------------------------------------------
import pygame
from common.colorconf import Color
# 初始化pygame
pygame.init()
@@ -35,9 +36,10 @@ up_status = False
down_status = False
# 颜色
WHITE = (255, 255, 255)
RED = (255, 0, 0)
BLUE = (0, 0, 255)
color = Color()
WHITE = color.white
RED = color.red
BLUE = color.blue
# 游戏循环
running = True
while running: