Inspiration
I've always been fascinated by how AI is breaking down barriers between humans and technology. Traditional gaming requires expensive controllers, keyboards, or touchscreens - but what if we could make gaming more accessible and intuitive using just our natural gestures?
When I discovered Google MediaPipe's hand tracking capabilities, I saw an opportunity to create something genuinely innovative: a game where the barrier to entry is literally just having hands and a webcam. No downloads, no controllers, no learning curve - just wave and play.
The space theme was inspired by the wonder of exploration. Just as astronauts reach out to collect samples from distant worlds, players reach out through their webcam to catch moon rocks from across the solar system.
What it does
Lunar Loot is a browser-based arcade game where players catch falling moon rocks using real-time hand tracking - no physical controller required.
Core Gameplay:
- Hand Tracking: Your hand position controls an on-screen basket in real-time
- Progressive Difficulty: 14 unique levels across different celestial locations (Earth orbit, Mars, Saturn's rings, etc.)
- Dynamic Scoring: Catch moon rocks for points, avoid space debris that costs you points
- Easter Eggs: Hidden gesture bonuses (peace sign ✌️ = +50 points, thumbs up 👍 = +100 points)
- Leaderboard System: Track high scores with automatic snapshots
- Professional UI: Title screen, about page, and polished space-themed interface
Technical Innovation:
The game runs entirely in the browser using Streamlit and processes hand tracking at 30+ FPS with minimal latency. Players can literally start playing within seconds of opening the link.
How we built it
AI Tools & Technologies:
Google MediaPipe (Core Innovation - 50%)
- Real-time hand landmark detection (21 points per hand)
- Gesture recognition for easter eggs (peace sign, thumbs up)
- Optimized for browser-based performance
- Custom calibration system for different hand sizes
Freepik AI (Visual Design - 30%)
- Generated 14 unique space-themed backgrounds
- Created professional logo and branding assets
- Designed UI elements (buttons, icons)
- Maintained consistent aesthetic across all levels
Adobe (Polish & Production - 20%)
- Image editing and optimization
- Asset refinement and color correction
- Final production polish
Development Stack:
- Python 3.9+ - Core game logic
- Streamlit - Web framework for instant deployment
- OpenCV - Video processing and rendering
- MediaPipe - Hand tracking AI
- NumPy - Game physics and calculations
- Pillow - Image processing
Architecture:
User Webcam → MediaPipe AI → Hand Coordinates → Game Logic → Visual Feedback
↓ ↓
Privacy-First Browser Rendering
(No Recording) (Real-time 30 FPS)
Development Process:
- Prototype (Week 1): Basic hand tracking + falling objects
- Game Mechanics (Week 2): Scoring, levels, difficulty progression
- AI Integration (Week 3): Gesture recognition, easter eggs
- UI/UX Polish (Week 4): Professional interface, branding, deployment
Challenges we ran into
1. Real-Time Performance
Problem: Hand tracking + game rendering + video processing = potential lag
Solution: Optimized MediaPipe settings, reduced video resolution strategically, implemented frame skipping for non-critical updates
2. Gesture Recognition Reliability
Problem: Initial heart gesture (❤️) had <30% accuracy - too frustrating
Solution: Switched to more distinct gestures (peace sign, thumbs up) with custom detection algorithms and cooldown timers to prevent false positives
3. Cross-Device Compatibility
Problem: Different webcams, lighting conditions, and hand sizes
Solution: Built adaptive calibration system that normalizes hand coordinates and adjusts sensitivity based on detection confidence
4. Streamlit Audio Limitations
Problem: Streamlit's architecture doesn't support traditional game audio loops
Solution: Implemented web-based background music via URL streaming, documented limitations transparently
5. User Experience Flow
Problem: Players jumping straight into gameplay without understanding controls
Solution: Created comprehensive title screen with "About" page explaining mechanics, controls, and AI tools used
6. Deployment & Privacy
Problem: Users concerned about webcam access
Solution: All processing happens client-side in browser, no video recording or transmission, clear privacy messaging
Accomplishments that we're proud of
✨ Zero Barrier to Entry: No installation, no controllers, no learning curve - just open and play
Smooth Performance: Achieved 30+ FPS hand tracking with <100ms latency on standard hardware
Genuine Innovation: Created a new way to play games that feels natural and accessible
Professional Polish: From title screen to easter eggs, every detail was crafted for quality
Meaningful AI Integration: MediaPipe isn't just a gimmick - it's the core innovation that makes the game possible
Complete Game Loop: Leaderboards, snapshots, 14 levels, progressive difficulty - it's a full experience
Privacy-First: All processing happens locally, no data collection or recording
What we learned
Technical Insights:
- AI Performance Optimization: Learned to balance accuracy vs. speed in real-time ML applications
- Gesture Recognition: Understanding the difference between "technically detectable" and "reliably playable" gestures
- Browser-Based ML: How to deploy sophisticated AI models in web environments without sacrificing UX
Design Lessons:
- Accessibility Through AI: How AI can remove barriers rather than create complexity
- Feedback Loops: The importance of immediate visual feedback when using gesture controls
- Progressive Disclosure: Teaching mechanics through gameplay rather than lengthy tutorials
Product Development:
- Scope Management: Focusing on core innovation (hand tracking) rather than feature bloat
- User Testing: Real users revealed issues (like unreliable gestures) that seemed fine in testing
- Documentation: Clear communication about AI tools used is crucial for competition submissions
What's next for Lunar Loot
Version 2.0 Roadmap:
Multiplayer Mode
- Two-player split-screen with dual hand tracking
- Competitive and cooperative modes
Advanced Gestures
- Power-ups activated by specific hand poses
- Combo system for chaining gestures
Mobile Support
- Touch controls as fallback
- Mobile-optimized UI
Accessibility Features
- One-handed mode
- Adjustable difficulty settings
- Colorblind-friendly palettes
Enhanced AI
- Predictive difficulty adjustment based on player skill
- Personalized level recommendations
- AI-generated custom levels
Community Features
- Global leaderboards
- Replay sharing
- Custom challenge modes

Log in or sign up for Devpost to join the conversation.