Commit 181caa47 authored by nedboy3's avatar nedboy3
Browse files

Now all minigames are scaled and capped in how many levels can be gained with one play.

parent 5d3a5c12
......@@ -41,7 +41,7 @@ public class LevelManager : MonoBehaviour {
}
if (Time.time > exitTime){
float levels = MimeMime.PlayerScore / 3000;
float levels = Mathf.Min((MimeMime.PlayerScore / 3000), 0.95f);
GameManager.addToLevel("Silas", levels);
SceneManager.LoadScene("Daytime");
}
......
......@@ -37,7 +37,7 @@ public class PieManager : MonoBehaviour {
if (Time.time > exitTime)
{
print(score);
float levels = score / 3000f;
float levels = Mathf.Min((score / 1500f), 0.95f);
GameManager.addToLevel("Simon", levels);
SceneManager.LoadScene("Daytime");
if (tutorial) {
......
......@@ -49,7 +49,7 @@ public class TrapezeController : MonoBehaviour {
}
if (Time.time > exitTime) {
float levels = score / 2000;
float levels = Mathf.Min((score / 500), 0.95f);
GameManager.addToLevel("John", levels);
SceneManager.LoadScene("Daytime");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment