Update demo
This commit is contained in:
parent
656bc169b0
commit
11f43c2494
|
@ -1,16 +1,11 @@
|
||||||
[gd_resource type="BehaviorTree" load_steps=13 format=3 uid="uid://cvm3gqes75f53"]
|
[gd_resource type="BehaviorTree" load_steps=11 format=3 uid="uid://cvm3gqes75f53"]
|
||||||
|
|
||||||
[sub_resource type="BBVariant" id="BBVariant_t70f2"]
|
[sub_resource type="BlackboardPlan" id="BlackboardPlan_a1pq1"]
|
||||||
resource_name = "false"
|
var/triggered/name = "triggered"
|
||||||
saved_value = false
|
var/triggered/type = 1
|
||||||
type = 1
|
var/triggered/value = false
|
||||||
|
var/triggered/hint = 0
|
||||||
[sub_resource type="BTSetVar" id="BTSetVar_nxwdg"]
|
var/triggered/hint_string = ""
|
||||||
variable = "triggered"
|
|
||||||
value = SubResource("BBVariant_t70f2")
|
|
||||||
|
|
||||||
[sub_resource type="BTRunLimit" id="BTRunLimit_mlytb"]
|
|
||||||
children = [SubResource("BTSetVar_nxwdg")]
|
|
||||||
|
|
||||||
[sub_resource type="BBVariant" id="BBVariant_8bpg1"]
|
[sub_resource type="BBVariant" id="BBVariant_8bpg1"]
|
||||||
resource_name = "false"
|
resource_name = "false"
|
||||||
|
@ -36,18 +31,19 @@ saved_value = "Hello, World!"
|
||||||
type = 4
|
type = 4
|
||||||
|
|
||||||
[sub_resource type="BTSetVar" id="BTSetVar_2e0uw"]
|
[sub_resource type="BTSetVar" id="BTSetVar_2e0uw"]
|
||||||
variable = "message"
|
variable = "_message"
|
||||||
value = SubResource("BBVariant_cu1uc")
|
value = SubResource("BBVariant_cu1uc")
|
||||||
|
|
||||||
[sub_resource type="BTConsolePrint" id="BTConsolePrint_533ui"]
|
[sub_resource type="BTConsolePrint" id="BTConsolePrint_533ui"]
|
||||||
text = "Message is: %s"
|
text = "Message is: %s"
|
||||||
bb_format_parameters = PackedStringArray("message")
|
bb_format_parameters = PackedStringArray("_message")
|
||||||
|
|
||||||
[sub_resource type="BTSequence" id="BTSequence_bhar3"]
|
[sub_resource type="BTSequence" id="BTSequence_bhar3"]
|
||||||
children = [SubResource("BTCheckVar_g5b0s"), SubResource("BTSetVar_u051c"), SubResource("BTSetVar_2e0uw"), SubResource("BTConsolePrint_533ui")]
|
children = [SubResource("BTCheckVar_g5b0s"), SubResource("BTSetVar_u051c"), SubResource("BTSetVar_2e0uw"), SubResource("BTConsolePrint_533ui")]
|
||||||
|
|
||||||
[sub_resource type="BTSelector" id="BTSelector_ndrjh"]
|
[sub_resource type="BTSelector" id="BTSelector_ndrjh"]
|
||||||
children = [SubResource("BTRunLimit_mlytb"), SubResource("BTSequence_bhar3")]
|
children = [SubResource("BTSequence_bhar3")]
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
|
blackboard_plan = SubResource("BlackboardPlan_a1pq1")
|
||||||
root_task = SubResource("BTSelector_ndrjh")
|
root_task = SubResource("BTSelector_ndrjh")
|
||||||
|
|
|
@ -8,10 +8,15 @@ var/speed/type = 3
|
||||||
var/speed/value = 200.0
|
var/speed/value = 200.0
|
||||||
var/speed/hint = 1
|
var/speed/hint = 1
|
||||||
var/speed/hint_string = "10,1000,10"
|
var/speed/hint_string = "10,1000,10"
|
||||||
|
var/waypoints/name = "waypoints"
|
||||||
|
var/waypoints/type = 28
|
||||||
|
var/waypoints/value = []
|
||||||
|
var/waypoints/hint = 0
|
||||||
|
var/waypoints/hint_string = "22:"
|
||||||
|
|
||||||
[sub_resource type="BTAction" id="BTAction_3xal7"]
|
[sub_resource type="BTAction" id="BTAction_3xal7"]
|
||||||
script = ExtResource("1_rhs33")
|
script = ExtResource("1_rhs33")
|
||||||
target_position_var = "wp"
|
target_position_var = "_wp"
|
||||||
speed_var = "speed"
|
speed_var = "speed"
|
||||||
tolerance = 50.0
|
tolerance = 50.0
|
||||||
|
|
||||||
|
@ -33,7 +38,7 @@ children = [SubResource("BTAction_3xal7"), SubResource("BTPlayAnimation_s01ov"),
|
||||||
[sub_resource type="BTForEach" id="BTForEach_0cp04"]
|
[sub_resource type="BTForEach" id="BTForEach_0cp04"]
|
||||||
children = [SubResource("BTSequence_a2ng0")]
|
children = [SubResource("BTSequence_a2ng0")]
|
||||||
array_var = "waypoints"
|
array_var = "waypoints"
|
||||||
save_var = "wp"
|
save_var = "_wp"
|
||||||
|
|
||||||
[sub_resource type="BTCooldown" id="BTCooldown_gen0l"]
|
[sub_resource type="BTCooldown" id="BTCooldown_gen0l"]
|
||||||
children = [SubResource("BTForEach_0cp04")]
|
children = [SubResource("BTForEach_0cp04")]
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
[gd_scene load_steps=2 format=3 uid="uid://d4bjeyescflm8"]
|
[gd_scene load_steps=3 format=3 uid="uid://d4bjeyescflm8"]
|
||||||
|
|
||||||
[ext_resource type="BehaviorTree" uid="uid://cvm3gqes75f53" path="res://demo/ai/trees/variables.tres" id="1_cm2sf"]
|
[ext_resource type="BehaviorTree" uid="uid://cvm3gqes75f53" path="res://demo/ai/trees/variables.tres" id="1_cm2sf"]
|
||||||
|
|
||||||
|
[sub_resource type="BlackboardPlan" id="BlackboardPlan_w5klr"]
|
||||||
|
var/triggered/name = "triggered"
|
||||||
|
var/triggered/type = 3
|
||||||
|
var/triggered/value = 0.0
|
||||||
|
var/triggered/hint = 0
|
||||||
|
var/triggered/hint_string = ""
|
||||||
|
|
||||||
[node name="Variables Example" type="Node2D"]
|
[node name="Variables Example" type="Node2D"]
|
||||||
|
|
||||||
[node name="BTPlayer" type="BTPlayer" parent="."]
|
[node name="BTPlayer" type="BTPlayer" parent="."]
|
||||||
behavior_tree = ExtResource("1_cm2sf")
|
behavior_tree = ExtResource("1_cm2sf")
|
||||||
|
blackboard_plan = SubResource("BlackboardPlan_w5klr")
|
||||||
|
|
|
@ -10,6 +10,11 @@ var/speed/type = 3
|
||||||
var/speed/value = 300.0
|
var/speed/value = 300.0
|
||||||
var/speed/hint = 1
|
var/speed/hint = 1
|
||||||
var/speed/hint_string = "10,1000,10"
|
var/speed/hint_string = "10,1000,10"
|
||||||
|
var/waypoints/name = "waypoints"
|
||||||
|
var/waypoints/type = 28
|
||||||
|
var/waypoints/value = []
|
||||||
|
var/waypoints/hint = 0
|
||||||
|
var/waypoints/hint_string = "22:"
|
||||||
|
|
||||||
[sub_resource type="Animation" id="Animation_5id00"]
|
[sub_resource type="Animation" id="Animation_5id00"]
|
||||||
length = 0.001
|
length = 0.001
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
[gd_scene load_steps=3 format=3 uid="uid://c3d3ed6545cly"]
|
[gd_scene load_steps=4 format=3 uid="uid://c3d3ed6545cly"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://demo/tests/agent_properties/agent_properties.gd" id="1_jh88u"]
|
[ext_resource type="Script" path="res://demo/tests/agent_properties/agent_properties.gd" id="1_jh88u"]
|
||||||
[ext_resource type="BehaviorTree" uid="uid://ddhxf0haxgw" path="res://demo/tests/agent_properties/bt_agent_properties.tres" id="2_txe8k"]
|
[ext_resource type="BehaviorTree" uid="uid://ddhxf0haxgw" path="res://demo/tests/agent_properties/bt_agent_properties.tres" id="2_txe8k"]
|
||||||
|
|
||||||
|
[sub_resource type="BlackboardPlan" id="BlackboardPlan_18k5d"]
|
||||||
|
|
||||||
[node name="AgentProperties" type="Node2D"]
|
[node name="AgentProperties" type="Node2D"]
|
||||||
script = ExtResource("1_jh88u")
|
script = ExtResource("1_jh88u")
|
||||||
|
|
||||||
[node name="BTPlayer" type="BTPlayer" parent="."]
|
[node name="BTPlayer" type="BTPlayer" parent="."]
|
||||||
behavior_tree = ExtResource("2_txe8k")
|
behavior_tree = ExtResource("2_txe8k")
|
||||||
|
blackboard_plan = SubResource("BlackboardPlan_18k5d")
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
[gd_resource type="BehaviorTree" load_steps=29 format=3 uid="uid://ddhxf0haxgw"]
|
[gd_resource type="BehaviorTree" load_steps=30 format=3 uid="uid://ddhxf0haxgw"]
|
||||||
|
|
||||||
|
[sub_resource type="BlackboardPlan" id="BlackboardPlan_salkr"]
|
||||||
|
|
||||||
[sub_resource type="BBVariant" id="BBVariant_5o8fh"]
|
[sub_resource type="BBVariant" id="BBVariant_5o8fh"]
|
||||||
resource_name = "200"
|
resource_name = "200"
|
||||||
|
@ -106,4 +108,5 @@ children = [SubResource("BTSelector_hw3on"), SubResource("BTSetAgentProperty_lh1
|
||||||
children = [SubResource("BTSequence_7bmj1")]
|
children = [SubResource("BTSequence_7bmj1")]
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
|
blackboard_plan = SubResource("BlackboardPlan_salkr")
|
||||||
root_task = SubResource("BTRunLimit_034mk")
|
root_task = SubResource("BTRunLimit_034mk")
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
[gd_resource type="BehaviorTree" load_steps=8 format=3 uid="uid://cen725hsk8lyl"]
|
[gd_resource type="BehaviorTree" load_steps=9 format=3 uid="uid://cen725hsk8lyl"]
|
||||||
|
|
||||||
|
[sub_resource type="BlackboardPlan" id="BlackboardPlan_00d6h"]
|
||||||
|
|
||||||
[sub_resource type="BTComment" id="BTComment_84hry"]
|
[sub_resource type="BTComment" id="BTComment_84hry"]
|
||||||
custom_name = "This is a test of ProbabilitySelector choosing action to execute"
|
custom_name = "This is a test of ProbabilitySelector choosing action to execute"
|
||||||
|
@ -24,4 +26,5 @@ children = [SubResource("BTProbabilitySelector_hy6es")]
|
||||||
children = [SubResource("BTComment_84hry"), SubResource("BTDelay_mxnxy")]
|
children = [SubResource("BTComment_84hry"), SubResource("BTDelay_mxnxy")]
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
|
blackboard_plan = SubResource("BlackboardPlan_00d6h")
|
||||||
root_task = SubResource("BTSequence_auek2")
|
root_task = SubResource("BTSequence_auek2")
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
[gd_scene load_steps=2 format=3 uid="uid://dgeb7tg8xb3j4"]
|
[gd_scene load_steps=3 format=3 uid="uid://dgeb7tg8xb3j4"]
|
||||||
|
|
||||||
[ext_resource type="BehaviorTree" uid="uid://cen725hsk8lyl" path="res://demo/tests/probability_selector/bt_test_probability_selector.tres" id="1_lr7l2"]
|
[ext_resource type="BehaviorTree" uid="uid://cen725hsk8lyl" path="res://demo/tests/probability_selector/bt_test_probability_selector.tres" id="1_lr7l2"]
|
||||||
|
|
||||||
|
[sub_resource type="BlackboardPlan" id="BlackboardPlan_8wu7d"]
|
||||||
|
|
||||||
[node name="test_probability_selector" type="Node2D"]
|
[node name="test_probability_selector" type="Node2D"]
|
||||||
|
|
||||||
[node name="BTPlayer" type="BTPlayer" parent="."]
|
[node name="BTPlayer" type="BTPlayer" parent="."]
|
||||||
behavior_tree = ExtResource("1_lr7l2")
|
behavior_tree = ExtResource("1_lr7l2")
|
||||||
|
blackboard_plan = SubResource("BlackboardPlan_8wu7d")
|
||||||
|
|
Loading…
Reference in New Issue