Tilesheet/Tilemap-based Renderer Questions

This is a question that has been bugging me for a while, how exactly do frameworks like Haxepunk and Haxeflixel render using Tilesheet / Tilemap? I read the article on the Haxeflixel website, but I still can’t wrap my head around it. The Tilesheet and Tilemap API’s both require areas in one image or bitmap, but in game engines like Haxeflixel, I can have separate sprites like “player.png” or “enemy.png” How exactly does that system work? Are those separate bitmaps stitched into one master bitmap?



Yeah, I think they create atlases on the fly to be able to batch the draw calls