Commit b4743506 by Raphael

Fixed hitboxes

parent 7db1b27e
No preview for this file type
......@@ -27,7 +27,7 @@ namespace Assets.Scripts
void Update()
{
Camera.main.transform.Translate(new Vector3(2f*Time.deltaTime, 0, 0));
Camera.main.transform.Translate(new Vector3(4f*Time.deltaTime, 0, 0));
var rightBorder = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width,
Screen.height, 0)).x;
var leftBorder = Camera.main.ScreenToWorldPoint(new Vector3(0, 0, 0)).x;
......
......@@ -31,7 +31,7 @@ namespace Assets.Scripts
if (Battery < 12)
SceneManager.LoadScene("GameOver");
if (Progression == 5)
if (Progression == 25)
SceneManager.LoadScene("Win");
}
......
......@@ -44,6 +44,6 @@ public class UIController : MonoBehaviour
private void DisplayBattery()
{
Battery.sprite = BatteryImages[_player.Battery/8];
Progression.sprite = ProgressionSprites[_player.Progression];
Progression.sprite = ProgressionSprites[_player.Progression / 5];
}
}
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