Internet/Local/Hotseat working (still need to test for bugs). ALso get an RPC error because we switch scene...
This commit is contained in:
parent
c95b8186ab
commit
c4909db2a5
654 changed files with 18133 additions and 39 deletions
191
Game.tscn
191
Game.tscn
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=21 format=3 uid="uid://bx0bbrwdr0h40"]
|
||||
[gd_scene load_steps=23 format=3 uid="uid://bx0bbrwdr0h40"]
|
||||
|
||||
[ext_resource type="Script" path="res://Game.gd" id="1_dgt1j"]
|
||||
[ext_resource type="Script" path="res://CameraPivot.gd" id="2_71xp1"]
|
||||
|
|
@ -12,6 +12,8 @@
|
|||
[ext_resource type="Script" path="res://GameOverMenu.gd" id="11_ffmss"]
|
||||
[ext_resource type="Script" path="res://MenuButtons.gd" id="11_urihv"]
|
||||
[ext_resource type="Script" path="res://TurnTexture.gd" id="12_kjwp8"]
|
||||
[ext_resource type="Script" path="res://addons/awesome_input_icons/classes/InputIconTextureRect.gd" id="13_mbmni"]
|
||||
[ext_resource type="Texture2D" uid="uid://20wqrthwoqr0" path="res://addons/awesome_input_icons/assets/keyboard and mouse vector/mouse_move.svg" id="14_t8b21"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_cu5ir"]
|
||||
material = ExtResource("5_u4p4p")
|
||||
|
|
@ -24,11 +26,9 @@ sky_material = SubResource("ProceduralSkyMaterial_dv0dt")
|
|||
|
||||
[sub_resource type="Environment" id="Environment_xoohw"]
|
||||
background_mode = 1
|
||||
background_energy_multiplier = 0.0
|
||||
sky = SubResource("Sky_v4pi7")
|
||||
ambient_light_source = 2
|
||||
ambient_light_color = Color(1, 1, 1, 1)
|
||||
ambient_light_energy = 0.3
|
||||
ambient_light_color = Color(0.337255, 0.337255, 0.337255, 1)
|
||||
tonemap_mode = 1
|
||||
ssao_enabled = true
|
||||
fog_light_color = Color(0, 0, 0, 1)
|
||||
|
|
@ -91,11 +91,7 @@ camera_attributes = SubResource("CameraAttributesPractical_41x5h")
|
|||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(0.843961, -0.46784, 0.262404, -0.0775016, 0.377705, 0.922677, -0.530777, -0.79904, 0.28251, 0.262159, 3.27869, -0.104568)
|
||||
light_color = Color(1, 0.941176, 0.823529, 1)
|
||||
light_energy = 0.8
|
||||
light_indirect_energy = 0.8
|
||||
shadow_enabled = true
|
||||
directional_shadow_blend_splits = true
|
||||
script = ExtResource("6_41m5i")
|
||||
|
||||
[node name="BuildMenu" type="Control" parent="."]
|
||||
|
|
@ -152,7 +148,7 @@ mouse_filter = 2
|
|||
[node name="Label2" type="Label" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 0
|
||||
text = "Enemy"
|
||||
text = "Opponent"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
|
|
@ -292,6 +288,183 @@ horizontal_alignment = 1
|
|||
layout_mode = 2
|
||||
text = "Back to menu"
|
||||
|
||||
[node name="InputInfo" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -40.0
|
||||
offset_bottom = 40.0
|
||||
grow_horizontal = 0
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 0
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="InputInfo"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -121.0
|
||||
offset_bottom = 77.0
|
||||
grow_horizontal = 0
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="InputInfo/PanelContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 15
|
||||
theme_override_constants/margin_top = 15
|
||||
theme_override_constants/margin_right = 15
|
||||
theme_override_constants/margin_bottom = 15
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="InputInfo/PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
expand_mode = 3
|
||||
script = ExtResource("13_mbmni")
|
||||
action_name = &"camera_up"
|
||||
|
||||
[node name="InputIconTextureRect2" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
expand_mode = 3
|
||||
script = ExtResource("13_mbmni")
|
||||
action_name = &"camera_left"
|
||||
|
||||
[node name="InputIconTextureRect3" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
expand_mode = 3
|
||||
script = ExtResource("13_mbmni")
|
||||
action_name = &"camera_down"
|
||||
|
||||
[node name="InputIconTextureRect4" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
expand_mode = 3
|
||||
script = ExtResource("13_mbmni")
|
||||
action_name = &"camera_right"
|
||||
|
||||
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Move camera"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
expand_mode = 3
|
||||
script = ExtResource("13_mbmni")
|
||||
action_name = &"rotate_camera"
|
||||
|
||||
[node name="Label2" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "+"
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("14_t8b21")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Rotate camera"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="HBoxContainer3" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer3"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
expand_mode = 3
|
||||
script = ExtResource("13_mbmni")
|
||||
action_name = &"zoom_camera_in"
|
||||
|
||||
[node name="InputIconTextureRect2" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer3"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
expand_mode = 3
|
||||
script = ExtResource("13_mbmni")
|
||||
action_name = &"zoom_camera_out"
|
||||
|
||||
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer3"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Zoom camera"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer4" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer4"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
expand_mode = 3
|
||||
script = ExtResource("13_mbmni")
|
||||
action_name = &"select_tile"
|
||||
|
||||
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer4"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Select Tile"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="HBoxContainer5" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer5"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
expand_mode = 3
|
||||
script = ExtResource("13_mbmni")
|
||||
action_name = &"deselect_tile"
|
||||
|
||||
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer5"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Cancel selection"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="HSeparator2" type="HSeparator" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer6" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer6"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
expand_mode = 3
|
||||
script = ExtResource("13_mbmni")
|
||||
action_name = &"toggle_controls"
|
||||
|
||||
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer6"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Show/Hide controls"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[connection signal="pressed" from="MenuButtons/VBoxContainer/MenuButton" to="MenuButtons" method="_on_menu_button_pressed"]
|
||||
[connection signal="pressed" from="MenuButtons/VBoxContainer/RulesButton" to="MenuButtons" method="_on_rules_button_pressed"]
|
||||
[connection signal="pressed" from="GameOverMenu/Control/PanelContainer/VBoxContainer/Button" to="GameOverMenu" method="_on_button_pressed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue