From 844573d03f2fbac2bda15baa4929e891ddd0c4fd Mon Sep 17 00:00:00 2001 From: cutekibry Date: Sun, 28 Jan 2024 09:38:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20credits=EF=BC=88=E7=AE=80?= =?UTF-8?q?=E5=8D=95=E5=AE=9E=E7=8E=B0=EF=BC=89=E5=B9=B6=E4=BD=BF=E9=80=9A?= =?UTF-8?q?=E5=85=B3=E6=9C=80=E5=90=8E=E4=B8=80=E5=85=B3=E5=90=8E=E4=BC=9A?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=20credits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- levels/chapter_menu/level_menu/level_menu.gd | 7 +++++++ objects/credits/credits.tscn | 22 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 objects/credits/credits.tscn diff --git a/levels/chapter_menu/level_menu/level_menu.gd b/levels/chapter_menu/level_menu/level_menu.gd index 042134d..7d20717 100644 --- a/levels/chapter_menu/level_menu/level_menu.gd +++ b/levels/chapter_menu/level_menu/level_menu.gd @@ -8,6 +8,7 @@ const I_NUMBER = ["I","II","III","VI","V"] const LevelButton := preload("res://levels/chapter_menu/level_menu/level_button/level_button.tscn") const BaseLevel := preload("res://levels/base_level/base_level.tscn") +const Credits := preload("res://objects/credits/credits.tscn") # Called when the node enters the scene tree for the first time. @@ -18,6 +19,12 @@ const button_heigth : int = 50 func init(chap_id : int, lvl_num : int) -> void: #print("init?") + if chap_id == len(BaseLevel.instantiate().DATA): + add_child(Credits.instantiate()) + $Title.set_text("") + return + + if lvl_num == -1: lvl_num = len(BaseLevel.instantiate().DATA[chap_id]) diff --git a/objects/credits/credits.tscn b/objects/credits/credits.tscn new file mode 100644 index 0000000..c167d63 --- /dev/null +++ b/objects/credits/credits.tscn @@ -0,0 +1,22 @@ +[gd_scene load_steps=2 format=3 uid="uid://cdu8yubd7fyvb"] + +[ext_resource type="FontFile" uid="uid://1000owdyvwfg" path="res://fonts/unifont-15.1.04.otf" id="1_re7ax"] + +[node name="Label" type="Label"] +custom_minimum_size = Vector2(480, 256) +offset_right = 40.0 +offset_bottom = 23.0 +theme_override_fonts/font = ExtResource("1_re7ax") +text = " + +[ Equal to P ] + +Created by 玩一个四字音游导致的 @ GGJ2024 + +ligen131 Tsukimaru + + Bunnycxk IssactheMouse + + +THANKS FOR PLAYING! ;-)" +horizontal_alignment = 1