From caf184e6ec7a2f9d80959ae1a69b9e1b75dfc919 Mon Sep 17 00:00:00 2001 From: Cookie-CHR Date: Tue, 5 Apr 2022 00:12:02 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Ending=20scenes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/levels/endings/BadEnding.tscn | 80 ++++++++++++++++++++++++++ src/levels/endings/Credits.tscn | 29 ++++++++++ src/levels/endings/GoodEnding.tscn | 90 ++++++++++++++++++++++++++++++ src/levels/mainmenu/MainMenu.tscn | 26 ++++++++- src/levels/ui/ui/Title.png | 4 +- 5 files changed, 224 insertions(+), 5 deletions(-) create mode 100644 src/levels/endings/BadEnding.tscn create mode 100644 src/levels/endings/Credits.tscn create mode 100644 src/levels/endings/GoodEnding.tscn diff --git a/src/levels/endings/BadEnding.tscn b/src/levels/endings/BadEnding.tscn new file mode 100644 index 0000000..8f410d8 --- /dev/null +++ b/src/levels/endings/BadEnding.tscn @@ -0,0 +1,80 @@ +[gd_scene load_steps=11 format=2] + +[ext_resource path="res://src/levels/ui/fonts/SourceSerifPro-Regular.ttf" type="DynamicFontData" id=1] +[ext_resource path="res://src/ui/fonts/SourceSerifPro-Light.ttf" type="DynamicFontData" id=2] +[ext_resource path="res://src/levels/ui/PlayButton.png" type="Texture" id=3] +[ext_resource path="res://src/levels/ui/ui/Title.png" type="Texture" id=4] +[ext_resource path="res://src/levels/endings/Credits.tscn" type="PackedScene" id=5] + +[sub_resource type="DynamicFont" id=9] +size = 22 +font_data = ExtResource( 1 ) + +[sub_resource type="Theme" id=5] +default_font = SubResource( 9 ) + +[sub_resource type="DynamicFont" id=6] +size = 70 +font_data = ExtResource( 2 ) + +[sub_resource type="DynamicFont" id=7] +size = 100 +font_data = ExtResource( 1 ) + +[sub_resource type="DynamicFont" id=8] +size = 40 +font_data = ExtResource( 1 ) + +[node name="BadEnding" type="CanvasLayer"] + +[node name="TheDarkNightUI" type="Control" parent="."] +light_mask = 2 +anchor_left = 0.5 +anchor_top = 1.0 +anchor_right = 0.5 +anchor_bottom = 1.0 +margin_left = -640.0 +margin_top = -80.0 +margin_right = 640.0 +theme = SubResource( 5 ) + +[node name="Sprite" type="Sprite" parent="TheDarkNightUI"] +position = Vector2( 640.881, -279.304 ) +texture = ExtResource( 4 ) + +[node name="Play" type="Button" parent="TheDarkNightUI"] +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_top = -2.0 +margin_right = -260.0 +margin_bottom = -100.0 +grow_horizontal = 0 +grow_vertical = 0 +custom_fonts/font = SubResource( 6 ) +text = "Play" +icon = ExtResource( 3 ) +flat = true + +[node name="LabelTitle" type="Label" parent="TheDarkNightUI"] +margin_left = 700.0 +margin_top = -575.0 +margin_right = 1208.0 +margin_bottom = 29.0 +custom_fonts/font = SubResource( 7 ) +text = "You lost" +align = 2 +autowrap = true + +[node name="LabelText" type="Label" parent="TheDarkNightUI/LabelTitle"] +margin_top = 150.0 +margin_right = 508.0 +margin_bottom = 604.0 +custom_fonts/font = SubResource( 8 ) +text = "The icy army has invaded the land" +align = 2 +autowrap = true + +[node name="Credits" parent="TheDarkNightUI/LabelTitle" instance=ExtResource( 5 )] +margin_top = 300.0 diff --git a/src/levels/endings/Credits.tscn b/src/levels/endings/Credits.tscn new file mode 100644 index 0000000..e42b799 --- /dev/null +++ b/src/levels/endings/Credits.tscn @@ -0,0 +1,29 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://src/levels/ui/fonts/SourceSerifPro-Regular.ttf" type="DynamicFontData" id=1] + +[sub_resource type="DynamicFont" id=1] +size = 40 +font_data = ExtResource( 1 ) + +[sub_resource type="DynamicFont" id=2] +size = 35 +font_data = ExtResource( 1 ) + +[node name="Credits" type="Label"] +margin_right = 500.0 +margin_bottom = 14.0 +custom_fonts/font = SubResource( 1 ) +text = "Made for Ludum Dare 50 by:" +align = 2 + +[node name="CreditsSmall" type="Label" parent="."] +margin_top = 60.0 +margin_right = 500.0 +margin_bottom = 14.0 +custom_fonts/font = SubResource( 2 ) +text = "Steffo +Cookie +Sensei +xZefyr" +align = 2 diff --git a/src/levels/endings/GoodEnding.tscn b/src/levels/endings/GoodEnding.tscn new file mode 100644 index 0000000..6d9f453 --- /dev/null +++ b/src/levels/endings/GoodEnding.tscn @@ -0,0 +1,90 @@ +[gd_scene load_steps=12 format=2] + +[ext_resource path="res://src/levels/ui/fonts/SourceSerifPro-Regular.ttf" type="DynamicFontData" id=1] +[ext_resource path="res://src/entities/fire/Fire.tscn" type="PackedScene" id=2] +[ext_resource path="res://src/ui/fonts/SourceSerifPro-Light.ttf" type="DynamicFontData" id=3] +[ext_resource path="res://src/levels/ui/PlayButton.png" type="Texture" id=4] +[ext_resource path="res://src/levels/ui/ui/Title.png" type="Texture" id=5] +[ext_resource path="res://src/levels/endings/Credits.tscn" type="PackedScene" id=6] + +[sub_resource type="DynamicFont" id=4] +size = 22 +font_data = ExtResource( 1 ) + +[sub_resource type="Theme" id=5] +default_font = SubResource( 4 ) + +[sub_resource type="DynamicFont" id=6] +size = 70 +font_data = ExtResource( 3 ) + +[sub_resource type="DynamicFont" id=7] +size = 100 +font_data = ExtResource( 1 ) + +[sub_resource type="DynamicFont" id=8] +size = 40 +font_data = ExtResource( 1 ) + +[node name="GoodEnding" type="CanvasLayer"] + +[node name="TheDarkNightUI" type="Control" parent="."] +light_mask = 2 +anchor_left = 0.5 +anchor_top = 1.0 +anchor_right = 0.5 +anchor_bottom = 1.0 +margin_left = -640.0 +margin_top = -80.0 +margin_right = 640.0 +theme = SubResource( 5 ) + +[node name="Sprite" type="Sprite" parent="TheDarkNightUI"] +position = Vector2( 640.881, -279.304 ) +texture = ExtResource( 5 ) + +[node name="Play" type="Button" parent="TheDarkNightUI"] +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_top = -2.0 +margin_right = -260.0 +margin_bottom = -100.0 +grow_horizontal = 0 +grow_vertical = 0 +custom_fonts/font = SubResource( 6 ) +text = "Play" +icon = ExtResource( 4 ) +flat = true + +[node name="LabelTitle" type="Label" parent="TheDarkNightUI"] +margin_left = 700.0 +margin_top = -575.0 +margin_right = 1208.0 +margin_bottom = 29.0 +custom_fonts/font = SubResource( 7 ) +text = "You win" +align = 2 +autowrap = true + +[node name="LabelText" type="Label" parent="TheDarkNightUI/LabelTitle"] +margin_top = 150.0 +margin_right = 508.0 +margin_bottom = 604.0 +custom_fonts/font = SubResource( 8 ) +text = "You are a hero! The land is safe again." +align = 2 +autowrap = true + +[node name="Credits" parent="TheDarkNightUI/LabelTitle" instance=ExtResource( 6 )] +margin_top = 300.0 + +[node name="MenuFire" parent="TheDarkNightUI" instance=ExtResource( 2 )] +position = Vector2( 421, -275 ) +scale = Vector2( 4, 4 ) + +[node name="Damaging" parent="TheDarkNightUI/MenuFire" index="3"] +damage = -5.0 + +[editable path="TheDarkNightUI/MenuFire"] diff --git a/src/levels/mainmenu/MainMenu.tscn b/src/levels/mainmenu/MainMenu.tscn index cc17ba2..cc2acf5 100644 --- a/src/levels/mainmenu/MainMenu.tscn +++ b/src/levels/mainmenu/MainMenu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=2] +[gd_scene load_steps=10 format=2] [ext_resource path="res://src/ui/fonts/SourceSerifPro-Light.ttf" type="DynamicFontData" id=1] [ext_resource path="res://src/levels/ui/ui/Title.png" type="Texture" id=2] @@ -6,17 +6,21 @@ [ext_resource path="res://src/entities/fire/Fire.tscn" type="PackedScene" id=4] [ext_resource path="res://src/levels/ui/fonts/SourceSerifPro-Regular.ttf" type="DynamicFontData" id=5] -[sub_resource type="DynamicFont" id=1] +[sub_resource type="DynamicFont" id=4] size = 22 font_data = ExtResource( 5 ) [sub_resource type="Theme" id=2] -default_font = SubResource( 1 ) +default_font = SubResource( 4 ) [sub_resource type="DynamicFont" id=3] size = 70 font_data = ExtResource( 1 ) +[sub_resource type="DynamicFont" id=5] +size = 120 +font_data = ExtResource( 5 ) + [node name="MainMenu" type="CanvasLayer"] [node name="TheDarkNightUI" type="Control" parent="."] @@ -38,6 +42,12 @@ texture = ExtResource( 2 ) position = Vector2( 421, -275 ) scale = Vector2( 4, 4 ) +[node name="FlameSprite" parent="TheDarkNightUI/MenuFire/Flame/Shape" index="0"] +frame = 0 + +[node name="Damaging" parent="TheDarkNightUI/MenuFire" index="3"] +damage = -5.0 + [node name="Play" type="Button" parent="TheDarkNightUI"] anchor_left = 1.0 anchor_top = 1.0 @@ -54,4 +64,14 @@ text = "Play" icon = ExtResource( 3 ) flat = true +[node name="Label" type="Label" parent="TheDarkNightUI"] +margin_left = 700.0 +margin_top = -505.0 +margin_right = 1208.0 +margin_bottom = 29.0 +custom_fonts/font = SubResource( 5 ) +text = "The Cold Night" +align = 2 +autowrap = true + [editable path="TheDarkNightUI/MenuFire"] diff --git a/src/levels/ui/ui/Title.png b/src/levels/ui/ui/Title.png index 230313e..711ac8d 100644 --- a/src/levels/ui/ui/Title.png +++ b/src/levels/ui/ui/Title.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:10d3fefb58022900bcef7270ca4f0f8d5f825ef1bfca7198fef463b23d40b937 -size 1874421 +oid sha256:46f2b8b4d0f8a16c0320ce55928d4f7df15c0e485541b0f31f1f79d6f0ae4b97 +size 1806758