From 9bb554df6f995b95b49606045d8117cd145ee67f Mon Sep 17 00:00:00 2001 From: Furentes Date: Fri, 12 Apr 2019 11:11:42 +0200 Subject: [PATCH] Changed block texture, fixed L block --- Assets/Prefabs/GroupJ.prefab | 8 ++++---- Assets/Prefabs/GroupL.prefab | 8 ++++---- Assets/Scripts/Group.cs | 3 ++- Assets/Sprites/block.png | 4 ++-- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Assets/Prefabs/GroupJ.prefab b/Assets/Prefabs/GroupJ.prefab index 193f8d2..7d95226 100644 --- a/Assets/Prefabs/GroupJ.prefab +++ b/Assets/Prefabs/GroupJ.prefab @@ -72,7 +72,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1335416471580304732} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: -1, z: 0} + m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 6063795896939980024} @@ -151,7 +151,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1947779623148120234} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: -2, z: 0} + m_LocalPosition: {x: 0, y: -1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 6063795896939980024} @@ -230,7 +230,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4109128725022218165} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalPosition: {x: 0, y: 1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 6063795896939980024} @@ -309,7 +309,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5470779586823341713} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -1, y: -2, z: 0} + m_LocalPosition: {x: -1, y: -1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 6063795896939980024} diff --git a/Assets/Prefabs/GroupL.prefab b/Assets/Prefabs/GroupL.prefab index c46d06f..e37f873 100644 --- a/Assets/Prefabs/GroupL.prefab +++ b/Assets/Prefabs/GroupL.prefab @@ -25,7 +25,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3850766713521589076} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 1, y: -2, z: 0} + m_LocalPosition: {x: 1, y: -1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 3078871004405967165} @@ -104,7 +104,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5159498092823157360} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalPosition: {x: 0, y: 1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 3078871004405967165} @@ -183,7 +183,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7321535639037863279} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: -2, z: 0} + m_LocalPosition: {x: 0, y: -1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 3078871004405967165} @@ -262,7 +262,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7788110053507459225} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: -1, z: 0} + m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 3078871004405967165} diff --git a/Assets/Scripts/Group.cs b/Assets/Scripts/Group.cs index d9c568d..3e67912 100644 --- a/Assets/Scripts/Group.cs +++ b/Assets/Scripts/Group.cs @@ -88,7 +88,8 @@ public class Group : MonoBehaviour transform.Rotate(0, 0, 90); } // Move Downwards and Fall - else if ((Input.GetKey(KeyCode.DownArrow) && Time.time - lastFall >= .05) || + + if ((Input.GetKey(KeyCode.DownArrow) && Time.time - lastFall >= .05) || Time.time - lastFall >= fallSpeed) { // Modify position diff --git a/Assets/Sprites/block.png b/Assets/Sprites/block.png index 48f1c99..351e22f 100644 --- a/Assets/Sprites/block.png +++ b/Assets/Sprites/block.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5d1dedfa155f3b06048ce45dd91f0a17585d6d7ee296112cb312fa5078642569 -size 389 +oid sha256:86ce719ba6acdc72c00f0c38f62e1381928de91c3263e96a3d2e77a7db8229c5 +size 189