added entire game (cuz it didnt use git before)

This commit is contained in:
2025-10-18 19:43:41 +02:00
parent 4dd71382d7
commit 171ff78876
63 changed files with 2684 additions and 0 deletions
+286
View File
@@ -0,0 +1,286 @@
[gd_scene load_steps=7 format=3 uid="uid://bnm66u54kj3xf"]
[ext_resource type="Script" uid="uid://f6863j28l3ua" path="res://scripts/game_over.gd" id="1_oo8kp"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_u0541"]
bg_color = Color(0, 0, 0, 1)
[sub_resource type="Animation" id="Animation_5eixk"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Panel:theme_override_styles/panel:bg_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0, 0, 0, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("YouDied:modulate:a")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Pathetic:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_oo8kp"]
resource_name = "fade_in"
length = 14.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Panel:theme_override_styles/panel:bg_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(3.0333333, 6.0333333),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 1), Color(1, 1, 1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("YouDied:modulate:a")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(7.0333333, 8.033333),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Cause:modulate:a")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(9.033333, 10.033333),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Reason:modulate:a")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(11.033333, 12.033333),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("MenuButton:modulate:a")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(13, 14),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("Saved:modulate:a")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(13, 14),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 1.0]
}
[sub_resource type="Animation" id="Animation_j1fe5"]
resource_name = "redden"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Pathetic:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Panel:theme_override_styles/panel:bg_color")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [Color(1, 1, 1, 1), Color(0.4117647, 0, 0, 1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_j1fe5"]
_data = {
&"RESET": SubResource("Animation_5eixk"),
&"fade_in": SubResource("Animation_oo8kp"),
&"redden": SubResource("Animation_j1fe5")
}
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_oo8kp")
[node name="Panel" type="Panel" parent="."]
layout_mode = 0
offset_right = 1152.0
offset_bottom = 648.0
theme_override_styles/panel = SubResource("StyleBoxFlat_u0541")
[node name="YouDied" type="Label" parent="."]
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -180.0
offset_top = -260.0
offset_right = 181.0
offset_bottom = -185.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 41
text = "You died"
horizontal_alignment = 1
[node name="Cause" type="Label" parent="."]
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -201.0
offset_top = -191.0
offset_right = 203.0
offset_bottom = -74.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 41
text = "Cause: depressesion"
horizontal_alignment = 1
[node name="Reason" type="Label" parent="."]
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -460.0
offset_top = -116.0
offset_right = 462.0
offset_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 41
text = "Reason: one of your beloved pigs got abducted"
horizontal_alignment = 1
[node name="MenuButton" type="Button" parent="."]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -74.0
offset_top = -150.0
offset_right = 76.0
offset_bottom = -107.0
grow_horizontal = 2
grow_vertical = 0
theme_override_font_sizes/font_size = 25
text = "Go to menu"
[node name="Saved" type="Label" parent="."]
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -102.0
offset_top = -71.0
offset_right = 103.0
offset_bottom = -48.0
grow_horizontal = 2
grow_vertical = 0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Skibidi toilet template text"
[node name="Pathetic" type="Label" parent="."]
visible = false
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -101.0
offset_top = -49.0
offset_right = 104.0
offset_bottom = -26.0
grow_horizontal = 2
grow_vertical = 0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Pathetic."
horizontal_alignment = 1
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_j1fe5")
}
[connection signal="pressed" from="MenuButton" to="." method="_on_menu_button_pressed"]
+47
View File
@@ -0,0 +1,47 @@
[gd_scene load_steps=4 format=3 uid="uid://dbgelckky2v52"]
[ext_resource type="Script" uid="uid://de476q6oxds3o" path="res://scripts/info_hud.gd" id="1_muwf5"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hiti4"]
bg_color = Color(1, 1, 1, 1)
corner_radius_top_left = 50
corner_radius_top_right = 50
corner_radius_bottom_right = 50
corner_radius_bottom_left = 50
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_muwf5"]
bg_color = Color(0.94009703, 0.3102313, 0.7501747, 1)
corner_radius_top_left = 50
corner_radius_top_right = 50
corner_radius_bottom_right = 50
corner_radius_bottom_left = 50
[node name="InfoHud" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_muwf5")
hp_animation_dur = 0.1
[node name="HealthbarBase" type="Panel" parent="."]
clip_children = 2
clip_contents = true
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 25.0
offset_top = -265.0
offset_right = 47.0
offset_bottom = -25.0
grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBoxFlat_hiti4")
[node name="HealthbarValue" type="Panel" parent="HealthbarBase"]
layout_mode = 0
offset_right = 22.0
offset_bottom = 240.0
theme_override_styles/panel = SubResource("StyleBoxFlat_muwf5")
+10
View File
@@ -0,0 +1,10 @@
[gd_scene load_steps=3 format=3 uid="uid://cdy44cambk6ji"]
[ext_resource type="Script" uid="uid://dh4tox6b5ewbq" path="res://scripts/key_sequence.gd" id="1_alcnd"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_wkagm"]
[node name="KeySequence" type="Panel"]
visible = false
theme_override_styles/panel = SubResource("StyleBoxEmpty_wkagm")
script = ExtResource("1_alcnd")
+120
View File
@@ -0,0 +1,120 @@
[gd_scene load_steps=8 format=3 uid="uid://8rpm2uklud0j"]
[ext_resource type="LabelSettings" uid="uid://ch4qnno2euv16" path="res://ui/styles/font_gost_commo.tres" id="1_0dkrt"]
[ext_resource type="Script" uid="uid://dpv5jt28axlpa" path="res://scripts/main_menu.gd" id="1_wk0pr"]
[ext_resource type="Texture2D" uid="uid://dkx5rhq6cd7fq" path="res://assets/sprites/pig.png" id="2_rmr83"]
[ext_resource type="Theme" uid="uid://78ymohvmckry" path="res://ui/styles/theme_menu_buttons.tres" id="2_wk0pr"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0dkrt"]
bg_color = Color(7.670838e-08, 0.11997212, 0.012806023, 1)
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_rmr83"]
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_8uxxo"]
texture = ExtResource("2_rmr83")
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_wk0pr")
square_rot = 0.15
[node name="Background" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_0dkrt")
[node name="Seagulls" type="Panel" parent="."]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
theme_override_styles/panel = SubResource("StyleBoxEmpty_rmr83")
[node name="BgSquare" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -246.0
offset_top = -246.0
offset_right = 246.0
offset_bottom = 246.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(246, 246)
theme_override_styles/panel = SubResource("StyleBoxTexture_8uxxo")
[node name="InteractiblesContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -310.0
offset_top = -36.5
offset_right = 310.0
offset_bottom = 36.5
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 80
[node name="Label" type="Label" parent="InteractiblesContainer"]
layout_mode = 2
text = "Super Epic Cool Awesome Stuff:
The Game"
label_settings = ExtResource("1_0dkrt")
horizontal_alignment = 1
[node name="ButtonsContainer" type="VBoxContainer" parent="InteractiblesContainer"]
layout_mode = 2
theme_override_constants/separation = 20
[node name="PlayButton" type="Button" parent="InteractiblesContainer/ButtonsContainer"]
custom_minimum_size = Vector2(175, 60)
layout_mode = 2
size_flags_horizontal = 4
focus_mode = 0
theme = ExtResource("2_wk0pr")
text = "Play"
[node name="CreditsButton" type="Button" parent="InteractiblesContainer/ButtonsContainer"]
custom_minimum_size = Vector2(175, 60)
layout_mode = 2
size_flags_horizontal = 4
focus_mode = 0
theme = ExtResource("2_wk0pr")
text = "Credits"
[node name="QuitButton" type="Button" parent="InteractiblesContainer/ButtonsContainer"]
custom_minimum_size = Vector2(175, 60)
layout_mode = 2
size_flags_horizontal = 4
focus_mode = 0
theme = ExtResource("2_wk0pr")
text = "Quit"
[node name="Label" type="Label" parent="."]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -49.0
offset_right = 261.0
grow_vertical = 0
text = "Made for the LBS 2025 Game Jam.
Theme: \"British Pigs\""
[connection signal="pressed" from="InteractiblesContainer/ButtonsContainer/PlayButton" to="." method="_on_play_button_pressed"]
[connection signal="pressed" from="InteractiblesContainer/ButtonsContainer/CreditsButton" to="." method="_on_credits_button_pressed"]
[connection signal="pressed" from="InteractiblesContainer/ButtonsContainer/QuitButton" to="." method="_on_quit_button_pressed"]
+10
View File
@@ -0,0 +1,10 @@
[gd_resource type="LabelSettings" load_steps=2 format=3 uid="uid://ch4qnno2euv16"]
[sub_resource type="SystemFont" id="SystemFont_suxjm"]
font_names = PackedStringArray("GOST Common")
[resource]
font = SubResource("SystemFont_suxjm")
font_size = 50
font_color = Color(0.4156184, 0.57489175, 1, 1)
outline_size = 10
+79
View File
@@ -0,0 +1,79 @@
[gd_resource type="Theme" load_steps=7 format=3 uid="uid://78ymohvmckry"]
[sub_resource type="SystemFont" id="SystemFont_kefkl"]
font_names = PackedStringArray("GOST Common")
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_sdpor"]
bg_color = Color(0.13558733, 1.0203719e-05, 0.5757747, 1)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.7372549, 0.7372549, 0.7372549, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nlon4"]
bg_color = Color(0.43050313, 0.5708193, 1, 1)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(1, 1, 1, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ghxax"]
bg_color = Color(0.5598542, 0.6732296, 1, 1)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(1, 1, 1, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2m0qt"]
bg_color = Color(0.45369804, 0.56404567, 1, 1)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(1, 1, 1, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kr5ue"]
bg_color = Color(0.38866094, 0.44743973, 0.99797183, 1)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(1, 1, 1, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[resource]
Button/colors/font_color = Color(1, 1, 1, 1)
Button/colors/font_disabled_color = Color(0.737193, 0.7371929, 0.7371929, 1)
Button/colors/font_focus_color = Color(1, 1, 1, 1)
Button/colors/font_hover_color = Color(1, 1, 1, 1)
Button/colors/font_hover_pressed_color = Color(1, 1, 1, 1)
Button/colors/font_pressed_color = Color(1, 1, 1, 1)
Button/font_sizes/font_size = 30
Button/fonts/font = SubResource("SystemFont_kefkl")
Button/styles/disabled = SubResource("StyleBoxFlat_sdpor")
Button/styles/focus = SubResource("StyleBoxFlat_nlon4")
Button/styles/hover = SubResource("StyleBoxFlat_ghxax")
Button/styles/normal = SubResource("StyleBoxFlat_2m0qt")
Button/styles/pressed = SubResource("StyleBoxFlat_kr5ue")