linsyking/messenger-core/14.0.1

NOTE: the latest version is 20.0.0

Renamed to elm-messenger/messenger-core. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as linsyking/messenger-core still install under that name. 34 versions of 52 come from the new location (see their notes). 7 versions could not be recovered and cannot be installed.

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: Software Heritage has not archived the repo; no fork with tag 14.0.1 found (17 same-name repos checked); no cached copy. Use another version.

Details

Messenger.Render.SpriteSheet

Sprite Sheet

type alias SingleSprite =
{ realStartPoint : ( Float, Float )
, realSize : ( Float, Float )
}

A Single Sprite in a SpriteSheet

The unit of realSize is pixel.

type alias SpriteSheet =
Dict String (List ( String, SingleSprite ))

SpriteSheet

Users should both name the sprite sheets and every single sprite. Using it by format: "sheet_name.sprite_name"

Sprite sheets are useful when managing the art resourses or making frame-by-frame animations.

spriteSheetSize : SpriteSheet -> Int

Get the total number of sprites in a sprite sheet.