Sprites

Sprites are the graphics used by playable or interactive characters in your scenes. Add sprites to your game by adding PNG files to your project's assets/sprites folder.

Requirements

Sprite PNGs must only contain the following four colors:
#071821, #86c06c, #e0f8cf and #65ff00 (Used as transparent background).
Colors that are not one of these hex codes will be matched to the nearest color.

A sprite consists of one or more 16x16px frames laid out horizontally in file (e.g. a sprite with three frames will be 48x16px)

Static sprites

For sprites that only need a single frame (e.g. interactive items such as signposts) create your PNG as a 16x16px image containing just the one frame required.

Actor

To make sprites that can face in four directions turning towards the player, create a 48x16px PNG containing the three frames forward facing, upwards facing and right facing. The left facing sprite is automatically generated by fliping the right facing sprite horizontally so does not need to be created.

Animated Actor

To make sprites that have animated movement, or that can be used as a player character, create a 96x16px PNG containing six frames, two forward facing, two upwards facing and two right facing animation frames.

As there are limits to how many sprites frames can be loaded into a single scene don't use animated sprites unless you know your NPCs will have movement.