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/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]
2020-02-09 00:16:49 +01:00
[ext_resource path="res://demos/SeekFlee/Boundaries.gd" type="Script" id=9]
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
2020-02-09 00:16:49 +01:00
[node name="Boundaries" type="Node2D" parent="."]
script = ExtResource( 9 )
[node name="LeftBoundary" type="StaticBody2D" parent="Boundaries"]
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
2020-02-09 00:16:49 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="Boundaries/LeftBoundary"]
2019-12-16 22:14:46 +01:00
shape = SubResource( 2 )
2020-02-09 00:16:49 +01:00
[node name="RightBoundary" type="StaticBody2D" parent="Boundaries"]
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
2020-02-09 00:16:49 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="Boundaries/RightBoundary"]
2019-12-16 22:14:46 +01:00
shape = SubResource( 2 )
2020-02-09 00:16:49 +01:00
[node name="TopBoundary" type="StaticBody2D" parent="Boundaries"]
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
2020-02-09 00:16:49 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="Boundaries/TopBoundary"]
2019-12-16 22:14:46 +01:00
shape = SubResource( 3 )
2020-02-09 00:16:49 +01:00
[node name="BottomBoundary" type="StaticBody2D" parent="Boundaries"]
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
2020-02-09 00:16:49 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="Boundaries/BottomBoundary"]
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."