2019-12-21 21:20:06 +01:00
|
|
|
[gd_scene load_steps=6 format=2]
|
2019-12-19 21:24:40 +01:00
|
|
|
|
|
|
|
[ext_resource path="res://demos/pursue_vs_seek/Pursuer.gd" type="Script" id=1]
|
2019-12-23 17:38:27 +01:00
|
|
|
[ext_resource path="res://demos/pursue_vs_seek/Player.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://demos/pursue_vs_seek/BoundaryManager.gd" type="Script" id=3]
|
|
|
|
[ext_resource path="res://demos/pursue_vs_seek/PursueVSSeekDemo.gd" type="Script" id=4]
|
|
|
|
[ext_resource path="res://demos/pursue_vs_seek/GUI.tscn" type="PackedScene" id=5]
|
2019-12-19 21:24:40 +01:00
|
|
|
|
2019-12-23 17:38:27 +01:00
|
|
|
[node name="PursueVSSeekDemo" type="Node2D"]
|
|
|
|
script = ExtResource( 4 )
|
2019-12-19 21:24:40 +01:00
|
|
|
__meta__ = {
|
|
|
|
"_editor_description_": "Toy demo to demonstrate the use of the Pursue contrasted to the more naive Seek steering behavior."
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="BoundaryManager" type="Node2D" parent="."]
|
2019-12-23 17:38:27 +01:00
|
|
|
script = ExtResource( 3 )
|
2019-12-19 21:24:40 +01:00
|
|
|
|
|
|
|
[node name="Player" type="KinematicBody2D" parent="BoundaryManager"]
|
|
|
|
position = Vector2( 49.2031, 556.936 )
|
|
|
|
rotation = 1.5708
|
|
|
|
collision_mask = 2
|
2019-12-23 17:38:27 +01:00
|
|
|
script = ExtResource( 2 )
|
2019-12-19 21:24:40 +01:00
|
|
|
color = Color( 1, 0, 0, 1 )
|
|
|
|
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="BoundaryManager/Player"]
|
|
|
|
polygon = PoolVector2Array( 0, -30, -25, 25, 25, 25 )
|
|
|
|
|
|
|
|
[node name="Pursuer" type="KinematicBody2D" parent="BoundaryManager"]
|
|
|
|
position = Vector2( 868.495, 87.9043 )
|
|
|
|
collision_layer = 2
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
color = Color( 0.811765, 0.909804, 0.113725, 1 )
|
|
|
|
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="BoundaryManager/Pursuer"]
|
2019-12-20 19:17:27 +01:00
|
|
|
modulate = Color( 0.694118, 0.694118, 0.694118, 1 )
|
2019-12-19 21:24:40 +01:00
|
|
|
polygon = PoolVector2Array( 0, -30, -25, 25, 25, 25 )
|
|
|
|
|
|
|
|
[node name="Seeker" type="KinematicBody2D" parent="BoundaryManager"]
|
|
|
|
position = Vector2( 821.24, 87.9043 )
|
|
|
|
collision_layer = 2
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
color = Color( 0.113725, 0.909804, 0.219608, 1 )
|
|
|
|
use_seek = true
|
|
|
|
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="BoundaryManager/Seeker"]
|
2019-12-20 19:17:27 +01:00
|
|
|
modulate = Color( 0.317647, 0.317647, 0.317647, 1 )
|
2019-12-19 21:24:40 +01:00
|
|
|
polygon = PoolVector2Array( 0, -30, -25, 25, 25, 25 )
|
2019-12-22 20:23:25 +01:00
|
|
|
|
2019-12-23 17:38:27 +01:00
|
|
|
[node name="GUI" parent="." instance=ExtResource( 5 )]
|
2019-12-22 20:23:25 +01:00
|
|
|
margin_right = 261.0
|
|
|
|
margin_bottom = 150.0
|