I am going to explore the project directory structure to understand what files and dependencies exist.
I am going to check package.json to see what packages and dependencies are currently installed in the project.
I am going to check src/index.css to inspect the styles and Tailwind CSS configuration.
I am going to install three, @types/three, lucide-react, canvas-confetti, and @types/canvas-confetti to power the 3D graphics, user interface icons, and victory celebratory effects.
I am going to check index.html so we can customize the title, meta tags, viewport settings (preventing mobile touch scaling/scrolling during gameplay), and styles.
I am going to update index.html to set the webpage title to "Vegas Clash 3D — Heist & Headshots", add Google Fonts suitable for a neon casino aesthetic, and restrict mobile viewport zooming so touchscreen virtual joysticks work without accidental web gestures.
I am going to update src/index.css to define utility classes for custom styling, disabling tap highlights on touch devices for mobile gameplay, custom scrollbars, and neon glow effects.
I am going to create src/types/game.ts to define all TypeScript interfaces for weapons, player progress, game modes, enemy AI entities, Floating HUD announcements, and settings.
I am going to create src/services/storage.ts to handle loading and persisting player data, unlocked weapons, upgrades, achievements, and VIP Cash in localStorage.
I am going to create src/utils/sound.ts with a Web Audio API synthesizer capable of dynamically rendering gunshots (heavy .357 Revolver crack, SMG rapid fire, sniper rifle booming report), metallic reloading clicks, rewarding headshot chimes with falling casino coin sound effects, explosions, and energetic casino heist electronic background music.
I am going to create src/engine/VegasScene.ts which encapsulates the Three.js 3D game engine. It procedurally constructs the luxurious Vegas casino floor, slot machine aisles, poker tables, high-security vault with gold bars, PC/Mobile player movement, 3D weapon view models, weapon recoil, bullet raycasting with ONE-SHOT HEADSHOT logic, bot AI pathfinding and combat, and particle effects.
I am going to edit src/engine/VegasScene.ts to remove the unused isShooting property and make use of floatingType in the floating notification so that there are no TypeScript compilation errors.
I am going to fix the unused floatingType variable warning in src/engine/VegasScene.ts.
I am going to create src/components/ui/LobbyScreen.tsx, representing the high-roller casino lobby menu where players choose game modes, customize their arsenal and character skins, spin the Wheel of Fortune, and adjust game settings.
I am going to remove the unused Shield icon import from src/components/ui/LobbyScreen.tsx.
I am going to create src/components/ui/UpgradesModal.tsx to provide an interactive upgrade shop where players spend VIP Cash to upgrade weapon stats and unlock new legendary weapons or character suits.
I am going to create src/components/ui/WheelOfFortuneModal.tsx with an interactive rotating Casino Wheel of Fortune where players can spin to win VIP Cash, wheel chips, and reward jackpots accompanied by confetti celebrations.
I am going to create src/components/ui/GameHUD.tsx to provide the in-game HUD overlay featuring crosshair reticle, health/armor bars, ammunition counters, kill feeds, dynamic floating headshot text animations, and dual multi-touch virtual joysticks & action buttons for mobile support.
I am going to create src/components/ui/GameOverModal.tsx to display match end statistics, victory status, revolver headshots ratio, and the total VIP Cash earned during the casino heist.
I am going to remove the unused Award import from src/components/ui/GameOverModal.tsx.
I am going to rewrite src/App.tsx to serve as the application controller linking the Three.js 3D game engine, persistent localStorage save data, sound synthesizer, Lobby menu, Upgrades armory, Wheel of Fortune daily spin, Game HUD, and victory celebrations.
I am going to adjust the React import in src/App.tsx to fix the unused React variable lint error.
I am going to test and confirm that the project builds successfully without any errors using build_project.
I have created a clone of Vegas Clash 3D — One-Shot Revolver Headshot Casino Heist optimized for both PC and Mobile devices!
🌟 Key Gameplay & Technical Highlights
-
🤠 One-Shot Headshot Mechanics & Ballistics Engine (src/engine/VegasScene.ts):
- Built a high-performance Three.js 3D engine with procedural lighting, collision boundary boxes, bullet tracers, and particle FX (golden chips, blood bursts, wall sparks).
- Accurate Hitboxes & One-Shot Kill: Enemy AI bots are assembled with separated body meshes and a dedicated head/hat mesh (
userData: { isHead: true }). Hitting an enemy's head with the Vegas .357 Magnum Revolver triggers guaranteed instant one-shot elimination, plays a crisp "Dink! + Jackpot Cash Ring" synthesized chime, spawns coin fountains, and renders dynamic 3D floating text: 💥 HEADSHOT! +$1,000 VIP CASH 💥.
-
🏦 3D Vegas Casino & Bank Vault Environment:
- Slot Machine Alleys: Interactive neon slot machines ("777", "JACKPOT", "VEGAS HIGH-ROLLER") that spark and dispense bonus VIP cash ($50 per hit) when struck!
- Royal Felt Poker & Roulette Lounge: Provide strategic cover against enemy security bots.
- The High-Security Vault & Getaway Helipad (Heist Mode): Raid the circular steel bank vault at the back of the casino, grab glowing green money bags ($$$), and sprint to the rooftop Helipad getaway area to deposit for a massive +$7,777 deposit bonus multiplier!
-
🎮 Full PC & Mobile Support:
- PC Mode: Pointer Lock mouse aiming, WASD movement, Space to jump/vault, R to reload, Right Click / Shift to Aim Down Sights (ADS) telescopic scopes.
- Mobile Touch Dual Joysticks & Auto-Fire: Responsive multi-touch controls with an analog movement joystick on the bottom left, a drag aim area on the right, and dedicated haptic touch buttons for FIRE, RELOAD, AIM / ADS, and JUMP. Includes an configurable Target Auto-Fire Assist option in settings!
-
🎰 Complete Metagame & UI System (src/components/ui/):
- Lobby & Hub (
LobbyScreen.tsx): Select between 3 distinct game modes:
- 🏦 Casino Vault Heist (8v8 Mob vs Security)
- 👑 Vegas King Free-For-All Deathmatch
- 🎯 Sniper Headshots Accuracy Challenge
- : Spend earned VIP Cash to upgrade Revolver Firepower, Speedy Cylinder Reloading, Platinum Kevlar Armor, running speed, and unlock skins (The Elvis King Pompadour, Cowboy Sheriff Fedora, Diamond Billionaire).
Files built: index.html, src/index.css, src/types/game.ts, src/services/storage.ts, src/utils/sound.ts, src/engine/VegasScene.ts, src/components/ui/LobbyScreen.tsx, src/components/ui/UpgradesModal.tsx, src/components/ui/WheelOfFortuneModal.tsx, src/components/ui/GameHUD.tsx, src/components/ui/GameOverModal.tsx, src/App.tsx