ios - Is it wise to export a Tiled layer into 1 big png file to save memory? -
i made background layer in tiled map sprite kit. main layer background layer grass, dirt, water & lot drawn - player character "walks on". map consisted of tiles 16x16 (keeping them small having better control on little details during design of map). map self 100x100. it's pretty decent size wise. have between 757-778 nodes because of these background tiles. that's , haven't added single tree second layer. since i'm using tiled map editor jstilemap display it, can somehow export ready background layer tiled .png file , load game 1 big picture drop node count 1. wouldn't drastically performance , memory? others layers have images spread across & there's layer that's responsible boundaries. clever way of going making game or missing something? if is, know how export layer .png file? checked tiled & couldn't find that.
you better off having single png/node background. there benefits of doing this:
you have 1 node.
you can add node self , place behind rest of action. way there regardless of moving other nodes.
in picture below added background view , have 3 other tile layers plus 1 object layer. node count still substantially less 700.
as exporting have, don't think there's way save entire tile layer 1 png. hack take screenshot, crop background part , work that.
Comments
Post a Comment