Candy Dash Run
by HSOON
Check out "Candy Dash Run" by HSOON - featuring Canvas API, Sprite Store, Sprite Manager and more. Try this Snapchat Lens on Easy Lens.
Features
- Canvas API: Draws the animated sugar-sky kingdom, gumdrop hills, rainbow three-lane road, scrolling lane markers, Sugar Rush trail, pickup bursts, collision flash, and restart card. Use a fixed 1080x1920 logical canvas and create it on OnStartEvent; keep static hills in a separate cached canvas layer and redraw only scrolling/dynamic elements each frame.
- Sprite Store: Stores the four generated game sprite sources. The runner must face toward the top of the image. The obstacle strip is horizontal and contains three equal cells from left to right: gumdrop barricade, licorice twist, frosting puddle; crop these cells at runtime with Canvas API into separate obstacle textures.
- Sprite Manager: Creates and manages the candy runner, regular candies, golden Sugar Rush pickups, and the three cropped obstacle types. Handles movement, sprite-manager intersection checks, cleanup, and render depth for the arcade runner.
- Text On Screen: Displays the live candy score at the top of the screen and updates during play.
- Text On Screen: Shows the short swipe tutorial, Sugar Rush status, and final-score tap-to-restart message.
- Selfie Widget: Adds a small circular live selfie view in the upper-left corner so the player remains visible during Candy Dash Run without covering the runner, score, or swipe prompts.
- Touch Events: Reads horizontal swipe gestures for one-lane dodges and taps to restart after a collision.