Adding endpoint to only get locations visible to character
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
[gd_scene load_steps=8 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/Levels/location_level.gd" id="1_level_script"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/Characters/location_player.tscn" id="2_player_scene"]
|
||||
[ext_resource type="Material" path="res://assets/materials/kenney_prototype_block_dark.tres" id="3_block_mat"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_tile"]
|
||||
material = ExtResource("3_block_mat")
|
||||
size = Vector3(1, 1, 1)
|
||||
|
||||
[sub_resource type="Environment" id="Environment_location"]
|
||||
background_mode = 1
|
||||
background_color = Color(0.55, 0.72, 0.92, 1)
|
||||
ambient_light_source = 2
|
||||
ambient_light_color = Color(1, 1, 1, 1)
|
||||
ambient_light_energy = 0.8
|
||||
|
||||
[node name="LocationLevel" type="Node3D"]
|
||||
script = ExtResource("1_level_script")
|
||||
tracked_node_path = NodePath("Player")
|
||||
|
||||
[node name="TerrainBlock" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_tile")
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_player_scene")]
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.819152, 0.573576, 0, -0.573576, 0.819152, 0, 6, 0)
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_location")
|
||||
Reference in New Issue
Block a user