-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_scene.tscn
More file actions
95 lines (77 loc) · 2.72 KB
/
test_scene.tscn
File metadata and controls
95 lines (77 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[gd_scene load_steps=12 format=3 uid="uid://bodgbxiw6cyhp"]
[ext_resource type="PackedScene" uid="uid://dcivaejue4hyn" path="res://addons/visioncone2d/vision_cone_2d.tscn" id="1_h8afp"]
[ext_resource type="Script" path="res://detector.cs" id="1_kryda"]
[ext_resource type="Script" path="res://addons/visioncone2d/VisionConeResource.cs" id="3_kab4l"]
[sub_resource type="Resource" id="Resource_kh3ke"]
script = ExtResource("3_kab4l")
Accuracy = 10
Angle = 2.667
Radius = 200.0
[sub_resource type="Resource" id="Resource_24j6q"]
script = ExtResource("3_kab4l")
Accuracy = 10
Angle = 1.36
Radius = 300.0
[sub_resource type="Resource" id="Resource_qxdw4"]
script = ExtResource("3_kab4l")
Accuracy = 10
Angle = 3.35
Radius = 100.0
[sub_resource type="CircleShape2D" id="CircleShape2D_ts5l6"]
[sub_resource type="CanvasTexture" id="CanvasTexture_sr623"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_k0jo5"]
size = Vector2(30, 30)
[sub_resource type="Animation" id="Animation_tw1wb"]
resource_name = "move"
length = 4.0
loop_mode = 2
step = 4.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 4),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(450, 200), Vector2(100, 200)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ma3cw"]
_data = {
"move": SubResource("Animation_tw1wb")
}
[node name="Node2D" type="Node2D"]
[node name="Label" type="Label" parent="."]
offset_left = 332.0
offset_top = 44.0
offset_right = 382.0
offset_bottom = 67.0
[node name="Detector" type="CharacterBody2D" parent="." node_paths=PackedStringArray("visionArea", "label")]
position = Vector2(51, 216)
collision_layer = 0
collision_mask = 0
script = ExtResource("1_kryda")
visionArea = NodePath("VisionCone2D2")
label = NodePath("../Label")
[node name="VisionCone2D2" parent="Detector" instance=ExtResource("1_h8afp")]
nearVisionCone = SubResource("Resource_kh3ke")
farVisionCone = SubResource("Resource_24j6q")
rangeVisionCone = SubResource("Resource_qxdw4")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Detector"]
shape = SubResource("CircleShape2D_ts5l6")
[node name="Enemy" type="CharacterBody2D" parent="."]
position = Vector2(450, 200)
collision_layer = 2
collision_mask = 0
[node name="Sprite2D" type="Sprite2D" parent="Enemy"]
scale = Vector2(30, 30)
texture = SubResource("CanvasTexture_sr623")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Enemy"]
shape = SubResource("RectangleShape2D_k0jo5")
[node name="AnimationPlayer" type="AnimationPlayer" parent="Enemy"]
libraries = {
"": SubResource("AnimationLibrary_ma3cw")
}
autoplay = "move"