完善样式设计:樱花粉风格

This commit is contained in:
2026-04-24 10:37:30 +08:00
parent 2f477272ab
commit 141405c5f5
5 changed files with 285 additions and 100 deletions
+5
View File
@@ -11,6 +11,11 @@ constexpr int nGameWidth = 10;
constexpr int nGameHeight = 20;
constexpr int nWidth = 16;
constexpr int nHeight = 22;
constexpr int WINDOW_PADDING = 28;
constexpr int SIDE_PANEL_WIDTH = 320;
constexpr int SIDE_PANEL_GAP = 28;
constexpr int WINDOW_CLIENT_WIDTH = WINDOW_PADDING * 2 + nGameWidth * GRID + SIDE_PANEL_GAP + SIDE_PANEL_WIDTH;
constexpr int WINDOW_CLIENT_HEIGHT = WINDOW_PADDING * 2 + nGameHeight * GRID + 20;
// 定义一个点,用来表示方块的位置
struct Point