shake(intensity?: number): void

Camera shake.

paramintensity- The intensity of the shake. Default to 12.

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

sincev3000.0