acron.sprite2d¶
Sprite2D / AnimatedSprite2D – textured cards in the canvas2d frame.
AnimatedSprite2D plays named flip-book animations
(SpriteAnimation dicts) on its own clock (advance from the fixed
loop or a per-frame task). The animation dicts are plain data; the Godot
SpriteFrames parsers that produce them live in
acron.gdformat.sprite_frames. Pixel-art defaults: nearest-neighbour
filtering, alpha transparency.
Godot semantics kept: flip_h/flip_v; centered (default True);
offset; play(name)/stop; animation_finished signal for
non-looping animations; modulate via set_color_scale.
|
Flip-book sprite over a |
|
One flip-book frame: a texture, optionally an atlas sub-region. |
|
A single-texture card. |
|
One named flip-book animation: its fps, loop flag, and frame list. |
Global Functions