Candy Merge
by Michael Berry
Check out "Candy Merge" by Michael Berry - featuring Canvas API, Haptics, Leaderboard and more. Try this Snapchat Lens on Easy Lens.
Features
- Canvas API: Procedurally draws the entire 2D swipe-to-merge 2048 game in screen space as a bright candy kingdom. The 4x4 board features a distinct frosted candy, cookie, or wrapped sweet for every numbered tile, plus merge pop animations, a golden 2048 candy centerpiece, and a candy shower win celebration; score and tutorial remain separate text blocks.
- Haptics: Provides device vibration APIs for merge feedback.
- Leaderboard: Stores and displays high scores for Jelly Merge 2048. Submits the final score once per run on win/lose and shows the leaderboard UI.
- Text On Screen: Single score readout, displayed once at the top of the screen as "SCORE: 0". Hidden at lens start; becomes visible after the first successful swipe. White text with outline for contrast, positioned at the top as currently configured.
- Touch Events: Captures touch down/move/up to recognize swipe direction (up/down/left/right) and to restart the game after win/lose on tap.
- Text On Screen: Intro instruction text shown only before the first swipe: "Swipe to Squish!" followed by "Merge matching sweets to grow." It matches the candy-kingdom board and hides immediately after the first swipe begins gameplay.