BakedChunk

One non-empty baked chunk: a single pre-composited bitmap, ready to become one Image drawable (one addImage() call instead of one per tile). worldX/worldY is the chunk's own top-left world corner - worldX the chunk's minimum X, but worldY the chunk's MAXIMUM Y (its top edge, matching TileSpec.worldY's own top-edge convention and Image's top-left-anchor convention, where pixel rows increase downward as world Y decreases) - i.e. where to position the resulting drawable via addImage()'s offset. The bitmap's own width/height are sized to this chunk's actual tile content (see bakeTileMapImages()'s doc comment) - not necessarily the chunkSize passed in.

Properties

  • bitmap (roBitmap)
  • worldX (float)
  • worldY (float)