Space Defense VR: Alien Invasion
Inspiration
As VR enthusiasts participating in the Meta Horizon Start Competition, we were inspired by classic arcade tower defense games but wanted to create something uniquely suited for the immersive capabilities of Meta Quest 3. We aimed to build a game that showcases the power of the Immersive Web SDK while delivering an engaging, comfortable VR experience that leverages hand tracking and spatial audio.
What it does
Space Defense VR is an immersive tower defense game where players defend their spaceship from waves of mechanized alien robots using an advanced energy weapon system. The game features:
- Wave-based progression with increasing difficulty
- Three distinct robot types with unique behaviors
- Intelligent targeting and lock-on systems
- Rapid-fire combat mechanics optimized for VR
- Real-time HTML overlay displaying score, health, and wave status
- Celebration effects and visual feedback for successful gameplay
How we built it
- Core Technology: Immersive Web SDK (IWSDK) with TypeScript and Vite
- 3D Rendering: Three.js for all 3D models and visual effects
- Architecture: Entity-Component-System (ECS) pattern for scalability
- Audio: HTML5 Audio with spatial positioning for immersive sound
- UI: HTML/CSS overlay system for real-time game data display
- VR Features: Hand tracking integration, controller support, and comfort-optimized interactions
- Development: Local server with hot reload for rapid iteration
Challenges we ran into
- Performance Optimization: Maintaining 90 FPS on Meta Quest 3 browser required extensive optimization of rendering and physics systems
- Hand Tracking Integration: Implementing precise hand interactions for weapon handling and UI interactions
- TypeScript Typing: Managing complex 3D object type definitions and ensuring type safety across the ECS architecture
- Audio Management: Creating an efficient audio pooling system for rapid-fire scenarios without audio clipping
- Cross-Browser Compatibility: Ensuring consistent behavior across different versions of the Meta Horizon Browser
Accomplishments that we're proud of
- Successfully implementing a complete VR game using the Immersive Web SDK
- Creating mechanized robot designs with complex animations that perform well in VR
- Developing an intuitive targeting system that feels natural in VR
- Achieving smooth performance on Meta Quest 3 hardware
- Building a scalable architecture that can easily support future features and content
What we learned
- IWSDK Capabilities: Deep understanding of Meta's Immersive Web SDK and its potential for web-based VR
- VR Performance: Techniques for optimizing 3D graphics and physics for VR hardware constraints
- User Experience: Designing intuitive interactions specifically for VR environments
- Audio in VR: Implementing spatial audio that enhances immersion and gameplay
- Team Collaboration: Effective workflow for developing complex VR applications
What's next for Alien Invasion
- Multiplayer Mode: Cooperative gameplay where multiple players defend a spaceship together
- Enhanced Robot AI: More sophisticated enemy behaviors and attack patterns
- Weapon Upgrades: Progression system with unlockable weapons and abilities
- Environmental Interactions: Destructible environment and interactive ship systems
- Leaderboards: Global score tracking and competitive rankings
- Expanded Content: Additional levels, enemy types, and power-ups
- Accessibility Features: More comfort options and alternative control schemes
Built With
- iwsdk
- typescript

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