-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfireball.tscn
154 lines (132 loc) · 4.46 KB
/
fireball.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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[gd_scene load_steps=15 format=3 uid="uid://ur5popjrh5nq"]
[ext_resource type="Script" path="res://attacks/fireball.gd" id="1_dmpgh"]
[ext_resource type="Shader" path="res://assets/tile.gdshader" id="2_lxmov"]
[ext_resource type="Texture2D" uid="uid://d4ibrl4nmd57w" path="res://assets/MRMOTEXT_EX.png" id="3_tmdkc"]
[ext_resource type="Script" path="res://items/bomb.gd" id="4_tl34h"]
[ext_resource type="Shader" path="res://items/wave.gdshader" id="5_cv2mw"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_twj57"]
shader = ExtResource("2_lxmov")
shader_parameter/move_param = Vector4(0, 0, 0, 0)
shader_parameter/tile_color = Vector4(0.824, 0.275, 0.275, 1)
[sub_resource type="AtlasTexture" id="AtlasTexture_vmdly"]
atlas = ExtResource("3_tmdkc")
region = Rect2(80, 215, 9, 9)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_i8y1t"]
size = Vector2(8, 8)
[sub_resource type="EventAsset" id="EventAsset_brfvd"]
is_oneshot = true
min_distance = 1.0
max_distance = 20.0
path = "event:/Bomb Sound"
guid = "{7b78c578-ddb0-4981-b79a-8f2420d6b71b}"
name = "Bomb Sound"
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_besnj"]
particle_flag_disable_z = true
radial_velocity_min = 65.0
radial_velocity_max = 75.0
gravity = Vector3(2.08165e-12, 2.08165e-12, 2.08165e-12)
color = Color(0.768627, 0.756863, 0.756863, 1)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_d6ypl"]
shader = ExtResource("5_cv2mw")
shader_parameter/width = 0.2
shader_parameter/progress = 0.0
[sub_resource type="CircleShape2D" id="CircleShape2D_s622l"]
radius = 24.0
[sub_resource type="Animation" id="Animation_r3obf"]
resource_name = "explosion"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ColorRect:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0.917647, 0.227451, 0.227451, 1)]
}
tracks/1/type = "method"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("..")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.5),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"queue_free"
}]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:progress")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(0.28, 1),
"update": 0,
"values": [0.0, 1.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_sbufh"]
_data = {
"explosion": SubResource("Animation_r3obf")
}
[node name="Fireball" type="RigidBody2D"]
mass = 0.02
lock_rotation = true
script = ExtResource("1_dmpgh")
[node name="Sprite2D" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_twj57")
texture = SubResource("AtlasTexture_vmdly")
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("RectangleShape2D_i8y1t")
[node name="Bomb" type="Node2D" parent="." node_paths=PackedStringArray("sprites")]
script = ExtResource("4_tl34h")
sprites = [NodePath("../Sprite2D")]
bomb_event = SubResource("EventAsset_brfvd")
[node name="GPUParticles2D" type="GPUParticles2D" parent="Bomb"]
emitting = false
amount = 16
process_material = SubResource("ParticleProcessMaterial_besnj")
lifetime = 0.25
one_shot = true
[node name="ColorRect" type="ColorRect" parent="Bomb"]
z_index = -1
z_as_relative = false
material = SubResource("ShaderMaterial_d6ypl")
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -24.0
offset_top = -24.0
offset_right = 24.0
offset_bottom = 24.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
color = Color(0.917647, 0.227451, 0.227451, 1)
[node name="Area2D" type="Area2D" parent="Bomb"]
collision_layer = 0
collision_mask = 5
[node name="CollisionShape2D" type="CollisionShape2D" parent="Bomb/Area2D"]
shape = SubResource("CircleShape2D_s622l")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../Bomb")
libraries = {
"": SubResource("AnimationLibrary_sbufh")
}
[node name="Timer" type="Timer" parent="."]
wait_time = 1.5
one_shot = true
autostart = true
[connection signal="body_entered" from="Area2D" to="." method="contact"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]