mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
49ff189fe5
实现KukeMC的AI行为,包括子弹检测和Boss伤害逻辑 添加新的轮廓着色器用于角色渲染 在测试场景中新增角色和着色器演示
15 lines
398 B
GDScript
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) |