-
Notifications
You must be signed in to change notification settings - Fork 0
/
Enemy.tscn
62 lines (46 loc) · 1.86 KB
/
Enemy.tscn
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
[gd_scene load_steps=11 format=2]
[ext_resource path="res://BodyCollision.tscn" type="PackedScene" id=1]
[ext_resource path="res://BodyMesh.tscn" type="PackedScene" id=2]
[ext_resource path="res://EnemyMovement.gd" type="Script" id=3]
[sub_resource type="CapsuleShape" id=1]
height = 2.0
[sub_resource type="SpatialMaterial" id=3]
albedo_color = Color( 0.980392, 0.905882, 1, 1 )
[sub_resource type="CapsuleMesh" id=2]
material = SubResource( 3 )
mid_height = 2.0
radial_segments = 16
rings = 4
[sub_resource type="SpatialMaterial" id=4]
albedo_color = Color( 0.0235294, 0.345098, 0.658824, 1 )
[sub_resource type="SphereMesh" id=5]
[sub_resource type="SphereMesh" id=6]
[sub_resource type="SpatialMaterial" id=7]
albedo_color = Color( 0.054902, 0.027451, 0.027451, 1 )
[node name="Enemy" type="KinematicBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5.2656 )
script = ExtResource( 3 )
[node name="CollisionShape" parent="." instance=ExtResource( 1 )]
shape = SubResource( 1 )
[node name="Body" parent="." instance=ExtResource( 2 )]
mesh = SubResource( 2 )
skeleton = NodePath("../..")
material/0 = SubResource( 4 )
[node name="EyeBall" type="MeshInstance" parent="."]
transform = Transform( 0.598377, 0, 0, 0, 0.598377, 0, 0, 0, 0.598377, 0, 2.79882, -0.641199 )
mesh = SubResource( 5 )
material/0 = null
[node name="Pupil" type="MeshInstance" parent="."]
transform = Transform( 0.392736, 0, 0, 0, 0.392736, 0, 0, 0, 0.392736, 0, 2.79882, -0.872154 )
mesh = SubResource( 6 )
material/0 = SubResource( 7 )
[node name="RayCast" type="RayCast" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0119653, 2.81017, -0.0095129 )
exclude_parent = false
cast_to = Vector3( 0, 0, -4 )
collision_mask = 2
debug_shape_thickness = 5.0
[node name="TimerStart" type="Timer" parent="."]
wait_time = 0.25
[node name="TimerFail" type="Timer" parent="."]
wait_time = 10.0