create tiled map from buffer

add function for initializes a TMX Tiled Map with a TMX formatted XML string and a texture buffer;
When you need to pack resources will be used