Hoops and Heart
by Ashok
Check out "Hoops and Heart" by Ashok - featuring Background Image, Selfie Attachments, Sprite Manager and more. 245.8k views. Try this Snapchat Lens on Easy Lens.
245.8k views
Features
- Background Image: Full-screen background using the user’s uploaded sunset road image; keep the user visible with person segmentation enabled.
- Selfie Attachments: A realistic basketball hoop with short backboard attached to the user’s head like a headband-mounted mini hoop; rim sits slightly above the forehead and in front of the face, with stable head tracking.
- Sprite Manager: Manages 2D sprite balls and provides hit testing / collision utilities used by the game controller code.
- Canvas API: Draws simple 2D UI elements procedurally for a crisp digital look used by the game controller code.
- Text On Screen: Displays the live score as large digital text (e.g., “SCORE: 0”) near the top of the screen.
- Touch Events: Enables tap interaction to reset the game (score to zero, clear balls).
- Face Inset: A single face inset clone placed near the lower-right of the screen (picture-in-picture style), medium size with a subtle rotation, appearing in front of the background and gameplay.
- Text On Screen: Displays the title “Sunset Hoops Challenge” centered near the bottom of the screen; bold, high-contrast color with outline enabled for readability over the sunset background.
- Selfie Attachments: A realistic 3D heart prop that floats just above the user’s right shoulder (screen-left/top quadrant relative placement), inspired by the uploaded sketch: vivid warm tangerine-orange, semi-translucent with subtle glossy highlights; sized roughly ~1/7 of the screen width; positioned so it does not block the hoop or face and remains comfortably in frame during gameplay.