234 lines
8.6 KiB
Text
234 lines
8.6 KiB
Text
[gd_scene format=3 uid="uid://c7d4prmswk5cq"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cj3x6a8gm4ogn" path="res://assets/models/character/character.blend" id="1_48f2e"]
|
|
[ext_resource type="Material" uid="uid://dn4cvbp52l26s" path="res://assets/environment/materials/elevator_inside.tres" id="1_444kp"]
|
|
[ext_resource type="Material" uid="uid://b34bw5uytvs5x" path="res://assets/effects/glow_material.tres" id="3_7q532"]
|
|
[ext_resource type="Texture2D" uid="uid://c0yeswk37c1h7" path="res://assets/ui/end_screen_frame.svg" id="3_c1u11"]
|
|
[ext_resource type="StyleBox" uid="uid://dx4vl7rb650ph" path="res://objects/ui/textbox_style.tres" id="4_pkge6"]
|
|
[ext_resource type="Texture2D" uid="uid://b304c6efrbpup" path="res://assets/ui/style_letters/style_breaking.png" id="5_tx4gm"]
|
|
[ext_resource type="Texture2D" uid="uid://cce55w15k4obo" path="res://assets/ui/style_letters/style_fatal.png" id="7_83m3j"]
|
|
[ext_resource type="Texture2D" uid="uid://borgwswaglvre" path="res://assets/ui/style_letters/style_anarchic.png" id="7_fokjh"]
|
|
[ext_resource type="Texture2D" uid="uid://ddnnht5030owy" path="res://assets/ui/style_letters/style_explosive.png" id="7_jlscs"]
|
|
[ext_resource type="Texture2D" uid="uid://cu6xs12a4v4lv" path="res://assets/ui/style_letters/style_destructive.png" id="8_83m3j"]
|
|
[ext_resource type="Texture2D" uid="uid://bsspt7d0wkkwc" path="res://assets/ui/style_letters/style_catastrophic.png" id="9_j4c8f"]
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_444kp"]
|
|
sky_horizon_color = Color(0.6527628, 0.6763377, 0.70551276, 1)
|
|
ground_bottom_color = Color(0.154, 0.1793, 0.2, 1)
|
|
ground_horizon_color = Color(0.6527628, 0.6763377, 0.70551276, 1)
|
|
|
|
[sub_resource type="Sky" id="Sky_c1u11"]
|
|
sky_material = SubResource("ProceduralSkyMaterial_444kp")
|
|
|
|
[sub_resource type="Environment" id="Environment_pkge6"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_c1u11")
|
|
tonemap_mode = 2
|
|
ssao_enabled = true
|
|
glow_enabled = true
|
|
|
|
[sub_resource type="GDScript" id="GDScript_48f2e"]
|
|
resource_name = "LevelEndPlayer"
|
|
script/source = "@tool
|
|
extends Node3D
|
|
|
|
func _ready():
|
|
$AnimationPlayer.play(\"falling\")
|
|
"
|
|
|
|
[sub_resource type="LevelResult" id="LevelResult_jlscs"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_jlscs"]
|
|
resource_name = "IntermissionScreenScoreLabel"
|
|
script/source = "extends RichTextLabel
|
|
|
|
func _ready():
|
|
text = \"Score: %d\" % %IntermissionScreen.result.score
|
|
"
|
|
|
|
[sub_resource type="GDScript" id="GDScript_83m3j"]
|
|
resource_name = "IntermissionPercentageLabel"
|
|
script/source = "extends RichTextLabel
|
|
|
|
func _ready():
|
|
var result := (%IntermissionScreen as IntermissionScreen).result
|
|
text = \"Destroyed: %d%%\" % (int((float(result.destroyed) / float(result.total_objects)) * 100) if result.total_objects > 0 else 0)
|
|
"
|
|
|
|
[sub_resource type="GDScript" id="GDScript_7q532"]
|
|
resource_name = "IntermissionStyleLetter"
|
|
script/source = "extends TextureRect
|
|
|
|
@export var textures : Array[Texture2D]
|
|
@onready var result := (%IntermissionScreen as IntermissionScreen).result
|
|
|
|
func _ready():
|
|
texture = textures[result.style-1]
|
|
"
|
|
|
|
[sub_resource type="GDScript" id="GDScript_volaf"]
|
|
resource_name = "NextLevelButton"
|
|
script/source = "extends Button
|
|
|
|
func _ready():
|
|
if %IntermissionScreen.result.next_level == null:
|
|
%MainMenuButton.grab_focus()
|
|
queue_free()
|
|
else:
|
|
grab_focus()
|
|
|
|
func _pressed() -> void:
|
|
%IntermissionScreen.next_level()
|
|
"
|
|
|
|
[sub_resource type="GDScript" id="GDScript_j4c8f"]
|
|
resource_name = "ReturnToMenu"
|
|
script/source = "extends Button
|
|
|
|
func _pressed():
|
|
get_tree().change_scene_to_file(\"res://scenes/main_menu.tscn\")
|
|
"
|
|
|
|
[node name="LevelEndScreen" type="Node3D" unique_id=1188670411]
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1630900158]
|
|
environment = SubResource("Environment_pkge6")
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="." unique_id=1009807301]
|
|
transform = Transform3D(-0.9117125, -0.31108925, 0.26833513, -0.030673683, 0.70287764, 0.71064913, -0.40968207, 0.63967687, -0.6503647, 1.6184452, 4.1968694, -2.428154)
|
|
fov = 30.9375
|
|
|
|
[node name="CSGBox3D" type="CSGBox3D" parent="." unique_id=288833270]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.8057861, 0, -2.0224)
|
|
flip_faces = true
|
|
size = Vector3(6.0234375, 15.5095215, 6.79895)
|
|
material = ExtResource("1_444kp")
|
|
|
|
[node name="character" parent="." unique_id=1528354859 instance=ExtResource("1_48f2e")]
|
|
script = SubResource("GDScript_48f2e")
|
|
|
|
[node name="body" parent="character/character2/Skeleton3D" parent_id_path=PackedInt32Array(1528354859, 331876289) index="0" unique_id=874930804]
|
|
material_overlay = ExtResource("3_7q532")
|
|
|
|
[node name="body_001" parent="character/character2/Skeleton3D" parent_id_path=PackedInt32Array(1528354859, 331876289) index="1" unique_id=1752289436]
|
|
material_overlay = ExtResource("3_7q532")
|
|
|
|
[node name="hammer" parent="character/character2/Skeleton3D" parent_id_path=PackedInt32Array(1528354859, 331876289) index="2" unique_id=1931141021]
|
|
material_overlay = ExtResource("3_7q532")
|
|
|
|
[node name="IntermissionScreen" type="IntermissionScreen" parent="." unique_id=167990140]
|
|
unique_name_in_owner = true
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
result = SubResource("LevelResult_jlscs")
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="IntermissionScreen" unique_id=226567850]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = ExtResource("3_c1u11")
|
|
expand_mode = 1
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="IntermissionScreen" unique_id=171117788]
|
|
layout_mode = 0
|
|
offset_left = 168.99997
|
|
offset_top = 57.0
|
|
offset_right = 598.5603
|
|
offset_bottom = 126.0
|
|
rotation = 0.09742515
|
|
theme_override_styles/panel = ExtResource("4_pkge6")
|
|
|
|
[node name="RichTextLabel" type="RichTextLabel" parent="IntermissionScreen/PanelContainer" unique_id=129594155]
|
|
layout_mode = 2
|
|
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
|
theme_override_font_sizes/normal_font_size = 28
|
|
text = "Score: 123456"
|
|
fit_content = true
|
|
scroll_active = false
|
|
script = SubResource("GDScript_jlscs")
|
|
|
|
[node name="PanelContainer2" type="PanelContainer" parent="IntermissionScreen" unique_id=979281030]
|
|
layout_mode = 0
|
|
offset_left = 198.0
|
|
offset_top = 206.0
|
|
offset_right = 625.2025
|
|
offset_bottom = 275.0
|
|
rotation = -0.025691543
|
|
theme_override_styles/panel = ExtResource("4_pkge6")
|
|
|
|
[node name="RichTextLabel" type="RichTextLabel" parent="IntermissionScreen/PanelContainer2" unique_id=1687861345]
|
|
layout_mode = 2
|
|
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
|
theme_override_font_sizes/normal_font_size = 28
|
|
text = "Destruction: 200%"
|
|
fit_content = true
|
|
scroll_active = false
|
|
script = SubResource("GDScript_83m3j")
|
|
|
|
[node name="Panel" type="Panel" parent="IntermissionScreen" unique_id=1703835801]
|
|
layout_mode = 0
|
|
offset_left = 340.0
|
|
offset_top = 315.0
|
|
offset_right = 624.0497
|
|
offset_bottom = 601.54553
|
|
rotation = 0.17307885
|
|
theme_override_styles/panel = ExtResource("4_pkge6")
|
|
|
|
[node name="PanelContainer3" type="PanelContainer" parent="IntermissionScreen" unique_id=402491634]
|
|
layout_mode = 0
|
|
offset_left = 277.3709
|
|
offset_top = 282.30167
|
|
offset_right = 569.99615
|
|
offset_bottom = 357.30167
|
|
rotation = 0.13659918
|
|
theme_override_styles/panel = ExtResource("4_pkge6")
|
|
|
|
[node name="RichTextLabel" type="RichTextLabel" parent="IntermissionScreen/PanelContainer3" unique_id=1708404379]
|
|
layout_mode = 2
|
|
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
|
theme_override_font_sizes/normal_font_size = 32
|
|
text = "Style:"
|
|
fit_content = true
|
|
scroll_active = false
|
|
|
|
[node name="TextureRect2" type="TextureRect" parent="IntermissionScreen" unique_id=668257733]
|
|
layout_mode = 1
|
|
offset_left = 321.99997
|
|
offset_top = 365.0
|
|
offset_right = 585.03235
|
|
offset_bottom = 601.13135
|
|
rotation = 0.034808658
|
|
size_flags_horizontal = 8
|
|
texture = ExtResource("5_tx4gm")
|
|
expand_mode = 1
|
|
script = SubResource("GDScript_7q532")
|
|
textures = Array[Texture2D]([ExtResource("7_83m3j"), ExtResource("7_jlscs"), ExtResource("8_83m3j"), ExtResource("9_j4c8f"), ExtResource("5_tx4gm"), ExtResource("7_fokjh")])
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="IntermissionScreen" unique_id=1187036939]
|
|
layout_mode = 0
|
|
offset_left = 263.0
|
|
offset_top = 850.0
|
|
offset_right = 601.0
|
|
offset_bottom = 903.0
|
|
|
|
[node name="NextLevelButton" type="Button" parent="IntermissionScreen/VBoxContainer" unique_id=1264059329]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 38
|
|
text = "Next Level"
|
|
script = SubResource("GDScript_volaf")
|
|
|
|
[node name="MainMenuButton" type="Button" parent="IntermissionScreen/VBoxContainer" unique_id=277903745]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 32
|
|
text = "Return to Main Menu"
|
|
script = SubResource("GDScript_j4c8f")
|
|
|
|
[editable path="character"]
|