1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Commit Graph

5 Commits

Author SHA1 Message Date
fallingshrimp 9ea534441b feat(武器系统): 重构武器攻击逻辑并添加音效支持
- 将武器攻击逻辑移至Weapon类中,添加tryAttack方法统一处理冷却和能量消耗
- 为武器添加音效支持,包括攻击音效的播放和管理
- 移除子弹生成时的能量消耗检查,改由武器统一处理
- 调整部分武器的属性和配置,如伤害值和冷却时间
- 修复紫水晶子弹的分裂和折射逻辑错误
2025-09-06 08:50:37 +08:00
fallingshrimp a7e05cff65 refactor(bullets): 重命名PresetsAI为PresetAIs并添加地图碰撞检测
将子弹AI预设类从PresetsAI重命名为PresetAIs
为BulletBase添加autoDestroyOnHitMap选项控制地图碰撞销毁
修改多个子弹脚本使用新的PresetAIs类名
为ChickSprint子弹添加地图碰撞伤害逻辑
2025-08-29 18:34:58 +08:00
fallingshrimp 187100f500 refactor(子弹系统): 将子弹前进逻辑提取到PresetsAI类中
将多个子弹类型的forward调用统一到PresetsAI类中,提高代码复用性
删除LockLauncher.gd文件及部分场景文件中冗余的fields配置
2025-08-29 10:56:33 +08:00
fallingshrimp 171dbb1131 refactor(BulletBase/EntityBase): 重构子弹和实体属性系统
将子弹的fields属性拆分为独立的speed、damage和penerate变量
为所有子弹和实体添加register方法用于初始化属性
统一攻击冷却时间管理为attackCooldownMap
移除FieldStore中不再使用的Bullet相关枚举和映射
2025-08-29 10:50:22 +08:00
fallingshrimp 1a918a7a14 Refactor and update various components and assets
- Updated WaterBottle scene to change field values and costs, and modified avatar texture and display name.
- Removed unused pencil SVG and its import files.
- Updated Chomp sound effect with a new binary file.
- Modified Diamond bullet behavior to improve tracing logic.
- Increased rotation speed for Laser bullet.
- Adjusted Chick and Hen character attack methods to generate bullets without returning prematurely.
- Updated Rooster character to use PurpleCrystal bullet instead of Pencil.
- Enhanced BulletBase with new properties for energy consumption and animation control.
- Adjusted blend position interpolation in EntityBase for smoother movement.
- Added new Star bullet with its scene and script, including animation setup.
- Updated SVG and import files for new Star bullet graphics.
2025-08-27 15:38:30 +08:00