generated from krampus/template-godot4
94 lines
3.5 KiB
Plaintext
94 lines
3.5 KiB
Plaintext
[gd_scene format=3 uid="uid://dmqvnr7uev0i6"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://caq4f3l237i42" path="res://prefabs/ui/controls.tscn" id="1_8orke"]
|
|
[ext_resource type="Script" uid="uid://p10j5v8tlyb" path="res://scenes/board_game.gd" id="1_v8odh"]
|
|
[ext_resource type="Script" uid="uid://c5vwubjdr23jr" path="res://prefabs/game_camera.gd" id="2_v8odh"]
|
|
[ext_resource type="PackedScene" uid="uid://ct6tclctgdrkm" path="res://prefabs/board.tscn" id="3_02cv7"]
|
|
[ext_resource type="Script" uid="uid://bye5rf7kk0qi7" path="res://prefabs/ui/game_over.gd" id="5_02cv7"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fc0e3"]
|
|
content_margin_left = 10.0
|
|
content_margin_top = 10.0
|
|
content_margin_right = 10.0
|
|
content_margin_bottom = 10.0
|
|
bg_color = Color(1, 1, 1, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7jktm"]
|
|
bg_color = Color(0, 0, 0, 1)
|
|
corner_radius_top_left = 16
|
|
corner_radius_top_right = 16
|
|
corner_radius_bottom_right = 16
|
|
corner_radius_bottom_left = 16
|
|
|
|
[node name="BoardGame" type="Node" unique_id=899693855]
|
|
script = ExtResource("1_v8odh")
|
|
|
|
[node name="GameContainer" type="PanelContainer" parent="." unique_id=1427225690]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_fc0e3")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="GameContainer" unique_id=348137536]
|
|
layout_mode = 2
|
|
|
|
[node name="Controls" parent="GameContainer/VBoxContainer" unique_id=1719205711 instance=ExtResource("1_8orke")]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 50)
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="GameContainer/VBoxContainer" unique_id=511396372]
|
|
process_mode = 3
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_7jktm")
|
|
|
|
[node name="SubViewportContainer" type="SubViewportContainer" parent="GameContainer/VBoxContainer/PanelContainer" unique_id=758297429]
|
|
process_mode = 3
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
stretch = true
|
|
mouse_target = true
|
|
|
|
[node name="SubViewport" type="SubViewport" parent="GameContainer/VBoxContainer/PanelContainer/SubViewportContainer" unique_id=584942697]
|
|
process_mode = 3
|
|
disable_3d = true
|
|
transparent_bg = true
|
|
handle_input_locally = false
|
|
physics_object_picking = true
|
|
size = Vector2i(1132, 574)
|
|
render_target_update_mode = 4
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="GameContainer/VBoxContainer/PanelContainer/SubViewportContainer/SubViewport" unique_id=416785798]
|
|
anchor_mode = 0
|
|
zoom = Vector2(0.94, 0.94)
|
|
position_smoothing_enabled = true
|
|
drag_horizontal_enabled = true
|
|
drag_vertical_enabled = true
|
|
script = ExtResource("2_v8odh")
|
|
|
|
[node name="Board" parent="GameContainer/VBoxContainer/PanelContainer/SubViewportContainer/SubViewport" unique_id=752933545 instance=ExtResource("3_02cv7")]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="GameOver" type="PanelContainer" parent="." unique_id=1729030106]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("5_02cv7")
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="GameOver" unique_id=1471561381]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="GameOver/CenterContainer" unique_id=620824359]
|
|
layout_mode = 2
|
|
text = "Player Wins"
|
|
|
|
[connection signal="board_state_changed" from="GameContainer/VBoxContainer/PanelContainer/SubViewportContainer/SubViewport/Board" to="." method="handle_board_state_changed"]
|