feat(mobs): fish schools + jellyfish + shark + spawner with distance-based life cycle

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Floppyrj45
2026-04-19 17:16:39 +02:00
parent d39a55dc45
commit 37e66a1350
7 changed files with 667 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=3 uid="uid://fishschool001"]
[ext_resource type="Script" path="res://scripts/mobs/FishSchool.gd" id="1_fishschool"]
[node name="FishSchool" type="Node3D"]
script = ExtResource("1_fishschool")
fish_count = 12
school_radius = 4.0
swim_speed = 2.5

View File

@@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=3 uid="uid://jellyfish001"]
[ext_resource type="Script" path="res://scripts/mobs/Jellyfish.gd" id="1_jellyfish"]
[node name="Jellyfish" type="CharacterBody3D"]
script = ExtResource("1_jellyfish")
max_health = 20.0
damage = 5.0
detection_radius = 6.0
attack_radius = 1.5
move_speed = 1.0

11
scenes/mobs/Shark.tscn Normal file
View File

@@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=3 uid="uid://shark001"]
[ext_resource type="Script" path="res://scripts/mobs/Shark.gd" id="1_shark"]
[node name="Shark" type="CharacterBody3D"]
script = ExtResource("1_shark")
max_health = 50.0
damage = 15.0
detection_radius = 12.0
move_speed = 4.0
chase_speed = 7.0