2020-02-04 18:35:46 +01:00
[gd_scene load_steps=12 format=2]
2019-12-16 22:14:46 +01:00
2020-01-16 09:44:44 +01:00
[ext_resource path="res://demos/SeekFlee/Boundary.gd" type="Script" id=1]
[ext_resource path="res://demos/SeekFlee/Player.gd" type="Script" id=2]
[ext_resource path="res://demos/SeekFlee/SeekFleeDemo.gd" type="Script" id=3]
[ext_resource path="res://demos/SeekFlee/Spawner.gd" type="Script" id=4]
2020-02-08 22:40:43 +01:00
[ext_resource path="res://demos/Utils/DemoInterface.tscn" type="PackedScene" id=5]
2020-01-16 09:44:44 +01:00
[ext_resource path="res://demos/SeekFlee/Seeker.tscn" type="PackedScene" id=6]
2020-02-03 17:07:43 +01:00
[ext_resource path="res://demos/Utils/CircleDraw.gd" type="Script" id=7]
2020-02-08 22:40:43 +01:00
[ext_resource path="res://demos/Utils/BackgroudLayer.tscn" type="PackedScene" id=8]
2019-12-16 22:14:46 +01:00
[sub_resource type="CircleShape2D" id=1]
2020-01-13 22:15:44 +01:00
radius = 32.0
2019-12-16 22:14:46 +01:00
[sub_resource type="RectangleShape2D" id=2]
2020-02-08 22:40:43 +01:00
extents = Vector2( 10, 542 )
2019-12-16 22:14:46 +01:00
[sub_resource type="RectangleShape2D" id=3]
2020-02-08 22:40:43 +01:00
extents = Vector2( 965.654, 10 )
2019-12-16 22:14:46 +01:00
2020-02-08 22:40:43 +01:00
[node name="SeekFleeDemo" type="Node"]
2019-12-16 22:14:46 +01:00
script = ExtResource( 3 )
2020-02-04 18:35:46 +01:00
2020-02-08 22:40:43 +01:00
[node name="BackgroudLayer" parent="." instance=ExtResource( 8 )]
2019-12-16 22:14:46 +01:00
[node name="Player" type="KinematicBody2D" parent="."]
2020-02-08 17:44:54 +01:00
position = Vector2( 512, 300 )
2019-12-16 22:14:46 +01:00
collision_mask = 2
2019-12-23 17:38:27 +01:00
script = ExtResource( 2 )
2019-12-16 22:14:46 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
shape = SubResource( 1 )
2020-02-03 17:07:43 +01:00
script = ExtResource( 7 )
inner_color = Color( 0.235294, 0.639216, 0.439216, 1 )
outer_color = Color( 0.560784, 0.870588, 0.364706, 1 )
stroke = 4.0
2020-01-13 22:15:44 +01:00
2019-12-16 22:14:46 +01:00
[node name="LeftBoundary" type="StaticBody2D" parent="."]
2020-02-08 17:44:54 +01:00
position = Vector2( 0, 300 )
2019-12-16 22:14:46 +01:00
collision_layer = 2
collision_mask = 5
2019-12-23 17:38:27 +01:00
script = ExtResource( 1 )
2019-12-16 22:14:46 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="LeftBoundary"]
2020-02-08 22:40:43 +01:00
position = Vector2( 0, 246 )
2019-12-16 22:14:46 +01:00
shape = SubResource( 2 )
[node name="RightBoundary" type="StaticBody2D" parent="."]
2020-02-08 17:44:54 +01:00
position = Vector2( 1024, 300 )
2019-12-16 22:14:46 +01:00
collision_layer = 2
collision_mask = 5
2019-12-23 17:38:27 +01:00
script = ExtResource( 1 )
2019-12-16 22:14:46 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="RightBoundary"]
2020-02-08 22:40:43 +01:00
position = Vector2( 898, 242 )
2019-12-16 22:14:46 +01:00
shape = SubResource( 2 )
[node name="TopBoundary" type="StaticBody2D" parent="."]
2020-02-08 22:40:43 +01:00
position = Vector2( 512, 2.00002 )
2019-12-16 22:14:46 +01:00
collision_layer = 2
collision_mask = 5
2019-12-23 17:38:27 +01:00
script = ExtResource( 1 )
2019-12-16 22:14:46 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="TopBoundary"]
2020-02-08 22:40:43 +01:00
position = Vector2( 472.348, 0 )
2019-12-16 22:14:46 +01:00
shape = SubResource( 3 )
[node name="BottomBoundary" type="StaticBody2D" parent="."]
2020-02-08 17:44:54 +01:00
position = Vector2( 512, 600 )
2019-12-16 22:14:46 +01:00
collision_layer = 2
collision_mask = 5
2019-12-23 17:38:27 +01:00
script = ExtResource( 1 )
2019-12-16 22:14:46 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="BottomBoundary"]
2020-02-08 22:40:43 +01:00
position = Vector2( 436.348, 472.348 )
2019-12-16 22:14:46 +01:00
shape = SubResource( 3 )
2019-12-21 19:07:43 +01:00
[node name="Spawner" type="Node2D" parent="."]
2019-12-23 17:38:27 +01:00
script = ExtResource( 4 )
Entity = ExtResource( 6 )
2020-01-16 16:04:27 +01:00
2020-02-08 22:40:43 +01:00
[node name="DemoInterface" parent="." instance=ExtResource( 5 )]
text_bbcode = "Seek & Flee Demo
2020-02-03 17:07:43 +01:00
Move the [color=lime]green \"Player\"[/color] around with WASD and notice the [color=#ffb570]orange \"Enemies\"[/color] try to seek to or flee from the player."