-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDragon.tscn
65 lines (52 loc) · 2.34 KB
/
Dragon.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
63
64
65
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Dragon.gd" type="Script" id=1]
[ext_resource path="res://Assets/Dagron Body.png" type="Texture" id=2]
[ext_resource path="res://Assets/Dagron Jaw.png" type="Texture" id=3]
[ext_resource path="res://Assets/Dagron Wing (Front).png" type="Texture" id=4]
[ext_resource path="res://Assets/Dagron Wing (Back).png" type="Texture" id=5]
[ext_resource path="res://Assets/Dagron Foot.png" type="Texture" id=6]
[ext_resource path="res://Assets/Sound/fire breath.wav" type="AudioStream" id=7]
[sub_resource type="CircleShape2D" id=1]
radius = 140.0
[node name="Dragon" type="RigidBody2D"]
mode = 3
mass = 1000.0
continuous_cd = 2
contacts_reported = 1
contact_monitor = true
angular_damp = 128.0
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Polygon2D" type="Polygon2D" parent="."]
visible = false
color = Color( 0.0588235, 0.560784, 0, 1 )
polygon = PoolVector2Array( 49.2656, -133.093, 94.3163, -103.942, 128.767, -45.6416, 139.367, -3.24097, 131.417, 52.4099, 110.216, 86.8604, 96.9663, 102.761, 51.9156, 131.911, -6.38525, 142.511, -62.036, 126.611, -101.787, 89.5104, -125.637, 44.4597, -130.937, -24.4413, -109.737, -85.3922, -64.6861, -122.493, -11.6853, -138.393 )
[node name="Body" type="Sprite" parent="."]
z_index = 10
texture = ExtResource( 2 )
[node name="Jaw" type="Sprite" parent="Body"]
position = Vector2( -157.361, -0.190125 )
z_index = 10
texture = ExtResource( 3 )
offset = Vector2( -32.6161, 16.9908 )
[node name="Wing (F)" type="Sprite" parent="Body"]
position = Vector2( 2.94644, -48.5603 )
texture = ExtResource( 4 )
offset = Vector2( 96.0011, -85.1242 )
[node name="Wing (B)" type="Sprite" parent="Body"]
position = Vector2( -33.7758, -32.987 )
scale = Vector2( 0.80621, 1 )
z_index = -1
texture = ExtResource( 5 )
offset = Vector2( -12.9429, -92.2764 )
[node name="Sprite" type="Sprite" parent="Body"]
position = Vector2( -91.5792, 89.7816 )
z_index = -1
texture = ExtResource( 6 )
[node name="Explosion Timer" type="Timer" parent="."]
wait_time = 0.25
[node name="Fire Breath" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 7 )
[connection signal="body_entered" from="." to="." method="_on_Dragon_body_entered"]
[connection signal="timeout" from="Explosion Timer" to="." method="_on_Explosion_Timer_timeout"]