Files
Frostbite2D/xmake.lua
Lenheart ec16aeffa6 feat: 实现游戏摄像机控制器并优化地图系统
重构地图系统,增加摄像机控制器管理相机行为。主要变更包括:
- 新增 GameCameraController 类,支持跟随目标和调试模式
- 重构 GameMap 类,分离相机逻辑到控制器
- 优化地图资源加载和同步逻辑
- 改进动画系统的事件处理
- 添加地图测试场景用于快速验证
2026-04-02 20:07:42 +08:00

35 lines
778 B
Lua

set_project("Frostbite2D")
set_version("1.0.0")
set_license("MIT")
-- 语言和编码设置
set_languages("c++17")
set_encodings("utf-8")
add_rules("mode.debug", "mode.release")
add_moduledirs("modules")
local host_plat = "mingw"
local target_plat = get_config("plat") or host_plat
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
os.exists(1)
end
-- 引入对应平台的配置文件
local platform_config_file = "platform/" .. target_plat .. ".lua"
if os.isfile(platform_config_file) then
includes(platform_config_file)
else
print("Platform config file not found: " .. platform_config_file)
end