Interface BoneDefinition

The definition of a bone and its attached image for a mob skin

Hierarchy

  • BoneDefinition

Properties

angle: number

The default angle to apply for this bone

centerX: number

The center point of the bone defined by an offset to put the image in the right place

centerY: number

The center point of the bone defined by an offset to put the image in the right place

children?: BoneDefinition[]

The children of this bone if any

image?: string

The ID of the image from the cache to attach

layer: number

The relative layer of this bone - this lets you sprite stack. No definition, just a relative number

name: string

The name of the bone to be used in key frame animation

spriteOffsetX?: number

The offset of the sprite thats attached to this bone

spriteOffsetY?: number

The offset of the sprite thats attached to this bone

Generated using TypeDoc