1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/CursorKnife.gd
T
fallingshrimp 93fdb8e2b8 feat(武器系统): 添加武器来源显示功能并优化光标刀碰撞
- 在武器卡片中添加来源显示标签和数组字段
- 将光标刀的碰撞形状从矩形改为线段
- 为光标刀添加命中时的击退效果
- 优化场景文件格式和节点唯一ID
2026-04-04 08:55:15 +08:00

8 lines
205 B
GDScript

extends BulletBase
class_name CursorKnifeBullet
func ai():
PresetBulletAI.forward(self , rotation)
func succeedToHit(_dmg: float, entity: EntityBase):
entity.impluse(Vector2.from_angle(rotation) * 250)