Cauldron2D.GameMaker.Room.Tile (Cauldron2D.GameMaker v0.2.1)

Copy Markdown View Source

A tile placed on its own: the rectangle source {x, y, width, height} of background (GameMaker Studio 1) or sprite (GameMaker Studio 2 asset layers) picture, drawn at {x, y} scaled by scale, blended with colour. GameMaker Studio 1 tiles order by depth, greater drawn first.

Summary

Functions

The tile at at.

Types

t()

@type t() :: %Cauldron2D.GameMaker.Room.Tile{
  colour: {byte(), byte(), byte(), byte()},
  depth: integer(),
  id: non_neg_integer(),
  picture: integer(),
  position: {integer(), integer()},
  scale: {number(), number()},
  source:
    {non_neg_integer(), non_neg_integer(), non_neg_integer(), non_neg_integer()}
}

Functions

read(data, at)

@spec read(binary(), non_neg_integer()) :: t()

The tile at at.