1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 07:21:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/PipeBullet.gd
T
fallingshrimp d1bf911c79 feat(武器): 添加钢管武器蓄力特效和音效
- 为钢管武器添加蓄力粒子效果
- 新增钢管落地音效资源
- 修改钢管子弹碰撞形状为圆形
- 添加钢管武器能量消耗和冷却时间配置
- 实现钢管子弹销毁时的落地效果
2026-02-05 20:26:47 +08:00

12 lines
339 B
GDScript

extends BulletBase
class_name PipeBullet
var energy: float = 0
func ai():
PresetBulletAI.forward(self, rotation)
texture.rotation += energy * (1 - lifeTimePercent()) / 100
speed = initialSpeed * (1 - lifeTimePercent())
func destroy(_beacuseMap: bool):
EffectController.create(ComponentManager.getEffect("PipeFall"), position).shot()