diff --git a/MrBigsock/Assets/Code/InteractionSystem/Door.cs b/MrBigsock/Assets/Code/InteractionSystem/Door.cs index caa1b80e84403c5323240ac951b47d1515e6ab15..d90a8a7f49ba39a438a01294923b878ba024ba07 100644 --- a/MrBigsock/Assets/Code/InteractionSystem/Door.cs +++ b/MrBigsock/Assets/Code/InteractionSystem/Door.cs @@ -11,14 +11,15 @@ namespace BigSock.Interact { public Sprite newSprite; private GameObject[] enemies; private GameObject player; - private GameObject cameraPlayer; - private int i = TilemapGenerator.NextRoom(); - private GameObject boundary; + private GameObject cameraPlayer; + private int i = TilemapGenerator.NextRoom(); + private GameObject boundary; - public string InteractionPrompt => _prompt; + public string InteractionPrompt => _prompt; - public bool Interact(Interactor interactor) { - enemies = GameObject.FindGameObjectsWithTag((i - 1).ToString()); + public bool Interact(Interactor interactor) { + if(i > 0)enemies = GameObject.FindGameObjectsWithTag((i - 1).ToString()); + else if (i > 0) enemies = GameObject.FindGameObjectsWithTag((0).ToString()); if (enemies.Length == 0) { Debug.Log("Opening door!"); diff --git a/MrBigsock/Assets/Code/Map/Data/NeigbourParameters_BossRoom.asset b/MrBigsock/Assets/Code/Map/Data/NeigbourParameters_BossRoom.asset new file mode 100644 index 0000000000000000000000000000000000000000..503c5feb1cdb75de9e9d8a5780f9488a432b1089 --- /dev/null +++ b/MrBigsock/Assets/Code/Map/Data/NeigbourParameters_BossRoom.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fbfb0de6beb24664cbb2d7f616b15910, type: 3} + m_Name: NeigbourParameters_BossRoom + m_EditorClassIdentifier: + width: 0 + height: 0 + smoothCount: 0 + empty: 0 + edgesAreWalls: 0 diff --git a/MrBigsock/Assets/Code/Map/Data/NeigbourParameters_BossRoom.asset.meta b/MrBigsock/Assets/Code/Map/Data/NeigbourParameters_BossRoom.asset.meta new file mode 100644 index 0000000000000000000000000000000000000000..ee83f0066c7078db607d9032f9d2a662e0625145 --- /dev/null +++ b/MrBigsock/Assets/Code/Map/Data/NeigbourParameters_BossRoom.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 87913f8d01ddbaf49bcf053d9da111b9 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/MrBigsock/Assets/Code/Map/NeighbourMapGenerator.cs b/MrBigsock/Assets/Code/Map/NeighbourMapGenerator.cs index e70145b59c504735098b31e59fe0f5b744280c82..23e3a32c8bd96c71868207094619988c0d4e8a7e 100644 --- a/MrBigsock/Assets/Code/Map/NeighbourMapGenerator.cs +++ b/MrBigsock/Assets/Code/Map/NeighbourMapGenerator.cs @@ -8,20 +8,26 @@ namespace Bigsock { [SerializeField] protected NeigbourSO[] mapParam; + [SerializeField] NeigbourSO BossRoom; private static List<int[,]> roomList = new List<int[,]>(); public override void RunProceduralGeneration() { - + for (int i = 0; i <= RoomCount - 1; i++) { int randomMap = Random.Range(0, mapParam.Length); int[,] map = tilemapGenerator.GenerateArray(mapParam[randomMap].width, mapParam[randomMap].height, mapParam[randomMap].empty); roomList.Add(map); - tilemapGenerator.RenderMap(roomList[i],i); + tilemapGenerator.RenderMap(roomList[i],i, false); tilemapGenerator.SpawnEnemies(map, 4 + i, i); + } + int[,] bossMap = tilemapGenerator.GenerateArray(BossRoom.width, BossRoom.height, BossRoom.empty); + roomList.Add(bossMap); + tilemapGenerator.RenderMap(roomList[roomList.Count - 1],roomList.Count - 1, true); + tilemapGenerator.SpawnBoss(bossMap, roomList.Count - 1); tilemapGenerator.polyCollider(roomList[0], 0); } @@ -30,5 +36,10 @@ namespace Bigsock { return roomList[i]; } + + public static int GetRoomListCount() + { + return roomList.Count; + } } } \ No newline at end of file diff --git a/MrBigsock/Assets/Code/Map/TilemapGenerator.cs b/MrBigsock/Assets/Code/Map/TilemapGenerator.cs index 7d8d53e076629d603b3ddd5322fe82d3b5ae1d87..a5dd3007e8f0d8bda403ea8f0ce5cf6aeba3370b 100644 --- a/MrBigsock/Assets/Code/Map/TilemapGenerator.cs +++ b/MrBigsock/Assets/Code/Map/TilemapGenerator.cs @@ -14,13 +14,16 @@ namespace Bigsock [SerializeField] PolygonCollider2D polygonCollider; [SerializeField] GameObject Door; [SerializeField] GameObject[] Enemy; + [SerializeField] GameObject Boss; private int z_value = 0; - private static int i = 0; + private static int roomID = 0; static List<Vector3Int> DoorLocations = new List<Vector3Int>(); //static List<Vector2> MapBoudary = new List<Vector2>(); static List<List<Vector2>> MapBoundaryList = new List<List<Vector2>>(); + /* + Makes an array with numbers, where each number decides what type of tile will be on what spot on the floor*/ public int[,] GenerateArray(int width, int height, bool empty) { int[,] map = new int[width, height]; @@ -40,11 +43,11 @@ namespace Bigsock return map; } - public void RenderMap(int[,] map, int roomNr) + public void RenderMap(int[,] map, int roomNr, bool LastRoom) { int doorLocation = Random.Range(0, map.GetUpperBound(0) - 4); //int doorLocation = Random.Range(0, 1); - bool door = false; + bool doorInRoom = false; int doorTop = Random.Range(0, 2); // 0 = bottom, 1 = top int topWallVariable; @@ -116,10 +119,9 @@ namespace Bigsock } else WallTop[roomNr].SetTile(new Vector3Int(x, map.GetUpperBound(1), z_value), tileSetSO.wallTopTile[1]); //Middle part of top wall - - + int fast = 0; //Check for where the door will be located : when there is no door - if (x == doorLocation && !door) + if (x == doorLocation && !doorInRoom && !LastRoom) { bool doorPlaced = false; for (int x1 = 0; x1 < 4; x1++) @@ -184,13 +186,23 @@ namespace Bigsock WallBottom[roomNr].SetTile(new Vector3Int(x + x1, map.GetLowerBound(0) - 1, z_value), tileSetSO.wallBottomTile[1]); } } - door = true; + fast++; + doorInRoom = true; x += 3; //Jump x over the door location } + else if(fast == 0 && LastRoom) + { + DoorLocations.Add(new Vector3Int((int)WallTop[roomNr].transform.position.x + x + 2, + (int)WallTop[roomNr].transform.position.y, z_value)); + fast++; + } } SetMapBoundary(map, roomNr); } + + /* + Gives out the corner points of the room to know how to set the boundries in the world */ public void SetMapBoundary(int[,] map, int roomNr) { List<Vector2> MapBoudary = new List<Vector2>(); @@ -205,16 +217,29 @@ namespace Bigsock MapBoundaryList.Add(MapBoudary); } + /* + Returns the spesific MapBoundry from a list*/ public static List<Vector2> GetRoomBoundary(int i) { return MapBoundaryList[i]; } + /* + Returns the ID of the next room*/ public static int NextRoom() { - return i++; + return roomID++; } + /* + Returns the ID of the previous room*/ + public static int LastRoom() + { + return roomID--; + } + + /* + Spawns enemies inside the boundry of a spesific room by giving it the space the floor ocopay*/ public void SpawnEnemies(int[,] map, int enemies, int roomNr) { foreach (var item in Enemy) @@ -227,12 +252,20 @@ namespace Bigsock { int enemyRandom = Random.Range(0, Enemy.Length); int randomLocation_x = Random.Range(1, map.GetUpperBound(0) - 1); - int randomLocation_y = Random.Range(1, map.GetUpperBound(1) - 1); + int randomLocation_y = Random.Range(map.GetLowerBound(1) + 2, map.GetUpperBound(1) - 1); Instantiate(Enemy[enemyRandom], new Vector3Int((int)FloorTilemap[roomNr].transform.position.x + randomLocation_x, (int)FloorTilemap[roomNr].transform.position.y + randomLocation_y, 0), Quaternion.identity); } } + public void SpawnBoss(int[,] bossRoom, int roomNr) + { + Instantiate(Boss, new Vector3Int((int)FloorTilemap[roomNr].transform.position.x + bossRoom.GetUpperBound(0)/2, + (int)FloorTilemap[roomNr].transform.position.y + bossRoom.GetUpperBound(1) / 2, 0), Quaternion.identity); + } + + /* + Sets new points for where the polygon collider for a room is goint to be set*/ public void polyCollider(int[,] map, int roomNr) { polygonCollider.pathCount = 1; @@ -256,6 +289,8 @@ namespace Bigsock return new Vector3Int(DoorLocations[door].x + 1, DoorLocations[door].y + 3, DoorLocations[door].z); } + /* + Changes the wall on the top of the map to a different tile*/ private void ChangeTopTile(int[,] map, int x, int y, int roomNr) { WallTop[roomNr].SetTile(new Vector3Int(x, y, z_value), null); diff --git a/MrBigsock/Assets/Scenes/GenTilemap.unity b/MrBigsock/Assets/Scenes/GenTilemap.unity index 67eee0ba4cefcf2288fbddf414b4f614a92fe2b1..9bd139327b85440460b15cab721f3a1c2dd59040 100644 --- a/MrBigsock/Assets/Scenes/GenTilemap.unity +++ b/MrBigsock/Assets/Scenes/GenTilemap.unity @@ -76242,6 +76242,7 @@ MonoBehaviour: mapParam: - {fileID: 11400000, guid: 6aa6677fdfa93b44bb16121d4fb2fed9, type: 2} - {fileID: 11400000, guid: c4633c3df2ba0da479dcc9db397ba8e9, type: 2} + BossRoom: {fileID: 11400000, guid: c4633c3df2ba0da479dcc9db397ba8e9, type: 2} --- !u!4 &730662525 Transform: m_ObjectHideFlags: 0 @@ -76277,6 +76278,174 @@ Tilemap: m_CorrespondingSourceObject: {fileID: 8298925029280369994, guid: 9ad55898a5aa5e340ba56d310f32f741, type: 3} m_PrefabInstance: {fileID: 1698585129} m_PrefabAsset: {fileID: 0} +--- !u!1 &866945742 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 866945743} + - component: {fileID: 866945745} + - component: {fileID: 866945744} + m_Layer: 0 + m_Name: WallTop + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &866945743 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 866945742} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 23, y: 15, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1823803728} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!483693784 &866945744 +TilemapRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 866945742} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 0 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_ChunkSize: {x: 32, y: 32, z: 32} + m_ChunkCullingBounds: {x: 0, y: 0, z: 0} + m_MaxChunkCount: 16 + m_MaxFrameAge: 16 + m_SortOrder: 0 + m_Mode: 0 + m_DetectChunkCullingBounds: 0 + m_MaskInteraction: 0 +--- !u!1839735485 &866945745 +Tilemap: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 866945742} + m_Enabled: 1 + m_Tiles: {} + m_AnimatedTiles: {} + m_TileAssetArray: + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + m_TileSpriteArray: + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + m_TileMatrixArray: + - m_RefCount: 0 + m_Data: + e00: -1.7316989e+27 + e01: 0 + e02: -5.7500076 + e03: -5.7500076 + e10: 7.8e-43 + e11: 0 + e12: 7.8e-43 + e13: 7.8e-43 + e20: -0.22138834 + e21: 1e-45 + e22: 7.9291093e-19 + e23: 2.9967384 + e30: 4.5905e-41 + e31: 0 + e32: 7.82e-43 + e33: 7.85e-43 + m_TileColorArray: + - m_RefCount: 0 + m_Data: {r: 3.858e-41, g: 3.858e-41, b: 3.858e-41, a: 3.858e-41} + m_TileObjectToInstantiateArray: [] + m_AnimationFrameRate: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Origin: {x: -18, y: -2, z: 0} + m_Size: {x: 48, y: 14, z: 1} + m_TileAnchor: {x: 0.5, y: 0.5, z: 0} + m_TileOrientation: 0 + m_TileOrientationMatrix: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 --- !u!1839735485 &871285029 stripped Tilemap: m_CorrespondingSourceObject: {fileID: 8298925029036549884, guid: 9ad55898a5aa5e340ba56d310f32f741, type: 3} @@ -82840,6 +83009,7 @@ MonoBehaviour: - {fileID: 390082423} - {fileID: 528511424} - {fileID: 755272573} + - {fileID: 2006387343} WallBottom: - {fileID: 2062562609} - {fileID: 1723533959} @@ -82847,6 +83017,7 @@ MonoBehaviour: - {fileID: 189901374} - {fileID: 383153994} - {fileID: 782896374} + - {fileID: 2071785561} WallTop: - {fileID: 243683812} - {fileID: 1077349009} @@ -82854,6 +83025,7 @@ MonoBehaviour: - {fileID: 781747436} - {fileID: 1759853368} - {fileID: 2110004376} + - {fileID: 866945745} WallSide: - {fileID: 390939283} - {fileID: 1772948683} @@ -82861,6 +83033,7 @@ MonoBehaviour: - {fileID: 1868906156} - {fileID: 890806720} - {fileID: 1792957263} + - {fileID: 1576245753} tileSetSO: {fileID: 11400000, guid: 575173cd6a316be4a841f4318029d01d, type: 2} polygonCollider: {fileID: 498579221} Door: {fileID: 3927126222752442302, guid: e2f80767fa7906a4cabb85c3d953f245, type: 3} @@ -82868,6 +83041,7 @@ MonoBehaviour: - {fileID: 2996495149472241661, guid: 92dcf0500ca688742ba5c0f4f51ac314, type: 3} - {fileID: 2996495149472241661, guid: f256acc71054c194a819c82677b399a7, type: 3} - {fileID: 2996495149472241661, guid: 0c78162db0e5ea443a58406283e89a8e, type: 3} + Boss: {fileID: 4349609284953701266, guid: 11ac40832f040ae40b407577564319a7, type: 3} --- !u!4 &1223302859 Transform: m_ObjectHideFlags: 0 @@ -82904,6 +83078,158 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 2d7f19087286e834f816cbf2da1d1aba, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!1 &1576245750 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1576245751} + - component: {fileID: 1576245753} + - component: {fileID: 1576245752} + m_Layer: 0 + m_Name: WallSides + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1576245751 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1576245750} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 23, y: 15, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1823803728} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!483693784 &1576245752 +TilemapRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1576245750} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 0 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 1 + m_ChunkSize: {x: 32, y: 32, z: 32} + m_ChunkCullingBounds: {x: 0, y: 0, z: 0} + m_MaxChunkCount: 16 + m_MaxFrameAge: 16 + m_SortOrder: 0 + m_Mode: 0 + m_DetectChunkCullingBounds: 0 + m_MaskInteraction: 0 +--- !u!1839735485 &1576245753 +Tilemap: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1576245750} + m_Enabled: 1 + m_Tiles: {} + m_AnimatedTiles: {} + m_TileAssetArray: + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + m_TileSpriteArray: + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + m_TileMatrixArray: + - m_RefCount: 0 + m_Data: + e00: -1.7316705e+27 + e01: 0 + e02: -5.7500076 + e03: -5.7500076 + e10: 7.8e-43 + e11: 0 + e12: 7.8e-43 + e13: 7.8e-43 + e20: -0.22138834 + e21: 1e-45 + e22: 7.938771e-19 + e23: 2.9779396 + e30: 4.5905e-41 + e31: 0 + e32: 7.82e-43 + e33: 7.85e-43 + m_TileColorArray: + - m_RefCount: 0 + m_Data: {r: 3.867e-41, g: 3.867e-41, b: 3.867e-41, a: 3.867e-41} + m_TileObjectToInstantiateArray: [] + m_AnimationFrameRate: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Origin: {x: -18, y: -23, z: 0} + m_Size: {x: 48, y: 34, z: 1} + m_TileAnchor: {x: 0.5, y: 0.5, z: 0} + m_TileOrientation: 0 + m_TileOrientationMatrix: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 --- !u!1001 &1698585129 PrefabInstance: m_ObjectHideFlags: 0 @@ -120802,6 +121128,54 @@ Tilemap: m_CorrespondingSourceObject: {fileID: 8298925029036549884, guid: 9ad55898a5aa5e340ba56d310f32f741, type: 3} m_PrefabInstance: {fileID: 8298925029637945467} m_PrefabAsset: {fileID: 0} +--- !u!1 &1823803726 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1823803728} + - component: {fileID: 1823803727} + m_Layer: 0 + m_Name: BossRoom + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!156049354 &1823803727 +Grid: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1823803726} + m_Enabled: 1 + m_CellSize: {x: 1, y: 1, z: 0} + m_CellGap: {x: 0, y: 0, z: 0} + m_CellLayout: 0 + m_CellSwizzle: 0 +--- !u!4 &1823803728 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1823803726} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -59.4, y: -66.7, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2006387341} + - {fileID: 866945743} + - {fileID: 2071785559} + - {fileID: 1576245751} + m_Father: {fileID: 0} + m_RootOrder: 14 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1839735485 &1868906156 stripped Tilemap: m_CorrespondingSourceObject: {fileID: 8298925029994248936, guid: 9ad55898a5aa5e340ba56d310f32f741, type: 3} @@ -120875,11 +121249,315 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &2006387340 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2006387341} + - component: {fileID: 2006387343} + - component: {fileID: 2006387342} + m_Layer: 0 + m_Name: Floor + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2006387341 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2006387340} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 23, y: 15, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1823803728} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!483693784 &2006387342 +TilemapRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2006387340} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 0 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: -1 + m_ChunkSize: {x: 32, y: 32, z: 32} + m_ChunkCullingBounds: {x: 0, y: 0, z: 0} + m_MaxChunkCount: 16 + m_MaxFrameAge: 16 + m_SortOrder: 0 + m_Mode: 0 + m_DetectChunkCullingBounds: 0 + m_MaskInteraction: 0 +--- !u!1839735485 &2006387343 +Tilemap: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2006387340} + m_Enabled: 1 + m_Tiles: {} + m_AnimatedTiles: {} + m_TileAssetArray: + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + m_TileSpriteArray: + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + m_TileMatrixArray: + - m_RefCount: 0 + m_Data: + e00: 0 + e01: 0 + e02: -5.7500076 + e03: -5.7500076 + e10: 0 + e11: 0 + e12: 7.8e-43 + e13: 7.8e-43 + e20: -0.22138834 + e21: 1e-45 + e22: 2.0106e-19 + e23: 2.9765472 + e30: 4.5905e-41 + e31: 0 + e32: 7.82e-43 + e33: 7.85e-43 + m_TileColorArray: + - m_RefCount: 0 + m_Data: {r: 3.8522e-41, g: 3.8522e-41, b: 3.8522e-41, a: 3.8522e-41} + m_TileObjectToInstantiateArray: [] + m_AnimationFrameRate: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Origin: {x: -18, y: -23, z: 0} + m_Size: {x: 48, y: 34, z: 1} + m_TileAnchor: {x: 0.5, y: 0.5, z: 0} + m_TileOrientation: 0 + m_TileOrientationMatrix: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 --- !u!1839735485 &2062562609 stripped Tilemap: m_CorrespondingSourceObject: {fileID: 8298925029280369994, guid: 9ad55898a5aa5e340ba56d310f32f741, type: 3} m_PrefabInstance: {fileID: 8298925029637945467} m_PrefabAsset: {fileID: 0} +--- !u!1 &2071785558 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2071785559} + - component: {fileID: 2071785561} + - component: {fileID: 2071785560} + m_Layer: 0 + m_Name: WallBottom + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2071785559 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2071785558} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 23, y: 15, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1823803728} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!483693784 &2071785560 +TilemapRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2071785558} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 0 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_ChunkSize: {x: 32, y: 32, z: 32} + m_ChunkCullingBounds: {x: 0, y: 0, z: 0} + m_MaxChunkCount: 16 + m_MaxFrameAge: 16 + m_SortOrder: 0 + m_Mode: 0 + m_DetectChunkCullingBounds: 0 + m_MaskInteraction: 0 +--- !u!1839735485 &2071785561 +Tilemap: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2071785558} + m_Enabled: 1 + m_Tiles: {} + m_AnimatedTiles: {} + m_TileAssetArray: + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + m_TileSpriteArray: + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + - m_RefCount: 0 + m_Data: {fileID: 0} + m_TileMatrixArray: + - m_RefCount: 0 + m_Data: + e00: -1.7316989e+27 + e01: 0 + e02: -5.7500076 + e03: -5.7500076 + e10: 7.8e-43 + e11: 0 + e12: 7.8e-43 + e13: 7.8e-43 + e20: -0.22138834 + e21: 1e-45 + e22: 7.600156e-19 + e23: 2.9771042 + e30: 4.5905e-41 + e31: 0 + e32: 7.82e-43 + e33: 7.85e-43 + m_TileColorArray: + - m_RefCount: 0 + m_Data: {r: 3.858e-41, g: 3.858e-41, b: 3.858e-41, a: 3.858e-41} + m_TileObjectToInstantiateArray: [] + m_AnimationFrameRate: 1 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Origin: {x: -18, y: -23, z: 0} + m_Size: {x: 48, y: 24, z: 1} + m_TileAnchor: {x: 0.5, y: 0.5, z: 0} + m_TileOrientation: 0 + m_TileOrientationMatrix: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 --- !u!1839735485 &2110004376 stripped Tilemap: m_CorrespondingSourceObject: {fileID: 8298925029612890527, guid: 9ad55898a5aa5e340ba56d310f32f741, type: 3}