MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Sprite Utils

A grab-bag of sprite math and rendering helpers for MakeCode Arcade: distances, angles, movement, timers, and simple drawing.

set life image

Problem it solves

The default heart icon for the life counter doesn't fit your game's theme, and you want a custom icon instead.

What this block does

Sets the icon used by the built-in life/health display.

The block

Block ID: spriteutilextsetlifeimage

set life image $im block

Parameters

NameTypeDefaultMeaning
imImageThe icon to use for each life

Example

spriteutils.setLifeImage(img`.`)

Add the extension

Add github:jwunderl/arcade-sprite-util to your project, or open: Import arcade-sprite-util.