-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalien.tscn
More file actions
102 lines (89 loc) · 3.6 KB
/
alien.tscn
File metadata and controls
102 lines (89 loc) · 3.6 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
96
97
98
99
100
101
102
[gd_scene load_steps=14 format=3 uid="uid://cwtt378l26tn"]
[ext_resource type="Script" uid="uid://c8aaeaew0cbrl" path="res://alien.gd" id="1_g5epv"]
[ext_resource type="PackedScene" uid="uid://fdbwlhta7m5n" path="res://assets/coins/coin_drop.tscn" id="2_3iyr1"]
[ext_resource type="Texture2D" uid="uid://bkjcvjrnfttjg" path="res://assets/alien.png" id="4_v6wi2"]
[ext_resource type="Texture2D" uid="uid://dvbslrdcc4n5v" path="res://assets/alienJump.png" id="5_3iyr1"]
[ext_resource type="AudioStream" uid="uid://xkdfaqmbyvv3" path="res://assets/impact/impactWood_medium_000.ogg" id="6_vysnc"]
[ext_resource type="AudioStream" uid="uid://cfd32tn1cus1r" path="res://assets/impact/impactWood_medium_001.ogg" id="7_38tue"]
[ext_resource type="AudioStream" uid="uid://nw8ki87gisu4" path="res://assets/impact/impactWood_medium_002.ogg" id="8_6qn0t"]
[ext_resource type="AudioStream" uid="uid://o6i647d1ecsd" path="res://assets/impact/impactWood_medium_003.ogg" id="9_b7hat"]
[ext_resource type="AudioStream" uid="uid://df1vnr14wfppa" path="res://assets/impact/impactWood_medium_004.ogg" id="10_up0u7"]
[sub_resource type="SpriteFrames" id="SpriteFrames_vysnc"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_v6wi2")
}, {
"duration": 1.0,
"texture": ExtResource("5_3iyr1")
}, {
"duration": 1.0,
"texture": ExtResource("4_v6wi2")
}],
"loop": false,
"name": &"hit",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("5_3iyr1")
}],
"loop": false,
"name": &"jump",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_v6wi2")
}],
"loop": false,
"name": &"stand",
"speed": 5.0
}]
[sub_resource type="BoxShape3D" id="BoxShape3D_ctbus"]
size = Vector3(0.545, 0.935, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_nuisj"]
size = Vector3(1.05884, 1.40137, 29.3327)
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_wevnb"]
streams_count = 5
stream_0/stream = ExtResource("6_vysnc")
stream_1/stream = ExtResource("7_38tue")
stream_2/stream = ExtResource("8_6qn0t")
stream_3/stream = ExtResource("9_b7hat")
stream_4/stream = ExtResource("10_up0u7")
[node name="Alien" type="RigidBody3D" node_paths=PackedStringArray("ray_cast", "sprite")]
collision_layer = 2
collision_mask = 2
axis_lock_linear_x = true
axis_lock_linear_z = true
axis_lock_angular_x = true
axis_lock_angular_y = true
axis_lock_angular_z = true
mass = 0.5
gravity_scale = 2.0
can_sleep = false
contact_monitor = true
max_contacts_reported = 2
script = ExtResource("1_g5epv")
ray_cast = NodePath("RayCast3D")
sprite = NodePath("AnimatedSprite3D")
coin_drop_scene = ExtResource("2_3iyr1")
metadata/_edit_group_ = true
[node name="AnimatedSprite3D" type="AnimatedSprite3D" parent="."]
transform = Transform3D(1, 0, 2.98023e-08, 0, 1, 0, -2.98023e-08, 0, 1, 0, 0, 0)
render_priority = -2
sprite_frames = SubResource("SpriteFrames_vysnc")
animation = &"jump"
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_ctbus")
[node name="RayCast3D" type="RayCast3D" parent="."]
target_position = Vector3(0, -0.525, 0)
collision_mask = 2
[node name="Area3D" type="Area3D" parent="."]
[node name="RockCollisionShape3D" type="CollisionShape3D" parent="Area3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -13.6186)
shape = SubResource("BoxShape3D_nuisj")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamRandomizer_wevnb")
[connection signal="animation_finished" from="AnimatedSprite3D" to="." method="_on_animated_sprite_3d_animation_finished"]
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]