Revision of Game Maker: flattening a room's tile layers to a surface at runtime from Sat, 03/31/2012 - 17:55

This is just a proof-of-concept GML code thing I did for rdein. What it does is this: when you start a room, it draw all of the room's tiles to a surface or series of surfaces, then destroys the tiles. Then it draws the surfaces in place of the tiles. Drawing a few large surfaces is theoretically faster than drawing 1000s of individual tiles, each with their own specific top, left, width, and height values.

AttachmentSize
TileSurfacer.gmk85.47 KB
pensive-mosquitoes