(wip) Player food

This commit is contained in:
2026-02-07 15:31:43 +01:00
parent 2352a3aa07
commit 232184afba
12 changed files with 104 additions and 26 deletions

View File

@@ -7,7 +7,7 @@
[ext_resource type="Script" uid="uid://xbiqj7ubmj7d" path="res://molecular/prey/state_idle.gd" id="4_8a23j"]
[ext_resource type="Texture2D" uid="uid://jyuf4lgjo64" path="res://molecular/assets/predator/hammerheadRibozyme-hurt.png" id="4_shhro"]
[ext_resource type="Script" uid="uid://ubcu8fdfxxj1" path="res://molecular/prey/state_random_movement.gd" id="5_6rsu5"]
[ext_resource type="Script" uid="uid://bc7apl71t0q04" path="res://molecular/predator/state_hunting.gd" id="8_7qt2q"]
[ext_resource type="Script" path="res://molecular/predator/state_hunting.gd" id="8_7qt2q"]
[sub_resource type="AtlasTexture" id="AtlasTexture_8a23j"]
atlas = ExtResource("2_34kwa")
@@ -118,21 +118,18 @@ metadata/_custom_type_script = "uid://ck7k8ht54snsy"
[node name="Idle" type="Node" parent="StateMachine" unique_id=265876039]
script = ExtResource("4_8a23j")
metadata/_custom_type_script = "uid://co2xp7gauamql"
[node name="Timer" type="Timer" parent="StateMachine/Idle" unique_id=1870665609]
one_shot = true
[node name="RandomMovement" type="Node" parent="StateMachine" unique_id=105315122]
script = ExtResource("5_6rsu5")
metadata/_custom_type_script = "uid://co2xp7gauamql"
[node name="Timer" type="Timer" parent="StateMachine/RandomMovement" unique_id=447822526]
one_shot = true
[node name="Hunting" type="Node" parent="StateMachine" unique_id=1569866955]
script = ExtResource("8_7qt2q")
metadata/_custom_type_script = "uid://co2xp7gauamql"
[node name="Sight" type="Area2D" parent="." unique_id=1608385873]
collision_layer = 0