-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbubble.tscn
102 lines (88 loc) · 2.91 KB
/
bubble.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
[gd_scene load_steps=10 format=3 uid="uid://bs450qjrbimjm"]
[ext_resource type="Script" path="res://attacks/attack.gd" id="1_4yngw"]
[ext_resource type="Shader" path="res://assets/tile.gdshader" id="1_tqxlr"]
[ext_resource type="Texture2D" uid="uid://d4ibrl4nmd57w" path="res://assets/MRMOTEXT_EX.png" id="2_ux47k"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_y5ut2"]
shader = ExtResource("1_tqxlr")
shader_parameter/move_param = Vector4(1.31, 1, 1.17, 1)
shader_parameter/tile_color = Vector4(0.275, 0.753, 0.824, 1)
[sub_resource type="AtlasTexture" id="AtlasTexture_wdov4"]
atlas = ExtResource("2_ux47k")
region = Rect2(241, 113, 6, 6)
[sub_resource type="Animation" id="Animation_gfxay"]
resource_name = "lifetime"
length = 2.0
tracks/0/type = "method"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(2),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"queue_free"
}]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.75, 1, 1.25, 1.5),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [true, false, true, false]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Area2D:monitoring")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(1),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_k5ofi"]
_data = {
"lifetime": SubResource("Animation_gfxay")
}
[sub_resource type="EventAsset" id="EventAsset_bt544"]
is_oneshot = true
min_distance = 1.0
max_distance = 20.0
path = "event:/Attack Bubble"
guid = "{b4ee096d-5e4d-4143-8959-aaae007f76c9}"
name = "Attack Bubble"
[sub_resource type="RectangleShape2D" id="RectangleShape2D_byh41"]
size = Vector2(6, 6)
[node name="Bubble" type="RigidBody2D"]
collision_layer = 0
collision_mask = 0
lock_rotation = true
script = ExtResource("1_4yngw")
[node name="Sprite2D" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_y5ut2")
texture = SubResource("AtlasTexture_wdov4")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_k5ofi")
}
autoplay = "lifetime"
[node name="StudioEventEmitter2D" type="StudioEventEmitter2D" parent="."]
play_event = 1
event = SubResource("EventAsset_bt544")
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 8
collision_mask = 5
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("RectangleShape2D_byh41")
[connection signal="body_entered" from="." to="." method="contact"]
[connection signal="body_entered" from="Area2D" to="." method="contact"]