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,4 +1,4 @@
[gd_scene load_steps=7 format=3 uid="uid://i4v5fyt2ix01"]
[gd_scene format=3 uid="uid://i4v5fyt2ix01"]
[ext_resource type="PackedScene" uid="uid://nji5r3vfeuwg" path="res://godot_state_charts_examples/random_transitions/wandering_frog/wandering_frog.tscn" id="1_r2x6m"]
[ext_resource type="PackedScene" uid="uid://bcwkugn6v3oy7" path="res://addons/godot_state_charts/utilities/state_chart_debugger.tscn" id="2_n8tkm"]
@@ -24,9 +24,9 @@ size = Vector2(36, 418)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_e3j0h"]
size = Vector2(405, 35)
[node name="Random Transitions" type="Node2D"]
[node name="Random Transitions" type="Node2D" unique_id=52279508]
[node name="Ground" type="ColorRect" parent="."]
[node name="Ground" type="ColorRect" parent="." unique_id=1712463191]
material = SubResource("ShaderMaterial_8axp2")
offset_left = 39.0
offset_top = 68.0
@@ -34,68 +34,68 @@ offset_right = 319.0
offset_bottom = 478.0
color = Color(0.0980392, 0.560784, 0.152941, 1)
[node name="ColliderLeft" type="StaticBody2D" parent="."]
[node name="ColliderLeft" type="StaticBody2D" parent="." unique_id=228059170]
position = Vector2(0, 40)
collision_layer = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="ColliderLeft"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="ColliderLeft" unique_id=1963745429]
position = Vector2(35, 199)
shape = SubResource("RectangleShape2D_fkyfr")
[node name="ColliderRight" type="StaticBody2D" parent="."]
[node name="ColliderRight" type="StaticBody2D" parent="." unique_id=1906713239]
position = Vector2(329, 45)
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="ColliderRight"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="ColliderRight" unique_id=173218133]
position = Vector2(-9, 196)
shape = SubResource("RectangleShape2D_fkyfr")
[node name="ColliderTop" type="StaticBody2D" parent="."]
[node name="ColliderTop" type="StaticBody2D" parent="." unique_id=1640986237]
position = Vector2(375, 45)
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="ColliderTop"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="ColliderTop" unique_id=231369578]
position = Vector2(-176, 12)
shape = SubResource("RectangleShape2D_e3j0h")
[node name="ColliderBottom" type="StaticBody2D" parent="."]
[node name="ColliderBottom" type="StaticBody2D" parent="." unique_id=1273630072]
position = Vector2(375, 428)
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="ColliderBottom"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="ColliderBottom" unique_id=2073493117]
position = Vector2(-188, -27)
shape = SubResource("RectangleShape2D_e3j0h")
[node name="WanderingFrog" parent="." instance=ExtResource("1_r2x6m")]
[node name="WanderingFrog" parent="." unique_id=1965360825 instance=ExtResource("1_r2x6m")]
modulate = Color(0.454902, 0.458824, 1, 1)
position = Vector2(106, 158)
[node name="WanderingFrog2" parent="." instance=ExtResource("1_r2x6m")]
[node name="WanderingFrog2" parent="." unique_id=1639439330 instance=ExtResource("1_r2x6m")]
position = Vector2(224, 208)
[node name="WanderingFrog3" parent="." instance=ExtResource("1_r2x6m")]
[node name="WanderingFrog3" parent="." unique_id=1873590311 instance=ExtResource("1_r2x6m")]
position = Vector2(149, 275)
[node name="WanderingFrog4" parent="." instance=ExtResource("1_r2x6m")]
[node name="WanderingFrog4" parent="." unique_id=455681562 instance=ExtResource("1_r2x6m")]
position = Vector2(297, 340)
[node name="WanderingFrog5" parent="." instance=ExtResource("1_r2x6m")]
[node name="WanderingFrog5" parent="." unique_id=1101589222 instance=ExtResource("1_r2x6m")]
position = Vector2(79, 359)
[node name="WanderingFrog6" parent="." instance=ExtResource("1_r2x6m")]
[node name="WanderingFrog6" parent="." unique_id=1055250854 instance=ExtResource("1_r2x6m")]
position = Vector2(225, 126)
[node name="StateChartDebugger" parent="." instance=ExtResource("2_n8tkm")]
[node name="StateChartDebugger" parent="." unique_id=1215457625 instance=ExtResource("2_n8tkm")]
offset_left = 344.0
offset_top = 33.0
offset_right = 636.0
offset_bottom = 438.0
initial_node_to_watch = NodePath("../WanderingFrog")
[node name="Label" type="RichTextLabel" parent="."]
[node name="Label" type="RichTextLabel" parent="." unique_id=1358525059]
offset_left = 10.0
offset_top = 375.0
offset_right = 334.0

View File

@@ -46,4 +46,3 @@ func rescale():
scale = Vector2(scale_factor, scale_factor)

View File

@@ -1,12 +1,12 @@
[gd_scene load_steps=19 format=3 uid="uid://nji5r3vfeuwg"]
[gd_scene format=3 uid="uid://nji5r3vfeuwg"]
[ext_resource type="Script" path="res://godot_state_charts_examples/random_transitions/wandering_frog/wandering_frog.gd" id="1_tfcjx"]
[ext_resource type="Script" uid="uid://dg7apxhe32cgj" path="res://godot_state_charts_examples/random_transitions/wandering_frog/wandering_frog.gd" id="1_tfcjx"]
[ext_resource type="Texture2D" uid="uid://bgswg1pgd01d1" path="res://godot_state_charts_examples/platformer/ninja_frog/full.png" id="2_hm4wf"]
[ext_resource type="Script" path="res://addons/godot_state_charts/state_chart.gd" id="3_2vqqk"]
[ext_resource type="Script" path="res://addons/godot_state_charts/compound_state.gd" id="4_44md5"]
[ext_resource type="Script" path="res://addons/godot_state_charts/atomic_state.gd" id="5_j65h7"]
[ext_resource type="Script" path="res://addons/godot_state_charts/transition.gd" id="6_s6am2"]
[ext_resource type="Script" path="res://addons/godot_state_charts/expression_guard.gd" id="7_f5w5i"]
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="3_2vqqk"]
[ext_resource type="Script" uid="uid://jk2jm1g6q853" path="res://addons/godot_state_charts/compound_state.gd" id="4_44md5"]
[ext_resource type="Script" uid="uid://cytafq8i1y8qm" path="res://addons/godot_state_charts/atomic_state.gd" id="5_j65h7"]
[ext_resource type="Script" uid="uid://cf1nsco3w0mf6" path="res://addons/godot_state_charts/transition.gd" id="6_s6am2"]
[ext_resource type="Script" uid="uid://le5w1cm0ul8p" path="res://addons/godot_state_charts/expression_guard.gd" id="7_f5w5i"]
[sub_resource type="Shader" id="Shader_pnpgx"]
code = "shader_type canvas_item;
@@ -123,84 +123,82 @@ tracks/0/keys = {
[sub_resource type="AnimationLibrary" id="AnimationLibrary_au2ov"]
_data = {
"RESET": SubResource("Animation_uq0h4"),
"double_jump": SubResource("Animation_10ku2"),
"fall": SubResource("Animation_ibg22"),
"idle": SubResource("Animation_5rh2e"),
"jump": SubResource("Animation_jaga7"),
"walk": SubResource("Animation_6odvc")
&"RESET": SubResource("Animation_uq0h4"),
&"double_jump": SubResource("Animation_10ku2"),
&"fall": SubResource("Animation_ibg22"),
&"idle": SubResource("Animation_5rh2e"),
&"jump": SubResource("Animation_jaga7"),
&"walk": SubResource("Animation_6odvc")
}
[sub_resource type="Resource" id="Resource_27kjk"]
script = ExtResource("7_f5w5i")
expression = "randf() < 0.5"
[node name="WanderingFrog" type="CharacterBody2D"]
[node name="WanderingFrog" type="CharacterBody2D" unique_id=375456938]
collision_mask = 2
input_pickable = true
script = ExtResource("1_tfcjx")
[node name="Shadow" type="ColorRect" parent="."]
[node name="Shadow" type="ColorRect" parent="." unique_id=509124905]
material = SubResource("ShaderMaterial_fnfpn")
offset_left = -19.0
offset_top = -6.0
offset_right = 21.0
offset_bottom = 12.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=2083496555]
position = Vector2(0, -15)
shape = SubResource("CapsuleShape2D_1ethx")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_au2ov")
}
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1120842012]
libraries/ = SubResource("AnimationLibrary_au2ov")
[node name="Sprite" type="Sprite2D" parent="."]
[node name="Sprite" type="Sprite2D" parent="." unique_id=1745488073]
texture_filter = 1
texture = ExtResource("2_hm4wf")
offset = Vector2(0, -12)
hframes = 31
[node name="StateChart" type="Node" parent="."]
[node name="StateChart" type="Node" parent="." unique_id=566629720]
script = ExtResource("3_2vqqk")
track_in_editor = true
[node name="Wander" type="Node" parent="StateChart"]
[node name="Wander" type="Node" parent="StateChart" unique_id=1852255100]
editor_description = "This controls the wandering."
script = ExtResource("4_44md5")
initial_state = NodePath("Decide Next")
[node name="Decide Next" type="Node" parent="StateChart/Wander"]
[node name="Decide Next" type="Node" parent="StateChart/Wander" unique_id=348080485]
editor_description = "In this state the frog randomly decides what to do next. The \"To Idle\" transition has a guard which will pick it with a chance of 50%. If it is not picked, then the \"To Walk\" transition is picked. "
script = ExtResource("5_j65h7")
[node name="To Idle" type="Node" parent="StateChart/Wander/Decide Next"]
[node name="To Idle" type="Node" parent="StateChart/Wander/Decide Next" unique_id=1796567924]
script = ExtResource("6_s6am2")
to = NodePath("../../Idle")
guard = SubResource("Resource_27kjk")
delay_in_seconds = "0.0"
[node name="To Walk" type="Node" parent="StateChart/Wander/Decide Next"]
[node name="To Walk" type="Node" parent="StateChart/Wander/Decide Next" unique_id=715103189]
script = ExtResource("6_s6am2")
to = NodePath("../../Walk")
delay_in_seconds = "0.0"
[node name="Idle" type="Node" parent="StateChart/Wander"]
[node name="Idle" type="Node" parent="StateChart/Wander" unique_id=1413916729]
editor_description = "In this state the frog stands idly around for a random time."
script = ExtResource("5_j65h7")
[node name="To Decide Next" type="Node" parent="StateChart/Wander/Idle"]
[node name="To Decide Next" type="Node" parent="StateChart/Wander/Idle" unique_id=1219342053]
editor_description = "This will bring the frog back into the \"Decide Next\" state after a random amount of time."
script = ExtResource("6_s6am2")
to = NodePath("../../Decide Next")
delay_in_seconds = "randf_range(1.5, 3)"
[node name="Walk" type="Node" parent="StateChart/Wander"]
[node name="Walk" type="Node" parent="StateChart/Wander" unique_id=1946572285]
editor_description = "In this state the frog walks into a random direction for a random amount of time."
script = ExtResource("5_j65h7")
[node name="To Decide Next" type="Node" parent="StateChart/Wander/Walk"]
[node name="To Decide Next" type="Node" parent="StateChart/Wander/Walk" unique_id=1885621220]
editor_description = "This will bring the frog back into the \"Decide Next\" state after a random amount of time."
script = ExtResource("6_s6am2")
to = NodePath("../../Idle")