godot-steering-ai-framework/project/demos/SeekFlee/SeekFleeDemo.tscn

85 lines
2.8 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=12 format=2]
[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]
[ext_resource path="res://demos/Utils/DemoInterface.tscn" type="PackedScene" id=5]
[ext_resource path="res://demos/SeekFlee/Seeker.tscn" type="PackedScene" id=6]
[ext_resource path="res://demos/Utils/CircleDraw.gd" type="Script" id=7]
[ext_resource path="res://demos/Utils/BackgroudLayer.tscn" type="PackedScene" id=8]
[sub_resource type="CircleShape2D" id=1]
radius = 32.0
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 10, 542 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 965.654, 10 )
[node name="SeekFleeDemo" type="Node"]
script = ExtResource( 3 )
[node name="BackgroudLayer" parent="." instance=ExtResource( 8 )]
[node name="Player" type="KinematicBody2D" parent="."]
position = Vector2( 512, 300 )
collision_mask = 2
script = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
shape = SubResource( 1 )
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
[node name="LeftBoundary" type="StaticBody2D" parent="."]
position = Vector2( 0, 300 )
collision_layer = 2
collision_mask = 5
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="LeftBoundary"]
position = Vector2( 0, 246 )
shape = SubResource( 2 )
[node name="RightBoundary" type="StaticBody2D" parent="."]
position = Vector2( 1024, 300 )
collision_layer = 2
collision_mask = 5
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="RightBoundary"]
position = Vector2( 898, 242 )
shape = SubResource( 2 )
[node name="TopBoundary" type="StaticBody2D" parent="."]
position = Vector2( 512, 2.00002 )
collision_layer = 2
collision_mask = 5
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="TopBoundary"]
position = Vector2( 472.348, 0 )
shape = SubResource( 3 )
[node name="BottomBoundary" type="StaticBody2D" parent="."]
position = Vector2( 512, 600 )
collision_layer = 2
collision_mask = 5
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="BottomBoundary"]
position = Vector2( 436.348, 472.348 )
shape = SubResource( 3 )
[node name="Spawner" type="Node2D" parent="."]
script = ExtResource( 4 )
Entity = ExtResource( 6 )
[node name="DemoInterface" parent="." instance=ExtResource( 5 )]
text_bbcode = "Seek & Flee Demo
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."