Adding a small cave

This commit is contained in:
yannk 2022-02-04 15:42:59 +01:00
parent 8ce76a33a5
commit 3df6c1d585
4 changed files with 206 additions and 7 deletions

View file

@ -1,8 +1,9 @@
[gd_scene load_steps=10 format=3 uid="uid://cvdmfc2hi172g"]
[gd_scene load_steps=11 format=3 uid="uid://cvdmfc2hi172g"]
[ext_resource type="Material" uid="uid://cdijyqa881tvv" path="res://maps/simple_grid_world.material" id="1_h84bv"]
[ext_resource type="Material" uid="uid://jrlyuynpu62b" path="res://maps/simple_grid.material" id="1_ympm1"]
[ext_resource type="PackedScene" uid="uid://cccuku6opjnvy" path="res://maps/moutain.tscn" id="3_rbp35"]
[ext_resource type="PackedScene" uid="uid://bgoptxjkvk8cf" path="res://maps/cave.tscn" id="4_pc85h"]
[sub_resource type="BoxMesh" id="BoxMesh_k23th"]
material = ExtResource( "1_h84bv" )
@ -49,7 +50,7 @@ tracks/0/keys = {
[node name="basic_setup" type="Node3D"]
[node name="floor" type="MeshInstance3D" parent="."]
transform = Transform3D(30, 0, 0, 0, 0.1, 0, 0, 0, 30, 0, -0.1, 0)
transform = Transform3D(40, 0, 0, 0, 0.1, 0, 0, 0, 40, 0, -0.1, 0)
mesh = SubResource( "BoxMesh_k23th" )
[node name="collision" type="StaticBody3D" parent="floor"]
@ -196,9 +197,7 @@ skeleton = NodePath("../..")
shape = SubResource( "ConcavePolygonShape3D_y7uft" )
[node name="moutain" parent="." instance=ExtResource( "3_rbp35" )]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 15.4657, -0.419849, -17.1644)
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -20.8694, -0.419849, -19.5951)
[node name="moutain2" parent="moutain" index="0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -15.753, 0.0442026, 1.17911)
[editable path="moutain"]
[node name="cave2" parent="." instance=ExtResource( "4_pc85h" )]
transform = Transform3D(-0.344037, 0, 0.938956, 0, 1, 0, -0.938956, 0, -0.344037, 29.908, -0.141321, 29.4435)

163
maps/cave.gltf Normal file

File diff suppressed because one or more lines are too long

28
maps/cave.gltf.import Normal file
View file

@ -0,0 +1,28 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://b7bdyvlle2rx0"
path="res://.godot/imported/cave.gltf-e160ebb0361f8a04c65a4287a56d369f.scn"
[deps]
source_file="res://maps/cave.gltf"
dest_files=["res://.godot/imported/cave.gltf-e160ebb0361f8a04c65a4287a56d369f.scn"]
[params]
nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.1
skins/use_named_skins=true
animation/import=true
animation/fps=30
import_script/path=""
_subresources={}

9
maps/cave.tscn Normal file
View file

@ -0,0 +1,9 @@
[gd_scene load_steps=3 format=3 uid="uid://bgoptxjkvk8cf"]
[ext_resource type="PackedScene" uid="uid://b7bdyvlle2rx0" path="res://maps/cave.gltf" id="1_i0v3y"]
[ext_resource type="Material" uid="uid://cdijyqa881tvv" path="res://maps/simple_grid_world.material" id="2_2hxq1"]
[node name="cave" instance=ExtResource( "1_i0v3y" )]
[node name="cave2" parent="." index="0"]
material_override = ExtResource( "2_2hxq1" )