Skip to Content
defold-typescript libraries
jbp4444

jbp4444/bzAnim

A Lua/Defold-based animation library for bezier curve animations

  • GitHub: jbp4444/bzAnim — pinned to v.1.2
    1. Pick a release from jbp4444/bzAnim releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as bzAnim from "bzAnim.bzLibrary"

Functions

animate(args: AnimateArgs): string

Parameters

  • args: AnimateArgs

Returns

  • string

animateSequence(args: AnimateSequenceArgs): string

Parameters

  • args: AnimateSequenceArgs

Returns

  • string

cancel(id: string)

Parameters

  • id: string

info(): string

Returns

  • string

isReady(): boolean

Returns

  • boolean

setDebugLevel(level: number)

Parameters

  • level: number

setMaxPoints(num: number)

Parameters

  • num: number

registerController(obj: Hash | string)

Parameters

  • obj: Hash | string

unregisterController(obj: Hash | string)

Parameters

  • obj: Hash | string

Variables

INFO_LEVEL: unknown

DEBUG_LEVEL: unknown

TRACE_LEVEL: unknown

Types

Path

Path.x: number

Path.y: number

Segment

Segment.duration: number

Segment.delay: number

Segment.path: Array<Path>

AnimateArgs

AnimateArgs.obj: Hash | string | undefined

AnimateArgs.easing: EASING_TYPES

AnimateArgs.duration?: number

AnimateArgs.delay?: number

AnimateArgs.path?: Array<Path>

AnimateSequenceArgs

AnimateSequenceArgs.obj: Hash | string | undefined

AnimateSequenceArgs.easing: EASING_TYPES

AnimateSequenceArgs.segments?: Array<Segment>

AnimateSequenceArgs.on_complete?: boolean | string

On this page