Updated credits

This commit is contained in:
2025-12-03 00:50:38 +03:00
parent fc9656d2f3
commit be56f7b12f
15 changed files with 223 additions and 92 deletions
+28 -1
View File
@@ -4,7 +4,12 @@ extends Control
signal back
@onready var main_menu_button := $%BackButton
@export var scroll_speed: float = 25.0
@onready var main_menu_button := $BackButton
@onready var text := $Text
@onready var tween: Tween
func _ready() -> void:
@@ -16,6 +21,28 @@ func _on_visibility_changed() -> void:
if not visible: return
main_menu_button.grab_focus()
_start_scrolling()
func _start_scrolling() -> void:
var start_pos := Vector2(0, get_viewport_rect().size.y)
var end_pos := Vector2(0, -text.size.y)
var duration := (start_pos.y - end_pos.y) / scroll_speed
text.position = start_pos
tween = create_tween()
tween.tween_property(text, "position:y", end_pos.y, duration)
tween.finished.connect(_on_scroll_finished)
func _on_back_button_pressed() -> void:
if tween:
tween.kill()
back.emit()
func _on_scroll_finished() -> void:
back.emit()
+42 -32
View File
@@ -1,7 +1,8 @@
[gd_scene load_steps=5 format=3 uid="uid://c3q3g2647qc27"]
[gd_scene load_steps=6 format=3 uid="uid://c3q3g2647qc27"]
[ext_resource type="Script" uid="uid://dclkpithyykju" path="res://menu/credits.gd" id="1_wp78b"]
[ext_resource type="Theme" uid="uid://dtnd3tqllufey" path="res://images/menu_button.tres" id="2_nidem"]
[ext_resource type="Theme" uid="uid://cigren10ijb75" path="res://images/label.tres" id="3_x2hwc"]
[sub_resource type="InputEventAction" id="InputEventAction_wp78b"]
action = &"ui_cancel"
@@ -14,41 +15,50 @@ layout_mode = 3
anchors_preset = 0
script = ExtResource("1_wp78b")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
top_level = true
layout_mode = 0
offset_left = 100.0
offset_top = 100.0
offset_right = 330.0
offset_bottom = 158.0
[node name="GridContainer" type="GridContainer" parent="VBoxContainer"]
layout_mode = 2
columns = 2
[node name="ProgrammingLabel" type="Label" parent="VBoxContainer/GridContainer"]
[node name="BackButton" type="Button" parent="."]
z_index = 100
layout_mode = 2
text = "Programming:"
horizontal_alignment = 2
[node name="ProgrammersLabel" type="Label" parent="VBoxContainer/GridContainer"]
z_index = 100
layout_mode = 2
text = "Ruslan Ignatov"
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
alignment = 2
[node name="BackButton" type="Button" parent="VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
z_index = 100
layout_mode = 2
layout_mode = 1
offset_left = 531.0
offset_top = 299.0
offset_right = 615.0
offset_bottom = 335.0
mouse_filter = 2
theme = ExtResource("2_nidem")
shortcut = SubResource("Shortcut_nidem")
text = "Back"
[node name="Text" type="Label" parent="."]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_top = 360.0
offset_right = 640.0
offset_bottom = 760.0
grow_horizontal = 2
theme = ExtResource("3_x2hwc")
text = "PROGRAMMING
Ruslan Ignatov
DEGIGN AND GRAPHICS
Ruslan Ignatov
PLAY TESTING
Daniil Ivaschenko
Fedor Daragan
"
horizontal_alignment = 1
[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/BackButton" to="." method="_on_back_button_pressed"]
[connection signal="pressed" from="BackButton" to="." method="_on_back_button_pressed"]
+4 -1
View File
@@ -1,9 +1,10 @@
[gd_scene load_steps=5 format=3 uid="uid://2oavbr7oaihg"]
[gd_scene load_steps=6 format=3 uid="uid://2oavbr7oaihg"]
[ext_resource type="Script" uid="uid://bqnepsuk13qo8" path="res://menu/title_screen.gd" id="1_lxdol"]
[ext_resource type="PackedScene" uid="uid://bxlccevt52y70" path="res://menu/main_menu.tscn" id="2_o0rbc"]
[ext_resource type="PackedScene" uid="uid://btr60idiit4y7" path="res://menu/options.tscn" id="3_88gnj"]
[ext_resource type="PackedScene" uid="uid://c3q3g2647qc27" path="res://menu/credits.tscn" id="4_w1y3c"]
[ext_resource type="PackedScene" uid="uid://chdrjc7c6bdpb" path="res://game/background.tscn" id="5_88gnj"]
[node name="TitleScreen" type="Control"]
layout_mode = 3
@@ -19,6 +20,8 @@ layout_mode = 0
[node name="Credits" parent="." instance=ExtResource("4_w1y3c")]
layout_mode = 0
[node name="Background" parent="." instance=ExtResource("5_88gnj")]
[connection signal="continue_game" from="MainMenu" to="." method="_on_main_menu_continue_game"]
[connection signal="new_game" from="MainMenu" to="." method="_on_main_menu_new_game"]
[connection signal="quit_game" from="MainMenu" to="." method="_on_main_menu_quit_game"]