diff --git a/Assets/Scripts/BossEnemyMovement.cs b/Assets/Scripts/BossEnemyMovement.cs index e1bfc95..62e3054 100644 --- a/Assets/Scripts/BossEnemyMovement.cs +++ b/Assets/Scripts/BossEnemyMovement.cs @@ -18,7 +18,7 @@ public class BossEnemyMovement : MonoBehaviour { void Update() { - Vector3 newPosition = Vector3.MoveTowards(transform.position, path[nextStop], speed * Mathf.Pow(Mathf.Sin(songData.songTime * Mathf.PI * songData.bpm / 480), 10) * Time.deltaTime); + Vector3 newPosition = Vector3.MoveTowards(transform.position, path[nextStop], speed * Mathf.Pow(Mathf.Cos(songData.songTime * Mathf.PI * songData.bpm / 480), 10) * Time.deltaTime); if ((newPosition - transform.position).x < 0) { transform.localScale = new Vector3(-1, 1, 1); diff --git a/Assets/Scripts/EnemyMovement.cs b/Assets/Scripts/EnemyMovement.cs index da7027a..8d34ff5 100644 --- a/Assets/Scripts/EnemyMovement.cs +++ b/Assets/Scripts/EnemyMovement.cs @@ -17,7 +17,7 @@ public class EnemyMovement : MonoBehaviour { } void Update () { - Vector3 newPosition = Vector3.MoveTowards(transform.position, path[nextStop], speed * Mathf.Pow(Mathf.Sin(songData.songTime * Mathf.PI * songData.bpm / 60), 10) * Time.deltaTime); + Vector3 newPosition = Vector3.MoveTowards(transform.position, path[nextStop], speed * Mathf.Pow(Mathf.Cos(songData.songTime * Mathf.PI * songData.bpm / 60), 10) * Time.deltaTime); if ((newPosition - transform.position).x < 0) { transform.localScale = new Vector3(-1, 1, 1); diff --git a/Assets/Scripts/LargeEnemyMovement.cs b/Assets/Scripts/LargeEnemyMovement.cs index ebca944..e6f6bf2 100644 --- a/Assets/Scripts/LargeEnemyMovement.cs +++ b/Assets/Scripts/LargeEnemyMovement.cs @@ -23,7 +23,7 @@ public class LargeEnemyMovement : MonoBehaviour { } void Update () { - Vector3 newPosition = Vector3.MoveTowards(transform.position, path[nextStop], speed * Mathf.Pow(Mathf.Sin(songData.songTime * Mathf.PI * songData.bpm / 240), 2) * Time.deltaTime); + Vector3 newPosition = Vector3.MoveTowards(transform.position, path[nextStop], speed * Mathf.Pow(Mathf.Cos(songData.songTime * Mathf.PI * songData.bpm / 240), 2) * Time.deltaTime); Vector3 difference = newPosition - transform.position; if (difference.y > 0) { diff --git a/Assets/Sounds/Hat.wav b/Assets/Sounds/Hat.wav index 9c25846..efd1d59 100644 Binary files a/Assets/Sounds/Hat.wav and b/Assets/Sounds/Hat.wav differ diff --git a/Assets/Sounds/Kick.wav b/Assets/Sounds/Kick.wav index 1a75667..67a4d75 100644 Binary files a/Assets/Sounds/Kick.wav and b/Assets/Sounds/Kick.wav differ diff --git a/Assets/Sounds/Snare.wav b/Assets/Sounds/Snare.wav index 9d86d80..e7c90c1 100644 Binary files a/Assets/Sounds/Snare.wav and b/Assets/Sounds/Snare.wav differ