1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00

feat(角色): 添加KukeMC的AI逻辑和轮廓着色器

实现KukeMC的AI行为,包括子弹检测和Boss伤害逻辑
添加新的轮廓着色器用于角色渲染
在测试场景中新增角色和着色器演示
This commit is contained in:
2025-09-08 22:14:05 +08:00
parent de7a1e7317
commit 49ff189fe5
5 changed files with 80 additions and 2 deletions
+14 -1
View File
@@ -1,2 +1,15 @@
extends EntityBase
class_name KukeMC
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)