import { type SpriteProps } from "https://deno.land/x/oid@v0.0.6/mod.ts";
Properties
readonly
optional
xy: Partial<XY<number>> | undefinedThe origin of the sprite in level coordinates. Defaults to (0, 0).
Ents that are repositioned by other systems like FollowCam don't care.
readonly
optional
wh: Partial<XY<number>> | undefinedThe dimensions of the sprite. Defaults to animation size.
How to resolve render order for sprites on same layer. When false (the
default), this sprite compares with y
. When true, this sprite compares
with y + h
.
readonly
optional
flip: SpriteFlip | undefinedMirror sprite. Defaults to unflipped. to-do: add intersection support.