Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

shakeCamera

shakeCamera(world, cameraShakeOptions): void

Shakes the page’s camera for a big moment, at the strength it reaches the player with: her character where she has one, else the camera’s eye. A world with no camera, as a room’s, shakes nothing. The player’s Screen shake setting scales what she sees.

Parameter Type
world World
cameraShakeOptions CameraShakeOptions

void