ViewModelFrame
Since 0.6
One frame: an image of the project and where its pivot is.
Signature
export interface ViewModelFrame {
/** A PNG by its path from the project root: `scenes/sprites/gun.png`, `ui/hands.png`. */
image: string
/** Its size in source pixels. */
size: Vec2
/** The source pixel that lands on the anchor. Default bottom-centre, `[size[0] / 2, size[1]]`. */
pivot?: Vec2
}
Import: import type { ViewModelFrame } from "@argus/gameplay"
Members
| Member | Signature | Description |
|---|---|---|
image | image: string | A PNG by its path from the project root: scenes/sprites/gun.png, ui/hands.png. |
size | size: Vec2 | Its size in source pixels. |
pivot | pivot?: Vec2 | The source pixel that lands on the anchor. Default bottom-centre, [size[0] / 2, size[1]]. |