Add portable RV homes and decor prototype
This commit is contained in:
parent
81decf2b71
commit
fe099f47dd
56 changed files with 5459 additions and 112 deletions
|
|
@ -9,6 +9,9 @@ const FishingShopInteractionType = preload(
|
|||
const PlayerStorageInteractionType = preload(
|
||||
"res://world/player_storage_interaction.gd"
|
||||
)
|
||||
const DecorShopInteractionType = preload(
|
||||
"res://world/decor_shop_interaction.gd"
|
||||
)
|
||||
const PrecipitationOcclusionType = preload(
|
||||
"res://world/environment/precipitation_occlusion.gd"
|
||||
)
|
||||
|
|
@ -80,8 +83,12 @@ const PROCEDURAL_PROP_GROUPS: Array[StringName] = [
|
|||
@onready var _player_storage: PlayerStorageInteractionType = (
|
||||
$Interactables/PlayerStorageBox/InteractionArea
|
||||
)
|
||||
@onready var _decor_shop: DecorShopInteractionType = (
|
||||
$Interactables/DecorShopWorld/InteractionArea
|
||||
)
|
||||
@onready var _shop_root: Node3D = %FishingShopWorld
|
||||
@onready var _storage_root: Node3D = %PlayerStorageBox
|
||||
@onready var _decor_shop_root: Node3D = %DecorShopWorld
|
||||
@onready var _decorations: Node3D = %Decorations
|
||||
@onready var _tree_anchors: GatherableAnchorSet3D = %ReachableTreeTrunks
|
||||
@onready var _diggable_beach: DiggableArea3D = %DiggableBeach
|
||||
|
|
@ -148,6 +155,10 @@ func get_player_storage() -> PlayerStorageInteractionType:
|
|||
return _player_storage
|
||||
|
||||
|
||||
func get_decor_shop() -> DecorShopInteractionType:
|
||||
return _decor_shop
|
||||
|
||||
|
||||
func get_saltwater_shoreline_mesh() -> MeshInstance3D:
|
||||
return _shoreline_reference
|
||||
|
||||
|
|
@ -428,6 +439,8 @@ func _place_spawn_amenities(center: Vector3) -> void:
|
|||
_shop_root.rotation.y = PI
|
||||
_storage_root.position = center + Vector3(-2.4, 0.0, 1.2)
|
||||
_storage_root.rotation.y = PI * 0.5
|
||||
_decor_shop_root.position = center + Vector3(-2.4, 0.0, 1.2)
|
||||
_decor_shop_root.rotation.y = PI * 0.5
|
||||
|
||||
|
||||
func _configure_static_water() -> void:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=14 format=3]
|
||||
[gd_scene load_steps=15 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://world/generation/generated_world_region.gd" id="1_region"]
|
||||
[ext_resource type="Script" path="res://world/generation/terrain_chunk_generator.gd" id="2_generator"]
|
||||
|
|
@ -13,6 +13,7 @@
|
|||
[ext_resource type="Resource" path="res://fish/pools/starter_pond_pool.tres" id="11_pond_pool"]
|
||||
[ext_resource type="Resource" path="res://world/generation/props/terrain_prop_catalog.tres" id="12_prop_catalog"]
|
||||
[ext_resource type="Resource" path="res://world/generation/biomes/terrain_biome_catalog.tres" id="13_biome_catalog"]
|
||||
[ext_resource type="PackedScene" path="res://world/interactables/decor_shop_world.tscn" id="14_decor_shop"]
|
||||
|
||||
[node name="GeneratedWorldRegion" type="Node3D"]
|
||||
script = ExtResource("1_region")
|
||||
|
|
@ -98,6 +99,9 @@ unique_name_in_owner = true
|
|||
[node name="PlayerStorageBox" parent="Interactables" instance=ExtResource("6_storage")]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="DecorShopWorld" parent="Interactables" instance=ExtResource("14_decor_shop")]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="Decorations" type="Node3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue