The dungeon teleporter is now a super simple obelisk.

This commit is contained in:
Relintai 2022-02-13 17:05:17 +01:00
parent c2b76ea2f4
commit 11912f0a85
4 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,6 @@
[gd_resource type="MeshDataResource" format=2] [gd_resource type="MeshDataResource" format=2]
[resource] [resource]
array = [ PoolVector3Array( -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, 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, 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 ), PoolVector3Array( 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0 ), null, null, PoolVector2Array( 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1 ), null, null, null, PoolIntArray( 0, 1, 2, 2, 3, 0, 4, 6, 5, 4, 7, 6, 8, 9, 10, 10, 11, 8, 12, 14, 13, 12, 15, 14, 16, 17, 18, 18, 19, 16, 20, 22, 21, 20, 23, 22 ) ] array = [ PoolVector3Array( -0.5, -0.13, 0.5, -0.5, 0.08, 0.5, 0.5, 0.08, 0.5, 0.5, -0.13, 0.5, -0.5, -0.13, -0.5, -0.5, 0.08, -0.5, 0.5, 0.08, -0.5, 0.5, -0.13, -0.5, -0.2, 0.13, -0.2, -0.2, 0.13, 0.2, 0.2, 0.13, 0.2, 0.2, 0.13, -0.2, -0.1175, 1.82, -0.1175, -0.1175, 1.82, 0.1175, 0.1175, 1.82, 0.1175, 0.1175, 1.82, -0.1175, 0, 2.02, 0, -0.5, -0.13, 0.5, -0.5, -0.13, 0.5, -0.5, 0.08, 0.5, 0.5, 0.08, 0.5, 0.5, -0.13, 0.5, 0.5, -0.13, 0.5, -0.5, -0.13, -0.5, -0.5, -0.13, -0.5, -0.5, 0.08, -0.5, 0.5, 0.08, -0.5, 0.5, -0.13, -0.5, 0.5, -0.13, -0.5, -0.2, 0.13, -0.2, -0.2, 0.13, 0.2, 0.2, 0.13, 0.2, 0.2, 0.13, -0.2, -0.1175, 1.82, -0.1175, -0.1175, 1.82, -0.1175, -0.1175, 1.82, 0.1175, -0.1175, 1.82, 0.1175, 0.1175, 1.82, 0.1175, 0.1175, 1.82, 0.1175, 0.1175, 1.82, -0.1175, 0.1175, 1.82, -0.1175, 0, 2.02, 0, 0, 2.02, 0, 0, 2.02, 0, 0, 2.02, 0, 0, 2.02, 0, 0, 2.02, 0, 0, 2.02, 0 ), PoolVector3Array( -0.353553, -0.92388, 0.146447, 0, 0.986394, 0.164399, 0.151885, 0.911309, 0.382683, 1, 0, 0, 0, 0, -1, -0.164399, 0.986394, 0, 0.382683, 0.911309, -0.151885, 0, 0, 0, -0.998811, 0.0487587, 0, 0, 0.0487587, 0.998811, 0.998811, 0.0487587, 0, 0, 0.0487587, -0.998811, -0.862211, 0.506549, 0, 0, 0.506549, 0.862211, 0.862211, 0.506549, 0, 0, 0.506549, -0.862211, 0, 0, 0, -0.353553, -0.92388, 0.146447, -0.353553, -0.92388, 0.146447, 0, 0.986394, 0.164399, 0.151885, 0.911309, 0.382683, 1, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, -1, -0.164399, 0.986394, 0, 0.382683, 0.911309, -0.151885, 0, 0, 0, 0, 0, 0, -0.998811, 0.0487587, 0, 0, 0.0487587, 0.998811, 0.998811, 0.0487587, 0, 0, 0.0487587, -0.998811, -0.862211, 0.506549, 0, -0.862211, 0.506549, 0, 0, 0.506549, 0.862211, 0, 0.506549, 0.862211, 0.862211, 0.506549, 0, 0.862211, 0.506549, 0, 0, 0.506549, -0.862211, 0, 0.506549, -0.862211, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), null, null, PoolVector2Array( 0.477252, 0.991666, 0.477252, 0.906779, 0.0100901, 0.90678, 0.0100902, 0.991667, 0.480856, 0.993333, 0.480856, 0.908501, 0.0137388, 0.908501, 0.0137388, 0.993333, 0.155392, 0.790399, 0.340239, 0.790399, 0.150239, 0.78384, 0.338563, 0.787658, 0.193517, 0.104167, 0.302115, 0.104167, 0.18878, 0.0998902, 0.300164, 0.105302, 0, 0, 0.478874, 0.998919, 0.0127928, 0.55446, 0.478874, 0.913749, 0.0127478, 0.910311, 0.0127478, 0.995, 0.0127928, 0.996667, 0.0167568, 0.998919, 0.478333, 0.55446, 0.0167568, 0.913749, 0.478198, 0.910311, 0.478198, 0.995, 0.478333, 0.996667, 0.340721, 0.78564, 0.337104, 0.78384, 0.152383, 0.787658, 0.153874, 0.78564, 0.302184, 0.102127, 0, 0, 0.298562, 0.09989, 0, 0, 0.190783, 0.105302, 0, 0, 0.192412, 0.102127, 0, 0, 0, 0, 0.247816, 0.0100901, 0.243671, 0.00612615, 0, 0, 0, 0, 0.245474, 0.0117568, 0.247298, 0.00842346 ), null, null, null, PoolIntArray( 0, 1, 2, 2, 3, 0, 4, 6, 5, 4, 7, 6, 21, 20, 26, 26, 27, 21, 17, 25, 19, 17, 23, 25, 18, 28, 24, 18, 22, 28, 25, 8, 9, 25, 9, 19, 1, 30, 10, 1, 10, 2, 20, 31, 11, 20, 11, 26, 6, 32, 29, 6, 29, 5, 8, 12, 13, 8, 13, 9, 30, 35, 14, 30, 14, 10, 31, 37, 15, 31, 15, 11, 32, 39, 33, 32, 33, 29, 34, 16, 41, 12, 42, 13, 36, 16, 41, 35, 43, 14, 38, 44, 45, 37, 46, 15, 40, 44, 45, 39, 47, 33 ) ]
aabb = AABB( -0.5, -0.5, -0.5, 1, 1, 1 ) aabb = AABB( -0.5, -0.13, -0.5, 1, 2.15, 1 )
seams = PoolIntArray( 2, 10, 2, 3, 3, 7, 6, 7, 6, 11, 5, 8, 4, 5, 4, 7, 1, 9, 0, 1, 0, 4, 0, 3, 8, 12, 12, 16, 10, 14, 9, 13, 13, 16, 14, 16, 15, 16, 11, 15 )

View File

@ -3,12 +3,12 @@
[ext_resource path="res://scripts/dungeons/teleporters/dung_teleporter.gd" type="Script" id=1] [ext_resource path="res://scripts/dungeons/teleporters/dung_teleporter.gd" type="Script" id=1]
[ext_resource path="res://props/teleporters/dungeon/simple_dungeon_back_teleporter.tscn" type="PackedScene" id=2] [ext_resource path="res://props/teleporters/dungeon/simple_dungeon_back_teleporter.tscn" type="PackedScene" id=2]
[ext_resource path="res://models/teleporters/dungeon/simple_dungeon_teleporter.tres" type="MeshDataResource" id=3] [ext_resource path="res://models/teleporters/dungeon/simple_dungeon_teleporter.tres" type="MeshDataResource" id=3]
[ext_resource path="res://textures/bricks/test_brick_albedo.png" type="Texture" id=4] [ext_resource path="res://textures/stone/stone_1_albedo.png" type="Texture" id=4]
[ext_resource path="res://props/teleporters/dungeon/simple_dungeon_teleporter_material.tres" type="Material" id=5] [ext_resource path="res://props/teleporters/dungeon/simple_dungeon_teleporter_material.tres" type="Material" id=5]
[ext_resource path="res://props/teleporters/dungeon/simple_dungeon_teleporter_highlight_material.tres" type="Material" id=6] [ext_resource path="res://props/teleporters/dungeon/simple_dungeon_teleporter_highlight_material.tres" type="Material" id=6]
[sub_resource type="BoxShape" id=3] [sub_resource type="BoxShape" id=3]
extents = Vector3( 0.5, 0.5, 0.5 ) extents = Vector3( 0.337828, 0.95553, 0.246706 )
[node name="DungeonTeleporter" type="StaticBody"] [node name="DungeonTeleporter" type="StaticBody"]
script = ExtResource( 1 ) script = ExtResource( 1 )
@ -22,4 +22,5 @@ texture = ExtResource( 4 )
material = ExtResource( 5 ) material = ExtResource( 5 )
[node name="CollisionShape" type="CollisionShape" parent="."] [node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.01966, 0 )
shape = SubResource( 3 ) shape = SubResource( 3 )

View File

@ -1,7 +1,7 @@
[gd_resource type="ShaderMaterial" load_steps=3 format=2] [gd_resource type="ShaderMaterial" load_steps=3 format=2]
[ext_resource path="res://shaders/5_standard_shader_nouv2.tres" type="Shader" id=1] [ext_resource path="res://shaders/5_standard_shader_nouv2.tres" type="Shader" id=1]
[ext_resource path="res://textures/bricks/test_brick_albedo.png" type="Texture" id=2] [ext_resource path="res://textures/stone/stone_1_albedo.png" type="Texture" id=2]
[resource] [resource]
shader = ExtResource( 1 ) shader = ExtResource( 1 )

View File

@ -1,7 +1,7 @@
[gd_resource type="ShaderMaterial" load_steps=3 format=2] [gd_resource type="ShaderMaterial" load_steps=3 format=2]
[ext_resource path="res://shaders/5_standard_shader_nouv2.tres" type="Shader" id=1] [ext_resource path="res://shaders/5_standard_shader_nouv2.tres" type="Shader" id=1]
[ext_resource path="res://textures/bricks/test_brick_albedo.png" type="Texture" id=2] [ext_resource path="res://textures/stone/stone_1_albedo.png" type="Texture" id=2]
[resource] [resource]
shader = ExtResource( 1 ) shader = ExtResource( 1 )