Files
Omens-Ascent/scenes/components/death_screen.tscn

235 lines
6.4 KiB
Plaintext

[gd_scene format=3 uid="uid://cmalp4tc6asg5"]
[ext_resource type="Script" uid="uid://ij7vc5allaf7" path="res://scenes/components/death_screen.gd" id="1_sf00y"]
[ext_resource type="Texture2D" uid="uid://dxxsachfb1414" path="res://assets/images/sprites/Player/HURT.png" id="2_t707u"]
[ext_resource type="Texture2D" uid="uid://gselbhwgn87t" path="res://assets/images/sprites/Player/DEATH.png" id="3_y48vm"]
[ext_resource type="FontFile" uid="uid://cqrxu8aj7ih08" path="res://assets/fonts/pixel_font.ttf" id="4_a1ppj"]
[sub_resource type="AtlasTexture" id="AtlasTexture_1hkis"]
atlas = ExtResource("2_t707u")
region = Rect2(0, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_cjuk3"]
atlas = ExtResource("2_t707u")
region = Rect2(106, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_57bwy"]
atlas = ExtResource("2_t707u")
region = Rect2(212, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_pou6f"]
atlas = ExtResource("2_t707u")
region = Rect2(318, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_r6we6"]
atlas = ExtResource("3_y48vm")
region = Rect2(0, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_l0ovk"]
atlas = ExtResource("3_y48vm")
region = Rect2(106, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_2u0eb"]
atlas = ExtResource("3_y48vm")
region = Rect2(212, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_5ox82"]
atlas = ExtResource("3_y48vm")
region = Rect2(318, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_bo5pj"]
atlas = ExtResource("3_y48vm")
region = Rect2(424, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_vdnys"]
atlas = ExtResource("3_y48vm")
region = Rect2(530, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_r8nhr"]
atlas = ExtResource("3_y48vm")
region = Rect2(636, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_w7dd3"]
atlas = ExtResource("3_y48vm")
region = Rect2(742, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_e22sg"]
atlas = ExtResource("3_y48vm")
region = Rect2(848, 0, 106, 84)
[sub_resource type="AtlasTexture" id="AtlasTexture_w4vwu"]
atlas = ExtResource("3_y48vm")
region = Rect2(954, 0, 106, 84)
[sub_resource type="SpriteFrames" id="SpriteFrames_uw8iy"]
animations = [{
"frames": [{
"duration": 0.4,
"texture": SubResource("AtlasTexture_1hkis")
}, {
"duration": 0.4,
"texture": SubResource("AtlasTexture_cjuk3")
}, {
"duration": 0.4,
"texture": SubResource("AtlasTexture_57bwy")
}, {
"duration": 0.4,
"texture": SubResource("AtlasTexture_pou6f")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_r6we6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l0ovk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2u0eb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5ox82")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bo5pj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vdnys")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_r8nhr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w7dd3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_e22sg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w4vwu")
}],
"loop": 0,
"name": &"player_death",
"speed": 7.0
}]
[sub_resource type="LabelSettings" id="LabelSettings_hyhb4"]
font = ExtResource("4_a1ppj")
font_size = 32
outline_size = 2
outline_color = Color(0, 0, 0, 1)
shadow_size = 50
[sub_resource type="LabelSettings" id="LabelSettings_uvqlf"]
font = ExtResource("4_a1ppj")
outline_size = 1
outline_color = Color(0, 0, 0, 1)
[sub_resource type="Theme" id="Theme_uvqlf"]
default_font = ExtResource("4_a1ppj")
default_font_size = 16
[sub_resource type="Theme" id="Theme_gy2im"]
default_font = ExtResource("4_a1ppj")
default_font_size = 16
[node name="DeathScreen" type="Control" unique_id=530626300]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_sf00y")
[node name="ColorRect" type="ColorRect" parent="." unique_id=1616720522]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(1, 0, 0, 1)
[node name="PlayerDeathSprite" type="AnimatedSprite2D" parent="." unique_id=268569770]
position = Vector2(160, 130)
sprite_frames = SubResource("SpriteFrames_uw8iy")
animation = &"player_death"
autoplay = "player_death"
frame = 13
frame_progress = 1.0
offset = Vector2(0, -40)
[node name="Camera2D" type="Camera2D" parent="PlayerDeathSprite" unique_id=2120335197]
offset = Vector2(0, -40)
position_smoothing_enabled = true
[node name="TextLayer" type="Control" parent="." unique_id=461830828]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="GameOverLabel" type="Label" parent="TextLayer" unique_id=1777638082]
layout_mode = 0
offset_left = 108.0
offset_top = 22.0
offset_right = 212.0
offset_bottom = 56.0
text = "GAME OVER"
label_settings = SubResource("LabelSettings_hyhb4")
horizontal_alignment = 1
vertical_alignment = 1
[node name="VillageDestroyedLabel" type="Label" parent="TextLayer" unique_id=2091854732]
layout_mode = 0
offset_left = 100.0
offset_top = 57.0
offset_right = 221.0
offset_bottom = 80.0
text = "Your world is doomed..."
label_settings = SubResource("LabelSettings_uvqlf")
[node name="OptionsContainer" type="HBoxContainer" parent="." unique_id=1799996589]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -160.0
offset_top = -35.0
offset_right = 160.0
offset_bottom = -10.0
grow_horizontal = 2
grow_vertical = 0
alignment = 1
[node name="ContinueButton" type="Button" parent="OptionsContainer" unique_id=1967909358]
layout_mode = 2
theme = SubResource("Theme_uvqlf")
text = "Continue"
flat = true
[node name="TitleScreenButton" type="Button" parent="OptionsContainer" unique_id=206299408]
layout_mode = 2
theme = SubResource("Theme_gy2im")
text = "Title Screen"
flat = true
[node name="ExitButton" type="Button" parent="OptionsContainer" unique_id=1310023870]
layout_mode = 2
theme = SubResource("Theme_gy2im")
text = "Exit Game"
flat = true
[node name="FadeOut" type="ColorRect" parent="." unique_id=925900082]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_bottom = 10.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0)