TO SQUASH: Started nuke ball.

This commit is contained in:
2026-08-04 00:44:32 -04:00
parent 6351d69fb1
commit 15e822e693
31 changed files with 2406 additions and 12 deletions
+4 -4
View File
@@ -23,14 +23,14 @@ public class FruitBall : MonoBehaviour
{
audioSource = GetComponent<AudioSource>();
animator = GetComponent<Animator>();
speed = new Vector2(Mathf.Sign(Random.Range(-1f, 1f)) * 0.0001f,
Mathf.Sign(Random.Range(-1f, 1f)) * 0.0001f);
speed = new Vector2(Mathf.Sign(Random.Range(-1f, 1f)) * 0.005f,
Mathf.Sign(Random.Range(-1f, 1f)) * 0.005f);
audioSource.PlayOneShot(spawnSound);
}
// Update is called once per frame
void Update()
void FixedUpdate()
{
AnimatorStateInfo stateInfo = animator.GetCurrentAnimatorStateInfo(0);
@@ -61,7 +61,7 @@ public class FruitBall : MonoBehaviour
collision.gameObject.CompareTag("FruitBall"))
{
speedIncreaseTimer = 2.0f; // Reset the timer to 2 seconds
speedMultiplier = 50.0f; // Set the speed multiplier to 7x
speedMultiplier = 20.0f; // Set the speed multiplier to 7x
}
}
}