215 lines
9.5 KiB
Plaintext
215 lines
9.5 KiB
Plaintext
[gd_scene load_steps=24 format=3 uid="uid://rnmcx0o0hdgb"]
|
|
|
|
[ext_resource type="Script" path="res://scenes/game.gd" id="1_3n5gp"]
|
|
[ext_resource type="Script" path="res://entities/faction/player/player.gd" id="2_kyivt"]
|
|
[ext_resource type="Script" path="res://entities/faction/player/player_camera.gd" id="3_6ujgl"]
|
|
[ext_resource type="Texture2D" uid="uid://b0ufbld7wt8h6" path="res://icon.svg" id="4_akimp"]
|
|
[ext_resource type="PackedScene" uid="uid://ch7ug2prgwyyn" path="res://entities/faction/fog_of_war.tscn" id="4_rheqo"]
|
|
[ext_resource type="Script" path="res://scenes/player_camp.gd" id="6_bdu2w"]
|
|
[ext_resource type="Script" path="res://entities/faction/enemy/enemy.gd" id="6_pj6iy"]
|
|
[ext_resource type="Script" path="res://entities/terrain.gd" id="7_js5w2"]
|
|
|
|
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_e001c"]
|
|
width = 16
|
|
height = 16
|
|
|
|
[sub_resource type="PrismMesh" id="PrismMesh_dw2jx"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_nljwt"]
|
|
albedo_color = Color(1, 0, 0, 1)
|
|
|
|
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_kxcis"]
|
|
data = PackedVector3Array(0, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0, 0.5, 0.5, 0, 0.5, -0.5, 0.5, -0.5, 0.5, 0, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0, 0.5, -0.5, 0, 0.5, 0.5, -0.5, -0.5, -0.5, 0, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5)
|
|
|
|
[sub_resource type="PrismMesh" id="PrismMesh_3qvl5"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xv1v4"]
|
|
albedo_color = Color(0, 0.766667, 1, 1)
|
|
|
|
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_88h6r"]
|
|
data = PackedVector3Array(0, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0, 0.5, 0.5, 0, 0.5, -0.5, 0.5, -0.5, 0.5, 0, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0, 0.5, -0.5, 0, 0.5, 0.5, -0.5, -0.5, -0.5, 0, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5)
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_tx3qi"]
|
|
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
|
|
ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
|
|
|
|
[sub_resource type="Sky" id="Sky_mmhs2"]
|
|
sky_material = SubResource("ProceduralSkyMaterial_tx3qi")
|
|
|
|
[sub_resource type="Environment" id="Environment_r8f2r"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_mmhs2")
|
|
tonemap_mode = 2
|
|
glow_enabled = true
|
|
|
|
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_rbvxc"]
|
|
data = PackedVector3Array(10, 0, 10, -10, 0, 10, 10, 0, -10, -10, 0, 10, -10, 0, -10, 10, 0, -10)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ob58c"]
|
|
albedo_color = Color(0, 0.46, 0.145667, 1)
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_alxwk"]
|
|
material = SubResource("StandardMaterial3D_ob58c")
|
|
size = Vector2(20, 20)
|
|
|
|
[sub_resource type="NavigationMesh" id="NavigationMesh_6127e"]
|
|
vertices = PackedVector3Array(-5.25, 0.40872, 8, -6, 0.40872, 8.25, -6, 0.40872, 9.5, 9.5, 0.40872, 9.5, 7.25, 0.40872, -7.75, 7.75, 0.40872, -8, 7.75, 0.40872, -9.5, -9.5, 0.40872, -9.5, 9.5, 0.40872, -5.25, 8.25, 0.40872, -5.75, 7.25, 0.40872, -6, -5.5, 0.40872, 6, -9.5, 0.40872, 7.5, -6.75, 0.40872, 7.75, -6.75, 0.40872, 6.25, 8.75, 0.40872, -6, 8.75, 0.40872, -7.75, 9.5, 0.40872, -9.5, -9.5, 0.40872, 9.5)
|
|
polygons = [PackedInt32Array(1, 0, 2), PackedInt32Array(2, 0, 3), PackedInt32Array(5, 4, 6), PackedInt32Array(6, 4, 7), PackedInt32Array(9, 8, 10), PackedInt32Array(10, 8, 3), PackedInt32Array(10, 3, 11), PackedInt32Array(10, 11, 7), PackedInt32Array(13, 12, 14), PackedInt32Array(14, 12, 7), PackedInt32Array(7, 4, 10), PackedInt32Array(3, 0, 11), PackedInt32Array(7, 11, 14), PackedInt32Array(15, 8, 9), PackedInt32Array(5, 6, 16), PackedInt32Array(16, 6, 17), PackedInt32Array(15, 16, 8), PackedInt32Array(8, 16, 17), PackedInt32Array(1, 2, 13), PackedInt32Array(13, 2, 18), PackedInt32Array(13, 18, 12)]
|
|
geometry_parsed_geometry_type = 1
|
|
geometry_source_geometry_mode = 1
|
|
geometry_source_group_name = &"TerrainEntities"
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_3yo4a"]
|
|
|
|
[node name="Game" type="Node3D"]
|
|
script = ExtResource("1_3n5gp")
|
|
|
|
[node name="Player" type="Node" parent="."]
|
|
script = ExtResource("2_kyivt")
|
|
|
|
[node name="PlayerCamera" type="Camera3D" parent="Player"]
|
|
transform = Transform3D(1, 0, 0, 0, 0.965926, 0.258819, 0, -0.258819, 0.965926, 2.38419e-07, 1.98981, 3.94427)
|
|
script = ExtResource("3_6ujgl")
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="Player/PlayerCamera"]
|
|
transform = Transform3D(10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 1, 0)
|
|
cast_shadow = 0
|
|
axis = 1
|
|
billboard = 2
|
|
texture = SubResource("NoiseTexture2D_e001c")
|
|
|
|
[node name="RayCast3D" type="RayCast3D" parent="Player"]
|
|
target_position = Vector3(0, 0, 0)
|
|
debug_shape_custom_color = Color(0, 0.633333, 1, 1)
|
|
|
|
[node name="PlayerUI" type="Control" parent="Player"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 1
|
|
|
|
[node name="header" type="HBoxContainer" parent="Player/PlayerUI"]
|
|
layout_mode = 1
|
|
anchors_preset = 10
|
|
anchor_right = 1.0
|
|
grow_horizontal = 2
|
|
|
|
[node name="footer" type="HBoxContainer" parent="Player/PlayerUI"]
|
|
layout_mode = 1
|
|
anchors_preset = 12
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = -255.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Player/PlayerUI/footer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
alignment = 2
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Player/PlayerUI/footer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="LeftPadding" type="Control" parent="Player/PlayerUI/footer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_filter = 1
|
|
|
|
[node name="Button" type="Button" parent="Player/PlayerUI/footer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
icon = ExtResource("4_akimp")
|
|
|
|
[node name="RightPadding" type="Control" parent="Player/PlayerUI/footer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
mouse_filter = 1
|
|
|
|
[node name="SubViewportContainer" type="SubViewportContainer" parent="Player/PlayerUI/footer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
mouse_filter = 0
|
|
|
|
[node name="SubViewport" type="SubViewport" parent="Player/PlayerUI/footer/SubViewportContainer"]
|
|
handle_input_locally = false
|
|
size = Vector2i(255, 255)
|
|
render_target_update_mode = 4
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="Player/PlayerUI/footer/SubViewportContainer/SubViewport"]
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 20, 0)
|
|
projection = 1
|
|
size = 20.0
|
|
|
|
[node name="FogOfWar" parent="Player" instance=ExtResource("4_rheqo")]
|
|
|
|
[node name="Buildings" type="Node" parent="Player"]
|
|
|
|
[node name="PlayerCamp" type="StaticBody3D" parent="Player/Buildings" groups=["TerrainEntities"]]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 0.40872, 7)
|
|
script = ExtResource("6_bdu2w")
|
|
|
|
[node name="PlayerCamp" type="MeshInstance3D" parent="Player/Buildings/PlayerCamp"]
|
|
mesh = SubResource("PrismMesh_dw2jx")
|
|
skeleton = NodePath("../../../../Environment/Terrain/MeshInstance3D")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_nljwt")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Player/Buildings/PlayerCamp"]
|
|
shape = SubResource("ConcavePolygonShape3D_kxcis")
|
|
|
|
[node name="Ants" type="Node" parent="Player"]
|
|
|
|
[node name="Enemy" type="Node" parent="."]
|
|
script = ExtResource("6_pj6iy")
|
|
|
|
[node name="FogOfWar" parent="Enemy" instance=ExtResource("4_rheqo")]
|
|
visual = false
|
|
|
|
[node name="Buildings" type="Node" parent="Enemy"]
|
|
|
|
[node name="MeshInstance3D3" type="MeshInstance3D" parent="Enemy/Buildings" groups=["TerrainEntities"]]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0.40872, -7)
|
|
mesh = SubResource("PrismMesh_3qvl5")
|
|
skeleton = NodePath("../../../Environment/Terrain/MeshInstance3D")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_xv1v4")
|
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="Enemy/Buildings/MeshInstance3D3"]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Enemy/Buildings/MeshInstance3D3/StaticBody3D"]
|
|
shape = SubResource("ConcavePolygonShape3D_88h6r")
|
|
|
|
[node name="Units" type="Node" parent="Enemy"]
|
|
|
|
[node name="Environment" type="Node" parent="."]
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Environment"]
|
|
transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 0, 0)
|
|
shadow_enabled = true
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="Environment"]
|
|
environment = SubResource("Environment_r8f2r")
|
|
|
|
[node name="Terrain" type="StaticBody3D" parent="Environment" groups=["TerrainEntities"]]
|
|
script = ExtResource("7_js5w2")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Environment/Terrain"]
|
|
shape = SubResource("ConcavePolygonShape3D_rbvxc")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Environment/Terrain"]
|
|
mesh = SubResource("PlaneMesh_alxwk")
|
|
skeleton = NodePath("../../..")
|
|
|
|
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="Environment/Terrain"]
|
|
navigation_mesh = SubResource("NavigationMesh_6127e")
|
|
|
|
[node name="Food" type="Node" parent="Environment"]
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="Environment/Food"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.93551, 0.40872, 1.77864)
|
|
mesh = SubResource("SphereMesh_3yo4a")
|
|
skeleton = NodePath("../../Terrain/MeshInstance3D")
|