LdtkBackgroundPosition

ceramic.LdtkBackgroundPosition (Class)

Instance Members

ldtk
cropX: Float

One of 4 float values describing the cropped sub-rectangle of the displayed background image. This cropping happens when original is larger than the level bounds.


ldtk
cropY: Float

One of 4 float values describing the cropped sub-rectangle of the displayed background image. This cropping happens when original is larger than the level bounds.


ldtk
cropWidth: Float

One of 4 float values describing the cropped sub-rectangle of the displayed background image. This cropping happens when original is larger than the level bounds.


ldtk
cropHeight: Float

One of 4 float values describing the cropped sub-rectangle of the displayed background image. This cropping happens when original is larger than the level bounds.


ldtk
scaleX: Float

Scale X value of the cropped background image, depending on bgPos option.


ldtk
scaleY: Float

Scale Y value of the cropped background image, depending on bgPos option.


ldtk
pxLeft: Int

X pixel coordinate of the top-left corner of the cropped background image, depending on bgPos option.


ldtk
pxTop: Int

Y pixel coordinate of the top-left corner of the cropped background image, depending on bgPos option.


ldtk
toString(): String
Returns
String

ldtk
new(?json: haxe.DynamicAccess<Dynamic>): Void
Name Type Default
json haxe.DynamicAccess<Dynamic> (optional)