Skip to content

camera_cloud

Anthony Samms edited this page Jun 1, 2026 · 2 revisions

The camera cloud is a prompt displayed on the title screen that tells the player to look at the webcam. It animates in and hovers with a breathing effect.

CameraCloud

CameraCloud();

Retrieves four skin animations and starts them all immediately: a fade-in for the cloud sprite, a fade for alternating between two text variants, an upward move, and a looping breathing (scale) animation.

void update(double current_ms);

Steps all four animations forward.

void draw();

Draws three layered sprites — the cloud body and two mutually exclusive text overlays — all scaled and vertically offset together by the breathing and move animations:

  • CAMERA_CLOUD — the cloud body, drawn at fade_in opacity.
  • CAMERA_CLOUD_TEXT_1 — drawn at min(fade_in, 1 - text_fade) opacity, so it is visible when text_fade is low.
  • CAMERA_CLOUD_TEXT_2 — drawn at min(fade_in, text_fade) opacity, so it is visible when text_fade is high.

The text_fade animation therefore crossfades between the two text variants while both are gated behind the overall fade_in.

Clone this wiki locally