A property helpful for TypeScript type inference, when distinguishing from
other types of sprites.
Example
consts: BpxSprite | BpxAnimatedSprite = getSprite(); if (s.type === "static") { // s is BpxSprite here } elseif (s.type === "animated") { // s is BpxAnimatedSprite here } else { $u.assertUnreachable(s); }
A definition of an animated sprite, which can later be used (indirectly) for drawing by BeetPxDraw.sprite.
It has a form of a collection sprites, originated from the same sprite sheet.
Example
Remarks
Under the hood this class uses BpxTimer to integrate the animation progression with the game loop.
See
$aspr