-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathDemo.tscn
247 lines (215 loc) · 17.5 KB
/
Demo.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
[gd_scene load_steps=16 format=3 uid="uid://c556o1cu4htns"]
[ext_resource type="Script" path="res://MiniGames/Mini2DPlatformer/scripts/GameManager.cs" id="1_cgg6j"]
[ext_resource type="TileSet" uid="uid://bk2gh3rjug0vu" path="res://MiniGames/Mini2DPlatformer/art/basic-tileset.tres" id="1_e1ifk"]
[ext_resource type="PackedScene" uid="uid://dfd2ocsndlnay" path="res://MiniGames/Mini2DPlatformer/assets/coin.tscn" id="2_d88jm"]
[ext_resource type="PackedScene" uid="uid://blqx32wryscef" path="res://MiniGames/Mini2DPlatformer/assets/player.tscn" id="2_x2sg8"]
[ext_resource type="PackedScene" uid="uid://bqtv6hs5ncnqw" path="res://MiniGames/Mini2DPlatformer/assets/slime.tscn" id="3_0itwd"]
[ext_resource type="Texture2D" uid="uid://ca48t4jes7vwk" path="res://MiniGames/Mini2DPlatformer/art/imgs/hud_heart-full.png" id="4_wlhbi"]
[ext_resource type="Texture2D" uid="uid://ccipat4odqysk" path="res://MiniGames/Mini2DPlatformer/art/imgs/hud_coins.png" id="5_outur"]
[ext_resource type="Texture2D" uid="uid://dvjfget4ydl1a" path="res://MiniGames/Mini2DPlatformer/art/imgs/hud_heart-half.png" id="5_t1p4j"]
[ext_resource type="Texture2D" uid="uid://b82e47lbkas43" path="res://MiniGames/Mini2DPlatformer/art/imgs/hud_heart-empty.png" id="6_1yots"]
[ext_resource type="FontFile" uid="uid://bt5743gb108bu" path="res://MiniGames/Mini2DPlatformer/art/fonts/Hansip.ttf" id="6_m8thp"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_thlej"]
content_margin_left = 32.0
content_margin_top = 32.0
content_margin_right = 32.0
content_margin_bottom = 32.0
bg_color = Color(0.988235, 0.988235, 0.988235, 1)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
shadow_color = Color(0, 0, 0, 0.207843)
shadow_size = 24
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1gi1r"]
content_margin_left = 16.0
content_margin_top = 8.0
content_margin_right = 16.0
content_margin_bottom = 8.0
bg_color = Color(0.192157, 0.192157, 0.192157, 1)
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
[sub_resource type="Animation" id="Animation_r4rwv"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
[sub_resource type="Animation" id="Animation_3gk05"]
resource_name = "show"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(0.3, 0.3),
"update": 0,
"values": [Vector2(1e-05, 1e-05), Vector2(1, 1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_i2c5y"]
_data = {
"RESET": SubResource("Animation_r4rwv"),
"show": SubResource("Animation_3gk05")
}
[node name="Root" type="Control" node_paths=PackedStringArray("_lifeTextureRects", "_coinAmount", "_levelCompletedAnimator", "_gameOverAnimator", "_levelCompletedTimeLabel")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_cgg6j")
_coinPrefab = ExtResource("2_d88jm")
_enemyPrefab = ExtResource("3_0itwd")
_lifeIcons = Array[Texture2D]([ExtResource("4_wlhbi"), ExtResource("5_t1p4j"), ExtResource("6_1yots")])
_lifeTextureRects = [NodePath("UI/MarginContainer/HBoxContainer/Life/Life-0"), NodePath("UI/MarginContainer/HBoxContainer/Life/Life-1"), NodePath("UI/MarginContainer/HBoxContainer/Life/Life-2")]
_coinAmount = NodePath("UI/MarginContainer/HBoxContainer/Coins/Amount")
_levelCompletedAnimator = NodePath("UI/CompletedLevel/Animator")
_gameOverAnimator = NodePath("UI/GameOver/Animator")
_levelCompletedTimeLabel = NodePath("UI/CompletedLevel/VBoxContainer/Time")
[node name="TileMap" type="TileMap" parent="."]
position = Vector2(-16, -16)
tile_set = ExtResource("1_e1ifk")
format = 2
layer_0/name = "base"
layer_0/tile_data = PackedInt32Array(-65536, 524288, 10, -65535, 458752, 8, -65534, 458752, 8, -262148, 458752, 8, -262147, 524288, 8, 2, 524288, 12, 1, 524288, 12, 65538, 524288, 12, 65537, 524288, 12, -262145, 524288, 5, -327680, 524288, 3, -196612, 524288, 12, -131078, 655360, 12, -131079, 655360, 12, -131080, 655360, 12, 65528, 720896, 2, 131064, 458752, 4, 131065, 720896, 2, 131066, 720896, 2, 131067, 720896, 2, -65545, 655360, 12, -9, 655360, 12, 65527, 458752, 4, -131081, 655360, 12, -196616, 655360, 12, -196615, 655360, 12, -196614, 655360, 12, -196613, 524288, 12, -65546, 655360, 12, -10, 655360, 12, 65526, 458752, 4, 131063, 458752, 4, 196599, 458752, 4, 196600, 458752, 4, 196601, 458752, 4, 196602, 458752, 4, 196603, 458752, 4, 131068, 524288, 12, 65533, 458752, 8, 131069, 524288, 12, 65534, 458752, 8, 131070, 524288, 12, 196604, 524288, 12, 196605, 524288, 12, 196606, 524288, 12, 131062, 458752, 4, 262135, 458752, 4, 262136, 458752, 4, 262137, 458752, 4, 262138, 458752, 4, 262139, 458752, 4, 196598, 458752, 4, 131061, 458752, 4, 196597, 458752, 4, 262133, 458752, 4, 262134, 458752, 4, 327670, 458752, 4, 327671, 458752, 4, 327672, 458752, 4, 327673, 458752, 4, 327674, 458752, 4, 327675, 458752, 4, 327676, 458752, 4, 65525, 458752, 4, 131060, 458752, 4, 196596, 458752, 4, 262132, 458752, 4, 327669, 458752, 4, 65524, 655360, 12, -12, 655360, 12, -65548, 655360, 12, -131084, 655360, 12, -196620, 655360, 12, -11, 655360, 12, -65547, 655360, 12, -131083, 655360, 12, -196619, 655360, 12, -131082, 655360, 12, -196618, 655360, 12, -196617, 655360, 12, -262155, 655360, 12, -262154, 655360, 12, -262153, 655360, 12, -262152, 655360, 12, -262151, 655360, 12, -262150, 458752, 8, -131085, 655360, 12, -65549, 655360, 12, -13, 655360, 12, 65523, 655360, 12, 262140, 524288, 12, 262141, 524288, 12, 262142, 524288, 12, 327678, 524288, 12, 327677, 524288, 12, 131073, 524288, 12, 196609, 524288, 12, 262145, 524288, 12, 327681, 524288, 12, 131074, 524288, 12, 196610, 524288, 12, 262146, 524288, 12, 327682, 524288, 12, -262156, 655360, 12, -196621, 655360, 12, -131086, 655360, 12, -65550, 655360, 12, -14, 655360, 12, 65522, 655360, 12, 131058, 655360, 12, 131059, 655360, 12, 196594, 458752, 4, 196595, 458752, 4, 262130, 458752, 4, 262131, 458752, 4, 327667, 458752, 4, 327668, 458752, 4, 393204, 458752, 4, 393205, 458752, 4, 393206, 458752, 4, 393207, 458752, 4, 393208, 458752, 4, 393209, 458752, 4, 393210, 458752, 4, 393211, 458752, 4, 393212, 458752, 4, 196593, 458752, 4, 262129, 458752, 4, 327665, 458752, 4, 327666, 458752, 4, 393203, 458752, 4, 393202, 458752, 4, -262149, 458752, 8, -196622, 655360, 12, -262158, 655360, 12, -262157, 655360, 12, -720910, 655360, 12, -655374, 655360, 12, -589838, 655360, 12, -524302, 655360, 12, -458766, 655360, 12, -393230, 655360, 12, -327694, 655360, 12, -720909, 655360, 12, -655373, 655360, 12, -589837, 655360, 12, -524301, 655360, 12, -458765, 655360, 12, -393229, 655360, 12, -327693, 655360, 12, -720908, 655360, 12, -655372, 655360, 12, -589836, 655360, 12, -524300, 655360, 12, -458764, 655360, 12, -393228, 655360, 12, -327692, 655360, 12, -720907, 655360, 12, -655371, 655360, 12, -589835, 655360, 12, -524299, 655360, 12, -458763, 655360, 12, -393227, 655360, 12, -327691, 655360, 12, -720906, 655360, 12, -655370, 655360, 12, -589834, 655360, 12, -524298, 655360, 12, -458762, 655360, 12, -393226, 655360, 12, -327690, 655360, 12, -720905, 655360, 12, -655369, 655360, 12, -589833, 655360, 12, -720904, 655360, 12, -655368, 655360, 12, -589832, 655360, 12, -720903, 655360, 12, -655367, 655360, 12, -720902, 655360, 12, -655366, 655360, 12, -786446, 655360, 12, -786445, 655360, 12, -786444, 655360, 12, -786443, 655360, 12, -786442, 655360, 12, -786441, 655360, 12, -786440, 655360, 12, -786439, 655360, 12, -786438, 655360, 12, -786437, 655360, 12, -720901, 655360, 12, -786436, 655360, 12, -720900, 655360, 12, -786435, 655360, 12, -720899, 655360, 12, -786434, 655360, 12, -720898, 655360, 12, -786433, 655360, 12, -720897, 655360, 12, -851968, 655360, 12, -786432, 655360, 12, -851967, 655360, 12, -786431, 655360, 12, -786447, 655360, 12, -720911, 655360, 12, -655375, 655360, 12, -589839, 655360, 12, -524303, 655360, 12, -458767, 655360, 12, -393231, 655360, 12, -327695, 655360, 12, -262159, 655360, 12, -196623, 655360, 12, -131087, 655360, 12, -65551, 655360, 12, -15, 655360, 12, -196625, 655360, 12, -131089, 655360, 12, -65553, 655360, 12, -17, 655360, 12, 65519, 655360, 12, 131055, 655360, 12, -196624, 655360, 12, -131088, 655360, 12, -65552, 655360, 12, -16, 655360, 12, 65520, 655360, 12, 131056, 655360, 12, 65521, 655360, 12, 131057, 655360, 12, -458770, 655360, 12, -393234, 655360, 12, -327698, 655360, 12, -262162, 655360, 12, -458769, 655360, 12, -393233, 655360, 12, -327697, 655360, 12, -262161, 655360, 12, -458768, 655360, 12, -393232, 655360, 12, -327696, 655360, 12, -262160, 655360, 12, -589840, 655360, 12, -524304, 655360, 12, -65528, 458752, 8, 8, 524288, 12, 65544, 524288, 12, 131080, 524288, 12, 196616, 524288, 12, 262152, 524288, 12, 327688, 524288, 12, -65527, 524288, 12, 9, 524288, 12, 65545, 524288, 12, 131081, 524288, 12, 196617, 524288, 12, 262153, 524288, 12, 327689, 524288, 12, -65526, 524288, 12, 10, 524288, 12, 65546, 524288, 12, 131082, 524288, 12, 196618, 524288, 12, 262154, 524288, 12, 327690, 524288, 12, -65525, 524288, 12, 11, 524288, 12, 65547, 524288, 12, 131083, 524288, 12, 196619, 524288, 12, 262155, 524288, 12, 327691, 524288, 12, -65524, 458752, 8, 12, 524288, 12, 65548, 524288, 12, 131084, 524288, 12, 196620, 524288, 12, 262156, 524288, 12, 327692, 524288, 12, -65523, 458752, 8, 13, 524288, 12, 65549, 524288, 12, 131085, 524288, 12, 196621, 524288, 12, 262157, 524288, 12, 327693, 524288, 12, -65522, 458752, 8, 14, 524288, 12, 65550, 524288, 12, 131086, 524288, 12, 196622, 524288, 12, 262158, 524288, 12, 327694, 524288, 12, -65521, 458752, 8, 15, 524288, 12, 65551, 524288, 12, 131087, 524288, 12, 196623, 524288, 12, 262159, 524288, 12, 327695, 524288, 12, -65520, 458752, 8, 16, 524288, 12, 65552, 524288, 12, 131088, 524288, 12, 196624, 524288, 12, 262160, 524288, 12, 327696, 524288, 12, -65519, 458752, 8, 17, 524288, 12, 65553, 524288, 12, 131089, 524288, 12, 196625, 524288, 12, 262161, 524288, 12, 327697, 524288, 12, -65518, 458752, 8, 18, 524288, 12, 65554, 524288, 12, 131090, 524288, 12, 196626, 524288, 12, 262162, 524288, 12, 327698, 524288, 12, -65517, 458752, 8, 19, 524288, 12, 65555, 524288, 12, 131091, 524288, 12, 196627, 524288, 12, 262163, 524288, 12, 327699, 524288, 12, -65516, 524288, 12, 20, 524288, 12, 65556, 524288, 12, 131092, 524288, 12, 196628, 524288, 12, 262164, 524288, 12, 327700, 524288, 12, -65515, 524288, 12, 21, 524288, 12, 65557, 524288, 12, 131093, 524288, 12, 196629, 524288, 12, 262165, 524288, 12, 327701, 524288, 12, -65514, 524288, 12, 22, 524288, 12, 65558, 524288, 12, 131094, 524288, 12, 196630, 524288, 12, 262166, 524288, 12, 327702, 524288, 12, -65513, 458752, 8, -131063, 458752, 8, -131062, 458752, 8, -131061, 458752, 8, -262129, 524288, 5, -262128, 524288, 4, -262127, 524288, 3, -131052, 458752, 8, -131051, 458752, 8, -131050, 458752, 8, 23, 524288, 12, 65559, 524288, 12, 131095, 524288, 12, 196631, 524288, 12, 262167, 524288, 12, 327703, 524288, 12, -65512, 458752, 8, 24, 524288, 12, 65560, 524288, 12, 131096, 524288, 12, 196632, 524288, 12, 262168, 524288, 12, 327704, 524288, 12, -65511, 458752, 8, 25, 524288, 12, 65561, 524288, 12, 131097, 524288, 12, 196633, 524288, 12, 262169, 524288, 12, 327705, 524288, 12, -65510, 524288, 8, 4, 524288, 12, 65540, 524288, 12, 131076, 524288, 12, 196612, 524288, 12, 262148, 524288, 12, 327684, 524288, 12, 5, 393216, 8, 65541, 458752, 3, 131077, 458752, 3, 196613, 458752, 3, 262149, 458752, 3, 327685, 458752, 3, 6, 393216, 8, 65542, 458752, 3, 131078, 458752, 3, 196614, 458752, 3, 262150, 458752, 3, 327686, 458752, 3, 7, 393216, 8, 65543, 458752, 3, 131079, 458752, 3, 196615, 458752, 3, 262151, 458752, 3, 327687, 458752, 3, -65530, 524288, 5, -65529, 524288, 4, -65533, 458752, 8, 3, 524288, 12, 65539, 524288, 12, 131075, 524288, 12, 196611, 524288, 12, 262147, 524288, 12, 327683, 524288, 12, -65532, 458752, 8, -131076, 524288, 12, -65540, 524288, 12, -4, 524288, 12, 65532, 524288, 12, -131077, 524288, 12, -65541, 524288, 12, -5, 524288, 12, 65531, 524288, 12, 131071, 458752, 8, 196607, 524288, 12, 262143, 524288, 12, 327679, 524288, 12, -65544, 655360, 12, -65543, 655360, 12, -7, 655360, 12, -6, 655360, 12, -65542, 655360, 12, -8, 655360, 12, 65529, 655360, 12, 65530, 655360, 12, -786448, 655360, 12, -720912, 655360, 12, -655376, 655360, 12, -524305, 655360, 12, -589841, 655360, 12, -655377, 655360, 12, -720913, 655360, 12, -786449, 655360, 12)
layer_1/name = "items"
layer_1/tile_data = PackedInt32Array(-327684, 0, 8, -393216, 0, 8, -458750, 0, 8, -327677, 0, 8, -131069, 0, 8, -196598, 0, 8, -196587, 0, 8, -131056, 0, 8, -131057, 0, 5, -327664, 0, 5)
layer_2/name = "triggers"
layer_2/tile_data = PackedInt32Array(-327688, 262144, 3, -131047, 262144, 5)
[node name="Player" parent="." instance=ExtResource("2_x2sg8")]
position = Vector2(230, -206)
[node name="UI" type="CanvasLayer" parent="."]
[node name="MarginContainer" type="MarginContainer" parent="UI"]
offset_right = 40.0
offset_bottom = 40.0
theme_override_constants/margin_left = 32
theme_override_constants/margin_top = 32
[node name="HBoxContainer" type="HBoxContainer" parent="UI/MarginContainer"]
layout_mode = 2
theme_override_constants/separation = 64
[node name="Life" type="HBoxContainer" parent="UI/MarginContainer/HBoxContainer"]
layout_mode = 2
[node name="Life-0" type="TextureRect" parent="UI/MarginContainer/HBoxContainer/Life"]
layout_mode = 2
texture = ExtResource("4_wlhbi")
[node name="Life-1" type="TextureRect" parent="UI/MarginContainer/HBoxContainer/Life"]
layout_mode = 2
texture = ExtResource("4_wlhbi")
[node name="Life-2" type="TextureRect" parent="UI/MarginContainer/HBoxContainer/Life"]
layout_mode = 2
texture = ExtResource("4_wlhbi")
[node name="Coins" type="HBoxContainer" parent="UI/MarginContainer/HBoxContainer"]
layout_mode = 2
[node name="Icon" type="TextureRect" parent="UI/MarginContainer/HBoxContainer/Coins"]
layout_mode = 2
texture = ExtResource("5_outur")
[node name="Amount" type="Label" parent="UI/MarginContainer/HBoxContainer/Coins"]
layout_mode = 2
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/shadow_offset_x = 2
theme_override_constants/outline_size = 5
theme_override_constants/shadow_outline_size = 4
theme_override_fonts/font = ExtResource("6_m8thp")
theme_override_font_sizes/font_size = 38
text = "x0"
[node name="CompletedLevel" type="PanelContainer" parent="UI"]
process_mode = 2
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(1e-05, 1e-05)
pivot_offset = Vector2(330, 175)
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_styles/panel = SubResource("StyleBoxFlat_thlej")
[node name="VBoxContainer" type="VBoxContainer" parent="UI/CompletedLevel"]
layout_mode = 2
theme_override_constants/separation = 24
[node name="Title" type="Label" parent="UI/CompletedLevel/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.192157, 0.192157, 0.192157, 1)
theme_override_font_sizes/font_size = 64
text = "LEVEL COMPLETED!"
[node name="Time" type="Label" parent="UI/CompletedLevel/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.192157, 0.192157, 0.192157, 1)
theme_override_font_sizes/font_size = 48
text = "00:00"
horizontal_alignment = 1
[node name="ReplayButton" type="Button" parent="UI/CompletedLevel/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 48
theme_override_styles/normal = SubResource("StyleBoxFlat_1gi1r")
text = "REPLAY"
[node name="Animator" type="AnimationPlayer" parent="UI/CompletedLevel"]
libraries = {
"": SubResource("AnimationLibrary_i2c5y")
}
[node name="GameOver" type="PanelContainer" parent="UI"]
process_mode = 2
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(1e-05, 1e-05)
pivot_offset = Vector2(243, 175)
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_styles/panel = SubResource("StyleBoxFlat_thlej")
[node name="VBoxContainer" type="VBoxContainer" parent="UI/GameOver"]
layout_mode = 2
theme_override_constants/separation = 24
[node name="Title" type="Label" parent="UI/GameOver/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.192157, 0.192157, 0.192157, 1)
theme_override_font_sizes/font_size = 64
text = "GAME OVER :("
[node name="Message" type="Label" parent="UI/GameOver/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.192157, 0.192157, 0.192157, 1)
theme_override_font_sizes/font_size = 48
text = "You got killed!"
horizontal_alignment = 1
[node name="ReplayButton" type="Button" parent="UI/GameOver/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 48
theme_override_styles/normal = SubResource("StyleBoxFlat_1gi1r")
text = "REPLAY"
[node name="Animator" type="AnimationPlayer" parent="UI/GameOver"]
libraries = {
"": SubResource("AnimationLibrary_i2c5y")
}
[connection signal="pressed" from="UI/CompletedLevel/VBoxContainer/ReplayButton" to="." method="_Replay"]
[connection signal="pressed" from="UI/GameOver/VBoxContainer/ReplayButton" to="." method="_Replay"]