Here is another demo project, this time using Catmull Rom Splines. Feel free to use some or all of it as you see fit. I needed it to display level progress so converted one of
@Techdojo's old c++ functions (I couldn't find my Java implementation).
Anyway, here is the project. It is supplied as is and if you want to play around with it feel free.
@Techdojo's demo code had a sprite follow the path and allowed the user to move the control points, changing the path on the fly. I didn't need any of this so I didn't convert it, maybe it's something someone else could try and implement.
Comments
(Can't complain too much I suppose as I pinched the code from one of the Graphics Gem's books - standing on the shoulders of giants and all that!)
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
* Edit Doh!!!! somebody forgot to attach the project ( *
Website: http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive
That all made much more sense when it was still in my head. Now it's written down it's kinda confusing me
Website: http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive
Dislikes: wouterl
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill