I'll start by researching the game to understand its mechanics, then build a web clone with an Indian Air Force theme.
I've got a clear picture of the game: it's a minimalist arcade game where you steer a plane to collect stars and avoid homing missiles, with multiple unlockable planes, power-ups (shield & speed boost), and normal/fast modes. Now let me examine the existing project setup.
The game is "Missiles!" — a minimalist arcade dodge game: steer a plane, collect stars, avoid homing missiles, unlock planes, with shield/speed-boost power-ups and normal/fast modes. I'll build an Indian Air Force themed version with flyable IAF aircraft (Tejas, MiG-21, Mirage 2000, Jaguar, Su-30MKI, Rafale).
Let me check the cn utility and set up the foundation files.
Now I'll create the styling foundation, audio engine, persistence layer, and IAF plane definitions.
The storage error is expected since planes.ts doesn't exist yet. Now I'll create the IAF aircraft definitions and the core game engine.
Now the core game engine with physics, missile AI, difficulty scaling, and particle effects.
Let me check the exact location of the type error.
Fixing the null narrowing issue in the player movement block.
Now the renderer — procedural canvas drawing for the IAF jets, missiles, stars, power-ups, particles, and the radar-style background.
Now the React hook that ties together the canvas, game loop, and input handling.
Now the UI components. First, the animated plane preview and the main menu with a radar-sweep background.
Now the main menu with an animated radar background and IAF branding.
Now the hangar for unlocking and selecting IAF aircraft.
Now the game screen with HUD, countdown, pause, and game-over overlays.
Finally, the main App component that ties everything together with save persistence and screen routing.
All files are in place. Let me build the project to verify everything compiles correctly.
The build succeeded. Now let me apply some polish fixes: avoid a double "GO" sound, tune the early-game missile speed curve, reduce particle load, and lower shadow-blur cost for better performance on mobile.
Let me keep the missile speed baseline consistent in the homing update too.
Let me refine the menu for short screens and make the plane preview canvas resize-aware.
Let me rebuild to verify all the refinements compile.
The game is working. Let me add two final polish touches: a subtle engine contrail for the player's plane and throttled HUD updates (keeps React renders light on mobile).
The transient lint errors resolved as the edits completed. Let me rebuild to confirm everything compiles.
Let me verify the final state of the game loop to ensure the throttle was placed correctly.
Everything builds cleanly. The complete game is ready. Let me do a final verification of the project structure.
Done! I've built "MISSILES! — Indian Air Force", a complete playable web clone of the Macaque arcade game, re-themed around the Indian Air Force with six flyable aircraft.
🎮 Core Gameplay (faithful to the original)
- Steer your jet to dodge waves of homing missiles and collect stars
- Mouse/touch drag + WASD/arrows controls (like the original's "whole screen" mode)
- 6 missile types that unlock as difficulty ramps: Standard, Dart (fast), Zigzag, Heavy, Seeker (predictive homing), and Cruise (screen-crossing)
- Fool missiles into colliding with each other for bonus points — a signature original mechanic
- Power-ups: 🛡 Shield (absorbs one hit) and 🔥 Afterburn boost (speed + 2× score)
- Normal & Fast game modes, escalating difficulty, score/time/best tracking
🇮🇳 Indian Air Force Theme
- IAF Roundels (saffron–white–green with navy chakra) painted on every aircraft's wings
- Tricolor accent bars, radar-sweep main menu, "Nabhah Sprisham Diptam" motto
- HUD styled as a military intercept drill
✈️ Hangar — 6 Flyable IAF Aircraft
Each with unique speed/agility/hitbox stats, procedurally drawn on canvas with distinct silhouettes (delta wings, canards, twin tails):
| Aircraft | Cost |
|---|
| HAL Tejas (LCA Mk-1A) | Free |
| MiG-21 Bison | 150 ★ |
| Mirage 2000 "Vajra" | 350 ★ |
| Jaguar "Shamsher" | 600 ★ |
| Su-30MKI "Flanker-H" | 1000 ★ |
| Dassault Rafale EH | 1500 ★ |
✨ Polish
- Full Web Audio sound synthesis (collects, explosions, boost, countdown ticks — no assets needed)
- Particle explosions, smoke trails, screen shake, floating score text
- Persistent progress via localStorage (stars, unlocks, best scores, sound preference)
- Responsive fullscreen canvas with devicePixelRatio scaling, pause menu, and animated game-over stats
Controls: Mouse/drag to steer · WASD/arrows · Esc to pause · Space to re-fly after being shot down.
Files built: index.html, src/index.css, src/game/audio.ts, src/game/storage.ts, src/game/planes.ts, src/game/engine.ts, src/game/render.ts, src/game/useGame.ts, src/components/PlanePreview.tsx, src/components/MainMenu.tsx, src/components/Hangar.tsx, src/components/GameScreen.tsx, src/App.tsx