xiandie/README.md

51 lines
1.8 KiB
Markdown
Raw Normal View History

2024-12-20 16:04:02 +00:00
# xiandie
《衔蝶》开发代码
# 说明
2025-01-17 11:22:34 +00:00
- animation framesres://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 配置示例](readme_image/image.png)
ProAnimatedSprite2D增强 AnimatedSprite2D 的表现,在其基础上增加:
1. 播放+移动:播放特定动画时自动移动,可配置移速
2. 播放某动画后自动跳转:播放一个动画结束后,自动播放另一个
3. 自动跳转可以设置循环播放次数,若干次后再跳转
4. 跳转前可以等待 wait_time 时长
其中:
1. action configs 配置动画跳转逻辑
2. move configs 配置播放特定动画时的移动速度
2025-01-17 11:22:34 +00:00
## Ground 与 GroundLoader
- 正常游戏Main -> GroundLoader -> Ground
- 开发阶段:直接编辑 Ground
## 存档结构
- 存档命名为:"save"+三位数字
- 如果不足三位数字,则会忽略;超过三位数字不会忽略,可以正常读取
- 这是为了方便多存档功能进行文本排序等
- 开发阶段 debug 存档save000
- 开发阶段 index 页面进入的游戏存档save001
- 发行后,玩家游戏过程中,自动保存的存档编号范围(最多 10 个循环保存000-019
- 发行后,玩家游戏过程中,手动保存的存档编号范围(最多 10 个栏位050-059
- 发行后,玩家游戏过程中最多有以上 20 个存档
2025-01-17 11:22:34 +00:00
每个场景都有一份 GroundArchive 存档,通过 ArchiveManager.archive.ground_archive() 可以获得。
current_scene 是通过 GroundLoader 加载的,在 ground loader 加载 ground 时,会先更新 archive 的 current scene然后加载 ground。