137 lines
4.5 KiB
Plaintext
137 lines
4.5 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://c466swcqlfwtj"]
|
|
|
|
[ext_resource type="Script" uid="uid://dhqnf0xm2mwwm" path="res://scripts/game.gd" id="1_uwrxv"]
|
|
[ext_resource type="Texture2D" uid="uid://bhjl7furxm0dv" path="res://Fondo.png" id="2_yqjtg"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yqjtg"]
|
|
bg_color = Color(0.926771, 0.375165, 0.614248, 0.909804)
|
|
corner_radius_top_left = 60
|
|
corner_radius_top_right = 60
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lnu2h"]
|
|
bg_color = Color(0, 0.718972, 0.352325, 1)
|
|
corner_radius_bottom_left = 60
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lbhrr"]
|
|
bg_color = Color(0.901268, 0.463041, 0.139193, 1)
|
|
corner_radius_bottom_right = 60
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_iywne"]
|
|
bg_color = Color(0.588235, 0.654902, 0.686275, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_p57ef"]
|
|
bg_color = Color(0.196078, 0.309804, 0.368627, 1)
|
|
|
|
[node name="Game" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
script = ExtResource("1_uwrxv")
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="."]
|
|
layout_mode = 0
|
|
offset_right = 1920.0
|
|
offset_bottom = 1080.0
|
|
texture = ExtResource("2_yqjtg")
|
|
expand_mode = 1
|
|
stretch_mode = 6
|
|
flip_h = true
|
|
|
|
[node name="AnimalAudio" type="AudioStreamPlayer2D" parent="."]
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 502.0
|
|
offset_top = 267.0
|
|
offset_right = 1585.0
|
|
offset_bottom = 794.0
|
|
|
|
[node name="NextSoundButton" type="Button" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_font_sizes/font_size = 50
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_yqjtg")
|
|
text = "Reproducir sonido"
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="RepeatSoundButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 40
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_lnu2h")
|
|
text = "Repetir sonido"
|
|
|
|
[node name="EndOfGameButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 40
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_lbhrr")
|
|
text = "Fin de partida"
|
|
|
|
[node name="WinnerSelector" type="Window" parent="."]
|
|
initial_position = 1
|
|
size = Vector2i(500, 200)
|
|
visible = false
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="WinnerSelector"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.8, 0.8, 0.8, 1)
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="WinnerSelector"]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -225.0
|
|
offset_top = -56.0
|
|
offset_right = 225.0
|
|
offset_bottom = 56.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 30
|
|
|
|
[node name="Label" type="Label" parent="WinnerSelector/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 6
|
|
theme_override_colors/font_color = Color(0.196078, 0.309804, 0.368627, 1)
|
|
text = "¿Quien a ganado?"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="MenuPlayers" type="MenuButton" parent="WinnerSelector/VBoxContainer"]
|
|
custom_minimum_size = Vector2(450, 30)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
theme_override_colors/font_color = Color(0.196078, 0.309804, 0.368627, 1)
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_iywne")
|
|
text = "Jugadores 🡣"
|
|
flat = false
|
|
|
|
[node name="Button" type="Button" parent="WinnerSelector/VBoxContainer"]
|
|
custom_minimum_size = Vector2(250, 50)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_p57ef")
|
|
text = "Finalizar partida"
|
|
|
|
[node name="Bloqueador" type="ColorRect" parent="."]
|
|
visible = false
|
|
layout_mode = 1
|
|
offset_right = 1920.0
|
|
offset_bottom = 1080.0
|
|
color = Color(0.196078, 0.309804, 0.368627, 0.784314)
|
|
|
|
[connection signal="pressed" from="VBoxContainer/NextSoundButton" to="." method="_on_next_sound_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/RepeatSoundButton" to="." method="_on_repeat_sound_button_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/EndOfGameButton" to="." method="_on_end_of_game_button_pressed"]
|
|
[connection signal="pressed" from="WinnerSelector/VBoxContainer/Button" to="." method="_on_winner_button_pressed"]
|