alot of stuff i forgot to commit

This commit is contained in:
Sylvia 2026-06-24 22:09:38 -07:00
parent fc2329a873
commit b8d516e734
60 changed files with 7397 additions and 64 deletions

View file

@ -11,15 +11,17 @@ public class Projectile : MonoBehaviour
public float speed;
[SerializeField] private Rigidbody2D rb;
public Vector2 direction;
private void Start()
{
Destroy(gameObject, lifetime);
direction = transform.right * speed;
}
private void FixedUpdate()
{
rb.linearVelocity = transform.right * speed;
rb.linearVelocity = direction;
}
private void OnTriggerEnter2D(Collider2D other)
{