关卡联通关系/ 2.5d渲染拉伸临时方案
parent
0f2aebd967
commit
5888b376c7
File diff suppressed because one or more lines are too long
@ -1,16 +1,40 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://b3rp0a5do2mm6"]
|
[gd_scene load_steps=7 format=3 uid="uid://b3rp0a5do2mm6"]
|
||||||
|
|
||||||
[ext_resource type="ArrayMesh" uid="uid://caii2ypk4lb1k" path="res://resource/mesh_level/block_center.vox" id="1_8nl8s"]
|
[ext_resource type="ArrayMesh" uid="uid://caii2ypk4lb1k" path="res://resource/mesh_level/block_center.vox" id="1_8nl8s"]
|
||||||
[ext_resource type="ArrayMesh" uid="uid://c6g1c31dd86yp" path="res://resource/mesh_level/block_corner.vox" id="2_870el"]
|
[ext_resource type="ArrayMesh" uid="uid://c6g1c31dd86yp" path="res://resource/mesh_level/block_corner.vox" id="2_870el"]
|
||||||
[ext_resource type="ArrayMesh" uid="uid://d1awgblbh4vmq" path="res://resource/mesh_level/block_edge.vox" id="3_0q8sx"]
|
[ext_resource type="ArrayMesh" uid="uid://d1awgblbh4vmq" path="res://resource/mesh_level/block_edge.vox" id="3_0q8sx"]
|
||||||
|
|
||||||
|
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_stlyj"]
|
||||||
|
data = PackedVector3Array(-0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32)
|
||||||
|
|
||||||
|
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_urjlt"]
|
||||||
|
data = PackedVector3Array(-0.32, 0.32, -0.32, -0.3, 0.32, -0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.3, 0.32, -0.3, -0.28, 0.32, -0.3, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, 0.32, -0.3, -0.3, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, -0.3, 0.32, -0.3, -0.3, 0.32, -0.32, -0.28, 0.32, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, 0.32, -0.28, -0.28, 0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, -0.28, 0.32, -0.28, -0.28, 0.32, -0.3, -0.3, -0.32, 0.32, -0.3, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, -0.28, -0.32, -0.3, -0.3, -0.32, -0.3, -0.3, -0.32, -0.3, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, 0.32, -0.32, -0.3, 0.32, -0.32, -0.32, -0.3, -0.32, -0.32, -0.3, -0.32, -0.32, -0.3, -0.32, -0.3, 0.32, -0.32, -0.3, 0.32, -0.32, 0.32, 0.32, -0.32, -0.28, -0.28, -0.32, -0.28, -0.28, -0.32, -0.28, -0.28, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, -0.32, -0.28, 0.32, -0.32, -0.3, -0.28, -0.32, -0.3, -0.28, -0.32, -0.3, -0.28, -0.32, -0.28, 0.32, -0.32, -0.28, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.28, 0.32, -0.32, -0.28, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.28, 0.32, 0.32, -0.3, 0.32, -0.32, -0.3, 0.32, -0.32, -0.28, 0.32, -0.32, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, -0.3, 0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.3, 0.32, -0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, -0.32, 0.32, -0.32, -0.32, 0.32, -0.3, -0.32, 0.32, -0.3, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, -0.32, 0.32, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, -0.28, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, 0.32, -0.28, -0.32, 0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32)
|
||||||
|
|
||||||
|
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_wreew"]
|
||||||
|
data = PackedVector3Array(-0.32, 0.32, -0.32, -0.3, 0.32, -0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.3, 0.32, -0.32, -0.28, 0.32, -0.32, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, 0.32, -0.32, -0.28, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, 0.32, -0.32, -0.3, -0.32, 0.32, -0.3, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, -0.28, -0.32, -0.32, -0.3, -0.32, -0.32, -0.3, -0.32, -0.32, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, -0.32, -0.32, -0.28, -0.32, -0.32, -0.28, -0.32, -0.32, -0.28, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, -0.32, -0.32, 0.32, -0.32, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, 0.32, 0.32, -0.3, -0.32, 0.32, -0.32, -0.32, 0.32, -0.3, -0.32, 0.32, -0.3, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, 0.32, 0.32, -0.28, -0.32, 0.32, -0.3, -0.32, 0.32, -0.28, -0.32, 0.32, -0.28, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, 0.32, -0.32, 0.32, -0.28, -0.32, 0.32, -0.3, 0.32, -0.32, -0.32, 0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.32, -0.3, -0.32, -0.32, -0.3, 0.32, -0.32, -0.28, 0.32, -0.32, -0.3, 0.32, -0.32, -0.3, -0.32, -0.32, -0.3, -0.32, -0.32, -0.28, -0.32, -0.32, -0.28, 0.32, -0.32, 0.32, 0.32, -0.32, -0.28, 0.32, -0.32, -0.28, -0.32, -0.32, -0.28, -0.32, -0.32, 0.32, -0.32, -0.32, 0.32, 0.32, -0.32)
|
||||||
|
|
||||||
[node name="MeshLibrary" type="Node3D"]
|
[node name="MeshLibrary" type="Node3D"]
|
||||||
|
|
||||||
[node name="BlockCenter" type="MeshInstance3D" parent="."]
|
[node name="BlockCenter" type="MeshInstance3D" parent="."]
|
||||||
mesh = ExtResource("1_8nl8s")
|
mesh = ExtResource("1_8nl8s")
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D" parent="BlockCenter"]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="BlockCenter/StaticBody3D"]
|
||||||
|
shape = SubResource("ConcavePolygonShape3D_stlyj")
|
||||||
|
|
||||||
[node name="BlockCorner" type="MeshInstance3D" parent="."]
|
[node name="BlockCorner" type="MeshInstance3D" parent="."]
|
||||||
mesh = ExtResource("2_870el")
|
mesh = ExtResource("2_870el")
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D" parent="BlockCorner"]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="BlockCorner/StaticBody3D"]
|
||||||
|
shape = SubResource("ConcavePolygonShape3D_urjlt")
|
||||||
|
|
||||||
[node name="BlockEdge" type="MeshInstance3D" parent="."]
|
[node name="BlockEdge" type="MeshInstance3D" parent="."]
|
||||||
mesh = ExtResource("3_0q8sx")
|
mesh = ExtResource("3_0q8sx")
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D" parent="BlockEdge"]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="BlockEdge/StaticBody3D"]
|
||||||
|
shape = SubResource("ConcavePolygonShape3D_wreew")
|
||||||
|
|||||||
@ -0,0 +1,27 @@
|
|||||||
|
[gd_scene load_steps=3 format=3 uid="uid://cmyn7g0lp71uj"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://do7abukgd54js" path="res://addons/MetroidvaniaSystem/Nodes/RoomInstance.tscn" id="1_y5r6k"]
|
||||||
|
[ext_resource type="MeshLibrary" uid="uid://bbya6804fmu42" path="res://resource/mesh_library/default.tres" id="2_qmegy"]
|
||||||
|
|
||||||
|
[node name="Level" type="Node3D"]
|
||||||
|
|
||||||
|
[node name="RoomInstance" parent="." instance=ExtResource("1_y5r6k")]
|
||||||
|
|
||||||
|
[node name="Light" type="Node3D" parent="."]
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Light"]
|
||||||
|
transform = Transform3D(0.707107, -0.5, 0.5, 0, 0.707107, 0.707107, -0.707107, -0.5, 0.5, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="Ground" type="CSGBox3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.4, -1, 7.2)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(12.8, 2, 14.4)
|
||||||
|
|
||||||
|
[node name="GridMap" type="GridMap" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.4)
|
||||||
|
mesh_library = ExtResource("2_qmegy")
|
||||||
|
cell_size = Vector3(0.64, 0.64, 0.64)
|
||||||
|
data = {
|
||||||
|
"cells": PackedInt32Array(0, 1, 655362, 0, 0, 0, 19, 1, 0, 19, 0, 0, 19, 2, 0, 19, 3, 0, 19, 7, 0, 19, 8, 0, 19, 9, 0, 19, 10, 0, 0, 2, 655362, 0, 3, 655362, 0, 9, 655362, 0, 5, 655362, 0, 4, 655362, 0, 10, 0, 0, 65535, 1376258, 1, 65535, 1376258, 2, 65535, 1376258, 3, 65535, 1376258, 4, 65535, 1376258, 5, 65535, 1376258, 6, 65535, 1376258, 7, 65535, 1376258, 8, 65535, 1376258, 9, 65535, 1376258, 12, 65535, 1376258, 13, 65535, 1376258, 14, 65535, 1376258, 15, 65535, 1376258, 16, 65535, 1376258, 17, 65535, 1376258, 18, 65535, 1376258, 19, 65535, 1376258, 19, 11, 2, 19, 12, 2, 19, 13, 2, 19, 14, 2, 19, 15, 2, 19, 16, 2, 19, 17, 2, 19, 18, 2, 19, 19, 2, 19, 20, 2, 19, 21, 2, 17, 21, 0, 18, 21, 0, 16, 21, 0, 15, 21, 0, 14, 21, 0, 13, 21, 0, 12, 21, 0, 7, 21, 0, 6, 21, 0, 5, 21, 0, 4, 21, 0, 3, 21, 0, 2, 21, 0, 1, 21, 0, 0, 21, 0, 0, 20, 0, 0, 19, 0, 0, 18, 0, 0, 17, 0, 0, 16, 0, 0, 15, 0, 0, 14, 0, 0, 13, 0, 65535, 13, 0, 0, 11, 0, 0, 12, 0)
|
||||||
|
}
|
||||||
|
metadata/_editor_floor_ = Vector3(0, 0, 0)
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
extends SubViewportContainer
|
||||||
|
|
||||||
|
var camera_angle := deg_to_rad(45.0)
|
||||||
|
|
||||||
|
func on_resize():
|
||||||
|
$SubViewport.size.y = $SubViewport.size.y * cos(camera_angle)
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
on_resize()
|
||||||
|
|
||||||
|
func _on_item_rect_changed():
|
||||||
|
on_resize()
|
||||||
Loading…
Reference in New Issue