2020-02-03 17:07:43 +01:00
|
|
|
[gd_scene load_steps=6 format=2]
|
2020-01-16 09:44:44 +01:00
|
|
|
|
|
|
|
[ext_resource path="res://demos/GroupBehaviors/Member.tscn" type="PackedScene" id=1]
|
|
|
|
[ext_resource path="res://demos/GroupBehaviors/Spawner.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://demos/GroupBehaviors/GroupBehaviorsDemo.gd" type="Script" id=3]
|
2020-02-08 22:40:43 +01:00
|
|
|
[ext_resource path="res://demos/Utils/DemoInterface.tscn" type="PackedScene" id=4]
|
|
|
|
[ext_resource path="res://demos/Utils/BackgroudLayer.tscn" type="PackedScene" id=5]
|
2020-01-16 09:44:44 +01:00
|
|
|
|
2020-02-08 22:40:43 +01:00
|
|
|
[node name="GroupBehaviorsDemo" type="Node"]
|
2020-01-16 09:44:44 +01:00
|
|
|
script = ExtResource( 3 )
|
2020-01-16 18:31:02 +01:00
|
|
|
cohesion_strength = 0.2
|
|
|
|
separation_strength = 4.5
|
2020-01-16 09:44:44 +01:00
|
|
|
|
2020-02-08 22:40:43 +01:00
|
|
|
[node name="BackgroudLayer" parent="." instance=ExtResource( 5 )]
|
2020-02-03 17:07:43 +01:00
|
|
|
|
2020-01-16 09:44:44 +01:00
|
|
|
[node name="Spawner" type="Node2D" parent="."]
|
|
|
|
position = Vector2( 512, 300 )
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
member = ExtResource( 1 )
|
2020-01-16 18:31:02 +01:00
|
|
|
|
2020-02-08 22:40:43 +01:00
|
|
|
[node name="DemoInterface" parent="." instance=ExtResource( 4 )]
|
|
|
|
text_bbcode = "Group Behavior Demo
|
2020-02-04 18:35:46 +01:00
|
|
|
Each of the \"Agents\" are both attempting to stay separated from each other but within reach of their nearest group's center of mass."
|