1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Characters/KukeMC.gd
T
fallingshrimp 49ff189fe5 feat(角色): 添加KukeMC的AI逻辑和轮廓着色器
实现KukeMC的AI行为,包括子弹检测和Boss伤害逻辑
添加新的轮廓着色器用于角色渲染
在测试场景中新增角色和着色器演示
2025-09-08 22:14:05 +08:00

15 lines
398 B
GDScript

extends EntityBase
class_name KukeMC
func ai():
for bullet in get_tree().get_nodes_in_group("bullet"):
if (
bullet is LGBTBullet and
bullet.position.distance_to(self.position) < 100
):
bullet.tryDestroy()
for entity in get_tree().get_nodes_in_group("bosses"):
if (
entity.name == "FurryR" and
entity.position.distance_to(self.position) < 100
):
entity.takeDamage(114514)