The playable game
This commit is contained in:
@@ -440,13 +440,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 62750385}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: -4.5, y: 4.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 16
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &62750387
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -860,13 +860,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 251602554}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: -0.5, y: 4.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 23
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &251602556
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -958,13 +958,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 262320270}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: -0.5, y: 3.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 28
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &262320272
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1374,13 +1374,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 399979559}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: 0.5, y: 3.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 29
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &399979561
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1975,13 +1975,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 585725646}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: 2.5, y: 4.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 17
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &585725648
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2249,13 +2249,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 623214076}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: 1.5, y: 4.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 19
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &623214078
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2741,13 +2741,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 727755297}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: -2.5, y: 4.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 20
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &727755299
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3295,13 +3295,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 886710715}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: 0.5, y: 4.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 21
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &886710717
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3645,13 +3645,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 972553570}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: -2.5, y: 3.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 26
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &972553572
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3871,13 +3871,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1080731773}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: -4.5, y: 3.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 24
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &1080731775
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -4267,13 +4267,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1120554186}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: 1.5, y: 3.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 30
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &1120554188
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -4723,13 +4723,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1286037025}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: -1.5, y: 3.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 27
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &1286037027
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -5237,13 +5237,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1425134500}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: -3.5, y: 3.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 25
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &1425134502
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -6553,13 +6553,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1827747384}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: -1.5, y: 4.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 22
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &1827747386
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -6939,13 +6939,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1940364791}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: -3.5, y: 4.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 18
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &1940364793
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -7099,13 +7099,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2008887575}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||
m_LocalPosition: {x: 2.5, y: 3.5, z: 0}
|
||||
m_LocalScale: {x: 0.8, y: 0.8021054, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1508263670}
|
||||
m_RootOrder: 31
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||
--- !u!212 &2008887577
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -154,24 +154,23 @@ public class Game : MonoBehaviour
|
||||
{
|
||||
testCell.GetComponent<SpriteRenderer>().color = new Color(.2f, .9f, .3f);
|
||||
possibleMoves.Enqueue(cells[testX, testY]);
|
||||
Vector2 abs1Position = selectedCell.transform.position + Vector3.up;
|
||||
GetCellCoordDirect(abs1Position, out int testX2, out int testY2);
|
||||
if (!(testX2 == 9 || testY2 == 9))
|
||||
{
|
||||
testCell = cells[testX2, testY2].GetComponent<Cell>();
|
||||
if (testCell.connected == null)
|
||||
{
|
||||
testCell.GetComponent<SpriteRenderer>().color = new Color(.2f, .9f, .3f);
|
||||
possibleMoves.Enqueue(cells[testX2, testY2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vector2 abs2Position = selectedCell.transform.position + Vector3.up;
|
||||
GetCellCoordDirect(abs2Position, out int testX2, out int testY2);
|
||||
if (!(testX2 == 9 || testY2 == 9))
|
||||
{
|
||||
Cell testCell = cells[testX2, testY2].GetComponent<Cell>();
|
||||
if (testCell.connected == null)
|
||||
{
|
||||
testCell.GetComponent<SpriteRenderer>().color = new Color(.2f, .9f, .3f);
|
||||
possibleMoves.Enqueue(cells[testX2, testY2]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
abs2Position = selectedCharacter.transform.position + Vector3.up + Vector3.right;
|
||||
Vector2 abs2Position = selectedCharacter.transform.position + Vector3.up + Vector3.right;
|
||||
GetCellCoordDirect(abs2Position, out int testX3, out int testY3);
|
||||
if (!(testX3 == 9 || testY3 == 9))
|
||||
{
|
||||
@@ -217,23 +216,23 @@ public class Game : MonoBehaviour
|
||||
testCell.GetComponent<SpriteRenderer>().color =
|
||||
new Color(.2f, .9f, .3f);
|
||||
possibleMoves.Enqueue(cells[testX, testY]);
|
||||
Vector2 abs1Position = selectedCell.transform.position + Vector3.down;
|
||||
GetCellCoordDirect(abs1Position, out int testX2, out int testY2);
|
||||
if (!(testX2 == 9 || testY2 == 9))
|
||||
{
|
||||
testCell = cells[testX2, testY2].GetComponent<Cell>();
|
||||
if (testCell.connected == null)
|
||||
{
|
||||
testCell.GetComponent<SpriteRenderer>().color = new Color(.2f, .9f, .3f);
|
||||
possibleMoves.Enqueue(cells[testX2, testY2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vector2 abs2Position = selectedCell.transform.position + Vector3.down;
|
||||
GetCellCoordDirect(abs2Position, out int testX2, out int testY2);
|
||||
if (!(testX2 == 9 || testY2 == 9))
|
||||
{
|
||||
Cell testCell = cells[testX2, testY2].GetComponent<Cell>();
|
||||
if (testCell.connected == null)
|
||||
{
|
||||
testCell.GetComponent<SpriteRenderer>().color = new Color(.2f, .9f, .3f);
|
||||
possibleMoves.Enqueue(cells[testX2, testY2]);
|
||||
}
|
||||
}
|
||||
|
||||
abs2Position = selectedCharacter.transform.position + Vector3.down + Vector3.right;
|
||||
|
||||
Vector2 abs2Position = selectedCharacter.transform.position + Vector3.down + Vector3.right;
|
||||
GetCellCoordDirect(abs2Position, out int testX3, out int testY3);
|
||||
if (!(testX3 == 9 || testY3 == 9))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user