updating project files
Some checks failed
Create tag and build when new code gets to main / BumpTag (push) Successful in 31s
Create tag and build when new code gets to main / Test (push) Has been cancelled
Create tag and build when new code gets to main / Export (push) Has been cancelled

This commit is contained in:
2026-01-28 09:50:10 +01:00
parent 119850a7b4
commit af1f6da98d
656 changed files with 12395 additions and 5889 deletions

View File

@@ -1,13 +1,13 @@
[gd_scene load_steps=75 format=3 uid="uid://dy43c80qlfftx"]
[gd_scene format=3 uid="uid://dy43c80qlfftx"]
[ext_resource type="Shader" path="res://godot_state_charts_examples/ant_hill/ant/ant.gdshader" id="1_01qat"]
[ext_resource type="Shader" uid="uid://bx4vu24rcr0m5" path="res://godot_state_charts_examples/ant_hill/ant/ant.gdshader" id="1_01qat"]
[ext_resource type="Texture2D" uid="uid://bqgc7cft671q0" path="res://godot_state_charts_examples/ant_hill/ant/walk.png" id="1_7ajse"]
[ext_resource type="Script" path="res://godot_state_charts_examples/ant_hill/ant/ant.gd" id="1_i761n"]
[ext_resource type="Script" uid="uid://d4ld8mlrjp04a" path="res://godot_state_charts_examples/ant_hill/ant/ant.gd" id="1_i761n"]
[ext_resource type="PackedScene" uid="uid://dy5xrmjffewnk" path="res://godot_state_charts_examples/ant_hill/marker/marker.tscn" id="2_lqnr1"]
[ext_resource type="Script" path="res://addons/godot_state_charts/state_chart.gd" id="3_lard5"]
[ext_resource type="Script" path="res://addons/godot_state_charts/compound_state.gd" id="4_ejp2e"]
[ext_resource type="Script" path="res://addons/godot_state_charts/atomic_state.gd" id="5_21sgy"]
[ext_resource type="Script" path="res://addons/godot_state_charts/transition.gd" id="7_qj278"]
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="3_lard5"]
[ext_resource type="Script" uid="uid://jk2jm1g6q853" path="res://addons/godot_state_charts/compound_state.gd" id="4_ejp2e"]
[ext_resource type="Script" uid="uid://cytafq8i1y8qm" path="res://addons/godot_state_charts/atomic_state.gd" id="5_21sgy"]
[ext_resource type="Script" uid="uid://cf1nsco3w0mf6" path="res://addons/godot_state_charts/transition.gd" id="7_qj278"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_bjtx1"]
shader = ExtResource("1_01qat")
@@ -466,7 +466,7 @@ height = 12.0
[sub_resource type="CircleShape2D" id="CircleShape2D_htg24"]
radius = 80.0
[node name="Ant" type="CharacterBody2D"]
[node name="Ant" type="CharacterBody2D" unique_id=357919111]
z_index = 2048
z_as_relative = false
collision_layer = 16
@@ -477,7 +477,7 @@ safe_margin = 2.615
script = ExtResource("1_i761n")
marker_scene = ExtResource("2_lqnr1")
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
[node name="Sprite2D" type="AnimatedSprite2D" parent="." unique_id=1030931224]
material = SubResource("ShaderMaterial_bjtx1")
rotation = 1.5708
scale = Vector2(0.05, 0.05)
@@ -485,186 +485,200 @@ sprite_frames = SubResource("SpriteFrames_kcoy1")
animation = &"walk"
frame_progress = 0.938219
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=1705676987]
editor_description = "This navigation agent sends the \"navigation_finished\" event to the state chart whenever the navigation is done."
avoidance_enabled = true
radius = 40.0
max_speed = 50.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1692864822]
position = Vector2(0, 1)
shape = SubResource("CapsuleShape2D_1lk3q")
[node name="SensorArea" type="Area2D" parent="."]
[node name="SensorArea" type="Area2D" parent="." unique_id=1997461294]
[node name="CollisionShape2D" type="CollisionShape2D" parent="SensorArea"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="SensorArea" unique_id=1493720022]
shape = SubResource("CircleShape2D_htg24")
[node name="StateChart" type="Node" parent="."]
[node name="StateChart" type="Node" parent="." unique_id=1652274412]
script = ExtResource("3_lard5")
track_in_editor = true
[node name="Root" type="Node" parent="StateChart"]
[node name="Root" type="Node" parent="StateChart" unique_id=1619485726]
script = ExtResource("4_ejp2e")
initial_state = NodePath("Initializing")
[node name="Initializing" type="Node" parent="StateChart/Root"]
[node name="Initializing" type="Node" parent="StateChart/Root" unique_id=1173467514]
editor_description = "This state is used for script initialization."
script = ExtResource("5_21sgy")
[node name="Transition" type="Node" parent="StateChart/Root/Initializing"]
[node name="Transition" type="Node" parent="StateChart/Root/Initializing" unique_id=1132136339]
script = ExtResource("7_qj278")
to = NodePath("../../Seeking Food")
event = &"initialized"
delay_in_seconds = "0.0"
[node name="Seeking Food" type="Node" parent="StateChart/Root"]
[node name="Seeking Food" type="Node" parent="StateChart/Root" unique_id=35708485]
editor_description = "In this state, the ant will look for food."
script = ExtResource("4_ejp2e")
initial_state = NodePath("Idle")
[node name="Idle" type="Node" parent="StateChart/Root/Seeking Food"]
[node name="Idle" type="Node" parent="StateChart/Root/Seeking Food" unique_id=2055371097]
editor_description = "This state is active when the ant currently has no target. It is connected to the script which will look for a new target."
script = ExtResource("5_21sgy")
[node name="On Next Destination" type="Node" parent="StateChart/Root/Seeking Food/Idle"]
[node name="On Next Destination" type="Node" parent="StateChart/Root/Seeking Food/Idle" unique_id=837784741]
script = ExtResource("7_qj278")
to = NodePath("../../Travelling/Place Marker")
event = &"destination_set"
delay_in_seconds = "0.0"
[node name="On Food Detected" type="Node" parent="StateChart/Root/Seeking Food/Idle"]
[node name="On Food Detected" type="Node" parent="StateChart/Root/Seeking Food/Idle" unique_id=718952215]
script = ExtResource("7_qj278")
to = NodePath("../../../Picking up Food")
event = &"food_detected"
delay_in_seconds = "0.0"
[node name="Travelling" type="Node" parent="StateChart/Root/Seeking Food"]
[node name="Travelling" type="Node" parent="StateChart/Root/Seeking Food" unique_id=1951054255]
script = ExtResource("4_ejp2e")
initial_state = NodePath("Travel")
[node name="On Navigation Finish" type="Node" parent="StateChart/Root/Seeking Food/Travelling"]
[node name="On Navigation Finish" type="Node" parent="StateChart/Root/Seeking Food/Travelling" unique_id=1442664241]
editor_description = "When navigation is finished return to idle state."
script = ExtResource("7_qj278")
to = NodePath("../../Idle")
event = &"navigation_finished"
delay_in_seconds = "0.0"
[node name="Travel" type="Node" parent="StateChart/Root/Seeking Food/Travelling"]
[node name="Travel" type="Node" parent="StateChart/Root/Seeking Food/Travelling" unique_id=857682499]
editor_description = "This state is active while the ant is travelling when searching for food. Periodically the state will be left for placing a marker."
script = ExtResource("5_21sgy")
[node name="Periodically Place Marker" type="Node" parent="StateChart/Root/Seeking Food/Travelling/Travel"]
[node name="Periodically Place Marker" type="Node" parent="StateChart/Root/Seeking Food/Travelling/Travel" unique_id=120374019]
editor_description = "While searching for food, periodically place a marker pointing towards the nest. This transition will move to the \"Place Marker\" state which will trigger the placement of the marker. The \"Place Marker\" state will immediately return back to the \"Travel\" state."
script = ExtResource("7_qj278")
to = NodePath("../../Place Marker")
delay_seconds = 0.75
delay_in_seconds = "0.75"
[node name="Place Marker" type="Node" parent="StateChart/Root/Seeking Food/Travelling"]
[node name="Place Marker" type="Node" parent="StateChart/Root/Seeking Food/Travelling" unique_id=1932547830]
editor_description = "This state is briefly activated when the ant wants to place a marker. It will immediately exit again to the \"Travel\" state."
script = ExtResource("5_21sgy")
[node name="Return travelling" type="Node" parent="StateChart/Root/Seeking Food/Travelling/Place Marker"]
[node name="Return travelling" type="Node" parent="StateChart/Root/Seeking Food/Travelling/Place Marker" unique_id=1482996519]
script = ExtResource("7_qj278")
to = NodePath("../../Travel")
delay_in_seconds = "0.0"
[node name="Picking up Food" type="Node" parent="StateChart/Root"]
[node name="Picking up Food" type="Node" parent="StateChart/Root" unique_id=1498579937]
editor_description = "This state is active when the ant has detected food and wants to pick it up."
script = ExtResource("4_ejp2e")
initial_state = NodePath("Travelling")
[node name="Travelling" type="Node" parent="StateChart/Root/Picking up Food"]
[node name="Travelling" type="Node" parent="StateChart/Root/Picking up Food" unique_id=1898584525]
editor_description = "This state is active while the ant is moving towards the food."
script = ExtResource("5_21sgy")
[node name="On Navigation Finish" type="Node" parent="StateChart/Root/Picking up Food/Travelling"]
[node name="On Navigation Finish" type="Node" parent="StateChart/Root/Picking up Food/Travelling" unique_id=1459603142]
editor_description = "When navigation is finished we can pick up the food."
script = ExtResource("7_qj278")
to = NodePath("../../Picking Up")
event = &"navigation_finished"
delay_in_seconds = "0.0"
[node name="Picking Up" type="Node" parent="StateChart/Root/Picking up Food"]
[node name="Picking Up" type="Node" parent="StateChart/Root/Picking up Food" unique_id=691826560]
editor_description = "This state is active when the ant has reached the food and now picks it up."
script = ExtResource("5_21sgy")
[node name="On Picked Up" type="Node" parent="StateChart/Root/Picking up Food/Picking Up"]
[node name="On Picked Up" type="Node" parent="StateChart/Root/Picking up Food/Picking Up" unique_id=1812353397]
editor_description = "When navigation is finished return to idle state."
script = ExtResource("7_qj278")
to = NodePath("../../../Returning Home")
event = &"food_picked_up"
delay_in_seconds = "0.0"
[node name="On Food Vanished" type="Node" parent="StateChart/Root/Picking up Food/Picking Up"]
[node name="On Food Vanished" type="Node" parent="StateChart/Root/Picking up Food/Picking Up" unique_id=1828759205]
editor_description = "When navigation is finished return to idle state."
script = ExtResource("7_qj278")
to = NodePath("../../../Seeking Food")
event = &"food_vanished"
delay_in_seconds = "0.0"
[node name="Returning Home" type="Node" parent="StateChart/Root"]
[node name="Returning Home" type="Node" parent="StateChart/Root" unique_id=68722348]
editor_description = "This state is active when the ant has found food and wants to return home."
script = ExtResource("4_ejp2e")
initial_state = NodePath("Idle")
[node name="Idle" type="Node" parent="StateChart/Root/Returning Home"]
[node name="Idle" type="Node" parent="StateChart/Root/Returning Home" unique_id=1472914152]
editor_description = "This state is active when the ant currently has no destination. It calls back into the script which will setup a new destination."
script = ExtResource("5_21sgy")
[node name="On Next Destination" type="Node" parent="StateChart/Root/Returning Home/Idle"]
[node name="On Next Destination" type="Node" parent="StateChart/Root/Returning Home/Idle" unique_id=1710164190]
script = ExtResource("7_qj278")
to = NodePath("../../Travelling")
event = &"destination_set"
delay_in_seconds = "0.0"
[node name="On Nest Detected" type="Node" parent="StateChart/Root/Returning Home/Idle"]
[node name="On Nest Detected" type="Node" parent="StateChart/Root/Returning Home/Idle" unique_id=1259208177]
script = ExtResource("7_qj278")
to = NodePath("../../../Delivering Food")
event = &"nest_detected"
delay_in_seconds = "0.0"
[node name="Travelling" type="Node" parent="StateChart/Root/Returning Home"]
[node name="Travelling" type="Node" parent="StateChart/Root/Returning Home" unique_id=1574608417]
editor_description = "This state is active when the ant has a destination and is currently travelling."
script = ExtResource("4_ejp2e")
initial_state = NodePath("Travel")
[node name="On Navigation Finish" type="Node" parent="StateChart/Root/Returning Home/Travelling"]
[node name="On Navigation Finish" type="Node" parent="StateChart/Root/Returning Home/Travelling" unique_id=843084238]
editor_description = "When navigation is finished return to idle state."
script = ExtResource("7_qj278")
to = NodePath("../../Idle")
event = &"navigation_finished"
delay_in_seconds = "0.0"
[node name="Travel" type="Node" parent="StateChart/Root/Returning Home/Travelling"]
[node name="Travel" type="Node" parent="StateChart/Root/Returning Home/Travelling" unique_id=391342697]
script = ExtResource("5_21sgy")
[node name="Periodically Place Marker" type="Node" parent="StateChart/Root/Returning Home/Travelling/Travel"]
[node name="Periodically Place Marker" type="Node" parent="StateChart/Root/Returning Home/Travelling/Travel" unique_id=20755757]
script = ExtResource("7_qj278")
to = NodePath("../../Place Marker")
delay_seconds = 1.0
delay_in_seconds = "1.0"
[node name="Place Marker" type="Node" parent="StateChart/Root/Returning Home/Travelling"]
[node name="Place Marker" type="Node" parent="StateChart/Root/Returning Home/Travelling" unique_id=826088477]
editor_description = "This state is active when the ant has a destination and is moving towards it."
script = ExtResource("5_21sgy")
[node name="Return travelling" type="Node" parent="StateChart/Root/Returning Home/Travelling/Place Marker"]
[node name="Return travelling" type="Node" parent="StateChart/Root/Returning Home/Travelling/Place Marker" unique_id=210360225]
script = ExtResource("7_qj278")
to = NodePath("../../Travel")
delay_in_seconds = "0.0"
[node name="Delivering Food" type="Node" parent="StateChart/Root"]
[node name="Delivering Food" type="Node" parent="StateChart/Root" unique_id=113331670]
editor_description = "This state is active when the ant has detected the nest and wants to bring food back."
script = ExtResource("4_ejp2e")
initial_state = NodePath("Travelling")
[node name="Travelling" type="Node" parent="StateChart/Root/Delivering Food"]
[node name="Travelling" type="Node" parent="StateChart/Root/Delivering Food" unique_id=2113420401]
editor_description = "This state is active when the ant is moving towards the nest."
script = ExtResource("5_21sgy")
[node name="On Navigation Finish" type="Node" parent="StateChart/Root/Delivering Food/Travelling"]
[node name="On Navigation Finish" type="Node" parent="StateChart/Root/Delivering Food/Travelling" unique_id=1612529738]
editor_description = "When navigation is finished we can pick up the food."
script = ExtResource("7_qj278")
to = NodePath("../../Dropping")
event = &"navigation_finished"
delay_in_seconds = "0.0"
[node name="Dropping" type="Node" parent="StateChart/Root/Delivering Food"]
[node name="Dropping" type="Node" parent="StateChart/Root/Delivering Food" unique_id=844996374]
editor_description = "This state is active when the ant is dropping the food off at the nest."
script = ExtResource("5_21sgy")
[node name="On Dropped" type="Node" parent="StateChart/Root/Delivering Food/Dropping"]
[node name="On Dropped" type="Node" parent="StateChart/Root/Delivering Food/Dropping" unique_id=1491069231]
editor_description = "When navigation is finished return to idle state."
script = ExtResource("7_qj278")
to = NodePath("../../../Seeking Food")
event = &"food_dropped"
delay_in_seconds = "0.0"
[connection signal="input_event" from="." to="." method="_on_input_event"]
[connection signal="ready" from="Sprite2D" to="Sprite2D" method="play" binds= ["walk"]]

View File

@@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/walk.png-77b94883438df4792795bd4b6c922fa6.cte
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
@@ -25,6 +27,10 @@ mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false

View File

@@ -6,4 +6,3 @@ func _ready():
randomize()

File diff suppressed because one or more lines are too long

View File

@@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/banana.svg-e48dc3ddd49722cb94ca8f088061cec6.c
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
@@ -25,6 +27,10 @@ mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=3 format=3 uid="uid://bqalfgp8jjady"]
[gd_scene format=3 uid="uid://bqalfgp8jjady"]
[ext_resource type="Texture2D" uid="uid://cqt6bgiwgqym7" path="res://godot_state_charts_examples/ant_hill/banana/banana.svg" id="1_uoy0d"]
@@ -6,15 +6,15 @@
radius = 7.99901
height = 32.0275
[node name="banana" type="Node2D" groups=["food"]]
[node name="banana" type="Node2D" unique_id=419400810 groups=["food"]]
[node name="Sprite2D" type="Sprite2D" parent="."]
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1930543110]
texture_filter = 1
texture = ExtResource("1_uoy0d")
[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." unique_id=1672513448]
metadata/owner = NodePath("..")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1969441031]
rotation = 1.5865
shape = SubResource("CapsuleShape2D_vo3bi")

View File

@@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/circle_white.svg-63c895b75f0338e9c3ca264b8781
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
@@ -25,6 +27,10 @@ mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false

View File

@@ -1,20 +1,20 @@
[gd_scene load_steps=4 format=3 uid="uid://dy5xrmjffewnk"]
[gd_scene format=3 uid="uid://dy5xrmjffewnk"]
[ext_resource type="Texture2D" uid="uid://b3k7i5rrn5hhl" path="res://godot_state_charts_examples/ant_hill/marker/circle_white.svg" id="1_2vg4s"]
[ext_resource type="Script" path="res://godot_state_charts_examples/ant_hill/marker/marker.gd" id="2_2b6iy"]
[ext_resource type="Script" uid="uid://dikixfhsqssxf" path="res://godot_state_charts_examples/ant_hill/marker/marker.gd" id="2_2b6iy"]
[sub_resource type="CircleShape2D" id="CircleShape2D_0xsut"]
[node name="Node2D" type="Node2D"]
[node name="Node2D" type="Node2D" unique_id=953097858]
script = ExtResource("2_2b6iy")
[node name="Sprite" type="Sprite2D" parent="."]
[node name="Sprite" type="Sprite2D" parent="." unique_id=1576504907]
texture_filter = 1
rotation = 1.5708
texture = ExtResource("1_2vg4s")
[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." unique_id=987914028]
metadata/owner = NodePath("..")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1096694080]
shape = SubResource("CircleShape2D_0xsut")

View File

@@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/nest.svg-4361abbd79cc59afa101f89034d762a6.cte
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
@@ -25,6 +27,10 @@ mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false

View File

@@ -1,16 +1,16 @@
[gd_scene load_steps=3 format=3]
[gd_scene format=3 uid="uid://sql8ln0s26la"]
[ext_resource type="Texture2D" uid="uid://xb5fialweqfw" path="res://godot_state_charts_examples/ant_hill/nest/nest.svg" id="1_8slek"]
[sub_resource type="CircleShape2D" id="CircleShape2D_b8f1n"]
radius = 37.1214
[node name="Nest" type="Sprite2D" groups=["nest"]]
[node name="Nest" type="Sprite2D" unique_id=1978929971 groups=["nest"]]
texture = ExtResource("1_8slek")
[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." unique_id=632483343]
metadata/owner = NodePath("..")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1316671415]
position = Vector2(-1, -1)
shape = SubResource("CircleShape2D_b8f1n")