fallingshrimp
c16a1ee73c
refactor(Statemachine): 引入CooldownTimer类重构攻击冷却逻辑
...
将攻击冷却逻辑从EntityBase中提取到独立的CooldownTimer类
简化EntityBase代码并提高可维护性
2025-09-05 22:29:40 +08:00
fallingshrimp
d4501ae45d
feat: 添加新武器彩虹旗和紫水晶簇,调整饲料属性和数值
...
refactor: 重构子弹生成逻辑,支持分裂和折射效果
fix: 修复掉落物拾取范围和碰撞检测问题
style: 优化UI显示,添加武器品质和类型标签
docs: 更新字段描述,调整部分饲料名称和分类
perf: 优化数学工具函数,添加随机数处理工具
test: 调整波次生成逻辑,添加新敌人类型
build: 添加新资源文件和相关导入配置
2025-09-05 22:23:41 +08:00
fallingshrimp
3cb10a481d
fix(Statemachine): 修复攻击逻辑中声音播放与攻击执行顺序问题
...
调整攻击逻辑,确保在攻击成功时才播放攻击音效,避免音效与攻击动作不同步
2025-08-29 16:50:34 +08:00
fallingshrimp
8464138311
feat(掉落物): 将物品拾取半径改为可配置属性
...
将硬编码的物品拾取半径改为从FieldStore中获取的可配置属性,并增加默认值60。同时调整了EntityBase中的初始物品数量配置。
2025-08-29 15:20:50 +08:00
fallingshrimp
bd8a7d5d2c
feat(音效/特效): 添加角色死亡音效和血液特效
...
添加多个音效文件并实现角色死亡时的血液粒子效果
调整冲刺逻辑和数值,修复激光子弹的显示位置
为不同攻击类型添加对应音效,增强游戏表现力
2025-08-29 14:29:07 +08:00
fallingshrimp
327afcc721
feat(战斗系统): 添加小鸡冲刺攻击技能及相关特效
...
实现小鸡的冲刺攻击能力,包括:
1. 新增ChickSprint子弹类型及场景
2. 为EntityBase添加拖尾粒子效果
3. 添加攻击蓄力特效和音效
4. 调整小鸡的攻击冷却时间和冲刺倍率
5. 优化TickTool工具类添加until方法
6. 修改世界背景z-index避免遮挡
调整战斗平衡性:
1. 降低默认冲刺倍率
2. 修改测试波次配置
3. 增加新的攻击方式选项
2025-08-29 13:56:31 +08:00
fallingshrimp
5525bcd7bc
feat(角色): 添加角色生成时的行走动画
...
在Chick角色和EntityBase基类中添加spawn方法,用于在角色生成时播放行走动画
2025-08-29 12:51:43 +08:00
fallingshrimp
896713c527
refactor(EntityBase): 移除冲刺能量消耗逻辑
...
简化冲刺功能实现,不再需要能量消耗机制
2025-08-29 12:48:04 +08:00
fallingshrimp
171dbb1131
refactor(BulletBase/EntityBase): 重构子弹和实体属性系统
...
将子弹的fields属性拆分为独立的speed、damage和penerate变量
为所有子弹和实体添加register方法用于初始化属性
统一攻击冷却时间管理为attackCooldownMap
移除FieldStore中不再使用的Bullet相关枚举和映射
2025-08-29 10:50:22 +08:00
fallingshrimp
c322e3b796
refactor(Statemachine): 替换Time.get_ticks_msec为WorldManager.getTime
...
统一使用WorldManager.getTime获取时间,提高代码一致性并便于未来时间管理逻辑的修改
2025-08-29 10:27:32 +08:00
fallingshrimp
506f0b0924
feat: 添加团子猫饲料和能量系统改进
...
- 新增团子猫饲料资源及配置
- 扩展FieldStore枚举添加节能和能量再生效率
- 改进EntityBase能量存储和使用逻辑
- 添加WorldManager运行时间追踪功能
2025-08-29 10:26:41 +08:00
fallingshrimp
1c481ca357
feat(Debug): 添加FeedHasField调试组件及调整苹果掉落数量
...
添加FeedHasField调试组件用于筛选特定字段的Feed,支持ALL和ANY两种组合模式
将EntityBase中苹果掉落数量上限从3调整为2
2025-08-29 08:24:18 +08:00
fallingshrimp
f13edb7f1a
refactor(FieldStore): 移除未使用的掉落物重力相关枚举值
...
重构EntityBase.gd中的字段分组,提升代码可读性
2025-08-29 07:58:52 +08:00
fallingshrimp
9015d2b723
加了后坐力然后优化了能量显示的逻辑,司马trae
2025-08-28 21:57:04 +08:00
fallingshrimp
ee86fca442
fix: 修复子弹伤害计算并添加命中成功回调
...
- 在EntityBase.gd中添加takeDamage方法的返回值
- 修改BigLaser.gd中的applyDot延迟时间计算方式并添加succeedToHit方法
- 在BulletBase.gd中完善伤害处理流程,添加命中回调机制
2025-08-28 15:53:39 +08:00
fallingshrimp
766a894879
feat(BigLaser): 降低能量消耗并增强伤害计算
...
调整BigLaser的能量需求从150降至100,同时根据发射者的攻击速度增强伤害
2025-08-28 15:45:38 +08:00
fallingshrimp
e669bf1c30
refactor(CameraManager): 重构相机震动系统并添加强度参数
...
- 移除shaking布尔变量,改用shakeIntensity控制震动强度
- 修改shake方法接受强度参数,支持叠加震动效果
- 简化震动逻辑,移除调试打印语句
feat(ItemDropped): 添加物品自动收集功能
- 当物品与玩家距离小于60时自动收集并销毁
- 调用玩家collectItem方法处理收集逻辑
refactor(EntityBase): 重构物品收集逻辑
- 将物品收集逻辑从信号回调移至collectItem方法
- 移除itemCollected信号及相关UI更新代码
- 简化hurtbox连接逻辑
style(World): 调整动画资源顺序
- 交换两个动画资源的定义顺序
2025-08-28 14:15:01 +08:00
fallingshrimp
55563254f1
fix: 将苹果的最大携带数量从20减少到10
2025-08-28 14:06:32 +08:00
fallingshrimp
aa533509a5
feat(UI): 添加显示实体属性的面板和动画效果
...
添加新的输入动作"showFields"用于显示/隐藏实体属性面板
创建新的FieldShow组件用于显示实体属性值
为属性面板添加显示/隐藏动画效果
调整EntityBase中属性初始化的顺序
2025-08-28 13:58:31 +08:00
fallingshrimp
62aa9995a9
feat(游戏机制): 添加幸运值对掉落率、暴击率和穿透率的影响
...
在GameRule中新增幸运值影响系数,并修改相关计算逻辑:
- 幸运值现在会影响苹果掉落率、暴击率和穿透率
- 更新了EntityBase和BulletBase中的相关计算逻辑
- 添加了GameRule中的相关配置参数
2025-08-28 13:19:42 +08:00
fallingshrimp
fc2233560c
fix(EntityBase): 调整伤害计算中的能量存储比例
...
- 冲刺时能量存储比例从50%降至25%
- 非冲刺时自身能量扣除比例从25%提升至50%
- 击败Boss时能量转移比例从50%降至35%
2025-08-28 13:01:16 +08:00
fallingshrimp
1f2bac326f
fix(UI): 修复EntityStateBar中levelLabel的引用问题
...
将levelLabel的引用更新为levelLabels以匹配场景中的节点名称,并确保节点在场景树中的唯一性
2025-08-28 12:58:00 +08:00
fallingshrimp
e877655c13
fix: 隐藏玩家状态栏的等级标签
...
当实体是玩家时,隐藏状态栏中的等级标签以避免显示不必要的信息
2025-08-28 12:52:57 +08:00
fallingshrimp
31426987a2
feat(战斗系统): 增强激光武器效果并添加击退机制
...
- 增加BigLaser的伤害值和能量消耗
- 为子弹添加击退效果和生成后自动释放功能
- 修改LaserPluse的动画参数并添加锁定发射器脚本
- 调整敌人受击时的能量获取和击退效果
- 更新波次生成配置
2025-08-28 12:34:41 +08:00
fallingshrimp
8de262a615
feat(实体系统): 添加敌人等级系统并调整相关UI和游戏规则
...
为敌人实体添加等级属性,影响生命值和伤害
在状态栏和Boss血条中显示等级信息
调整游戏规则增加难度相关的属性成长系数
修改粒子效果角度和波次生成逻辑
2025-08-28 11:00:19 +08:00
fallingshrimp
2d2f4f556c
feat(属性系统): 添加幸运属性并影响饲料品质概率
...
添加新的幸运属性(LUCK_VALUE)到实体属性系统中,并修改饲料品质随机权重计算逻辑,使幸运值能够影响高品质饲料的获取概率。同时调整了基础品质权重值,优化了随机分布。
- 在FieldStore中添加LUCK_VALUE枚举和映射
- 在EntityBase中初始化幸运值
- 修改FeedName的weight计算方式,加入幸运值影响因子
- 调整各品质的基础权重值
2025-08-28 09:46:02 +08:00
fallingshrimp
4c077af28d
fix(UI): 修正ColorBar默认值和DamageLabel文本显示
...
refactor(Bullets): 调整BigLaser和Diamond的旋转插值系数
feat(EntityBase): 添加掉落物提示概率控制
style(BossBar): 添加currentValue默认值和label对齐方式
docs(GameRule): 新增掉落物提示概率配置项
2025-08-28 08:22:13 +08:00
fallingshrimp
307e3dd63f
feat(相机管理): 添加CameraManager类并实现玩家跟随
...
refactor(物品展示): 修改ItemShow状态机自动隐藏逻辑
feat(游戏逻辑): 添加玩家死亡时的游戏结束界面
style(场景配置): 调整World场景中相机节点位置和偏移
feat(UI): 为ItemShow添加显示动画并更新动画库
2025-08-28 08:15:18 +08:00
fallingshrimp
a572a77eda
feat(游戏平衡): 调整敌人生成和子弹行为
...
- 将敌人数量增长逻辑移至GameRule并调整计算公式
- 修改鸡的攻击行为,子弹现在会朝向玩家发射
- 调整子弹伤害值和旋转动画
- 减少玩家初始苹果数量并增加敌人掉落苹果数量
- 修改BOSS出现波数为第8波
- 移除无用属性和优化代码结构
2025-08-28 07:45:50 +08:00
fallingshrimp
dfbacb0098
feat(UI): 为ColorBar添加currentValue属性并完善boss血条逻辑
...
为ColorBar组件添加currentValue属性以跟踪当前值。同时修复当设置boss时未正确更新血条显示的问题,确保boss血条在切换目标时能正确显示初始血量。
2025-08-28 07:35:34 +08:00
fallingshrimp
ef03aa2922
refactor(Statemachine): 重构实体状态栏和Boss栏逻辑
...
将EntityStateBar的_ready逻辑移到EntityBase中统一管理
修改BossBar的更新逻辑从_physics_process改为_process
调整Wave配置中Boss的出现波次从8改为1
2025-08-28 07:28:11 +08:00
fallingshrimp
71a77dbdca
feat(ItemShow): 为物品展示添加自动释放功能
...
在ItemShow.generate方法中新增isAutoFree参数,控制物品展示节点是否自动释放。这解决了需要手动管理物品展示节点内存的问题。
2025-08-28 06:55:18 +08:00
fallingshrimp
a29be1e431
feat(UI): 添加物品收集显示功能
...
- 新增CameraManager脚本用于相机管理
- 在UI场景中添加物品收集容器VBoxContainer
- 扩展ItemShow类支持生成物品显示实例
- 修改EntityBase添加物品收集信号和处理逻辑
- 调整BossBar位置和布局属性
2025-08-28 06:49:50 +08:00
fallingshrimp
bf64114633
feat(音效): 添加物品收集音效并改进数值显示
...
为物品收集添加音效播放功能
在EntityBase.gd中调用playSound("collect")
添加Collect.wav音效文件及导入配置
改进数值显示格式:
- 在MathTool.gd中添加signBeforeStr方法
- 修改FieldShow.gd使用新方法显示带符号的数值
- 调整FieldShow.tscn的UI布局
同时修复MakeFeed.gd中feed显示问题
2025-08-27 21:43:06 +08:00
fallingshrimp
c2d3ac8bdb
改了一些东西,大概是哪些我忘了,嗯对
2025-08-27 21:14:06 +08:00
fallingshrimp
87fe5803f4
fix: 修复能量值设置逻辑,确保当前值在最小值和最大值之间
...
fix: 更新苹果数量,增加至10
2025-08-27 20:48:21 +08:00
fallingshrimp
d6cd74729b
feat: 更新UI和角色逻辑,优化能量条显示和状态管理
2025-08-27 20:47:04 +08:00
fallingshrimp
54a4113394
feat: 更新UI组件,添加能量条和颜色条,优化能量管理逻辑
2025-08-27 20:27:01 +08:00
fallingshrimp
b4d11ee98a
fix: 限制能量值为非负,调整伤害造成的能量存储比例
2025-08-27 20:03:57 +08:00
fallingshrimp
27e45b4551
fix: 调整伤害计算和能量存储逻辑,优化冲刺和受伤时的能量管理
2025-08-27 20:00:21 +08:00
fallingshrimp
a688fe3b44
Add laser sound effect and implement BigLaser bullet behavior
...
- Added laserbig.ogg sound effect import configuration.
- Created BigLaser script extending BulletBase with AI targeting and dot application functionality.
2025-08-27 19:59:05 +08:00
fallingshrimp
9e396eef3d
Refactor feed components and UI interactions
...
- Updated various feed components (Cake, Cupcake, Dango, Donut, FruitPlatter, FruitSalad, Milk, Orange, RedJam, Strawberry, Taco, WaterBottle, Xigua-Full, Xigua-Half, YellowJam) to correct names, textures, and display names.
- Modified MakeFeed scene to improve feed selection and display logic, including the addition of skip functionality.
- Enhanced UIState and EntityBase scripts to manage feed counts and selections more effectively.
- Introduced DirTool for directory operations and improved file loading mechanisms.
- Adjusted TickTool for frame-based operations.
2025-08-27 16:33:21 +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
fallingshrimp
f764f0b3c9
feat: 添加能量属性到角色,更新攻击逻辑以消耗能量
2025-08-27 12:46:20 +08:00
fallingshrimp
b3b4fdafc2
Add new styleboxes and import energy texture
...
- Created a new SVG import for the energy texture, enabling better resource management and compression.
- Added a StyleBoxFlat resource for the top left panel with specified margins, background color, border width, and corner radius.
- Introduced a StyleBoxFlat resource for the top panel with similar properties, ensuring consistent UI design across panels.
2025-08-27 11:08:11 +08:00
fallingshrimp
730f732ef1
Add import configuration for Chomp.wav audio effect
2025-08-27 10:23:57 +08:00
fallingshrimp
5b2c2f5cf7
feat: 添加新的子弹类型和相关逻辑,更新角色攻击方式,增加无差别伤害选项
2025-08-27 08:58:14 +08:00
fallingshrimp
739be888f3
feat: 更新饲料和面板逻辑,添加香蕉饲料,重构UI组件和状态管理
2025-08-26 22:31:28 +08:00
fallingshrimp
51fc904a6a
feat: 添加掉落物功能,更新饲料和物品显示,重构相关UI组件
2025-08-26 20:46:02 +08:00
fallingshrimp
417ca71de3
Add HarmonyOS Sans font and implement QuickUI for text handling
...
- Imported HarmonyOS Sans Regular font with appropriate settings for rendering and fallback.
- Created QuickUI script to facilitate the creation of small text labels with optional centering.
- Added new theme resources for big bold text and small text, defining font sizes for RichTextLabel and Label respectively.
2025-08-26 19:35:26 +08:00