2020-01-16 09:44:44 +01:00
|
|
|
[gd_scene load_steps=9 format=2]
|
2019-12-20 19:17:27 +01:00
|
|
|
|
2020-01-16 09:44:44 +01:00
|
|
|
[ext_resource path="res://demos/Face/Turret.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://demos/Face/FaceDemo.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://demos/Face/Player.gd" type="Script" id=3]
|
|
|
|
[ext_resource path="res://assets/theme/gdquest.theme" type="Theme" id=6]
|
2020-02-03 17:07:43 +01:00
|
|
|
[ext_resource path="res://assets/sprites/background.png" type="Texture" id=7]
|
|
|
|
[ext_resource path="res://demos/Utils/CircleDraw.gd" type="Script" id=8]
|
2019-12-20 19:17:27 +01:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id=1]
|
2020-01-15 20:15:31 +01:00
|
|
|
radius = 16.0
|
2019-12-20 19:17:27 +01:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id=2]
|
2020-01-15 20:15:31 +01:00
|
|
|
radius = 32.0
|
2019-12-20 19:17:27 +01:00
|
|
|
|
2019-12-23 17:38:27 +01:00
|
|
|
[node name="FaceDemo" type="Node2D"]
|
|
|
|
script = ExtResource( 2 )
|
2019-12-20 19:17:27 +01:00
|
|
|
__meta__ = {
|
|
|
|
"_editor_description_": "A demo showing the usage of the Face steering behavior."
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
|
2019-12-20 19:17:27 +01:00
|
|
|
[node name="Player" type="KinematicBody2D" parent="."]
|
|
|
|
position = Vector2( 512, 450 )
|
2019-12-23 17:38:27 +01:00
|
|
|
script = ExtResource( 3 )
|
2019-12-20 19:17:27 +01:00
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
|
|
|
|
shape = SubResource( 1 )
|
2020-02-03 17:07:43 +01:00
|
|
|
script = ExtResource( 8 )
|
|
|
|
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-15 20:15:31 +01:00
|
|
|
|
2019-12-20 19:17:27 +01:00
|
|
|
[node name="Turret" type="KinematicBody2D" parent="."]
|
2020-01-16 09:44:44 +01:00
|
|
|
position = Vector2( 512, 286.288 )
|
2019-12-23 17:38:27 +01:00
|
|
|
script = ExtResource( 1 )
|
2019-12-20 19:17:27 +01:00
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Turret"]
|
|
|
|
shape = SubResource( 2 )
|
2020-02-03 17:07:43 +01:00
|
|
|
script = ExtResource( 8 )
|
|
|
|
inner_color = Color( 0.890196, 0.411765, 0.337255, 1 )
|
|
|
|
outer_color = Color( 1, 0.709804, 0.439216, 1 )
|
|
|
|
stroke = 8.0
|
2020-01-16 09:44:44 +01:00
|
|
|
|
|
|
|
[node name="GUI" type="PanelContainer" parent="."]
|
|
|
|
margin_right = 1024.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
theme = ExtResource( 6 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="GUI"]
|
|
|
|
margin_right = 1024.0
|
|
|
|
margin_bottom = 87.0
|
|
|
|
|
2020-02-03 17:07:43 +01:00
|
|
|
[node name="RichTextLabel" type="RichTextLabel" parent="GUI/MarginContainer"]
|
2020-01-16 09:44:44 +01:00
|
|
|
margin_left = 16.0
|
|
|
|
margin_top = 16.0
|
|
|
|
margin_right = 1008.0
|
|
|
|
margin_bottom = 71.0
|
2020-02-03 17:07:43 +01:00
|
|
|
rect_min_size = Vector2( 0, 55 )
|
|
|
|
bbcode_enabled = true
|
|
|
|
bbcode_text = "Face Demo
|
|
|
|
Move the [color=lime]green player[/color] around with WASD and notice the [color=#ffb570]orange turret[/color] orient itself"
|
2020-01-16 09:44:44 +01:00
|
|
|
text = "Face Demo
|
2020-02-03 17:07:43 +01:00
|
|
|
Move the green player around with WASD and notice the orange turret orient itself"
|