1.2 KiB
1.2 KiB
xiandie
《衔蝶》开发代码
说明
- animation frames:res://config/animation/entity_sprite_frames.tres
插件
Ground 与 GroundLoader
- 正常游戏:Main -> GroundLoader -> Ground
- 开发阶段:直接编辑 Ground
存档结构
- 存档命名为:"save"+三位数字
- 如果不足三位数字,则会忽略;超过三位数字不会忽略,可以正常读取
- 这是为了方便多存档功能进行文本排序等
- 开发阶段 debug 存档:save000
- 开发阶段 index 页面进入的游戏存档:save001
- 发行后,玩家游戏过程中,自动保存的存档编号范围(最多 10 个,循环保存):000-019
- 发行后,玩家游戏过程中,手动保存的存档编号范围(最多 10 个栏位):050-059
- 发行后,玩家游戏过程中最多有以上 20 个存档
每个场景都有一份 GroundArchive 存档,通过 ArchiveManager.archive.ground_archive() 可以获得。
current_scene 是通过 GroundLoader 加载的,在 ground loader 加载 ground 时,会先更新 archive 的 current scene,然后加载 ground。