Farmer Mario
by ᗩᗷᑌ ᛕᕼᗩᒪᗴᗪ
Check out "Farmer Mario" by ᗩᗷᑌ ᛕᕼᗩᒪᗴᗪ - featuring Background Image, Canvas API, Face Events and more. 4,957 views. Try this Snapchat Lens on Easy Lens.
4,957 views
Features
- Background Image: Full-screen background replaced with the user’s uploaded vibrant cartoon landscape, behind the user with segmentation enabled so the player remains visible.
- Canvas API: Procedurally draws lightweight HUD elements (combo indicator, feedback flashes, score popups) and generates an invisible texture for the START hit sprite.
- Face Events: Provides face tracking signals for head position to steer the basket left/right, plus face found/lost to gate and pause gameplay.
- Leaderboard: Stores and displays the player’s final score at the end of the round.
- Sprite Manager: 2D sprite scene graph used to render and animate the player character, falling fruits, and the invisible START hit area sprite used for reliable tapping.
- Sprite Store: Provides sprite textures for the game: the uploaded character holding a basket (player), a lemon, an orange, an apple, a rotten fruit (bad item), and a cartoony splat/cloud sticker for rotten impacts.
- Touch Events: Provides touch events so the lens can start the game when the user taps the START button.
- Text On Screen: On-screen instructions + end-of-round message (e.g., 'Tap START to play' then 'Time’s up! Final: X').
- Text On Screen: On-screen score display anchored to the top-left, left-aligned, small size with outline for readability. Positioned with generous inset so it never collides with the timer.
- Text On Screen: A large, centered START button label with a bold background so it reads like a tappable button.
- Text On Screen: On-screen countdown timer display anchored to the top-right, right-aligned, small size with outline for readability. Positioned with generous inset so it never collides with the score.