2020-02-03 17:07:43 +01:00
|
|
|
[gd_scene load_steps=8 format=2]
|
2020-01-15 20:42:24 +01:00
|
|
|
|
2020-01-16 12:10:55 +01:00
|
|
|
[ext_resource path="res://demos/FollowPath/Drawer.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://demos/FollowPath/PathFollower.gd" type="Script" id=3]
|
|
|
|
[ext_resource path="res://demos/FollowPath/FollowPathDemo.gd" type="Script" id=4]
|
2020-01-16 18:31:02 +01:00
|
|
|
[ext_resource path="res://assets/theme/gdquest.theme" type="Theme" id=5]
|
2020-02-03 17:07:43 +01:00
|
|
|
[ext_resource path="res://demos/Utils/CircleDraw.gd" type="Script" id=6]
|
|
|
|
[ext_resource path="res://assets/sprites/background.png" type="Texture" id=7]
|
2020-01-15 20:42:24 +01:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id=1]
|
|
|
|
radius = 16.0
|
2020-01-13 18:38:46 +01:00
|
|
|
|
|
|
|
[node name="FollowPathDemo" type="Node2D"]
|
2020-01-15 20:42:24 +01:00
|
|
|
script = ExtResource( 4 )
|
|
|
|
|
2020-02-03 17:07:43 +01:00
|
|
|
[node name="BackgroudLayer" type="CanvasLayer" parent="."]
|
|
|
|
layer = -1
|
|
|
|
|
|
|
|
[node name="Background" type="Sprite" parent="BackgroudLayer"]
|
|
|
|
texture = ExtResource( 7 )
|
|
|
|
centered = false
|
|
|
|
|
2020-01-15 20:42:24 +01:00
|
|
|
[node name="Drawer" type="Node2D" parent="."]
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="PathFollower" type="KinematicBody2D" parent="."]
|
|
|
|
position = Vector2( 512, 300 )
|
|
|
|
script = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PathFollower"]
|
|
|
|
shape = SubResource( 1 )
|
2020-02-03 17:07:43 +01:00
|
|
|
script = ExtResource( 6 )
|
|
|
|
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-16 18:31:02 +01:00
|
|
|
|
|
|
|
[node name="GUI" type="PanelContainer" parent="."]
|
|
|
|
margin_right = 1024.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
theme = ExtResource( 5 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="GUI"]
|
|
|
|
margin_right = 1024.0
|
|
|
|
margin_bottom = 116.0
|
|
|
|
|
|
|
|
[node name="RichTextLabel" type="RichTextLabel" parent="GUI/MarginContainer"]
|
|
|
|
margin_left = 16.0
|
|
|
|
margin_top = 16.0
|
|
|
|
margin_right = 1008.0
|
|
|
|
margin_bottom = 100.0
|
|
|
|
rect_min_size = Vector2( 0, 84 )
|
|
|
|
bbcode_enabled = true
|
|
|
|
bbcode_text = "Follow Path Demo
|
2020-02-03 17:07:43 +01:00
|
|
|
Use the mouse to draw a path on screen and watch the [color=lime]green \"Agent\"[/color] follow it to the end."
|
2020-01-16 18:31:02 +01:00
|
|
|
text = "Follow Path Demo
|
2020-02-03 17:07:43 +01:00
|
|
|
Use the mouse to draw a path on screen and watch the green \"Agent\" follow it to the end."
|
2020-01-16 18:31:02 +01:00
|
|
|
scroll_active = false
|