Skip to content

Commit

Permalink
Add tetrominoes data
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgraham committed Aug 8, 2021
1 parent 6ba5316 commit d8a9a72
Show file tree
Hide file tree
Showing 18 changed files with 233 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Assets/Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Assets/Scripts/Tetromino.cs
Original file line number Diff line number Diff line change
@@ -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];

}
11 changes: 11 additions & 0 deletions Assets/Scripts/Tetromino.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Tetrominoes.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Assets/Tetrominoes/Tetromino-I.asset
Original file line number Diff line number Diff line change
@@ -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}
8 changes: 8 additions & 0 deletions Assets/Tetrominoes/Tetromino-I.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Assets/Tetrominoes/Tetromino-J.asset
Original file line number Diff line number Diff line change
@@ -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}
8 changes: 8 additions & 0 deletions Assets/Tetrominoes/Tetromino-J.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Assets/Tetrominoes/Tetromino-L.asset
Original file line number Diff line number Diff line change
@@ -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}
8 changes: 8 additions & 0 deletions Assets/Tetrominoes/Tetromino-L.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Assets/Tetrominoes/Tetromino-O.asset
Original file line number Diff line number Diff line change
@@ -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}
8 changes: 8 additions & 0 deletions Assets/Tetrominoes/Tetromino-O.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Assets/Tetrominoes/Tetromino-S.asset
Original file line number Diff line number Diff line change
@@ -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}
8 changes: 8 additions & 0 deletions Assets/Tetrominoes/Tetromino-S.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Assets/Tetrominoes/Tetromino-T.asset
Original file line number Diff line number Diff line change
@@ -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}
8 changes: 8 additions & 0 deletions Assets/Tetrominoes/Tetromino-T.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Assets/Tetrominoes/Tetromino-Z.asset
Original file line number Diff line number Diff line change
@@ -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}
8 changes: 8 additions & 0 deletions Assets/Tetrominoes/Tetromino-Z.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8a9a72

Please sign in to comment.