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,13 +10,16 @@ target("Frostbite2D")
add_files(path.join(os.projectdir(), "Frostbite2D/src/**.c"))
add_includedirs(path.join(os.projectdir(), "Frostbite2D/include"))
add_files(path.join(os.projectdir(), "Game/src/**.cpp"))
add_includedirs(path.join(os.projectdir(), "Game/include"))
add_packages("libsdl2")
add_packages("glm")
-- 复制着色器文件到输出目录
after_build(function (target)
-- 复制 shaders 目录
local shaders_dir = path.join(os.projectdir(), "shaders")
local shaders_dir = path.join(os.projectdir(), "Game/shaders")
local output_dir = target:targetdir()
local target_shaders_dir = path.join(output_dir, "shaders")