What's in the game
The Mission: Protect the baby duck from an onslaught of mosquitoes attacking from 360 degrees.
Aggressive AI: Mosquitoes spawn at unpredictable angles and varying speeds, forcing the player to prioritize targets.
Three-Strike Rule: The duck can only withstand 3 bites before it's Game Over.
Win Condition: Successfully fend off 20 mosquitoes to clear the wave and secure safety.
Inspiration
We wanted to create a high-stakes but cute survival game that focuses on quick reflexes and tight spatial awareness. The mosquitos come towards the baby duck from angles at different speeds. The core idea is to protect the cute duck from an increasingly aggressive swarm of mosquitoes. You need to save it from 20 mosquitos, If you let it get bit 3 times it's game over.
What it does
Core Loop: The player must tap the mosquitos before they reach the baby duck to score points.
Scoring: The game features a real-time "Score" counter that increments as the player successfully defeats mosquitos.
Dynamic Difficulty: Mosquitoes fly in from various angles, requiring the player to constantly monitor all sides of the screen.
Character States: The duck features expressive animations, appearing to "cry" while the player is defeating mosquitos, which adds a humorous, and cute energy to the gameplay.
How we built it
Lens Studio & Advanced Scripting: We used Lens Studio to manage the interaction between the user's touch input and the mosquitos movement.
Enemy Spawner Logic: We developed a custom script to handle the procedural spawning of mosquitoes at random intervals and positions outside the screen boundaries.
Collision Detection: We implemented precise hitboxes to ensure that even a slight touch from a mosquito triggers a bite, keeping the stakes high.
Challenges we ran into
Mosquito Spawning & Targeting: One of the most difficult parts was scripting the mosquitoes to not only spawn outside the screen boundaries at random intervals but also to calculate a path directly toward the duck's current location. This required constant vector updates to ensure the enemies felt "smart" and aggressive.
Hitbox Precision: Getting the hitboxes right was a major hurdle. Because the duck is a round, "squishy" character, We had to fine-tune the collision detection to ensure the game felt fair; a mosquito touching the very edge of a wing shouldn't feel like an unfair "game over," but it still needed to be challenging.
What we learned
Through this project, We mastered advanced scripting for asset behavior and physics-based collisions. I learned how to manage object lifecycles—spawning enemies, tracking their trajectory toward a moving target, and destroying them once they leave the screen—while maintaining a smooth FPS on mobile devices.
What's next for Save the baby duck
Integrating it in a Mixed reality environment
Built With
- javascript
- lensstudio
Log in or sign up for Devpost to join the conversation.