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

Copy Markdown View Source

One of a GameMaker Studio 1 room's eight backgrounds: background background drawn at {x, y}, behind everything or, with foreground, in front. tiled is {across, down}, repeating the picture across the room in each direction; speed {x, y} moves it by that many pixels a step; stretch scales it to the room. background is -1 for an empty slot.

Summary

Functions

The backdrop at at.

Types

t()

@type t() :: %Cauldron2D.GameMaker.Room.Backdrop{
  background: integer(),
  enabled: boolean(),
  foreground: boolean(),
  position: {integer(), integer()},
  speed: {integer(), integer()},
  stretch: boolean(),
  tiled: {boolean(), boolean()}
}

Functions

read(data, at)

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

The backdrop at at.