Write basic projectile code