melonJS
Plugins
Website
Wiki
GitHub
Discord
Preparing search index...
LDtkBackgroundPosition
Interface LDtkBackgroundPosition
where a level's background image is drawn
interface
LDtkBackgroundPosition
{
cropRect
:
[
number
,
number
,
number
,
number
]
;
scale
:
[
number
,
number
]
;
topLeftPx
:
[
number
,
number
]
;
}
Index
Properties
crop
Rect
scale
top
Left
Px
Properties
crop
Rect
cropRect
:
[
number
,
number
,
number
,
number
]
the part of the image that shows: x, y, width, height
scale
scale
:
[
number
,
number
]
top
Left
Px
topLeftPx
:
[
number
,
number
]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
crop
Rect
scale
top
Left
Px
Plugins
Website
Wiki
GitHub
Discord
melonJS
Loading...
where a level's background image is drawn