shake(intensity?: number): void

Camera shake.

param

// shake intensively when bean collides with a "bomb"
bean.onCollide("bomb", () => {
    shake(120)
})
kaplay logo

Misc