API Reference › Sprite › Sprite.draw_meter
method

Sprite.draw_meter

Sprite.draw_meter(x:, y:, value:, max:, per_icon:, spacing:, full:, half:, empty:)

Draws max / per_icon icons, each full, half or empty according to value — hearts, stars, ammo pips.

Example

# doc-check: skip — illustrative
Sprite.draw_meter(x: 8, y: 8, value: hp, max: max_hp, per_icon: 20, spacing: 15, full: heart, half: half_heart, empty: empty_heart)
← All symbols