AppResidencia/seguir-la-linea/scenes/game.tscn

177 lines
5.6 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://kyrpsg085djf"]
[ext_resource type="Script" uid="uid://cf24sqa5714px" path="res://scripts/game.gd" id="1_haeiw"]
[ext_resource type="Texture2D" uid="uid://u6gubqf2sspe" path="res://images/menu_logo.png" id="2_lnu2h"]
[ext_resource type="Texture2D" uid="uid://cykbo7qv3fy6l" path="res://images/play-button.png" id="3_lbhrr"]
[ext_resource type="AudioStream" uid="uid://cwudtop42vbi8" path="res://audio/instrucciones.mp3" id="4_lbhrr"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lnu2h"]
bg_color = Color(0.196078, 0.309804, 0.368627, 1)
[node name="Game" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("1_haeiw")
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_bottom = 80
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="MenuButton" type="MenuButton" parent="MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
icon = ExtResource("2_lnu2h")
[node name="Control" type="Control" parent="MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="TextureButton" type="TextureButton" parent="MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture_normal = ExtResource("3_lbhrr")
[node name="Control" type="Control" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
mouse_filter = 2
[node name="ShapeArea" type="Area2D" parent="MarginContainer/VBoxContainer/Control"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="MarginContainer/VBoxContainer/Control/ShapeArea"]
[node name="ShapeLine" type="Line2D" parent="MarginContainer/VBoxContainer/Control"]
[node name="Tracker" type="Area2D" parent="MarginContainer/VBoxContainer/Control"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="MarginContainer/VBoxContainer/Control/Tracker"]
[node name="EndOfShapesWindow" type="Window" parent="."]
auto_translate_mode = 1
initial_position = 1
size = Vector2i(600, 200)
visible = false
[node name="ColorRect" type="ColorRect" parent="EndOfShapesWindow"]
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="EndOfShapesWindow"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 30
[node name="Label" type="Label" parent="EndOfShapesWindow/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.196078, 0.309804, 0.368627, 1)
theme_override_font_sizes/font_size = 30
text = "Ya no queda formas disponibles"
[node name="Button" type="Button" parent="EndOfShapesWindow/VBoxContainer"]
custom_minimum_size = Vector2(250, 80)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_styles/normal = SubResource("StyleBoxFlat_lnu2h")
text = "Aceptar"
[node name="ExitButtonWindow" type="Window" parent="."]
auto_translate_mode = 1
title = "Advertencia ⚠️"
initial_position = 1
size = Vector2i(600, 200)
visible = false
[node name="ColorRect" type="ColorRect" parent="ExitButtonWindow"]
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="ExitButtonWindow"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 30
[node name="Label" type="Label" parent="ExitButtonWindow/VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.196078, 0.309804, 0.368627, 1)
theme_override_font_sizes/font_size = 30
text = "No se guardaran los datos de la partida"
[node name="HBoxContainer" type="HBoxContainer" parent="ExitButtonWindow/VBoxContainer"]
layout_mode = 2
[node name="ConfirmExitButton" type="Button" parent="ExitButtonWindow/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(250, 80)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
theme_override_styles/normal = SubResource("StyleBoxFlat_lnu2h")
text = "Aceptar"
[node name="DontExitButton" type="Button" parent="ExitButtonWindow/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(250, 80)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
theme_override_styles/normal = SubResource("StyleBoxFlat_lnu2h")
text = "Cancelar"
[node name="Blocker" type="ColorRect" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.196078, 0.309804, 0.368627, 0.784314)
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_lbhrr")
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/TextureButton" to="." method="_on_next_shape_pressed"]
[connection signal="pressed" from="EndOfShapesWindow/VBoxContainer/Button" to="." method="_on_end_of_game_button"]