Skip to content

Sprite

Extends

  • Sprite

Type parameters

T extends Application = Application

Implements

Constructors

new Sprite()

new Sprite<T>(texture?): Sprite<T>

Parameters

texture?: Texture<Resource>

Returns

Sprite<T>

Overrides

PIXISprite.constructor

Source

src/gameobjects/Sprite.ts:20

Properties

editable

editable: boolean = true

Source

src/gameobjects/Sprite.ts:10


__dill_pixel_top_level_class

static __dill_pixel_top_level_class: boolean = true

Source

src/gameobjects/Sprite.ts:9

Accessors

add

get add(): Add

Returns

Add

Source

src/gameobjects/Sprite.ts:49


app

get app(): T

Returns

T

Source

src/gameobjects/Sprite.ts:57


focusPosition

get focusPosition(): Point

set focusPosition(value): void

Parameters

value: Point

Returns

Point

Source

src/gameobjects/Sprite.ts:33


focusSize

get focusSize(): Point

set focusSize(value): void

Parameters

value: Point

Returns

Point

Source

src/gameobjects/Sprite.ts:41


focusable

get focusable(): boolean

set focusable(value): void

Parameters

value: boolean

Returns

boolean

Source

src/gameobjects/Sprite.ts:61


make

get make(): typeof Make

Returns

typeof Make

Source

src/gameobjects/Sprite.ts:53

Methods

getFocusPosition()

getFocusPosition(): Point

Gets the position in global coordinate space that the focus should be centred around.

Returns

Point

The position that the focus should be centred around.

Implementation of

IFocusable.getFocusPosition

Source

src/gameobjects/Sprite.ts:69


getFocusSize()

getFocusSize(): IPoint

Gets the size of the area in global coordinate space that the focus should surround.

Returns

IPoint

The size of the area that the focus should surround.

Implementation of

IFocusable.getFocusSize

Source

src/gameobjects/Sprite.ts:73


isFocusable()

isFocusable(): boolean

Returns

boolean

true if this focusable can be focused Defaults to this.interactive && this.worldVisible

Implementation of

IFocusable.isFocusable

Source

src/gameobjects/Sprite.ts:77


onFocusActivated()

onFocusActivated(): void

Called when this Focusable is focussed and then activated.

Returns

void

Implementation of

IFocusable.onFocusActivated

Source

src/gameobjects/Sprite.ts:81


onFocusBegin()

onFocusBegin(): void

Called when this Focusable is focussed.

Returns

void

Implementation of

IFocusable.onFocusBegin

Source

src/gameobjects/Sprite.ts:83


onFocusEnd()

onFocusEnd(): void

Called when this Focusable is no longer focussed.

Returns

void

Implementation of

IFocusable.onFocusEnd

Source

src/gameobjects/Sprite.ts:85