344 lines
12 KiB
Text
344 lines
12 KiB
Text
[gd_scene load_steps=20 format=3 uid="uid://bx0bbrwdr0h40"]
|
|
|
|
[ext_resource type="Script" path="res://Tile/Tile.gd" id="1_scpor"]
|
|
[ext_resource type="Script" path="res://HexGrid3D/HexGrid3D.gd" id="2_xcbqy"]
|
|
[ext_resource type="ArrayMesh" uid="uid://dsbshu53k588h" path="res://hexagon_small.res" id="3_57kfx"]
|
|
[ext_resource type="PackedScene" uid="uid://ddqk8acjuwwpn" path="res://InsectTiles/Bee_White.tscn" id="4_ctlth"]
|
|
[ext_resource type="Script" path="res://free_look_camera.gd" id="5_cn386"]
|
|
[ext_resource type="Texture2D" uid="uid://cilgpyanfb3a8" path="res://Testbed/textures/wood_table_001_diff_4k.jpg" id="6_x76sf"]
|
|
[ext_resource type="Texture2D" uid="uid://diamo44e2x4if" path="res://Testbed/textures/wood_table_001_disp_4k.png" id="7_xr322"]
|
|
[ext_resource type="Texture2D" uid="uid://b6ejmikbfrprs" path="res://Testbed/textures/wood_table_001_rough_4k.jpg" id="8_wvt2u"]
|
|
[ext_resource type="Texture2D" uid="uid://wywgi6sr8mwg" path="res://Testbed/hex.svg" id="9_wcfo0"]
|
|
[ext_resource type="Texture2D" uid="uid://devisp5h74rcd" path="res://Textures/bee.png" id="10_r7dkw"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_u8oxs"]
|
|
albedo_texture = ExtResource("6_x76sf")
|
|
roughness_texture = ExtResource("8_wvt2u")
|
|
roughness_texture_channel = 4
|
|
normal_enabled = true
|
|
normal_scale = 0.1
|
|
normal_texture = ExtResource("7_xr322")
|
|
heightmap_scale = 1.0
|
|
heightmap_deep_parallax = true
|
|
heightmap_min_layers = 1
|
|
heightmap_max_layers = 1
|
|
heightmap_texture = ExtResource("7_xr322")
|
|
refraction_scale = 0.28
|
|
refraction_texture = ExtResource("7_xr322")
|
|
texture_filter = 5
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_cu5ir"]
|
|
material = SubResource("StandardMaterial3D_u8oxs")
|
|
size = Vector2(50, 50)
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_dv0dt"]
|
|
|
|
[sub_resource type="Sky" id="Sky_v4pi7"]
|
|
sky_material = SubResource("ProceduralSkyMaterial_dv0dt")
|
|
|
|
[sub_resource type="Environment" id="Environment_xoohw"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_v4pi7")
|
|
tonemap_mode = 1
|
|
|
|
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_41x5h"]
|
|
dof_blur_near_distance = 1.2
|
|
|
|
[sub_resource type="Gradient" id="Gradient_pctcs"]
|
|
interpolation_mode = 2
|
|
offsets = PackedFloat32Array(0, 0.839465)
|
|
colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 0)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_tjcjh"]
|
|
gradient = SubResource("Gradient_pctcs")
|
|
width = 1
|
|
height = 256
|
|
fill_from = Vector2(1, 1)
|
|
fill_to = Vector2(1, 0.1)
|
|
|
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_sfja1"]
|
|
texture = SubResource("GradientTexture2D_tjcjh")
|
|
axis_stretch_vertical = 2
|
|
modulate_color = Color(1, 1, 1, 0.639216)
|
|
|
|
[node name="Node3D" type="Node3D"]
|
|
|
|
[node name="Node3D" type="Node3D" parent="."]
|
|
script = ExtResource("1_scpor")
|
|
|
|
[node name="HexGrid" type="Node3D" parent="."]
|
|
script = ExtResource("2_xcbqy")
|
|
|
|
[node name="Hexagon" type="MeshInstance3D" parent="HexGrid"]
|
|
mesh = ExtResource("3_57kfx")
|
|
skeleton = NodePath("../..")
|
|
|
|
[node name="Label3D" type="Label3D" parent="HexGrid/Hexagon"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
visible = false
|
|
pixel_size = 0.01
|
|
billboard = 1
|
|
text = "0, 0"
|
|
|
|
[node name="BeeWhite" parent="HexGrid/Hexagon" instance=ExtResource("4_ctlth")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 0)
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 0.904187, 0.427137, 0, -0.427137, 0.904187, 0, 1.90512, 2.87033)
|
|
script = ExtResource("5_cn386")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
mesh = SubResource("PlaneMesh_cu5ir")
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
environment = SubResource("Environment_xoohw")
|
|
camera_attributes = SubResource("CameraAttributesPractical_41x5h")
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(0.866025, -0.433013, 0.250001, 0.25, 0.808013, 0.533493, -0.433013, -0.399518, 0.808013, 0.262159, 3.27869, -0.104568)
|
|
shadow_enabled = true
|
|
|
|
[node name="Control" type="Control" parent="."]
|
|
layout_mode = 3
|
|
anchors_preset = 12
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="Control"]
|
|
layout_mode = 1
|
|
anchors_preset = 12
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_styles/panel = SubResource("StyleBoxTexture_sfja1")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="Control/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="Control/PanelContainer/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Control/PanelContainer/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "You"
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="Label2" type="Label" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Enemy"
|
|
horizontal_alignment = 2
|
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="Control/PanelContainer/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
|
|
layout_mode = 2
|
|
|
|
[node name="TextureButton" type="TextureButton" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer"]
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("9_wcfo0")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer/TextureButton"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -32.0
|
|
offset_top = -32.0
|
|
offset_right = 32.0
|
|
offset_bottom = 32.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = ExtResource("10_r7dkw")
|
|
expand_mode = 3
|
|
|
|
[node name="Label" type="Label" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer/TextureButton"]
|
|
layout_mode = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -20.0
|
|
offset_top = -22.0
|
|
offset_right = 20.0
|
|
offset_bottom = 12.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
theme_override_constants/outline_size = 8
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "1"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 2
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
|
|
modulate = Color(1, 1, 1, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
|
|
layout_mode = 2
|
|
|
|
[node name="TextureButton" type="TextureButton" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer2"]
|
|
self_modulate = Color(1, 1, 0.309804, 1)
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("9_wcfo0")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="Label" type="Label" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer2/TextureButton"]
|
|
layout_mode = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -20.0
|
|
offset_top = -23.0
|
|
offset_right = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
theme_override_constants/outline_size = 8
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "1"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 2
|
|
|
|
[node name="TextureButton2" type="TextureButton" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer2"]
|
|
self_modulate = Color(0.411765, 0.160784, 0.0235294, 1)
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("9_wcfo0")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="Label" type="Label" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer2/TextureButton2"]
|
|
layout_mode = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -20.0
|
|
offset_top = -23.0
|
|
offset_right = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
theme_override_constants/outline_size = 8
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "1"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 2
|
|
|
|
[node name="TextureButton3" type="TextureButton" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer2"]
|
|
self_modulate = Color(0.309804, 0.701961, 0.701961, 1)
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("9_wcfo0")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="Label" type="Label" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer2/TextureButton3"]
|
|
layout_mode = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -20.0
|
|
offset_top = -23.0
|
|
offset_right = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
theme_override_constants/outline_size = 8
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "1"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 2
|
|
|
|
[node name="TextureButton4" type="TextureButton" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer2"]
|
|
self_modulate = Color(0.27451, 0.65098, 0.168627, 1)
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("9_wcfo0")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="Label" type="Label" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer2/TextureButton4"]
|
|
layout_mode = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -20.0
|
|
offset_top = -23.0
|
|
offset_right = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
theme_override_constants/outline_size = 8
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "1"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 2
|
|
|
|
[node name="TextureButton5" type="TextureButton" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer2"]
|
|
self_modulate = Color(0.537255, 0.345098, 0.690196, 1)
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("9_wcfo0")
|
|
ignore_texture_size = true
|
|
stretch_mode = 0
|
|
|
|
[node name="Label" type="Label" parent="Control/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/HBoxContainer2/TextureButton5"]
|
|
layout_mode = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -20.0
|
|
offset_top = -23.0
|
|
offset_right = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
theme_override_constants/outline_size = 8
|
|
theme_override_font_sizes/font_size = 24
|
|
text = "1"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 2
|