diff --git a/Assets/Scripts.meta b/Assets/Scripts.meta new file mode 100644 index 0000000..e8e37dc --- /dev/null +++ b/Assets/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d1b3fef36fb16cd408dc975978d5d918 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Tetromino.cs b/Assets/Scripts/Tetromino.cs new file mode 100644 index 0000000..0236688 --- /dev/null +++ b/Assets/Scripts/Tetromino.cs @@ -0,0 +1,10 @@ +using UnityEngine; +using UnityEngine.Tilemaps; + +[CreateAssetMenu(menuName = "Tetris/Tetromino")] +public class Tetromino : ScriptableObject +{ + public Tile block; + public Vector2Int[] cells = new Vector2Int[4]; + +} diff --git a/Assets/Scripts/Tetromino.cs.meta b/Assets/Scripts/Tetromino.cs.meta new file mode 100644 index 0000000..9a72155 --- /dev/null +++ b/Assets/Scripts/Tetromino.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8cd6f19bdc364ed40a8b615b062c98ac +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Tetrominoes.meta b/Assets/Tetrominoes.meta new file mode 100644 index 0000000..24ae694 --- /dev/null +++ b/Assets/Tetrominoes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0ae686308b0ce36428ed7d8536a3f370 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Tetrominoes/Tetromino-I.asset b/Assets/Tetrominoes/Tetromino-I.asset new file mode 100644 index 0000000..472e61f --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-I.asset @@ -0,0 +1,20 @@ +%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: 8cd6f19bdc364ed40a8b615b062c98ac, type: 3} + m_Name: Tetromino-I + m_EditorClassIdentifier: + block: {fileID: 11400000, guid: aa44b5216a5f39e4881c5323564afe81, type: 2} + cells: + - {x: -1, y: 0} + - {x: 0, y: 0} + - {x: 1, y: 0} + - {x: 2, y: 0} diff --git a/Assets/Tetrominoes/Tetromino-I.asset.meta b/Assets/Tetrominoes/Tetromino-I.asset.meta new file mode 100644 index 0000000..9a709aa --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-I.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7d21b252b2497f641bfbead1606ba793 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Tetrominoes/Tetromino-J.asset b/Assets/Tetrominoes/Tetromino-J.asset new file mode 100644 index 0000000..0aa1cef --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-J.asset @@ -0,0 +1,20 @@ +%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: 8cd6f19bdc364ed40a8b615b062c98ac, type: 3} + m_Name: Tetromino-J + m_EditorClassIdentifier: + block: {fileID: 11400000, guid: f6c4109fd0d185b419e5e665b07c42f0, type: 2} + cells: + - {x: -1, y: 1} + - {x: -1, y: 0} + - {x: 0, y: 0} + - {x: 1, y: 0} diff --git a/Assets/Tetrominoes/Tetromino-J.asset.meta b/Assets/Tetrominoes/Tetromino-J.asset.meta new file mode 100644 index 0000000..20728ff --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-J.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5de7a906ab4625248bb6f3990a34a34c +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Tetrominoes/Tetromino-L.asset b/Assets/Tetrominoes/Tetromino-L.asset new file mode 100644 index 0000000..04f438b --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-L.asset @@ -0,0 +1,20 @@ +%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: 8cd6f19bdc364ed40a8b615b062c98ac, type: 3} + m_Name: Tetromino-L + m_EditorClassIdentifier: + block: {fileID: 11400000, guid: 89eae29ecf56ea14c8b3927213a00066, type: 2} + cells: + - {x: 1, y: 1} + - {x: -1, y: 0} + - {x: 0, y: 0} + - {x: 1, y: 0} diff --git a/Assets/Tetrominoes/Tetromino-L.asset.meta b/Assets/Tetrominoes/Tetromino-L.asset.meta new file mode 100644 index 0000000..0d85b1d --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-L.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 522468845f941cd468a9f590907fdd41 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Tetrominoes/Tetromino-O.asset b/Assets/Tetrominoes/Tetromino-O.asset new file mode 100644 index 0000000..f1991c0 --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-O.asset @@ -0,0 +1,20 @@ +%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: 8cd6f19bdc364ed40a8b615b062c98ac, type: 3} + m_Name: Tetromino-O + m_EditorClassIdentifier: + block: {fileID: 11400000, guid: 66df2645ff909154b9c8f7c006a6af32, type: 2} + cells: + - {x: 0, y: 1} + - {x: 1, y: 1} + - {x: 0, y: 0} + - {x: 1, y: 0} diff --git a/Assets/Tetrominoes/Tetromino-O.asset.meta b/Assets/Tetrominoes/Tetromino-O.asset.meta new file mode 100644 index 0000000..7127e31 --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-O.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 53a433330362ac04f9725c46dd4e564d +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Tetrominoes/Tetromino-S.asset b/Assets/Tetrominoes/Tetromino-S.asset new file mode 100644 index 0000000..04574d7 --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-S.asset @@ -0,0 +1,20 @@ +%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: 8cd6f19bdc364ed40a8b615b062c98ac, type: 3} + m_Name: Tetromino-S + m_EditorClassIdentifier: + block: {fileID: 11400000, guid: ae5c5dcd9d2744248ba2beb6b8dab80f, type: 2} + cells: + - {x: 0, y: 1} + - {x: 1, y: 1} + - {x: -1, y: 0} + - {x: 0, y: 0} diff --git a/Assets/Tetrominoes/Tetromino-S.asset.meta b/Assets/Tetrominoes/Tetromino-S.asset.meta new file mode 100644 index 0000000..df7d7d0 --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-S.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 581e54ff100c0574dbd055bbd95d1b85 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Tetrominoes/Tetromino-T.asset b/Assets/Tetrominoes/Tetromino-T.asset new file mode 100644 index 0000000..37b5465 --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-T.asset @@ -0,0 +1,20 @@ +%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: 8cd6f19bdc364ed40a8b615b062c98ac, type: 3} + m_Name: Tetromino-T + m_EditorClassIdentifier: + block: {fileID: 11400000, guid: 8316c87896e7b6448a324d8a66e43174, type: 2} + cells: + - {x: 0, y: 1} + - {x: -1, y: 0} + - {x: 0, y: 0} + - {x: 1, y: 0} diff --git a/Assets/Tetrominoes/Tetromino-T.asset.meta b/Assets/Tetrominoes/Tetromino-T.asset.meta new file mode 100644 index 0000000..1965690 --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-T.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 406fafdc78ef0634787f484b0f242051 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Tetrominoes/Tetromino-Z.asset b/Assets/Tetrominoes/Tetromino-Z.asset new file mode 100644 index 0000000..d38229c --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-Z.asset @@ -0,0 +1,20 @@ +%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: 8cd6f19bdc364ed40a8b615b062c98ac, type: 3} + m_Name: Tetromino-Z + m_EditorClassIdentifier: + block: {fileID: 11400000, guid: be0a34e2a842ae742b4fa8541a5f9fcf, type: 2} + cells: + - {x: -1, y: 1} + - {x: 0, y: 1} + - {x: 0, y: 0} + - {x: 1, y: 0} diff --git a/Assets/Tetrominoes/Tetromino-Z.asset.meta b/Assets/Tetrominoes/Tetromino-Z.asset.meta new file mode 100644 index 0000000..9b033b5 --- /dev/null +++ b/Assets/Tetrominoes/Tetromino-Z.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f02664c95e021b042967c8756e2e0471 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: