Cage the Cater
by Kapil Dongra
Check out "Cage the Cater" by Kapil Dongra - featuring Canvas API, Sprite Store, Sprite Manager and more. Try this Snapchat Lens on Easy Lens.
Features
- Canvas API: Draws a transparent camera-safe wooden log platform and animated celebratory confetti over the live camera.
- Sprite Store: Stores the right-facing bright green caterpillar and compact front-facing open-bottom wire cage gameplay sprites.
- Sprite Manager: Uses a visibly smaller compact cage, keeps the caterpillar moving back and forth along the wooden log, and checks the caterpillar's calibrated visible body against the cage's true open interior so aligned drops register reliably.
- Text On Screen: Large yellow camera-safe victory message, hidden until a verified full-body capture.
- UI Button: Win-only green circular Restart button at normalized position (0.48, 0.42), scale 1.0.
- Sound: Plays a short metallic clank exactly when the cage reaches the platform.
- Sound: Plays a playful low bonk after a landed cage fails the full-containment check.
- Sound: Plays a bright ascending chime only when a valid capture begins the win state.
- Sound: Plays a crisp click when the player uses the Restart button.
- Leaderboard: Submits and displays the final number of cage drops only after a valid full-body capture.
- Touch Events: Captures gameplay taps while preserving Snapchat's native swipe-based camera controls.