2020-01-15 20:15:31 +01:00
|
|
|
[gd_scene load_steps=8 format=2]
|
2019-12-20 19:17:27 +01:00
|
|
|
|
2019-12-23 17:38:27 +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]
|
2020-01-15 20:15:31 +01:00
|
|
|
[ext_resource path="res://assets/sprites/large_circle.png" type="Texture" id=4]
|
|
|
|
[ext_resource path="res://assets/sprites/small_circle.png" type="Texture" id=5]
|
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."
|
|
|
|
}
|
|
|
|
|
|
|
|
[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-01-15 20:15:31 +01:00
|
|
|
[node name="Sprite" type="Sprite" parent="Player"]
|
|
|
|
modulate = Color( 0.945098, 0.215686, 0.0705882, 1 )
|
|
|
|
texture = ExtResource( 5 )
|
|
|
|
|
2019-12-20 19:17:27 +01:00
|
|
|
[node name="Turret" type="KinematicBody2D" parent="."]
|
|
|
|
position = Vector2( 512, 150 )
|
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 )
|
2019-12-22 20:23:25 +01:00
|
|
|
|
2020-01-15 20:15:31 +01:00
|
|
|
[node name="Sprite" type="Sprite" parent="Turret"]
|
|
|
|
modulate = Color( 0.137255, 0.866667, 0.647059, 1 )
|
|
|
|
texture = ExtResource( 4 )
|