mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-01 08:51:53 +08:00
feat(子弹): 添加链枪子弹资源与逻辑
添加链枪子弹的图片资源、脚本和场景文件 为RainbowCat子弹添加穿透属性和生命周期 在子弹AI预设中添加面向鼠标的功能
This commit is contained in:
@@ -10,3 +10,5 @@ static func trace(bullet: BulletBase, target: Vector2, speed: float):
|
||||
bullet.position.angle_to_point(target),
|
||||
speed
|
||||
)
|
||||
static func faceToMouse(bullet: BulletBase):
|
||||
bullet.rotation = bullet.position.angle_to_point(bullet.get_global_mouse_position())
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
extends BulletBase
|
||||
|
||||
func ai():
|
||||
PresetBulletAI.faceToMouse(self)
|
||||
func applyDot():
|
||||
pass
|
||||
@@ -1,5 +1,7 @@
|
||||
extends BulletBase
|
||||
class_name RainbowCat
|
||||
|
||||
func register():
|
||||
penerate = 1
|
||||
func ai():
|
||||
PresetBulletAI.forward(self, rotation)
|
||||
|
||||
Reference in New Issue
Block a user