The 'fun' bit comes, when you have multiple coils, and capacitors, and add
opto-detection of the projectile, to fire the next coil. Once the speed
gets up to a few hundred m/sec, the timings begin to get quite critical.
Large flash-gun capacitors work quite well.
Best Wishes