Adding a water zone

This commit is contained in:
yannk 2022-02-04 17:06:52 +01:00
parent faa6a4db90
commit 87dae1b4d9
6 changed files with 171 additions and 1 deletions

View file

@ -1,10 +1,11 @@
[gd_scene load_steps=12 format=3 uid="uid://cvdmfc2hi172g"]
[gd_scene load_steps=13 format=3 uid="uid://cvdmfc2hi172g"]
[ext_resource type="Material" uid="uid://cdijyqa881tvv" path="res://maps/materials/simple_grid_world.material" id="1_h84bv"]
[ext_resource type="Material" uid="uid://jrlyuynpu62b" path="res://maps/materials/simple_grid.material" id="1_ympm1"]
[ext_resource type="PackedScene" path="res://maps/moutain.tscn" id="3_rbp35"]
[ext_resource type="PackedScene" path="res://maps/cave.tscn" id="4_pc85h"]
[ext_resource type="PackedScene" path="res://maps/ramp.tscn" id="5_dfm8h"]
[ext_resource type="PackedScene" uid="uid://bkcvep4ijijmc" path="res://maps/water-zone.tscn" id="6_0o80c"]
[sub_resource type="BoxMesh" id="BoxMesh_k23th"]
material = ExtResource( "1_h84bv" )
@ -205,3 +206,6 @@ transform = Transform3D(-0.344037, 0, 0.938956, 0, 1, 0, -0.938956, 0, -0.344037
[node name="ramp" parent="." instance=ExtResource( "5_dfm8h" )]
transform = Transform3D(-0.218552, 0, -0.975825, 0, 1, 0, 0.975825, 0, -0.218552, -27.5919, 0, 5.449)
[node name="water-zone" parent="." instance=ExtResource( "6_0o80c" )]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -79.9445, 0, 0)

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,28 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://crseicp4voddt"
path="res://.godot/imported/water-space.gltf-4d137fbb08842be52956ea8d35c92092.scn"
[deps]
source_file="res://maps/imports/water-space.gltf"
dest_files=["res://.godot/imported/water-space.gltf-4d137fbb08842be52956ea8d35c92092.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={}

Binary file not shown.

16
maps/water-zone.tscn Normal file
View file

@ -0,0 +1,16 @@
[gd_scene load_steps=4 format=3 uid="uid://bkcvep4ijijmc"]
[ext_resource type="Material" uid="uid://2qj4owbhnsou" path="res://maps/materials/water.material" id="1_oimuc"]
[ext_resource type="PackedScene" uid="uid://ip4lkyho0gry" path="res://maps/water_space.tscn" id="2_nnfoe"]
[sub_resource type="PlaneMesh" id="PlaneMesh_uh76x"]
material = ExtResource( "1_oimuc" )
[node name="water-zone" type="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.964225, 0)
[node name="water-level" type="MeshInstance3D" parent="."]
transform = Transform3D(20, 0, 0, 0, 1, 0, 0, 0, 20, 0, -1.11971, 0)
mesh = SubResource( "PlaneMesh_uh76x" )
[node name="water-space" parent="." instance=ExtResource( "2_nnfoe" )]

9
maps/water_space.tscn Normal file
View file

@ -0,0 +1,9 @@
[gd_scene load_steps=3 format=3 uid="uid://ip4lkyho0gry"]
[ext_resource type="PackedScene" uid="uid://crseicp4voddt" path="res://maps/imports/water-space.gltf" id="1_htkji"]
[ext_resource type="Material" uid="uid://cdijyqa881tvv" path="res://maps/materials/simple_grid_world.material" id="2_asppa"]
[node name="water-space" instance=ExtResource( "1_htkji" )]
[node name="water_space" parent="." index="0"]
material_override = ExtResource( "2_asppa" )