diff --git a/Assets/Editor/DatabaseEditor.cs b/Assets/Editor/DatabaseEditor.cs index ea3811b..f7e640d 100644 --- a/Assets/Editor/DatabaseEditor.cs +++ b/Assets/Editor/DatabaseEditor.cs @@ -16,36 +16,7 @@ public class DatabaseEditor : Editor { var targ = target as Database; - - - foreach (var folder in targ.Folders) - { - var path = AssetDatabase.GetAssetPath(folder); - foreach (var file in GetAllPaths(path)) - { - var scriptableObject = AssetDatabase.LoadAssetAtPath(file); - if (scriptableObject && !targ.ScriptableObjects.Contains(scriptableObject)) - { - targ.ScriptableObjects.Add(scriptableObject); - } - - var prefab = AssetDatabase.LoadAssetAtPath(file); - if (prefab && !targ.Prefabs.Contains(prefab)) - { - targ.Prefabs.Add(prefab); - } - } - } + targ.FetchDatabase(); } } - - string[] GetAllPaths(string target) - { - var files = Directory.GetFiles(target).ToList(); - foreach (var dir in Directory.GetDirectories(target)) - { - files.AddRange(GetAllPaths(dir)); - } - return files.ToArray(); - } } diff --git a/Assets/LevelEditor/Levels/Level1.asset b/Assets/LevelEditor/Levels/Level1.asset index add6afb..2fd9e7d 100644 --- a/Assets/LevelEditor/Levels/Level1.asset +++ b/Assets/LevelEditor/Levels/Level1.asset @@ -144,54 +144,86 @@ MonoBehaviour: _scale: {x: 1, y: 1} - _key: Entities _tiles: - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -10, y: -3, z: 0} - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -10, y: -2, z: 0} - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} - _position: {x: -10, y: -1, z: 0} - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} - _position: {x: -10, y: 0, z: 0} - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -10, y: 1, z: 0} - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -10, y: 2, z: 0} - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -9, y: -3, z: 0} - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -9, y: -2, z: 0} - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} - _position: {x: -9, y: -1, z: 0} - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} - _position: {x: -9, y: 0, z: 0} - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -9, y: 1, z: 0} - - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -9, y: 2, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -8, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -8, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -8, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -8, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -7, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -7, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -7, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -7, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -6, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -6, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -6, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -6, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -5, y: -3, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} _position: {x: -5, y: -2, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} _position: {x: -5, y: 1, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -5, y: 2, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -4, y: -3, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} _position: {x: -4, y: -2, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} _position: {x: -4, y: 1, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -4, y: 2, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -3, y: -3, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -3, y: -2, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -3, y: 1, z: 0} - - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} _position: {x: -3, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -2, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -2, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -2, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -2, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -1, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -1, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -1, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -1, y: 2, z: 0} _isInvisible: 0 _isCollidable: 0 _isTrigger: 0 @@ -201,20 +233,12 @@ MonoBehaviour: _scale: {x: 1, y: 1} - _key: Spawners _tiles: - - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} - _position: {x: 0, y: -3, z: 0} - - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} - _position: {x: 0, y: -2, z: 0} - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} _position: {x: 0, y: -1, z: 0} - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} _position: {x: 0, y: 0, z: 0} - - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} - _position: {x: 0, y: 1, z: 0} - - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} - _position: {x: 0, y: 2, z: 0} - _tile: {fileID: 11400000, guid: 15606c8c503e8164fb69178aa7016f58, type: 2} - _position: {x: 1, y: 2, z: 0} + _position: {x: 1, y: -1, z: 0} _isInvisible: 1 _isCollidable: 0 _isTrigger: 0 diff --git a/Assets/LevelEditor/Levels/Level1.asset.meta b/Assets/LevelEditor/Levels/Level1.asset.meta index 2b96809..01f86c6 100644 --- a/Assets/LevelEditor/Levels/Level1.asset.meta +++ b/Assets/LevelEditor/Levels/Level1.asset.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d37561e153d6a6448a03839488fdec5e +guid: a6e34739c9325da4cac4fbaea30d052c NativeFormatImporter: externalObjects: {} mainObjectFileID: 11400000 diff --git a/Assets/LevelEditor/Levels/Level2.asset b/Assets/LevelEditor/Levels/Level2.asset new file mode 100644 index 0000000..9ab0e48 --- /dev/null +++ b/Assets/LevelEditor/Levels/Level2.asset @@ -0,0 +1,200 @@ +%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: 2b25d284985e65e48b50826c522a5ec3, type: 3} + m_Name: Level2 + m_EditorClassIdentifier: + _data: + - _key: Background + _tiles: + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 2, z: 0} + _isInvisible: 0 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 0 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} + - _key: Entities + _tiles: + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -9, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -9, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -9, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -9, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -9, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -9, y: 2, z: 0} + _isInvisible: 0 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 1 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} + - _key: Spawners + _tiles: + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: 0, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: 0, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: 0, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: 0, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: 0, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: 0, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: 15606c8c503e8164fb69178aa7016f58, type: 2} + _position: {x: 1, y: 2, z: 0} + _isInvisible: 1 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 2 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} diff --git a/Assets/LevelEditor/Levels/Level0.asset.meta b/Assets/LevelEditor/Levels/Level2.asset.meta similarity index 79% rename from Assets/LevelEditor/Levels/Level0.asset.meta rename to Assets/LevelEditor/Levels/Level2.asset.meta index 01f86c6..2b96809 100644 --- a/Assets/LevelEditor/Levels/Level0.asset.meta +++ b/Assets/LevelEditor/Levels/Level2.asset.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a6e34739c9325da4cac4fbaea30d052c +guid: d37561e153d6a6448a03839488fdec5e NativeFormatImporter: externalObjects: {} mainObjectFileID: 11400000 diff --git a/Assets/LevelEditor/Levels/Level0.asset b/Assets/LevelEditor/Levels/Level3.asset similarity index 99% rename from Assets/LevelEditor/Levels/Level0.asset rename to Assets/LevelEditor/Levels/Level3.asset index 2a684f8..5bc3d2e 100644 --- a/Assets/LevelEditor/Levels/Level0.asset +++ b/Assets/LevelEditor/Levels/Level3.asset @@ -10,7 +10,7 @@ MonoBehaviour: m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 2b25d284985e65e48b50826c522a5ec3, type: 3} - m_Name: Level0 + m_Name: Level3 m_EditorClassIdentifier: _data: - _key: Background diff --git a/Assets/LevelEditor/Levels/Level3.asset.meta b/Assets/LevelEditor/Levels/Level3.asset.meta new file mode 100644 index 0000000..19e93f6 --- /dev/null +++ b/Assets/LevelEditor/Levels/Level3.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7a1313e5c16e74c4ba11a8114b9fd786 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/LevelEditor/Levels/Level4.asset b/Assets/LevelEditor/Levels/Level4.asset new file mode 100644 index 0000000..30ce5a1 --- /dev/null +++ b/Assets/LevelEditor/Levels/Level4.asset @@ -0,0 +1,230 @@ +%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: 2b25d284985e65e48b50826c522a5ec3, type: 3} + m_Name: Level4 + m_EditorClassIdentifier: + _data: + - _key: Background + _tiles: + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 2, z: 0} + _isInvisible: 0 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 0 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} + - _key: Entities + _tiles: + - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + _position: {x: -10, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + _position: {x: -10, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -10, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -10, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + _position: {x: -9, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + _position: {x: -9, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -9, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -9, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -9, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -9, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -8, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -8, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -7, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -7, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -6, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -6, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -5, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -5, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -4, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -4, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -3, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -3, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -2, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -2, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -1, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -1, y: 0, z: 0} + _isInvisible: 0 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 1 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} + - _key: Spawners + _tiles: + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: 15606c8c503e8164fb69178aa7016f58, type: 2} + _position: {x: 0, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: 15606c8c503e8164fb69178aa7016f58, type: 2} + _position: {x: 0, y: 1, z: 0} + _isInvisible: 1 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 2 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} diff --git a/Assets/LevelEditor/Levels/Level4.asset.meta b/Assets/LevelEditor/Levels/Level4.asset.meta new file mode 100644 index 0000000..dc3c3e0 --- /dev/null +++ b/Assets/LevelEditor/Levels/Level4.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b501f7eea1fdfb843853bcba5b30533a +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/LevelEditor/Levels/Level5.asset b/Assets/LevelEditor/Levels/Level5.asset new file mode 100644 index 0000000..91f7bcf --- /dev/null +++ b/Assets/LevelEditor/Levels/Level5.asset @@ -0,0 +1,206 @@ +%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: 2b25d284985e65e48b50826c522a5ec3, type: 3} + m_Name: Level5 + m_EditorClassIdentifier: + _data: + - _key: Background + _tiles: + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 2, z: 0} + _isInvisible: 0 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 0 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} + - _key: Entities + _tiles: + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -10, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -10, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -9, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -9, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -9, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -9, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -8, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -8, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -8, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -8, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + _position: {x: -5, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: e0d57b3c128ba1447920637cdb289530, type: 2} + _position: {x: -4, y: -3, z: 0} + _isInvisible: 0 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 1 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} + - _key: Spawners + _tiles: + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: 15606c8c503e8164fb69178aa7016f58, type: 2} + _position: {x: 0, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: 15606c8c503e8164fb69178aa7016f58, type: 2} + _position: {x: 0, y: 1, z: 0} + _isInvisible: 1 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 2 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} diff --git a/Assets/LevelEditor/Levels/Level5.asset.meta b/Assets/LevelEditor/Levels/Level5.asset.meta new file mode 100644 index 0000000..ec10c35 --- /dev/null +++ b/Assets/LevelEditor/Levels/Level5.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0a9c94eb38c575948992453fc29bcede +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/LevelEditor/Levels/Level6.asset b/Assets/LevelEditor/Levels/Level6.asset new file mode 100644 index 0000000..6a0ddf9 --- /dev/null +++ b/Assets/LevelEditor/Levels/Level6.asset @@ -0,0 +1,204 @@ +%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: 2b25d284985e65e48b50826c522a5ec3, type: 3} + m_Name: Level6 + m_EditorClassIdentifier: + _data: + - _key: Background + _tiles: + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -10, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -9, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -8, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -7, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -6, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -5, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -4, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -3, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -2, y: 2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: ef5a154519b23a34aaded32e86bf7f2f, type: 2} + _position: {x: -1, y: 2, z: 0} + _isInvisible: 0 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 0 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} + - _key: Entities + _tiles: + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -10, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -10, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -9, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -8, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -7, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -7, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -6, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -5, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -4, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e0b1d2d816ae5624c99b09a2bebb2a39, type: 2} + _position: {x: -3, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -3, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -2, y: 1, z: 0} + - _tile: {fileID: 11400000, guid: e74655ccbd41a2b46b1ec9615aba0301, type: 2} + _position: {x: -1, y: 1, z: 0} + _isInvisible: 0 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 1 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} + - _key: Spawners + _tiles: + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: -3, z: 0} + - _tile: {fileID: 11400000, guid: 15606c8c503e8164fb69178aa7016f58, type: 2} + _position: {x: -1, y: -2, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: -1, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: 0, z: 0} + - _tile: {fileID: 11400000, guid: 4002377ed7e87b34699f126f2b10c703, type: 2} + _position: {x: -1, y: 2, z: 0} + _isInvisible: 1 + _isCollidable: 0 + _isTrigger: 0 + _renderOrder: 2 + _renderLayer: Default + _position: {x: 0, y: 0} + _scale: {x: 1, y: 1} diff --git a/Assets/LevelEditor/Levels/Level6.asset.meta b/Assets/LevelEditor/Levels/Level6.asset.meta new file mode 100644 index 0000000..4948f0b --- /dev/null +++ b/Assets/LevelEditor/Levels/Level6.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ec229632b369eb746a30dbfafe3de373 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Game.unity b/Assets/Scenes/Game.unity index 5c57c9f..6b28117 100644 --- a/Assets/Scenes/Game.unity +++ b/Assets/Scenes/Game.unity @@ -874,7 +874,7 @@ PrefabInstance: - target: {fileID: 3028288566889208750, guid: 02daecb0115395844b4932445d039051, type: 3} propertyPath: firstLevel value: - objectReference: {fileID: 11400000, guid: d37561e153d6a6448a03839488fdec5e, type: 2} + objectReference: {fileID: 11400000, guid: a6e34739c9325da4cac4fbaea30d052c, type: 2} - target: {fileID: 3028288566889208751, guid: 02daecb0115395844b4932445d039051, type: 3} propertyPath: m_RootOrder value: 2 @@ -1033,6 +1033,294 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 1092900232} m_Modifications: + - target: {fileID: 400568529911642456, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400568529911642456, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400568529911642456, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 400568529911642456, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -47.711605 + objectReference: {fileID: 0} + - target: {fileID: 400568530076150058, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400568530076150058, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400568530076150058, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 400568530076150058, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -47.711605 + objectReference: {fileID: 0} + - target: {fileID: 400568530256114997, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400568530256114997, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400568530256114997, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 400568530256114997, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -47.711605 + objectReference: {fileID: 0} + - target: {fileID: 400568530484276529, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400568530484276529, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400568530484276529, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 400568530484276529, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -47.711605 + objectReference: {fileID: 0} + - target: {fileID: 400568531361238196, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400568531361238196, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 400568531361238196, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 400568531361238196, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -47.711605 + objectReference: {fileID: 0} + - target: {fileID: 1361171379191865150, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1361171379191865150, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1361171379191865150, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 1361171379191865150, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -6.0372024 + objectReference: {fileID: 0} + - target: {fileID: 1366041080306649041, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1366041080306649041, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1366041080306649041, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 1366041080306649041, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -26.874405 + objectReference: {fileID: 0} + - target: {fileID: 2335911515542116969, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2335911515542116969, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2335911515542116969, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 2335911515542116969, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -6.0372024 + objectReference: {fileID: 0} + - target: {fileID: 2335911515584534020, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2335911515584534020, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2335911515584534020, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 2335911515584534020, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -6.0372024 + objectReference: {fileID: 0} + - target: {fileID: 2335911515764278902, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2335911515764278902, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2335911515764278902, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 2335911515764278902, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -6.0372024 + objectReference: {fileID: 0} + - target: {fileID: 2335911516153004653, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2335911516153004653, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2335911516153004653, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 2335911516153004653, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -6.0372024 + objectReference: {fileID: 0} + - target: {fileID: 2335911516626281448, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2335911516626281448, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2335911516626281448, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 2335911516626281448, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -6.0372024 + objectReference: {fileID: 0} + - target: {fileID: 2340796561267475078, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2340796561267475078, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2340796561267475078, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 2340796561267475078, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -26.874405 + objectReference: {fileID: 0} + - target: {fileID: 2340796561450327705, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2340796561450327705, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2340796561450327705, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 2340796561450327705, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -26.874405 + objectReference: {fileID: 0} + - target: {fileID: 2340796561610837739, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2340796561610837739, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2340796561610837739, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 2340796561610837739, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -26.874405 + objectReference: {fileID: 0} + - target: {fileID: 2340796562313902855, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2340796562313902855, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2340796562313902855, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 2340796562313902855, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -26.874405 + objectReference: {fileID: 0} + - target: {fileID: 2340796563190143618, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2340796563190143618, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2340796563190143618, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 2340796563190143618, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -26.874405 + objectReference: {fileID: 0} + - target: {fileID: 3964878483247902818, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3964878483247902818, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3964878483247902818, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 3964878483247902818, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -47.711605 + objectReference: {fileID: 0} - target: {fileID: 4817988606444742093, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} propertyPath: m_Name value: UnitPlacementButtons @@ -1121,6 +1409,166 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 5316389173819650276, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5316389173819650276, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5316389173819650276, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 5316389173819650276, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -26.874405 + objectReference: {fileID: 0} + - target: {fileID: 5319145879937787915, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5319145879937787915, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5319145879937787915, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 5319145879937787915, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -6.0372024 + objectReference: {fileID: 0} + - target: {fileID: 5639720393060989426, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720393060989426, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720393060989426, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 5639720393060989426, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -299.90002 + objectReference: {fileID: 0} + - target: {fileID: 5639720393215043968, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720393215043968, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720393215043968, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 5639720393215043968, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -201.6 + objectReference: {fileID: 0} + - target: {fileID: 5639720393273189869, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720393273189869, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720393273189869, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 5639720393273189869, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -103.3 + objectReference: {fileID: 0} + - target: {fileID: 5639720393720315369, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720393720315369, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720393720315369, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 5639720393720315369, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -5 + objectReference: {fileID: 0} + - target: {fileID: 5639720394252960041, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720394252960041, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720394252960041, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 5639720394252960041, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -5 + objectReference: {fileID: 0} + - target: {fileID: 5639720394327989356, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720394327989356, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5639720394327989356, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 5639720394327989356, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -103.3 + objectReference: {fileID: 0} + - target: {fileID: 7797049475554395991, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7797049475554395991, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7797049475554395991, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 7797049475554395991, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -47.711605 + objectReference: {fileID: 0} + - target: {fileID: 8992921944992653498, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8992921944992653498, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8992921944992653498, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 8992921944992653498, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} + propertyPath: m_AnchoredPosition.y + value: -398.2 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 306211cf6348ac747a78d89bd72fca3e, type: 3} --- !u!224 &1370991966 stripped diff --git a/Assets/Scripts/General/Database.cs b/Assets/Scripts/General/Database.cs index 6c934e4..02201b7 100644 --- a/Assets/Scripts/General/Database.cs +++ b/Assets/Scripts/General/Database.cs @@ -4,6 +4,7 @@ using UnityEngine; using System.Linq; using System.IO; using System; +using Unity.VisualScripting.YamlDotNet.Core.Tokens; #if UNITY_EDITOR using UnityEditor; @@ -25,6 +26,44 @@ public class Database : SingletonBehaviour #endif public const string TYPE = nameof(TYPE); + + public void FetchDatabase() + { + foreach (var folder in Folders) + { + var path = AssetDatabase.GetAssetPath(folder); + foreach (var file in GetAllPaths(path)) + { + var scriptableObject = AssetDatabase.LoadAssetAtPath(file); + if (scriptableObject && !ScriptableObjects.Contains(scriptableObject)) + { + ScriptableObjects.Add(scriptableObject); + } + + var prefab = AssetDatabase.LoadAssetAtPath(file); + if (prefab && !Prefabs.Contains(prefab)) + { + Prefabs.Add(prefab); + } + } + } + } + + public static void FetchDatabaseStatic() + { + Instance.FetchDatabase(); + } + + private static string[] GetAllPaths(string target) + { + var files = Directory.GetFiles(target).ToList(); + foreach (var dir in Directory.GetDirectories(target)) + { + files.AddRange(GetAllPaths(dir)); + } + return files.ToArray(); + } + [Serializable] public class DataList : IEnumerable where T : UnityEngine.Object { diff --git a/Assets/Scripts/LevelManager/LevelManager.cs b/Assets/Scripts/LevelManager/LevelManager.cs index 90af965..97fbfbb 100644 --- a/Assets/Scripts/LevelManager/LevelManager.cs +++ b/Assets/Scripts/LevelManager/LevelManager.cs @@ -6,6 +6,7 @@ using UnityEngine; using System.Linq; using Newtonsoft.Json; using System.IO; +using Codice.CM.Client.Differences.Merge; /// /// data class for containing everything level related @@ -199,6 +200,11 @@ public class LevelManager : Singleton ClearLevel(); } + foreach (var ob in Database.Instance.ScriptableObjects) + { + Debug.Log(ob); + } + //fetch level from database _currentLevel = Database.Instance.ScriptableObjects[levelName] as Level; diff --git a/Assets/Scripts/LevelManager/LevelManagerScript.cs b/Assets/Scripts/LevelManager/LevelManagerScript.cs index f2446ea..b38f73d 100644 --- a/Assets/Scripts/LevelManager/LevelManagerScript.cs +++ b/Assets/Scripts/LevelManager/LevelManagerScript.cs @@ -9,6 +9,17 @@ public class LevelManagerScript : SingletonBehaviour { DontDestroyOnLoad(gameObject); if (!firstLevel) throw new System.Exception("there is no first level set in the level manager script"); + + Database.FetchDatabaseStatic(); + + int levelToLoadFromWorldMap = PlayerPrefs.GetInt("LevelToLoad", -1); + if (levelToLoadFromWorldMap != -1) + { + string lvlName = $"Level{levelToLoadFromWorldMap}"; + LevelManager.Instance.LoadLevel(lvlName, true); + return; + } + LevelManager.Instance.LoadLevel(firstLevel, true); } void Update() diff --git a/Assets/Scripts/WorldMap/WorldMapManager.cs b/Assets/Scripts/WorldMap/WorldMapManager.cs index 683c2d0..863bfbf 100644 --- a/Assets/Scripts/WorldMap/WorldMapManager.cs +++ b/Assets/Scripts/WorldMap/WorldMapManager.cs @@ -24,6 +24,8 @@ public class WorldMapManager : MonoBehaviour //TODO: getMajorSaveFile() //Call et obtiens le chemin du fichier de sauvegarde; _worldMapSave = new WorldMapSave(); UnlockLevels(); + + PlayerPrefs.SetInt("LevelToLoad", -1); } /** @@ -71,6 +73,7 @@ public class WorldMapManager : MonoBehaviour string levelToGet = "1-" + levelToCall; if (_buttonList[levelToCall - 1].GetComponent().sprite.name != "worldmap_level_locked") { + PlayerPrefs.SetInt("LevelToLoad", levelToCall); SceneManager.LoadScene("Game"); //LevelManager.Instance.LoadLevel(levelToGet, true); } diff --git a/Assets/Scripts/WorldMap/WorldMapSave.cs b/Assets/Scripts/WorldMap/WorldMapSave.cs index b30dc3b..fd70d52 100644 --- a/Assets/Scripts/WorldMap/WorldMapSave.cs +++ b/Assets/Scripts/WorldMap/WorldMapSave.cs @@ -11,8 +11,8 @@ public class WorldMapSave SAVED } - private LevelState[] levelUnlocked = { LevelState.UNLOCKED, LevelState.UNLOCKED, LevelState.UNLOCKED, LevelState.SAVED, - LevelState.LOCKED, LevelState.LOCKED, LevelState.LOCKED, LevelState.LOCKED, LevelState.LOCKED, LevelState.LOCKED, LevelState.LOCKED }; + private LevelState[] levelUnlocked = { LevelState.UNLOCKED, LevelState.UNLOCKED, LevelState.UNLOCKED, LevelState.UNLOCKED, + LevelState.UNLOCKED, LevelState.SAVED, LevelState.LOCKED, LevelState.LOCKED, LevelState.LOCKED, LevelState.LOCKED, LevelState.LOCKED }; public void UnlockNextLevel(int levelNumber) { diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset index ae332d8..c0c64f1 100644 --- a/ProjectSettings/EditorBuildSettings.asset +++ b/ProjectSettings/EditorBuildSettings.asset @@ -5,6 +5,9 @@ EditorBuildSettings: m_ObjectHideFlags: 0 serializedVersion: 2 m_Scenes: + - enabled: 1 + path: Assets/Scenes/LevelSelect.unity + guid: c1efd9104a876984eb669c4bd54598d1 - enabled: 1 path: Assets/Scenes/Game.unity guid: 8c9cfa26abfee488c85f1582747f6a02