grid map/相机位置钳制/pixel perfect配置/参考分辨率制定
parent
752a67622d
commit
0f2aebd967
Binary file not shown.
@ -1,18 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="MagicaVoxel.With.Extensions.To.Mesh"
|
|
||||||
type="Mesh"
|
|
||||||
uid="uid://cap7t5iwpjpi2"
|
|
||||||
path="res://.godot/imported/levelground0000.vox-0f7ad0ea1b84e847bee0fa9cfb6f526b.mesh"
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://resource/level/levelground0000.vox"
|
|
||||||
dest_files=["res://.godot/imported/levelground0000.vox-0f7ad0ea1b84e847bee0fa9cfb6f526b.mesh"]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
Scale=0.1
|
|
||||||
GreedyMeshGenerator=true
|
|
||||||
SnapToGround=false
|
|
||||||
FirstKeyframeOnly=true
|
|
||||||
Binary file not shown.
@ -0,0 +1,18 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="MagicaVoxel.With.Extensions.To.Mesh"
|
||||||
|
type="Mesh"
|
||||||
|
uid="uid://caii2ypk4lb1k"
|
||||||
|
path="res://.godot/imported/block_center.vox-174afe624f8f28740a980e749fa5cb81.mesh"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resource/mesh_level/block_center.vox"
|
||||||
|
dest_files=["res://.godot/imported/block_center.vox-174afe624f8f28740a980e749fa5cb81.mesh"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
Scale=0.02
|
||||||
|
GreedyMeshGenerator=true
|
||||||
|
SnapToGround=false
|
||||||
|
FirstKeyframeOnly=true
|
||||||
Binary file not shown.
@ -0,0 +1,18 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="MagicaVoxel.With.Extensions.To.Mesh"
|
||||||
|
type="Mesh"
|
||||||
|
uid="uid://c6g1c31dd86yp"
|
||||||
|
path="res://.godot/imported/block_corner.vox-f69c0349b9af8b9ce9744df0e32de2d4.mesh"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resource/mesh_level/block_corner.vox"
|
||||||
|
dest_files=["res://.godot/imported/block_corner.vox-f69c0349b9af8b9ce9744df0e32de2d4.mesh"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
Scale=0.02
|
||||||
|
GreedyMeshGenerator=true
|
||||||
|
SnapToGround=false
|
||||||
|
FirstKeyframeOnly=true
|
||||||
Binary file not shown.
@ -0,0 +1,18 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="MagicaVoxel.With.Extensions.To.Mesh"
|
||||||
|
type="Mesh"
|
||||||
|
uid="uid://d1awgblbh4vmq"
|
||||||
|
path="res://.godot/imported/block_edge.vox-0697c9a463d7f84082eb6b2aa243a538.mesh"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resource/mesh_level/block_edge.vox"
|
||||||
|
dest_files=["res://.godot/imported/block_edge.vox-0697c9a463d7f84082eb6b2aa243a538.mesh"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
Scale=0.02
|
||||||
|
GreedyMeshGenerator=true
|
||||||
|
SnapToGround=false
|
||||||
|
FirstKeyframeOnly=false
|
||||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,16 @@
|
|||||||
|
[gd_scene load_steps=4 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://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"]
|
||||||
|
|
||||||
|
[node name="MeshLibrary" type="Node3D"]
|
||||||
|
|
||||||
|
[node name="BlockCenter" type="MeshInstance3D" parent="."]
|
||||||
|
mesh = ExtResource("1_8nl8s")
|
||||||
|
|
||||||
|
[node name="BlockCorner" type="MeshInstance3D" parent="."]
|
||||||
|
mesh = ExtResource("2_870el")
|
||||||
|
|
||||||
|
[node name="BlockEdge" type="MeshInstance3D" parent="."]
|
||||||
|
mesh = ExtResource("3_0q8sx")
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
[gd_scene load_steps=3 format=3 uid="uid://viwd61u8u8h0"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://addons/MetroidvaniaSystem/Scripts/RoomInstance.gd" id="1_nundc"]
|
||||||
|
[ext_resource type="MeshLibrary" uid="uid://bbya6804fmu42" path="res://resource/mesh_library/default.tres" id="2_qqvc4"]
|
||||||
|
|
||||||
|
[node name="Level" type="Node3D"]
|
||||||
|
|
||||||
|
[node name="RoomInstance" type="Node3D" parent="."]
|
||||||
|
script = ExtResource("1_nundc")
|
||||||
|
|
||||||
|
[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, 3.6)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(12.8, 2, 7.2)
|
||||||
|
|
||||||
|
[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_qqvc4")
|
||||||
|
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, 18, 10, 0, 17, 10, 0, 16, 10, 0, 0, 2, 655362, 0, 3, 655362, 0, 9, 655362, 0, 5, 655362, 0, 4, 655362, 15, 10, 0, 14, 10, 0, 13, 10, 0, 12, 10, 0, 11, 10, 0, 8, 10, 0, 7, 10, 0, 6, 10, 0, 5, 10, 0, 4, 10, 0, 3, 10, 0, 2, 10, 0, 1, 10, 0, 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)
|
||||||
|
}
|
||||||
|
metadata/_editor_floor_ = Vector3(0, 0, 0)
|
||||||
@ -1,20 +0,0 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://dmaphmg5c2frs"]
|
|
||||||
|
|
||||||
[ext_resource type="ArrayMesh" uid="uid://cap7t5iwpjpi2" path="res://resource/level/levelground0000.vox" id="1_4p4uf"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://do7abukgd54js" path="res://addons/MetroidvaniaSystem/Nodes/RoomInstance.tscn" id="1_vsrgt"]
|
|
||||||
|
|
||||||
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_5umlp"]
|
|
||||||
data = PackedVector3Array(-6.4, 0, -6.4, -3.2, 0, -6.4, -3.2, 0, 6.4, -3.2, 0, 6.4, -6.4, 0, 6.4, -6.4, 0, -6.4, -3.2, 0, 3.2, 6.4, 0, 3.2, 6.4, 0, 6.4, 6.4, 0, 6.4, -3.2, 0, 6.4, -3.2, 0, 3.2, -3.2, 0, -3.2, 3.2, 0, -3.2, 3.2, 0, 3.2, 3.2, 0, 3.2, -3.2, 0, 3.2, -3.2, 0, -3.2, -3.2, 0, -6.4, 6.4, 0, -6.4, 6.4, 0, -3.2, 6.4, 0, -3.2, -3.2, 0, -3.2, -3.2, 0, -6.4, 3.2, 0, -3.2, 6.4, 0, -3.2, 6.4, 0, 3.2, 6.4, 0, 3.2, 3.2, 0, 3.2, 3.2, 0, -3.2, -3.2, -0.1, 6.4, -3.2, -0.1, -6.4, -6.4, -0.1, -6.4, -6.4, -0.1, -6.4, -6.4, -0.1, 6.4, -3.2, -0.1, 6.4, 6.4, -0.1, 6.4, 6.4, -0.1, 3.2, -3.2, -0.1, 3.2, -3.2, -0.1, 3.2, -3.2, -0.1, 6.4, 6.4, -0.1, 6.4, 3.2, -0.1, 3.2, 3.2, -0.1, -3.2, -3.2, -0.1, -3.2, -3.2, -0.1, -3.2, -3.2, -0.1, 3.2, 3.2, -0.1, 3.2, 6.4, -0.1, -3.2, 6.4, -0.1, -6.4, -3.2, -0.1, -6.4, -3.2, -0.1, -6.4, -3.2, -0.1, -3.2, 6.4, -0.1, -3.2, 6.4, -0.1, 3.2, 6.4, -0.1, -3.2, 3.2, -0.1, -3.2, 3.2, -0.1, -3.2, 3.2, -0.1, 3.2, 6.4, -0.1, 3.2, -6.4, 0, -6.4, -6.4, 0, 6.4, -6.4, -0.1, 6.4, -6.4, -0.1, 6.4, -6.4, -0.1, -6.4, -6.4, 0, -6.4, 6.4, 0, -6.4, 6.4, -0.1, -6.4, 6.4, -0.1, 6.4, 6.4, -0.1, 6.4, 6.4, 0, 6.4, 6.4, 0, -6.4, -6.4, -0.1, 6.4, -6.4, 0, 6.4, 6.4, 0, 6.4, 6.4, 0, 6.4, 6.4, -0.1, 6.4, -6.4, -0.1, 6.4, 6.4, 0, -6.4, -6.4, 0, -6.4, -6.4, -0.1, -6.4, -6.4, -0.1, -6.4, 6.4, -0.1, -6.4, 6.4, 0, -6.4)
|
|
||||||
|
|
||||||
[node name="Levelground0000" type="Node3D"]
|
|
||||||
|
|
||||||
[node name="Levelground0000" type="MeshInstance3D" parent="."]
|
|
||||||
mesh = ExtResource("1_4p4uf")
|
|
||||||
skeleton = NodePath("../../..")
|
|
||||||
|
|
||||||
[node name="StaticBody3D" type="StaticBody3D" parent="Levelground0000"]
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Levelground0000/StaticBody3D"]
|
|
||||||
shape = SubResource("ConcavePolygonShape3D_5umlp")
|
|
||||||
|
|
||||||
[node name="RoomInstance" parent="." instance=ExtResource("1_vsrgt")]
|
|
||||||
@ -1,11 +1,10 @@
|
|||||||
extends Node3D
|
extends Node3D
|
||||||
|
|
||||||
@onready var character_manager = (%CharacterManager as CharacterManager)
|
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
MetSys.set_save_data()
|
MetSys.set_save_data()
|
||||||
character_manager.create_character(ResourceManager.cfg_character_player,Enum.ETeam.Player,Vector3(0,1,0))
|
Global.level_mgr.init()
|
||||||
character_manager.create_character(ResourceManager.cfg_character_monster_test,Enum.ETeam.Monster,Vector3(0.5,1,0))
|
Global.character_mgr.create_character(ResourceManager.cfg_character_player,Enum.ETeam.Player,Vector3(5,0,5))
|
||||||
|
Global.character_mgr.create_character(ResourceManager.cfg_character_monster_test,Enum.ETeam.Monster,Vector3(5.5,0,5))
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
Reference in New Issue