mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 07:21:54 +08:00
327afcc721
实现小鸡的冲刺攻击能力,包括: 1. 新增ChickSprint子弹类型及场景 2. 为EntityBase添加拖尾粒子效果 3. 添加攻击蓄力特效和音效 4. 调整小鸡的攻击冷却时间和冲刺倍率 5. 优化TickTool工具类添加until方法 6. 修改世界背景z-index避免遮挡 调整战斗平衡性: 1. 降低默认冲刺倍率 2. 修改测试波次配置 3. 增加新的攻击方式选项
11 lines
305 B
GDScript
11 lines
305 B
GDScript
class_name TickTool
|
|
|
|
static func millseconds(ms: int):
|
|
return await WorldManager.tree.create_timer(ms / 1000.0).timeout
|
|
static func frame(count: int = 1):
|
|
for i in range(count):
|
|
await WorldManager.tree.physics_frame
|
|
static func until(predicate: Callable):
|
|
while not predicate.call():
|
|
await frame()
|