TKStaggerAxis Constants Reference

Declared in TKEnums.h

TKStaggerAxis

Stagger axis of hexagonal and “staggered” isometric tilemaps. Has the effect of rotation the map by 90° degrees. Defaults to X axis.

Definition

typedef NS_ENUM(NSInteger, TKStaggerAxis ) {
   TKStaggerAxisX,
   TKStaggerAxisY,
   TKStaggerAxisFlatTopHex = TKStaggerAxisX,
   TKStaggerAxisPointyTopHex = TKStaggerAxisY,
};

Constants

TKStaggerAxisX

The tiles are staggered along the X axis. (Default)

Declared In TKEnums.h.

TKStaggerAxisY

The tiles are staggered along the Y axis.

Declared In TKEnums.h.

TKStaggerAxisFlatTopHex

Stagger axis for hex tiles where the flat side of hex tiles points upward (aka “flat topped”). Synonymous with TKStaggerAxisX, use for convenience if you can’t remember how stagger X/Y affects hex tile orientation.

Declared In TKEnums.h.

TKStaggerAxisPointyTopHex

Stagger axis for hex tiles where the corners of hex tiles points upward (aka “pointy topped”). Synonymous with TKStaggerAxisY, use for convenience if you can’t remember how stagger X/Y affects hex tile orientation.

Declared In TKEnums.h.

Declared In

TKEnums.h