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