场景视野测试

master
chendian 2 years ago
parent 3f465a5374
commit eca354adf2

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://dqdv4q8pbq3y6"
path="res://.godot/imported/f_ground_room1.vox-5578cb13b0d2e44296d4f230d8aad983.mesh"
[deps]
source_file="res://resource/mesh_level/f_ground_room1.vox"
dest_files=["res://.godot/imported/f_ground_room1.vox-5578cb13b0d2e44296d4f230d8aad983.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://c0kult8t0aixi"
path="res://.godot/imported/f_wood_wall_white1.vox-5ce74124a5689cce2928b4f3728c9454.mesh"
[deps]
source_file="res://resource/mesh_level/f_wood_wall_white1.vox"
dest_files=["res://.godot/imported/f_wood_wall_white1.vox-5ce74124a5689cce2928b4f3728c9454.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://dfwymdlvapajb"
path="res://.godot/imported/f_wood_wall_white2.vox-51e2297318aad8342cb0fe58cbe4bf07.mesh"
[deps]
source_file="res://resource/mesh_level/f_wood_wall_white2.vox"
dest_files=["res://.godot/imported/f_wood_wall_white2.vox-51e2297318aad8342cb0fe58cbe4bf07.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

@ -0,0 +1,18 @@
[remap]
importer="MagicaVoxel.With.Extensions.To.Mesh"
type="Mesh"
uid="uid://cqy3ihct5pxeo"
path="res://.godot/imported/h_ground_room1.vox-bf65e9f938d5da0e71575920472da8b6.mesh"
[deps]
source_file="res://resource/mesh_level/h_ground_room1.vox"
dest_files=["res://.godot/imported/h_ground_room1.vox-bf65e9f938d5da0e71575920472da8b6.mesh"]
[params]
Scale=0.02
GreedyMeshGenerator=true
SnapToGround=false
FirstKeyframeOnly=true

Binary file not shown.

File diff suppressed because one or more lines are too long

@ -22,6 +22,6 @@ size = Vector3(12.8, 2, 14.4)
mesh_library = ExtResource("2_fqw73")
cell_size = Vector3(0.64, 0.64, 0.64)
data = {
"cells": PackedInt32Array(0, 0, 4, 1, 0, 4, 2, 0, 4, 3, 0, 4, 4, 0, 4, 5, 0, 4, 6, 0, 4, 7, 0, 4, 9, 0, 4, 10, 0, 4, 11, 0, 4, 12, 0, 4, 13, 0, 4, 14, 0, 4, 15, 0, 4, 16, 0, 4, 17, 0, 4, 18, 0, 4, 19, 0, 4, 19, 1, 1441804, 18, 1, 1441804, 17, 1, 1441804, 16, 1, 1441804, 15, 1, 1441804, 14, 1, 1441804, 13, 1, 1441804, 12, 1, 1441804, 11, 1, 1441804, 10, 1, 1441804, 9, 1, 1441804, 8, 1, 1441804, 7, 1, 1441804, 6, 1, 1441804, 0, 1, 1441804, 1, 1, 1441804, 2, 1, 1441804, 3, 1, 1441804, 4, 1, 1441804, 5, 1, 1441804, 19, 2, 1441805, 18, 2, 1441805, 17, 2, 1441805, 16, 2, 1441805, 15, 2, 1441805, 14, 2, 1441805, 13, 2, 1441805, 12, 2, 1441805, 11, 2, 1441805, 10, 2, 1441805, 9, 2, 1441805, 8, 2, 1441805, 7, 2, 1441805, 6, 2, 1441805, 5, 2, 1441805, 4, 2, 1441805, 3, 2, 1441805, 2, 2, 1441805, 1, 2, 1441805, 0, 2, 1441805, 8, 0, 1441796)
"cells": PackedInt32Array(0, 0, 1048592, 1, 0, 1048592, 2, 0, 1048592, 3, 0, 1048592, 4, 0, 1048592, 5, 0, 1048592, 6, 0, 1048592, 7, 0, 1048592, 9, 0, 1048592, 10, 0, 1048592, 11, 0, 1048592, 12, 0, 1048592, 13, 0, 1048592, 14, 0, 1048592, 15, 0, 1048592, 16, 0, 1048592, 17, 0, 1048592, 18, 0, 1048592, 19, 0, 1048592, 19, 1, 1441804, 18, 1, 1441804, 17, 1, 1441804, 16, 1, 1441804, 15, 1, 1441804, 14, 1, 1441804, 13, 1, 1441804, 12, 1, 1441804, 11, 1, 1441804, 10, 1, 1441804, 9, 1, 1441804, 8, 1, 1441804, 7, 1, 1441804, 6, 1, 1441804, 0, 1, 1441804, 1, 1, 1441804, 2, 1, 1441804, 3, 1, 1441804, 4, 1, 1441804, 5, 1, 1441804, 19, 2, 1441805, 18, 2, 1441805, 17, 2, 1441805, 16, 2, 1441805, 15, 2, 1441805, 14, 2, 1441805, 13, 2, 1441805, 12, 2, 1441805, 11, 2, 1441805, 10, 2, 1441805, 9, 2, 1441805, 8, 2, 1441805, 7, 2, 1441805, 6, 2, 1441805, 5, 2, 1441805, 4, 2, 1441805, 3, 2, 1441805, 2, 2, 1441805, 1, 2, 1441805, 0, 2, 1441805, 8, 0, 1048592, 20, 1, 1441804, 20, 2, 1441805, 65544, 0, 1441808, 65543, 0, 1441808, 65542, 0, 1441808, 65541, 0, 1441808, 65540, 0, 1441808, 65539, 0, 1441808, 65538, 0, 1441808, 65537, 0, 1441808, 65547, 0, 1441808, 65548, 0, 1441808, 65549, 0, 1441808, 65550, 0, 1441808, 65551, 0, 1441808, 65552, 0, 1441808, 65553, 0, 1441808, 65554, 0, 1441808, 65555, 0, 1441808, 65536, 0, 1441808, 65535, 2, 1441805, 65535, 1, 1441804, 131080, 0, 1048592, 196616, 0, 1048592, 262152, 0, 1048592)
}
metadata/_editor_floor_ = Vector3(0, 0, 0)
metadata/_editor_floor_ = Vector3(0, 4, 0)

@ -25,6 +25,6 @@ size = Vector3(38.4, 2, 7.2)
mesh_library = ExtResource("2_q76ck")
cell_size = Vector3(0.64, 0.64, 0.64)
data = {
"cells": PackedInt32Array(19, 10, 0, 18, 10, 0, 17, 10, 0, 16, 10, 0, 15, 10, 917504, 14, 10, 917504, 13, 10, 917504, 12, 10, 917504, 11, 10, 917504, 8, 10, 917504, 7, 10, 917504, 6, 10, 0, 5, 10, 0, 4, 10, 0, 3, 10, 0, 2, 10, 0, 1, 10, 0, 0, 10, 0, 0, 65535, 917504, 1, 65535, 917504, 2, 65535, 917504, 3, 65535, 917504, 4, 65535, 917504, 5, 65535, 917504, 6, 65535, 917504, 7, 65535, 917504, 8, 65535, 917504, 9, 65535, 917504, 12, 65535, 917504, 13, 65535, 917504, 14, 65535, 917504, 15, 65535, 917504, 16, 65535, 917504, 17, 65535, 917504, 18, 65535, 917504, 19, 65535, 917504, 10, 65535, 917504, 11, 65535, 917504, 20, 65535, 917504, 21, 65535, 917504, 22, 65535, 917504, 23, 65535, 917504, 24, 65535, 917504, 25, 65535, 917504, 34, 65535, 1245184, 35, 65535, 917504, 36, 65535, 917504, 37, 65535, 917504, 38, 65535, 917504, 39, 65535, 917504, 39, 10, 917504, 38, 10, 917504, 37, 10, 917504, 36, 10, 917504, 35, 10, 917504, 34, 10, 917504, 29, 10, 917504, 28, 10, 917504, 27, 10, 917504, 26, 10, 917504, 25, 10, 917504, 24, 10, 917504, 23, 10, 917504, 22, 10, 917504, 21, 10, 917504, 20, 10, 917504, 9, 10, 917504, 10, 10, 917504, 40, 65535, 1245184, 41, 65535, 1245184, 42, 65535, 1245184, 43, 65535, 1245184, 44, 65535, 1245184, 45, 65535, 1245184, 46, 65535, 1245184, 47, 65535, 1245184, 48, 65535, 1245184, 59, 65535, 1245184, 58, 65535, 1245184, 57, 65535, 1245184, 56, 65535, 1245184, 55, 65535, 1245184, 54, 65535, 1245184, 53, 65535, 1245184, 52, 65535, 1245184, 51, 65535, 1245184, 50, 65535, 1245184, 49, 65535, 1245184, 59, 0, 1245184, 59, 1, 1245184, 59, 2, 1245184, 59, 3, 1245184, 59, 6, 1245184, 59, 7, 1245184, 59, 8, 1245184, 59, 9, 1245184, 59, 10, 1245184, 58, 10, 1245184, 57, 10, 1245184, 56, 10, 1245184, 55, 10, 1245184, 54, 10, 1245184, 53, 10, 1245184, 52, 10, 1245184, 51, 10, 1245184, 50, 10, 1245184, 49, 10, 1245184, 48, 10, 1245184, 47, 10, 1245184, 46, 10, 1245184, 45, 10, 1245184, 44, 10, 1245184, 43, 10, 1245184, 42, 10, 1245184, 41, 10, 1245184, 40, 10, 1245184, 0, 0, 1245184, 0, 1, 1245184, 0, 2, 1245184, 0, 3, 1245184, 0, 6, 1245184, 0, 7, 1245184, 0, 8, 1245184, 0, 9, 1245184, 26, 65535, 1245184, 27, 65535, 1245184, 33, 65535, 1245184, 32, 65535, 1245184)
"cells": PackedInt32Array(19, 10, 0, 18, 10, 0, 17, 10, 0, 16, 10, 0, 15, 10, 917504, 14, 10, 917504, 13, 10, 917504, 12, 10, 917504, 11, 10, 917504, 8, 10, 917504, 7, 10, 917504, 6, 10, 0, 5, 10, 0, 4, 10, 0, 3, 10, 0, 2, 10, 0, 1, 10, 0, 0, 10, 0, 0, 65535, 1048592, 1, 65535, 1048592, 2, 65535, 1048592, 3, 65535, 1048592, 4, 65535, 1048592, 5, 65535, 1048592, 6, 65535, 1048592, 7, 65535, 1048592, 8, 65535, 1048592, 9, 65535, 1048592, 12, 65535, 1048592, 13, 65535, 1048592, 14, 65535, 1048592, 15, 65535, 1048592, 16, 65535, 1048592, 17, 65535, 1048592, 18, 65535, 1048592, 19, 65535, 1048592, 10, 65535, 1048592, 11, 65535, 1048592, 20, 65535, 1048592, 21, 65535, 1048592, 22, 65535, 1048592, 23, 65535, 1048592, 24, 65535, 1048592, 25, 65535, 1048592, 34, 65535, 1245184, 35, 65535, 917504, 36, 65535, 917504, 37, 65535, 917504, 38, 65535, 917504, 39, 65535, 917504, 39, 10, 917504, 38, 10, 917504, 37, 10, 917504, 36, 10, 917504, 35, 10, 917504, 34, 10, 917504, 29, 10, 917504, 28, 10, 917504, 27, 10, 917504, 26, 10, 917504, 25, 10, 917504, 24, 10, 917504, 23, 10, 917504, 22, 10, 917504, 21, 10, 917504, 20, 10, 917504, 9, 10, 917504, 10, 10, 917504, 40, 65535, 1245184, 41, 65535, 1245184, 42, 65535, 1245184, 43, 65535, 1245184, 44, 65535, 1245184, 45, 65535, 1245184, 46, 65535, 1245184, 47, 65535, 1245184, 48, 65535, 1245184, 59, 65535, 1245184, 58, 65535, 1245184, 57, 65535, 1245184, 56, 65535, 1245184, 55, 65535, 1245184, 54, 65535, 1245184, 53, 65535, 1245184, 52, 65535, 1245184, 51, 65535, 1245184, 50, 65535, 1245184, 49, 65535, 1245184, 59, 0, 1245184, 59, 1, 1245184, 59, 2, 1245184, 59, 3, 1245184, 59, 6, 1245184, 59, 7, 1245184, 59, 8, 1245184, 59, 9, 1245184, 59, 10, 1245184, 58, 10, 1245184, 57, 10, 1245184, 56, 10, 1245184, 55, 10, 1245184, 54, 10, 1245184, 53, 10, 1245184, 52, 10, 1245184, 51, 10, 1245184, 50, 10, 1245184, 49, 10, 1245184, 48, 10, 1245184, 47, 10, 1245184, 46, 10, 1245184, 45, 10, 1245184, 44, 10, 1245184, 43, 10, 1245184, 42, 10, 1245184, 41, 10, 1245184, 40, 10, 1245184, 0, 0, 1245184, 0, 1, 1245184, 0, 2, 1245184, 0, 3, 1245184, 0, 6, 1245184, 0, 7, 1245184, 0, 8, 1245184, 0, 9, 1245184, 26, 65535, 1048592, 27, 65535, 1048592, 33, 65535, 1245184, 32, 65535, 1245184, 28, 65535, 1048592, 29, 65535, 1048592, 65565, 65535, 1048592, 131101, 65535, 1048592, 196637, 65535, 1048592)
}
metadata/_editor_floor_ = Vector3(0, 0, 0)
metadata/_editor_floor_ = Vector3(0, 3, 0)

@ -25,6 +25,6 @@ size = Vector3(12.8, 2, 7.2)
mesh_library = ExtResource("2_dx1b7")
cell_size = Vector3(0.64, 0.64, 0.64)
data = {
"cells": PackedInt32Array(19, 7, 0)
"cells": PackedInt32Array(19, 7, 1310736, 9, 10, 1048592, 9, 6, 1048591, 9, 2, 1048591, 10, 2, 655375, 10, 6, 655375, 10, 10, 1048592, 9, 7, 15, 9, 3, 15, 9, 65535, 15, 10, 65535, 1441807, 10, 3, 1441807, 10, 7, 1441807, 10, 8, 393231, 10, 9, 393231, 10, 5, 393231, 10, 4, 393231, 10, 1, 393231, 10, 0, 393231, 9, 0, 786447, 9, 1, 786447, 9, 4, 786447, 9, 5, 786447, 9, 8, 786447, 9, 9, 786447, 11, 10, 1310736, 12, 10, 1310736, 13, 10, 1310736, 14, 10, 1310736, 15, 10, 1310736, 16, 10, 1310736, 17, 10, 1310736, 18, 10, 1310736, 19, 10, 1310736, 19, 9, 1310736, 19, 8, 1310736, 19, 6, 1310736, 19, 5, 1310736, 19, 4, 1310736, 19, 3, 1310736, 19, 2, 1310736, 19, 1, 1310736, 19, 0, 1310736, 19, 65535, 1310736, 18, 65535, 1310736, 17, 65535, 1310736, 16, 65535, 1310736, 15, 65535, 1310736, 14, 65535, 1310736, 13, 65535, 1310736, 12, 65535, 1310736, 11, 65535, 1310736, 8, 65535, 1310736, 7, 65535, 1310736, 6, 65535, 1310736, 5, 65535, 1310736, 4, 65535, 1310736, 3, 65535, 1310736, 2, 65535, 1310736, 1, 65535, 1310736, 0, 65535, 1310736, 0, 0, 1310736, 0, 1, 1310736, 0, 2, 1310736, 0, 3, 1310736, 0, 4, 1310736, 0, 5, 1310736, 0, 6, 1310736, 0, 7, 1310736, 0, 8, 1310736, 0, 9, 1310736, 0, 10, 1310736, 1, 10, 1310736, 2, 10, 1310736, 3, 10, 1310736, 4, 10, 1310736, 5, 10, 1310736, 6, 10, 1310736, 7, 10, 1310736, 8, 10, 1310736, 65547, 10, 1048592, 65548, 10, 1048592, 65549, 10, 1048592, 65550, 10, 1048592, 65551, 10, 1048592, 65552, 10, 1048592, 65553, 10, 1048592, 65555, 8, 1048592, 65555, 7, 1048592, 65555, 6, 1048592, 65555, 10, 1048592, 65554, 10, 1048592, 65555, 9, 1048592, 65555, 5, 1048592, 65555, 4, 1048592, 65555, 3, 1048592, 65555, 2, 1048592, 65555, 1, 1048592, 65555, 0, 1048592, 65555, 65535, 1048592, 65554, 65535, 1048592, 65553, 65535, 1048592, 65552, 65535, 1048592, 65551, 65535, 1048592, 65550, 65535, 1048592, 65549, 65535, 1048592, 65548, 65535, 1048592, 65547, 65535, 1048592, 65544, 65535, 1048592, 65543, 65535, 1048592, 65542, 65535, 1048592, 65541, 65535, 1048592, 65540, 65535, 1048592, 65539, 65535, 1048592, 65538, 65535, 1048592, 65537, 65535, 1048592, 65536, 65535, 1048592, 65536, 0, 1048592, 65536, 1, 1048592, 65536, 2, 1048592, 65536, 3, 1048592, 65536, 4, 1048592, 65536, 5, 1048592, 65536, 6, 1048592, 65536, 7, 1048592, 65536, 8, 1048592, 65536, 9, 1048592, 65536, 10, 1048592, 65537, 10, 1048592, 65538, 10, 1048592, 65539, 10, 1048592, 65540, 10, 1048592, 65541, 10, 1048592, 65542, 10, 1048592, 65543, 10, 1048592, 65544, 10, 1048592, 131083, 65535, 1048592, 131084, 65535, 1048592, 131085, 65535, 1048592, 131086, 65535, 1048592, 131087, 65535, 1048592, 131088, 65535, 1048592, 131089, 65535, 1048592, 131090, 65535, 1048592, 131091, 65535, 1048592, 131080, 65535, 1048592, 131079, 65535, 1048592, 131078, 65535, 1048592, 131077, 65535, 1048592, 131076, 65535, 1048592, 131075, 65535, 1048592, 131074, 65535, 1048592, 131073, 65535, 1048592, 131072, 65535, 1048592, 131084, 0, 1048592)
}
metadata/_editor_floor_ = Vector3(0, 0, 0)
metadata/_editor_floor_ = Vector3(0, 2, 0)

@ -19,7 +19,7 @@ func init(type:Enum.ECharacterType,body_scale:Vector3):
Enum.ECharacterType.Player:rediness = readiness_hero.instantiate()
Enum.ECharacterType.Monster:rediness = readiness_monster.instantiate()
if rediness:
rediness.scale = body_scale *1.5
rediness.scale = body_scale *2.2
rediness.scale.y = 10
rediness.position = Vector3.DOWN * 4
add_child(rediness)

@ -4,7 +4,6 @@ class_name CameraManager
var target:int
var offset:Vector3 = Vector3(0,1,1) * 5
var level_size:Vector2
var camera_limit = Vector2(6.4,3.6)
func _ready():
Global.camera_mgr = self
@ -21,9 +20,10 @@ func on_character_create(id:int,team:Enum.ETeam,pos:Vector3):
target = id
func on_character_pos_changed(id:int,pos:Vector3):
var camera_limit = Vector3(6.4,1.04,3.6) #x,up,z-downd
if id == target:
pos.x = clamp(pos.x,camera_limit.x,level_size.x-camera_limit.x)
pos.z = clamp(pos.z,camera_limit.y * 0.25,level_size.y-camera_limit.y)
pos.z = clamp(pos.z,camera_limit.y,level_size.y-camera_limit.z)
pos.y = 0
position = Util.snap_vector3(pos + offset)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 971 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Loading…
Cancel
Save