-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDNA.tscn
More file actions
57 lines (45 loc) · 1.53 KB
/
DNA.tscn
File metadata and controls
57 lines (45 loc) · 1.53 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
[gd_scene load_steps=7 format=2]
[ext_resource path="res://assets/dna2.png" type="Texture" id=1]
[ext_resource path="res://DNA.gd" type="Script" id=2]
[ext_resource path="res://Protein.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/destroy.wav" type="AudioStream" id=4]
[sub_resource type="CapsuleShape2D" id=1]
radius = 5.36698
height = 14.7782
[sub_resource type="CapsuleShape2D" id=2]
radius = 8.9669
height = 14.3183
[node name="DNA" type="KinematicBody2D"]
collision_layer = 8
collision_mask = 40
script = ExtResource( 2 )
Protein = ExtResource( 3 )
[node name="Sprite" type="Sprite" parent="."]
rotation = -1.5708
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = -1.5708
shape = SubResource( 1 )
[node name="Area2D" type="Area2D" parent="."]
rotation = -1.5708
monitorable = false
collision_mask = 2
__meta__ = {
"_edit_group_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 2 )
[node name="AttackCooldownTimer" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
[node name="Tween" type="Tween" parent="."]
repeat = true
playback/repeat = true
[node name="SenseTimer" type="Timer" parent="."]
wait_time = 2.0
autostart = true
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 4 )
volume_db = -30.0
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]
[connection signal="timeout" from="SenseTimer" to="." method="_on_SenseTimer_timeout"]