Lime Goal Slice
by Umama Shehzadi
Check out "Lime Goal Slice" by Umama Shehzadi - featuring Canvas API, Sprite Store, Sprite Manager and more. Try this Snapchat Lens on Easy Lens.
Features
- Canvas API: Draws the full-screen live camera background and the visual-reference soccer game overlay: lime halves framing the face, a vertically sweeping white dotted cut guide with silver kitchen knife, red-and-white striped goal with yellow net, wooden cut ramp, score HUD, and stadium-hype bursts.
- Sprite Store: Holds the visual-reference game sprites: a vibrant lime slice, a right-facing cartoon soccer player in a red number-seven jersey with white shorts, and a classic black-and-white soccer ball.
- Sprite Manager: Places the red number-seven player and classic soccer ball on the left, while the canvas renders the lime split, wooden ramp, moving cut guide, and striped goal.
- Text On Screen: Shows tap guidance during play and dynamically moves the bold red YOU LOSE result to the center after a missed final attempt, while keeping the glowing win result and restart flow.
- UI Button: Centered lower-screen Restart control, revealed after the final win or loss state at position [0.5, 0.84] and scale 1.0.
- Sound: Plays a one-shot stadium crowd cheer whenever a ball enters the goal.
- Sound: Plays a one-shot harsh arcade buzzer after a missed lime cut or final loss.
- Device Camera: Supplies the continuously updating front-camera texture for the full-screen game background.
- Physics2D: Runs gravity and collision simulation for the sliced lime ramp, rolling ball, ground, and right-side goal-zone sensor.
- Touch Events: Captures a single tap to lock the fast-moving dotted cut line for each quick goal attempt.