Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -3862,7 +3862,7 @@ MonoBehaviour:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 21300000, guid: 7c66a99d58ee18141b44c8f45c1bdaeb, type: 3}
m_Sprite: {fileID: 21300000, guid: bf50f27c49dd41d49b54473e785db248, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@@ -4827,7 +4827,7 @@ MonoBehaviour:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 21300000, guid: a3037f1faff792945b3103113a640e6a, type: 3}
m_Sprite: {fileID: 21300000, guid: c4e4eb24a9a386f4fb52878c4ad5ed4d, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@@ -6760,7 +6760,7 @@ GameObject:
- component: {fileID: 834563065}
- component: {fileID: 834563064}
m_Layer: 0
m_Name: mc_dirt (6)
m_Name: mc_dirt (6)EPIC
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@@ -10422,7 +10422,7 @@ MonoBehaviour:
coinsText: {fileID: 310389318}
audio1: {fileID: 1404825052}
audio2: {fileID: 1404825051}
die: {fileID: 8300000, guid: 793c1477c788cb34d881ea2f47af6645, type: 3}
die: {fileID: 8300000, guid: d76c6d323480f7747b1b8455d1de9081, type: 3}
jumpSound: {fileID: 8300000, guid: 7413f11e51b4af84eb6a3d39db19234c, type: 3}
yahoo: {fileID: 8300000, guid: cc4a3d4dc1ade7047ab098c6c65a70b5, type: 3}
coinSound: {fileID: 8300000, guid: 4293ccea941996245860d95f5e2b3a18, type: 3}
@@ -10437,11 +10437,13 @@ MonoBehaviour:
- {fileID: 21300000, guid: 2c40b5d4e9e2de54d883a4b63fa4d5a9, type: 3}
- {fileID: 21300000, guid: f4c1bbb3ff955374cb37499412c9b681, type: 3}
- {fileID: 21300000, guid: 7b85ad60da532ec49bfb081712ebe2b1, type: 3}
- {fileID: 21300000, guid: 7b85ad60da532ec49bfb081712ebe2b1, type: 3}
- {fileID: 21300000, guid: 7b85ad60da532ec49bfb081712ebe2b1, type: 3}
- {fileID: 21300000, guid: 7b85ad60da532ec49bfb081712ebe2b1, type: 3}
- {fileID: 21300000, guid: 7b85ad60da532ec49bfb081712ebe2b1, type: 3}
- {fileID: 21300000, guid: dae76e9a9632b454e9586915637420b1, type: 3}
- {fileID: 21300000, guid: e1c22706aaf1fd143b9e548e7523ae2e, type: 3}
- {fileID: 21300000, guid: 395ac37eac86b814a84d4f26488e2f81, type: 3}
- {fileID: 21300000, guid: bf50f27c49dd41d49b54473e785db248, type: 3}
- {fileID: 21300000, guid: 54bdf72eddb04e5419d17fed419d41b0, type: 3}
- {fileID: 21300000, guid: c4e4eb24a9a386f4fb52878c4ad5ed4d, type: 3}
- {fileID: 21300000, guid: 243be49934e2d8d4fbec5726cd951319, type: 3}
- {fileID: 21300000, guid: 855f57d18b56b704bbb9d3b5059db7f9, type: 3}
powerUps:
- {fileID: 21300000, guid: 6e576665feaf87f4caca5fc6cd0e748f, type: 3}
- {fileID: 21300000, guid: ba5904298d120e3408f8bf6ceae2b5b1, type: 3}
@@ -11324,7 +11326,7 @@ MonoBehaviour:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 21300000, guid: f67c72c96ff371940ae064732990a1c7, type: 3}
m_Sprite: {fileID: 21300000, guid: 54bdf72eddb04e5419d17fed419d41b0, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@@ -13307,7 +13309,7 @@ MonoBehaviour:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 21300000, guid: 7c66a99d58ee18141b44c8f45c1bdaeb, type: 3}
m_Sprite: {fileID: 21300000, guid: 395ac37eac86b814a84d4f26488e2f81, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
@@ -13476,7 +13478,7 @@ MonoBehaviour:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 21300000, guid: 7c66a99d58ee18141b44c8f45c1bdaeb, type: 3}
m_Sprite: {fileID: 21300000, guid: e1c22706aaf1fd143b9e548e7523ae2e, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
BIN +229 KB Assets/Sounds/ded.wav
Binary file not shown.
@@ -85,14 +85,16 @@ public class Weegee : MonoBehaviour
public bool firstTime;
public int consecutiveRevives = 1;
private bool skinChanged = false;

private int toyStoryBlock = 0;
int tempNumber;

//Method that is called when game begins
private void Start()
{
// PlayerPrefs.DeleteAll();
//set store

//
for (int i = 1; i < unlockables.Length; i++)
{
if (PlayerPrefs.GetInt("Block" + i, 0) == 1)
@@ -123,6 +125,8 @@ private void Start()
setScore();
falling = false; //NOTE: be set when instantiated

//Debug.Log(blockChoice);

}

public void setFirstTime(bool b)
@@ -141,6 +145,10 @@ public void OpenShop()
totalCoins.text = coins.ToString();
coinsText.SetActive(true);

//Vector3 newVector = new Vector3(GameObject.Find("Buy 1 (" + blockChoice + ")").GetComponent<Transform>().position.x, GameObject.Find("Buy 1 (" + blockChoice + ")").GetComponent<Transform>().position.y, GameObject.Find("Buy 1 (" + blockChoice + ")").GetComponent<Transform>().position.z);
//GameObject.Find("GreenBorder").GetComponent<Transform>().position = newVector;
purchaseBlock(blockChoice);

}
public void toggleSound()
{
@@ -240,10 +248,10 @@ public void Update()
//Camera moves Weegee's Y position
CameraMove();
//used to spawn the coins during the falling phase
if (consecutiveRevives == 1)
{
spawnCoin();
}

spawnCoin();



//Used for keyboard testing (can be removed during android release)
if (Input.GetButtonDown("JumpKeyboard")) Jump();
@@ -294,19 +302,32 @@ public void spawnCoin()
if (GameObject.Find("Block #" + (blockNum - 4)) != null)
{
float blockY = GameObject.Find("Block #" + (blockNum - 4)).GetComponent<Transform>().position.y;
if (gameObject.GetComponent<Rigidbody2D>().position.y + 1 < blockY && !falling && levelCheck > 10)
if (gameObject.GetComponent<Rigidbody2D>().position.y + 1 < blockY && !falling && levelCheck > 10 && consecutiveRevives == 1)
{
falling = true;

for (int i = (int)blockY; i > 0; i--)
if (consecutiveRevives == 1)
{
Instantiate(coin, new Vector3((float)Math.Sin((double)i / 20.0) * 8, i, 0), Quaternion.identity);


for (int i = (int)blockY; i > 0; i--)
{
Instantiate(coin, new Vector3((float)Math.Sin((double)i / 20.0) * 8, i, 0), Quaternion.identity);
}
disablePowerUps();

}
}
if (gameObject.GetComponent<Rigidbody2D>().position.y + 4 < blockY && !falling && levelCheck > 10 && consecutiveRevives > 1)
{
falling = true;
disablePowerUps();

Vector3 newVector = new Vector3(gameObject.GetComponent<Transform>().position.x, GameObject.Find("mc_dirt (6)EPIC").GetComponent<Transform>().position.y + 8, gameObject.GetComponent<Transform>().position.z);
gameObject.GetComponent<Transform>().position = newVector;
}
}



}
public void disablePowerUps()
{
@@ -425,6 +446,7 @@ public void Stopleft()
//Spawns a block at a specified Y position (NOT coordinate) RELATIVE TO WEEGEE, not the world
public void spawnBlock(int y)
{
toyStoryBlock++;
//oldBlock points to a dirt texture found within unity
GameObject oldBlock = GameObject.Find("mc_dirt (14)");
//Mainblock is used when new blocks are instantiated. Mainblock becomes the parent for the newly instantiated blocks.
@@ -456,8 +478,34 @@ public void spawnBlock(int y)
spawnBigJump(block.GetComponent<Transform>().position.x, block.GetComponent<Transform>().position.y + 2);
}

if (blockChoice == 11)
{
if (toyStoryBlock == 1)

{
Debug.Log("1");
block.GetComponent<SpriteRenderer>().sprite = blockTypes[11];
}
if (toyStoryBlock == 2)

{
Debug.Log("2");
block.GetComponent<SpriteRenderer>().sprite = blockTypes[14];
}
if (toyStoryBlock == 3)
{
Debug.Log("3");
block.GetComponent<SpriteRenderer>().sprite = blockTypes[15];
toyStoryBlock = 0;
}
}
else
{
block.GetComponent<SpriteRenderer>().sprite = blockTypes[blockChoice];
}


//Set the sprites of the blocks, changes every 20 score. after 180, will always be the same texture.
block.GetComponent<SpriteRenderer>().sprite = blockTypes[blockChoice];

//each time a block is instantiated, increase the number for the next block.
blockNum++;
@@ -502,7 +550,7 @@ public void Reset()
//only execute if above level 2, AND weegee is on the ground (aka below y coord of -2)
if (levelCheck > 2 && gameObject.GetComponent<Rigidbody2D>().position.y <= -2.0f)
{

toyStoryBlock = 0;
deathScore.text = "Score: " + (levelCheck - 2);

//play sound
@@ -668,7 +716,7 @@ public void unlockBlock(int blockNumber)
}

}

public void purchaseBlock(int blockNumber)
{
if (PlayerPrefs.GetInt("Block" + blockNumber, 0) == 1 || blockNumber == 0)
@@ -679,7 +727,7 @@ public void purchaseBlock(int blockNumber)
Vector3 newVector = new Vector3(GameObject.Find("Buy 1 (" + blockNumber + ")").GetComponent<Transform>().position.x, GameObject.Find("Buy 1 (" + blockNumber + ")").GetComponent<Transform>().position.y, GameObject.Find("Buy 1 (" + blockNumber + ")").GetComponent<Transform>().position.z);

GameObject.Find("GreenBorder").GetComponent<Transform>().position = newVector;

}
}

@@ -106,7 +106,7 @@ MonoBehaviour:
y: 30
width: 1920
height: 947
m_MinSize: {x: 679, y: 492}
m_MinSize: {x: 681, y: 492}
m_MaxSize: {x: 14002, y: 14042}
vertical: 0
controlID: 10
@@ -130,7 +130,7 @@ MonoBehaviour:
y: 0
width: 1361
height: 947
m_MinSize: {x: 404, y: 492}
m_MinSize: {x: 406, y: 492}
m_MaxSize: {x: 10002, y: 14042}
vertical: 1
controlID: 11
@@ -154,8 +154,8 @@ MonoBehaviour:
y: 0
width: 1361
height: 532
m_MinSize: {x: 404, y: 221}
m_MaxSize: {x: 8004, y: 4021}
m_MinSize: {x: 406, y: 221}
m_MaxSize: {x: 8006, y: 4021}
vertical: 0
controlID: 12
--- !u!114 &8
@@ -365,10 +365,10 @@ MonoBehaviour:
width: 409
height: 511
m_TreeViewState:
scrollPos: {x: 0, y: 98}
m_SelectedIDs: 60f5faff
m_LastClickedID: -330400
m_ExpandedIDs: 1afcffff00000000782f00003a300000a8310000d6310000ee3100001c330000ea330000
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 5c320000
m_LastClickedID: 12892
m_ExpandedIDs: 1afcffff0000000032310000f031000010320000de320000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -423,9 +423,9 @@ MonoBehaviour:
m_isRotationLocked: 0
m_AudioPlay: 0
m_Position:
m_Target: {x: 421.64233, y: 255.36914, z: -30.625}
m_Target: {x: 2.1231177, y: 1.9144561, z: -30.625}
speed: 2
m_Value: {x: 421.64233, y: 255.36914, z: -30.625}
m_Value: {x: 2.1231177, y: 1.9144561, z: -30.625}
m_RenderMode: 0
m_ValidateTrueMetals: 0
m_SceneViewState:
@@ -452,9 +452,9 @@ MonoBehaviour:
speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size:
m_Target: 610.3953
m_Target: 20.234056
speed: 2
m_Value: 610.3953
m_Value: 20.234056
m_Ortho:
m_Target: 1
speed: 2
@@ -577,19 +577,19 @@ MonoBehaviour:
m_ShowAllHits: 0
m_SearchArea: 0
m_Folders:
- Assets/Blocks
- Assets/Sounds
m_ViewMode: 1
m_StartGridSize: 64
m_LastFolders:
- Assets/Blocks
- Assets/Sounds
m_LastFoldersGridSize: -1
m_LastProjectPath: D:\Users\Chris\Documents\GitHub\Project1
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 5e2b0000
m_LastClickedID: 11102
m_ExpandedIDs: 00000000142600005e2b000000ca9a3bffffff7f
m_SelectedIDs: 40280000
m_LastClickedID: 10304
m_ExpandedIDs: 0000000014260000642b000000ca9a3bffffff7f
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -617,7 +617,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 00000000142600005e2b0000
m_ExpandedIDs: 0000000014260000642b0000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -695,9 +695,9 @@ MonoBehaviour:
m_Pos:
serializedVersion: 2
x: 0
y: 450
width: 969
height: 256
y: 624
width: 1359
height: 394
--- !u!114 &19
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -724,7 +724,7 @@ MonoBehaviour:
y: 92
width: 557
height: 926
m_ScrollPosition: {x: 0, y: 0}
m_ScrollPosition: {x: 0, y: 840}
m_InspectorMode: 0
m_PreviewResizer:
m_CachedPref: 343
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN +9.38 KB (100%) Library/assetDatabase3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.