dt(): number

Get the delta time since last frame.
// rotate bean 100 deg per second
bean.onUpdate(() => {
    bean.angle += 100 * dt()
})
kaplay logo

3001.0.0-alpha.18

Misc