I’ve been doing some reading, and every tutorial I’ve come across that deals with cocos2d-x and tilemaps has something to do with tmx, or open source tilemap programs… However I’m currently trying to build myself an engine so I can create my own rpg, and I don’t want to use someone elses program to manage my sprites. I would much rather load all my 16x16 textures into a larger sheet of say 160x320 and then have cocos2d-x slice it up and place what tiles I want where I want them. I know how I would store what tiles would go where, and how I would place them, but I don’t know how to manipulate an image(slice/rotate/flip/etc).
I want to know if there’s a way to load a large tile sheet in png format, and slice it up into individual tiles using xy coords (example, split a 160x320 png file into 200 individual 16x16 tiles), then place the tiles using an array. I would much rather do this than store hundreds if not thousands of textures into individual files. Is there any way to do this as of now? If so, what functions should I be doing homework on?