Embed Switch game assets in RomFS
This commit is contained in:
@@ -21,7 +21,6 @@ game/
|
||||
├─ movement/ 可复用的移动和碰撞辅助工具
|
||||
├─ scene/ 游戏场景和关卡编排
|
||||
├─ stage/ 关卡视觉层渲染
|
||||
├─ switch_game_main.cpp Switch/NS 游戏入口
|
||||
└─ main.cpp 游戏可执行文件入口点
|
||||
```
|
||||
|
||||
@@ -116,9 +115,9 @@ xmake -b Frostbite2DGame
|
||||
build/windows/x64/release/Frostbite2DGame.exe
|
||||
```
|
||||
|
||||
Switch/NS 游戏框架目标为 `Frostbite2DGameSwitch`。它使用
|
||||
`game/src/switch_game_main.cpp` 作为平台入口,复用同一套 Scene、Stage、
|
||||
Actor、Movement、Debug 和 Data 模块。
|
||||
Switch/NS 游戏框架目标为 `Frostbite2DGameSwitch`。它复用
|
||||
`game/src/main.cpp`,入口内部通过 `__SWITCH__` 编译分支处理平台差异,
|
||||
并复用同一套 Scene、Stage、Actor、Movement、Debug 和 Data 模块。
|
||||
|
||||
构建命令:
|
||||
|
||||
@@ -133,10 +132,10 @@ build/switch/aarch64/release/Frostbite2DGame.elf
|
||||
build/switch/aarch64/release/switch_game/NSUnknownGame.nro
|
||||
```
|
||||
|
||||
Switch 运行时资源目录:
|
||||
Switch 运行时资源目录优先使用内嵌 RomFS:
|
||||
|
||||
```text
|
||||
/switch/Frostbite2D/NS Unknown Game/assets
|
||||
romfs:/assets
|
||||
```
|
||||
|
||||
## 后续架构步骤
|
||||
|
||||
Reference in New Issue
Block a user