Methods
Assets.getFontScale(path: string, size: number?)
Arguments:
path: string | |
size: number? |
Returns:
1: number |
Assets.getQuad(x: number, y: number, w: number, h: number, sw: number, sh: number)
Arguments:
x: number | |
y: number | |
w: number | |
h: number | |
sw: number | |
sh: number |
Returns:
1: love.Quad |
Assets.getTextureID(texture: string|love.Image)
Arguments:
texture: string|love.Image | Drawable image type. |
Returns:
1: string |
Assets.newVideo(video: string, load_audio: boolean?)
Arguments:
video: string | |
load_audio: boolean? |
Returns:
1: love.Video |
Assets.playSound(sound: string, volume: number?, pitch: number?)
Arguments:
sound: string | |
volume: number? | |
pitch: number? |
Returns:
1: love.Source |
Assets.stopAndPlaySound(sound: string, volume: number?, pitch: number?, actually_stop: boolean?)
Arguments:
sound: string | |
volume: number? | |
pitch: number? | |
actually_stop: boolean? |
Returns:
1: love.Source |
Assets.stopSound(sound: string, actually_stop: boolean?)
Arguments:
sound: string | |
actually_stop: boolean? |