Add networked crab gathering prototype

This commit is contained in:
Alexander Sellite 2026-08-14 22:11:49 -04:00
parent f55663c105
commit a62cce6404
56 changed files with 2692 additions and 56 deletions

View file

@ -0,0 +1,13 @@
[gd_resource type="Resource" script_class="GatherableData" load_steps=3 format=3]
[ext_resource type="Script" path="res://gathering/gatherable_data.gd" id="1_data"]
[ext_resource type="Resource" path="res://fish/species/crab_blue/crab_blue.tres" id="2_catch"]
[resource]
script = ExtResource("1_data")
type_id = &"crab_blue"
catch_data = ExtResource("2_catch")
required_tool_id = &"crab_net"
surface_materials = Array[StringName]([&"sand"])
minimum_surface_y = -0.8
population = 4

View file

@ -0,0 +1,26 @@
[gd_resource type="Resource" script_class="GatherableData" load_steps=3 format=3]
[ext_resource type="Script" path="res://gathering/gatherable_data.gd" id="1_data"]
[ext_resource type="Resource" path="res://fish/species/crab_brown/crab_brown.tres" id="2_catch"]
[resource]
script = ExtResource("1_data")
type_id = &"crab_brown"
catch_data = ExtResource("2_catch")
required_tool_id = &"crab_net"
surface_materials = Array[StringName]([&"sand"])
minimum_surface_y = 0.08
population = 2
movement_speed = 0.35
roam_radius = 3.5
scare_radius = 2.8
capture_radius = 0.7
interaction_range = 2.6
charge_duration = 2.0
sprite_pixel_size = 0.001
sprite_tilt_degrees = -45.0
capture_respawn_min_seconds = 480.0
capture_respawn_max_seconds = 720.0
scare_respawn_min_seconds = 45.0
scare_respawn_max_seconds = 90.0
minimum_respawn_spacing_seconds = 180.0

View file

@ -0,0 +1,13 @@
[gd_resource type="Resource" script_class="GatherableData" load_steps=3 format=3]
[ext_resource type="Script" path="res://gathering/gatherable_data.gd" id="1_data"]
[ext_resource type="Resource" path="res://fish/species/crab_dungeness/crab_dungeness.tres" id="2_catch"]
[resource]
script = ExtResource("1_data")
type_id = &"crab_dungeness"
catch_data = ExtResource("2_catch")
required_tool_id = &"crab_net"
surface_materials = Array[StringName]([&"sand"])
minimum_surface_y = -0.5
population = 4

View file

@ -0,0 +1,13 @@
[gd_resource type="Resource" script_class="GatherableData" load_steps=3 format=3]
[ext_resource type="Script" path="res://gathering/gatherable_data.gd" id="1_data"]
[ext_resource type="Resource" path="res://fish/species/crab_ghost/crab_ghost.tres" id="2_catch"]
[resource]
script = ExtResource("1_data")
type_id = &"crab_ghost"
catch_data = ExtResource("2_catch")
required_tool_id = &"crab_net"
surface_materials = Array[StringName]([&"sand"])
minimum_surface_y = 0.08
population = 4

View file

@ -0,0 +1,11 @@
[gd_resource type="Resource" script_class="GatherableCatalog" load_steps=6 format=3]
[ext_resource type="Script" path="res://gathering/gatherable_catalog.gd" id="1_catalog"]
[ext_resource type="Resource" path="res://gathering/catalog/crab_brown.tres" id="2_brown"]
[ext_resource type="Resource" path="res://gathering/catalog/crab_ghost.tres" id="3_ghost"]
[ext_resource type="Resource" path="res://gathering/catalog/crab_blue.tres" id="4_blue"]
[ext_resource type="Resource" path="res://gathering/catalog/crab_dungeness.tres" id="5_dungeness"]
[resource]
script = ExtResource("1_catalog")
entries = [ExtResource("2_brown"), ExtResource("3_ghost"), ExtResource("4_blue"), ExtResource("5_dungeness")]