51 lines
1.8 KiB
Markdown
51 lines
1.8 KiB
Markdown
# xiandie
|
||
|
||
《衔蝶》开发代码
|
||
|
||
# 说明
|
||
|
||
- animation frames:res://config/animation/entity_sprite_frames.tres
|
||
|
||
## 插件
|
||
|
||
- [DialogueManager 使用与维护说明](https://docs.qq.com/doc/DWG5vaEZ1Qk9EdVVw)
|
||
- [GIF 插件](https://godotengine.org/asset-library/asset/2255)
|
||
|
||
### ProAnimatedSprite2D
|
||
|
||
插件路径:addons/property-inspector/pro_animation_sprite2d
|
||
|
||

|
||
|
||
ProAnimatedSprite2D,增强 AnimatedSprite2D 的表现,在其基础上增加:
|
||
|
||
1. 播放+移动:播放特定动画时自动移动,可配置移速
|
||
2. 播放某动画后自动跳转:播放一个动画结束后,自动播放另一个
|
||
3. 自动跳转可以设置循环播放次数,若干次后再跳转
|
||
4. 跳转前可以等待 wait_time 时长
|
||
|
||
其中:
|
||
|
||
1. action configs 配置动画跳转逻辑
|
||
2. move configs 配置播放特定动画时的移动速度
|
||
|
||
## 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。
|