Original Post
I've searched around the site and found quite a few posts about this but nothing ever really seems to come to a definite closure.
I have been tinkering with a Galaga clone in XNA/C#. I've got all the basics working, but I want the enemies to move in patterns like we saw in Galaga and other games.
I've seen people mention things like Bezier Curves and B Splines. Unfortunately, at least with Bezier--not very familiar with B splines, it uses all of the control points to interpolate the smoothed curve. In other words, making a curve like the one seen here: http://mathforum.org/mathimages/index.php/Parametric_Equations (Butterfly curve), would be impossible. From what little I gathered about B splines, it seemed like they had some of the same properties (I know by definition, Bezier curves can be made entirely out of B Splines).
Unfortunately, get parametric equations like the one below to map to the window space is rather annoying:
Any ideas or suggestions? Has anyone successfully created a clone with the patterns? What approach did you take?
I have been tinkering with a Galaga clone in XNA/C#. I've got all the basics working, but I want the enemies to move in patterns like we saw in Galaga and other games.
I've seen people mention things like Bezier Curves and B Splines. Unfortunately, at least with Bezier--not very familiar with B splines, it uses all of the control points to interpolate the smoothed curve. In other words, making a curve like the one seen here: http://mathforum.org/mathimages/index.php/Parametric_Equations (Butterfly curve), would be impossible. From what little I gathered about B splines, it seemed like they had some of the same properties (I know by definition, Bezier curves can be made entirely out of B Splines).
Unfortunately, get parametric equations like the one below to map to the window space is rather annoying:
float x = (float)(3 * Math.Sin(elapsedTime * 5));float y = (float)(3 * Math.Cos(elapsedTime * 3));Any ideas or suggestions? Has anyone successfully created a clone with the patterns? What approach did you take?