Skip to content

Make

Constructors

new Make()

new Make(): Make

Returns

Make

Properties

spine()

static spine: (settings) => Spine

Parameters

settings: SpineSettings

Returns

Spine

Source

src/utils/factory/Make.ts:157

Methods

animatedSprite()

static animatedSprite(settings): AnimatedSprite

Parameters

settings: AnimatedSpriteSettings

Returns

AnimatedSprite

Source

src/utils/factory/Make.ts:959


bitmapText()

bitmapText(settings)

static bitmapText(settings?): BitmapText

Parameters

settings?: BitmapTextSettings

Returns

BitmapText

Source

src/utils/factory/Make.ts:459

bitmapText(value, style, alpha, position, anchor, scale)

static bitmapText(value?, style?, alpha?, position?, anchor?, scale?): BitmapText

Parameters

value?: string

style?: Partial<IBitmapTextStyle>

alpha?: number

position?: PointLike

anchor?: PointLike

scale?: PointLike

Returns

BitmapText

Source

src/utils/factory/Make.ts:460


coloredSprite()

coloredSprite(settings)

static coloredSprite(settings): Sprite<Application<any>>

Parameters

settings: ColoredSpriteSettings

Returns

Sprite<Application<any>>

Source

src/utils/factory/Make.ts:214

coloredSprite(color, size, shape, opts, alpha, position, anchor, scale)

static coloredSprite(color?, size?, shape?, opts?, alpha?, position?, anchor?, scale?): Sprite<Application<any>>

Parameters

color?: number

size?: PointLike

shape?: "rectangle" | "circle" | "rounded_rectangle"

opts?

alpha?: number

position?: PointLike

anchor?: PointLike

scale?: PointLike

Returns

Sprite<Application<any>>

Source

src/utils/factory/Make.ts:215


container()

container(settings)

static container(settings?): Container<Application<any>>

Parameters

settings?: ContainerSettings

Returns

Container<Application<any>>

Source

src/utils/factory/Make.ts:508

container(alpha, position, scale)

static container(alpha?, position?, scale?): Container<Application<any>>

Parameters

alpha?: number

position?: PointLike

scale?: PointLike

Returns

Container<Application<any>>

Source

src/utils/factory/Make.ts:509


flexContainer()

flexContainer(settings)

static flexContainer(settings): FlexContainer

Parameters

settings: Partial<FlexContainerCreationSettings>

Returns

FlexContainer

Source

src/utils/factory/Make.ts:540

flexContainer(alpha, position, settings, scale)

static flexContainer(alpha?, position?, settings?, scale?): FlexContainer

Parameters

alpha?: number

position?: PointLike

settings?: Partial<FlexContainerSettings>

scale?: PointLike

Returns

FlexContainer

Source

src/utils/factory/Make.ts:541


graphics()

graphics(settings)

static graphics(settings): Graphics

Parameters

settings: GraphicsSettings

Returns

Graphics

Source

src/utils/factory/Make.ts:585

graphics(alpha, position, scale)

static graphics(alpha?, position?, scale?): Graphics

Parameters

alpha?: number

position?: PointLike

scale?: PointLike

Returns

Graphics

Source

src/utils/factory/Make.ts:586


htmlText()

htmlText(settings)

static htmlText(settings?): HTMLText

Parameters

settings?: HTMLTextSettings

Returns

HTMLText

Source

src/utils/factory/Make.ts:410

htmlText(value, style, alpha, position, anchor, scale)

static htmlText(value?, style?, alpha?, position?, anchor?, scale?): HTMLText

Parameters

value?: string

style?: Partial<HTMLTextStyle | TextStyle | ITextStyle>

alpha?: number

position?: PointLike

anchor?: PointLike

scale?: PointLike

Returns

HTMLText

Source

src/utils/factory/Make.ts:411


mesh()

mesh(settings)

static mesh(settings): Mesh<Shader>

Parameters

settings: MeshSettings

Returns

Mesh<Shader>

Source

src/utils/factory/Make.ts:689

mesh(geometry, shader, state, drawMode)

static mesh(geometry, shader, state?, drawMode?): Mesh<Shader>

Parameters

geometry: Geometry

shader: Shader

state?: State

drawMode?: DRAW_MODES

Returns

Mesh<Shader>

Source

src/utils/factory/Make.ts:690


nineSlice()

nineSlice(settings)

static nineSlice(settings): NineSlicePlane

Parameters

settings: NineSliceSettings

Returns

NineSlicePlane

Source

src/utils/factory/Make.ts:889

nineSlice(asset, sheet, leftWidth, topHeight, rightWidth, bottomHeight, alpha, position, scale)

static nineSlice(asset, sheet?, leftWidth?, topHeight?, rightWidth?, bottomHeight?, alpha?, position?, scale?): NineSlicePlane

Parameters

asset: string | Texture<Resource>

sheet?: SpritesheetLike

leftWidth?: number

topHeight?: number

rightWidth?: number

bottomHeight?: number

alpha?: number

position?: PointLike

scale?: PointLike

Returns

NineSlicePlane

Source

src/utils/factory/Make.ts:890


simpleMesh()

simpleMesh(settings)

static simpleMesh(settings): SimpleMesh

Parameters

settings: SimpleMeshSettings

Returns

SimpleMesh

Source

src/utils/factory/Make.ts:825

simpleMesh(asset, sheet, vertices, uvs, indices, drawMode, alpha, position, scale)

static simpleMesh(asset, sheet, vertices?, uvs?, indices?, drawMode?, alpha?, position?, scale?): SimpleMesh

Parameters

asset: string | Texture<Resource>

sheet: SpritesheetLike

vertices?: Float32Array

uvs?: Float32Array

indices?: Uint16Array

drawMode?: number

alpha?: number

position?: PointLike

scale?: PointLike

Returns

SimpleMesh

Source

src/utils/factory/Make.ts:826


simplePlane()

simplePlane(settings)

static simplePlane(settings): SimplePlane

Parameters

settings: SimplePlaneSettings

Returns

SimplePlane

Source

src/utils/factory/Make.ts:769

simplePlane(asset, sheet, vertsWidth, vertsHeight, alpha, position, scale)

static simplePlane(asset?, sheet?, vertsWidth?, vertsHeight?, alpha?, position?, scale?): SimplePlane

Parameters

asset?: string | Texture<Resource>

sheet?: SpritesheetLike

vertsWidth?: number

vertsHeight?: number

alpha?: number

position?: PointLike

scale?: PointLike

Returns

SimplePlane

Source

src/utils/factory/Make.ts:770


simpleRope()

simpleRope(settings)

static simpleRope(settings): object

Parameters

settings: SimpleRopeSettings

Returns

object

points

points: Point[]

rope

rope: SimpleRope

Source

src/utils/factory/Make.ts:708

simpleRope(asset, sheet, numPoints, segmentLength, autoUpdate, alpha, position, scale)

static simpleRope(asset, sheet?, numPoints?, segmentLength?, autoUpdate?, alpha?, position?, scale?): object

Parameters

asset: string | Texture<Resource>

sheet?: SpritesheetLike

numPoints?: number

segmentLength?: number

autoUpdate?: boolean

alpha?: number

position?: PointLike

scale?: PointLike

Returns

object

points

points: Point[]

rope

rope: SimpleRope

Source

src/utils/factory/Make.ts:709


sprite()

sprite(settings)

static sprite(settings): Sprite<Application<any>>

Parameters

settings: SpriteSettings

Returns

Sprite<Application<any>>

Source

src/utils/factory/Make.ts:302

sprite(asset, sheet, alpha, position, anchor, scale)

static sprite(asset, sheet?, alpha?, position?, anchor?, scale?): Sprite<Application<any>>

Parameters

asset: string | Texture<Resource>

sheet?: SpritesheetLike

alpha?: number

position?: PointLike

anchor?: PointLike

scale?: PointLike

Returns

Sprite<Application<any>>

Source

src/utils/factory/Make.ts:303


spriteAnimation()

static spriteAnimation(props): SpriteAnimation

Parameters

props: SpriteAnimationProps

Returns

SpriteAnimation

Source

src/utils/factory/Make.ts:954


text()

text(value, style, alpha, position, anchor, scale)

static text(value?, style?, alpha?, position?, anchor?, scale?): Text

Parameters

value?: string

style?: Partial<TextStyle | ITextStyle>

alpha?: number

position?: PointLike

anchor?: PointLike

scale?: PointLike

Returns

Text

Source

src/utils/factory/Make.ts:360

text(settings)

static text(settings): Text

Parameters

settings: TextSettings

Returns

Text

Source

src/utils/factory/Make.ts:368


texture()

texture(settings)

static texture(settings): Texture<Resource>

Parameters

settings: TextureSettings

Returns

Texture<Resource>

Source

src/utils/factory/Make.ts:159

texture(asset, sheet)

static texture(asset, sheet?): Texture<Resource>

Parameters

asset: string

sheet?: SpritesheetLike

Returns

Texture<Resource>

Source

src/utils/factory/Make.ts:160


tilingSprite()

tilingSprite(settings)

static tilingSprite(settings): TilingSprite

Parameters

settings: TilingSpriteSettings

Returns

TilingSprite

Source

src/utils/factory/Make.ts:613

tilingSprite(asset, sheet, width, height, tilePosition, alpha, position, anchor, scale)

static tilingSprite(asset, sheet, width, height, tilePosition?, alpha?, position?, anchor?, scale?): TilingSprite

Parameters

asset: string | Texture<Resource>

sheet: SpritesheetLike

width: number

height: number

tilePosition?: PointLike

alpha?: number

position?: PointLike

anchor?: PointLike

scale?: PointLike

Returns

TilingSprite

Source

src/utils/factory/Make.ts:614


uiCanvas()

static uiCanvas(settings): UICanvas

Parameters

settings: UICanvasMakeSettings

Returns

UICanvas

Source

src/utils/factory/Make.ts:998