refactor: 重构项目结构和资源管理

- 将主程序代码和资源文件移动到Game目录下
- 更新构建脚本以适配新的目录结构
- 重构应用初始化流程,移除冗余代码
- 更新着色器文件路径和资源管理逻辑
- 删除废弃的windows.lua构建脚本
- 优化Switch平台构建配置
This commit is contained in:
2026-03-16 02:45:52 +08:00
parent f8c2c26cdc
commit 092a28c30e
18 changed files with 82 additions and 181 deletions

View File

@@ -10,7 +10,10 @@ add_rules("mode.debug", "mode.release")
local host_plat = os.host()
local target_plat = get_config("plat") or host_plat
local supported_plats = {mingw = true, windows = true, linux = true, macosx = true, switch = true}
if target_plat == "windows" then
target_plat = "mingw"
end
local supported_plats = {mingw = true, linux = true, macosx = true, switch = true}
-- 自动选择平台
if not supported_plats[target_plat] then