diff options
author | Carson Katri <carson.katri@gmail.com> | 2021-06-13 08:51:14 -0400 |
---|---|---|
committer | Carson Katri <carson.katri@gmail.com> | 2021-06-13 08:51:14 -0400 |
commit | c65c617e2031aa6ece4fa6831891fcf1e13662d4 (patch) | |
tree | f8a8fd0d37be0b3ef2a736187ea6d999e7069fb6 /Assets/Scripts/Controllers/GameController.cs | |
parent | ac864b588ee59fbbc62c8bcf7c82cc51767276ec (diff) | |
download | gmtk-gamejam-c65c617e2031aa6ece4fa6831891fcf1e13662d4.tar.gz gmtk-gamejam-c65c617e2031aa6ece4fa6831891fcf1e13662d4.tar.zst gmtk-gamejam-c65c617e2031aa6ece4fa6831891fcf1e13662d4.zip |
Fix animations, and improve helptext
Diffstat (limited to 'Assets/Scripts/Controllers/GameController.cs')
-rw-r--r-- | Assets/Scripts/Controllers/GameController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Assets/Scripts/Controllers/GameController.cs b/Assets/Scripts/Controllers/GameController.cs index 926238a..c9cb0ce 100644 --- a/Assets/Scripts/Controllers/GameController.cs +++ b/Assets/Scripts/Controllers/GameController.cs @@ -90,7 +90,7 @@ namespace Controllers freezeMotion = false; startTime = Time.time; - ball.Rigidbody.velocity = new Vector2(0, 5f); + ball.Rigidbody.velocity = new Vector2(0, 10f); } private void Update() @@ -102,7 +102,7 @@ namespace Controllers { if (player.HasBall || enemy.HasBall) { - ball.transform.position = ballTarget - new Vector3(0, Mathf.Sin(Time.time * dribbleHeight * dribbleSpeed) + 1f, 0); + ball.transform.position = ballTarget - new Vector3(0, (Mathf.Sin(Time.time * dribbleSpeed) + 1f) * (ballTarget.y - 0.75f) * dribbleHeight, 0); } } |