This is some code I wrote to create a Catmull-Rom spline with any number of control points. There is also code to allow uniformly spaced points.
Click here for the code.
If you don’t already know, Catmull-Rom splines are awesome because they pass through every control point smoothly.
Enjoy!
New SHMUP called Crow-Regime I’m working on
Here is a working example I pieced together since there are no searchable examples that work. Why doesn’t this already exist? No idea…
Link (paste bin): http://pastebin.com/PrkLvJKY
Filed under indie game development macosx OpenGL loop
There is apparently no good code on the internet for parsing a ZLIB compressed TMX map file. This is the file saved by the popular Tiled Map Editor. So I fixed that just now. Anyone who knows programming at all should be able to modify this to their needs. You’ll need to download pugixml and possibly zlib to use it but that’s it. This code could not be simpler. Bye!
http://pastebin.com/bzYQh0uA
I have to give freecode props for having the only base64 encode/decode code that was
A) not ridiculous in it’s requiring other code
B) worked perfectly with no issues
Tip to those who give out free code:
Stop writing code that requires all kinds of random stuff. :)
Link to the code: http://freecode-freecode.blogspot.com/2008/02/base64c.html