Inherits from KKTilemapNode
Declared in KKProTilemapNode.h

Properties

delegate

@property (weak) id<KKTilemapObjectSpawnDelegate> delegate

Instance Methods

createPhysicsShapesWithObjectLayerNode:

Creates physics blocking shapes from an object layer’s objects.

- (SKNode *)createPhysicsShapesWithObjectLayerNode:(KKTilemapObjectLayerNode *)objectLayerNode

Parameters

objectLayerNode

The object layer node from whose objects to create physics shapes.

Return Value

The node containing child nodes for each physics body created.

Declared In

KKProTilemapNode.h

createPhysicsShapesWithTileLayerNode:

Creates physics blocking shapes from the main tile layer’s blocking tiles and the blockingTiles or nonBlockingTiles properties of tilesets.

- (SKNode *)createPhysicsShapesWithTileLayerNode:(KKTilemapTileLayerNode *)tileLayerNode

Parameters

tileLayerNode

The tile layer node for which to create physics shapes.

Return Value

The node containing child nodes for each physics body created.

Declared In

KKProTilemapNode.h

spawnEntityWithWorld:objectTemplate:tilemapObject:

- (OGWEntity *)spawnEntityWithWorld:(OGWWorld *)world objectTemplate:(NSDictionary *)objectTemplate tilemapObject:(KKTilemapObject *)tilemapObject

spawnObjectsWithWorld:

Spawns the objects of all object layers and adds them as child nodes to their corresponding objectLayerNode. The object’s classes and properties are defined in objects.lua.

- (void)spawnObjectsWithWorld:(OGWWorld *)world

Declared In

KKProTilemapNode.h

spawnObjectsWithWorld:layerNode:

Spawns the objects of an object layer and adds them as child nodes to the objectLayerNode. The object’s classes and properties are defined in objects.lua.

- (void)spawnObjectsWithWorld:(OGWWorld *)world layerNode:(KKTilemapObjectLayerNode *)objectLayerNode

Parameters

objectLayerNode

The object layer node for which to spawn objects.

Declared In

KKProTilemapNode.h