diff --git a/DungeonShooting_Godot/resource/map/dungeon_test.tmx b/DungeonShooting_Godot/resource/map/dungeon_test.tmx
index 8d2cbc4..79128e0 100644
--- a/DungeonShooting_Godot/resource/map/dungeon_test.tmx
+++ b/DungeonShooting_Godot/resource/map/dungeon_test.tmx
@@ -13,10 +13,10 @@
51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
+51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,34,35,35,36,129,129,129,129,129,129,129,129,50,51,51,
+51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,98,99,14,44,35,35,36,129,129,129,129,129,50,51,51,
+51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,117,119,98,99,99,99,100,129,129,129,129,129,50,51,51,
+51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,18,19,19,19,20,129,129,129,129,129,50,51,51,
51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
51,51,44,35,35,35,35,35,35,35,35,35,35,36,129,129,34,35,46,51,44,35,36,129,129,34,35,35,35,35,35,35,35,35,35,35,35,46,51,51,
@@ -33,14 +33,14 @@
51,51,52,19,19,20,129,129,117,118,118,118,118,118,118,118,118,119,50,51,52,19,19,19,19,19,19,19,19,19,19,20,129,129,18,19,19,50,51,51,
51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,98,99,100,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,18,19,20,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,34,35,36,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
-51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
+51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,34,35,35,35,35,35,35,36,129,129,129,129,129,129,50,51,51,
+51,51,52,129,129,129,129,129,129,34,35,35,35,36,129,129,129,129,50,51,52,129,129,50,12,99,99,99,99,14,52,129,129,129,129,129,129,50,51,51,
+51,51,52,129,129,129,129,129,129,50,12,99,99,100,129,129,129,129,98,99,100,129,129,50,52,118,119,119,120,50,52,129,129,129,129,129,129,50,51,51,
+51,51,52,129,129,129,129,34,35,46,52,121,122,123,129,129,129,129,18,19,20,129,129,50,52,129,129,129,129,50,52,129,129,129,129,129,129,50,51,51,
+51,51,52,129,129,129,129,50,12,99,100,129,129,129,129,129,129,129,129,129,129,129,129,50,52,129,129,129,129,50,52,129,129,129,129,129,129,50,51,51,
+51,51,52,129,129,34,35,46,52,121,123,129,129,129,129,129,129,129,129,129,129,129,129,50,44,35,35,35,35,46,52,129,129,129,129,129,129,50,51,51,
+51,51,52,129,129,98,99,99,100,129,129,129,129,129,129,129,129,129,34,35,36,129,129,98,99,99,99,99,99,99,100,129,129,129,129,129,129,50,51,51,
+51,51,52,129,129,18,19,19,20,129,129,129,129,129,129,129,129,129,50,51,52,129,129,18,19,19,19,19,19,19,20,129,129,129,129,129,129,50,51,51,
51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
51,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,52,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,50,51,51,
51,51,44,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,46,51,44,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,46,51,51,
diff --git a/DungeonShooting_Godot/scene/Room.tscn b/DungeonShooting_Godot/scene/Room.tscn
index 815aea1..02b6ea7 100644
--- a/DungeonShooting_Godot/scene/Room.tscn
+++ b/DungeonShooting_Godot/scene/Room.tscn
@@ -5,9 +5,9 @@
[ext_resource path="res://src/game/camera/GameCamera.cs" type="Script" id=5]
[sub_resource type="NavigationPolygon" id=2]
-vertices = PoolVector2Array( 387, 266, 587, 263, 586, 345, 531, 345, 531, 412, 588, 411, 587, 588, 342, 588, 525, 412, 343, 520, 344, 508, 283, 508, 284, 520, 284, 588, 53, 589, 53, 411, 108, 412, 115, 413, 55, 71, 283, 69, 282, 201, 244, 202, 236, 202, 381, 203, 342, 203, 341, 67, 588, 68, 587, 201, 387, 203, 380, 266, 524, 345, 114, 348, 244, 266, 109, 348, 53, 347, 53, 267, 236, 266, 56, 202, 345, 412, 280, 412 )
-polygons = [ PoolIntArray( 0, 1, 2, 3 ), PoolIntArray( 4, 5, 6, 7 ), PoolIntArray( 8, 4, 7, 9, 10 ), PoolIntArray( 11, 12, 13, 14, 15, 16, 17 ), PoolIntArray( 18, 19, 20, 21, 22 ), PoolIntArray( 23, 24, 25, 26, 27 ), PoolIntArray( 23, 27, 28 ), PoolIntArray( 23, 28, 0, 29 ), PoolIntArray( 3, 4, 8, 30 ), PoolIntArray( 0, 3, 30 ), PoolIntArray( 0, 30, 31, 29 ), PoolIntArray( 32, 29, 31 ), PoolIntArray( 31, 33, 34, 35, 36, 32 ), PoolIntArray( 22, 37, 18 ), PoolIntArray( 22, 21, 32, 36 ), PoolIntArray( 10, 38, 8 ), PoolIntArray( 11, 10, 9, 12 ), PoolIntArray( 33, 31, 17, 16 ), PoolIntArray( 11, 17, 39 ) ]
-outlines = [ PoolVector2Array( 55, 71, 56, 202, 236, 202, 236, 266, 53, 267, 53, 347, 109, 348, 108, 412, 53, 411, 53, 589, 284, 588, 284, 520, 343, 520, 342, 588, 587, 588, 588, 411, 531, 412, 531, 345, 586, 345, 587, 263, 387, 266, 387, 203, 587, 201, 588, 68, 341, 67, 342, 203, 381, 203, 380, 266, 244, 266, 244, 202, 282, 201, 283, 69 ), PoolVector2Array( 114, 348, 115, 413, 280, 412, 283, 508, 344, 508, 345, 412, 525, 412, 524, 345 ) ]
+vertices = PoolVector2Array( 531, 412, 588, 411, 587, 588, 342, 588, 525, 412, 343, 520, 344, 508, 393, 265, 587, 263, 586, 345, 531, 345, 343, 201, 341, 67, 588, 68, 376, 201, 283, 508, 284, 520, 284, 588, 53, 589, 53, 411, 108, 412, 115, 413, 55, 71, 283, 69, 282, 200, 249, 200, 56, 199, 232, 200, 109, 348, 53, 347, 55, 264, 232, 265, 114, 348, 249, 265, 524, 345, 376, 265, 587, 201, 393, 201, 345, 412, 280, 412 )
+polygons = [ PoolIntArray( 0, 1, 2, 3 ), PoolIntArray( 4, 0, 3, 5, 6 ), PoolIntArray( 7, 8, 9, 10 ), PoolIntArray( 11, 12, 13, 14 ), PoolIntArray( 15, 16, 17, 18, 19, 20, 21 ), PoolIntArray( 22, 23, 24, 25, 26 ), PoolIntArray( 27, 26, 25 ), PoolIntArray( 28, 29, 30, 31, 32 ), PoolIntArray( 27, 25, 33, 31 ), PoolIntArray( 10, 0, 4, 34 ), PoolIntArray( 7, 10, 34 ), PoolIntArray( 7, 34, 32, 35 ), PoolIntArray( 13, 36, 37 ), PoolIntArray( 14, 13, 37 ), PoolIntArray( 35, 14, 37, 7 ), PoolIntArray( 33, 35, 32 ), PoolIntArray( 31, 33, 32 ), PoolIntArray( 6, 38, 4 ), PoolIntArray( 15, 6, 5, 16 ), PoolIntArray( 28, 32, 21, 20 ), PoolIntArray( 15, 21, 39 ) ]
+outlines = [ PoolVector2Array( 55, 71, 56, 199, 232, 200, 232, 265, 55, 264, 53, 347, 109, 348, 108, 412, 53, 411, 53, 589, 284, 588, 284, 520, 343, 520, 342, 588, 587, 588, 588, 411, 531, 412, 531, 345, 586, 345, 587, 263, 393, 265, 393, 201, 587, 201, 588, 68, 341, 67, 343, 201, 376, 201, 376, 265, 249, 265, 249, 200, 282, 200, 283, 69 ), PoolVector2Array( 114, 348, 115, 413, 280, 412, 283, 508, 344, 508, 345, 412, 525, 412, 524, 345 ) ]
[sub_resource type="Environment" id=1]
background_mode = 4
diff --git a/DungeonShooting_Godot/src/game/room/NavigationPolygonData.cs b/DungeonShooting_Godot/src/game/room/NavigationPolygonData.cs
index c6c9085..2e8c970 100644
--- a/DungeonShooting_Godot/src/game/room/NavigationPolygonData.cs
+++ b/DungeonShooting_Godot/src/game/room/NavigationPolygonData.cs
@@ -14,8 +14,17 @@
In,
}
+///
+/// 描述导航多边形数据
+///
public class NavigationPolygonData
{
+ ///
+ /// 导航轮廓类型
+ ///
public NavigationPolygonType Type;
+ ///
+ /// 多边形的顶点
+ ///
public List Points = new List();
}
\ No newline at end of file
diff --git a/DungeonShooting_Godot/src/game/room/RoomManager.cs b/DungeonShooting_Godot/src/game/room/RoomManager.cs
index 3ac02c3..1842ced 100644
--- a/DungeonShooting_Godot/src/game/room/RoomManager.cs
+++ b/DungeonShooting_Godot/src/game/room/RoomManager.cs
@@ -61,7 +61,9 @@
public override void _Ready()
{
+ var nowTicks = DateTime.Now.Ticks;
GenerateNavigationPolygon();
+ GD.Print("useTime: " + (DateTime.Now.Ticks - nowTicks) / 10000 + "毫秒");
//播放bgm
SoundManager.PlayMusic(ResourcePath.resource_sound_bgm_Intro_ogg, -17f);