Penta¶
Class: PentaTileLayoutPenta
Penta is the addon's signature 5-archetype dual-grid format. It supports
horizontal and vertical strips and a progressive tile count: ONE, TWO, THREE,
FOUR, or FIVE. AUTO detects a strip size from the atlas; AUTO_STRIP detects
each strip independently.
The canonical slot order is:
IsolatedCellFillBorderInnerCornerOppositeCorners
OuterCorner is implicit. PentaTile synthesizes it from IsolatedCell at load
time instead of giving it a dedicated slot.
Template¶
FIVE mode template:

ONE mode template:

When to use it¶
Use Penta when you want the smallest useful authored atlas. ONE mode is enough for quick prototypes, while FIVE mode gives an artist explicit control over all five archetypes.
Penta is a dual-grid layout, so it works best for ground, walls, blobs, and terrain-like fills where the visible shape can be assembled from corner connectivity.
Setup¶
- Add a
PentaTileMapLayer. - Set
layoutto aPentaTileLayoutPentaResource. - Set
axistoHORIZONTALfor a strip across X, orVERTICALfor a strip down Y. - Leave
tile_countatAUTOfor normal one-strip atlases, or choose an explicit mode if you want the inspector preview to show that authoring tier. - Assign your
TileSet, or leavetile_setempty to use the bundled fallback.
Tile count modes¶
| Mode | Authored slots | What PentaTile synthesizes |
|---|---|---|
ONE |
IsolatedCell |
Fill, Border, InnerCorner, OppositeCorners, OuterCorner |
TWO |
IsolatedCell, Fill |
Border, InnerCorner, OppositeCorners, OuterCorner |
THREE |
IsolatedCell, Fill, Border |
InnerCorner, OppositeCorners, OuterCorner |
FOUR |
IsolatedCell, Fill, Border, InnerCorner |
OppositeCorners, OuterCorner |
FIVE |
all five slots | OuterCorner only |
AUTO |
detected from atlas strip length | depends on detected mode |
AUTO_STRIP |
detected per strip | depends on each strip |
Authoring notes¶
- Keep pixels inside each archetype's expected silhouette. PentaTile enforces a canonical silhouette during synthesis so rotated pixels do not bleed into adjacent cells.
OppositeCornersanchors mask9(TL + BR) as the unrotated case. If art made for another tool appears diagonally swapped, flip that tile horizontally.AUTO_STRIPis useful when one atlas source contains several Penta strips, but it is not multi-terrain blending. Mixed terrain transitions are future work.
See What is a Penta tileset? for the canonical term definition.