mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
Use GameScene to control render
This commit is contained in:
@@ -7,4 +7,11 @@ struct GameConfig {
|
||||
int windowHeight = 900;
|
||||
std::string windowTitle = "孢子棋";
|
||||
bool vsync = true;
|
||||
} ;
|
||||
} ;
|
||||
|
||||
// 获取棋盘渲染区域信息(用于坐标转换)
|
||||
struct BoardArea {
|
||||
int x, y; // 左上角像素坐标
|
||||
int cellSize; // 每格像素大小
|
||||
int rows, cols; // 行列数
|
||||
};
|
||||
Reference in New Issue
Block a user