Masked Forces - 3D First Person Shooter

Seele01-Flash
By
Masked Forces is an intense 3D first-person shooter that brings competitive FPS action directly to your browser. Battle other players in multiplayer arenas, customize your loadout with powerful weapons, and climb the ranks in this free-to-play tactical shooter.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Masked Forces Mobile Ops". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a "Low-poly Tactical" aesthetic reminiscent of classic Counter-Strike but optimized for mobile browsers. The palette should be desaturated (sand, rusted metal, grey concrete) with high-contrast UI elements. * **Map Design:** Procedurally generate a "Container Yard" arena. Use `THREE.InstancedMesh` for shipping containers (blue, red, green) to optimize draw calls. The ground should be a sandy texture plane. * **Character Models:** Use simple capsule geometries with distinct colors to represent teams (e.g., Blue vs. Red) if rigged models are unavailable, but ideally, implement a placeholder low-poly soldier mesh. Enemies must have "Mask" textures or distinctive headgear. * **Weapon View:** Implement a First-Person view (FPS) with a weapon model (Assault Rifle) fixed to the camera. Include a muzzle flash sprite and a dynamic crosshair (CanvasTexture) that expands when moving. * **Lighting:** Use a warm DirectionalLight (simulating a desert sunset) capable of casting shadows, plus an AmbientLight to prevent pitch-black shadows. ### 2. Audio Requirements * **BGM:** A looping, tense, industrial-electronic track with a driving bassline to maintain adrenaline. * **SFX - Combat:** Loud, punchy gunshot sounds; a metallic "ping" for headshots; distinct reload mechanism sounds (mag out, mag in, slide pull). * **SFX - Environment:** Footsteps (changing sound based on sand vs. metal container tops). * **SFX - UI:** A digital "lock-on" sound when the crosshair hovers over an enemy. ### 3. Gameplay Loop * **Game Mode:** Single-player "Bot Deathmatch" (Simulating the multiplayer experience). The player spawns in a random corner of the arena. * **Combat Mechanics:** Raycasting for shooting. If the ray hits an enemy, reduce enemy HP. Headshots deal 2x damage. * **AI Behavior:** Enemies should patrol the map using simple pathfinding (moving between nodes). Upon seeing the player (line-of-sight check), they enter a "Combat State" (stop, aim, fire bursts). * **Economy & Progression:** Display a "Cash" score for every kill (+100$). Simple HUD showing Health (100/100) and Ammo (30/90). * **Win/Loss:** The player wins the round by reaching 10 kills first. The player loses if HP reaches 0 (show a "Respawning..." timer overlay). ### 4. Mobile Controls & Interaction * **Dual-Stick Setup:** * **Left Zone (Invisible):** Virtual Joystick for movement (Forward/Backward/Strafe). * **Right Zone (Invisible):** Touch and drag to rotate the camera (Pitch/Yaw). * **UI Layout:** * **Fire Button:** Large, circular button on the bottom-right (trigger raycast). * **ADS (Aim Down Sights):** Smaller button near Fire; lowers FOV and slows camera sensitivity for precision. * **Reload:** distinct button or double-tap weapon area. * **Jump:** Button on the right side. * **Mobile Optimizations:** * Implement **Auto-Fire Option**: If the crosshair remains on an enemy for 0.2s, the gun fires automatically (reduces finger gymnastics). * **Haptic Feedback:** Trigger `navigator.vibrate(20)` on shooting and `navigator.vibrate([50, 50, 50])` on taking damage. * **Orientation:** Force Landscape mode via CSS warning if in Portrait. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Masked Forces

Masked Forces is a high-octane 3D first-person shooter that delivers authentic FPS combat experience right in your web browser. This free-to-play tactical shooter combines the intensity of classic arena shooters with modern weapon customization and character progression systems. Players can engage in both single-player campaigns and competitive multiplayer battles without any downloads or installations required.

Core Features

Dual Game Modes

Masked Forces offers comprehensive gameplay options to suit different play styles:

  • Campaign Mode : Tackle challenging single-player missions that test your tactical skills and weapon mastery
  • Online PvP Mode : Battle against real players from around the world in competitive multiplayer arenas
  • Arena Combat : Fast-paced matches in various tactical environments

Extensive Weapon Arsenal

The game features a diverse collection of military-grade weapons:

  • Assault Rifles : High-damage automatic weapons for versatile combat
  • Sniper Rifles : Long-range precision weapons for tactical elimination
  • SMGs : Close-quarters combat weapons with high fire rates
  • Machine Guns : Heavy weapons including HMG light machine guns
  • Sidearms : Revolvers and pistols for backup firepower
  • Special Weapons : Thompson submachine guns and slugger shotguns

Character Progression System

Advance your masked fighter through multiple progression mechanics:

  • Character Levels : Gain experience and unlock new content as you play
  • Daily Rewards : Collect cash and weapons through daily login bonuses
  • Loadout Customization : Modify armor, weapons, and equipment
  • Weapon Upgrades : Enhance your arsenal's performance and effectiveness

Professional Graphics and Audio

The game delivers console-quality visuals reminiscent of Counter-Strike, featuring:

  • Realistic 3D Environments : Detailed arena maps with tactical cover points
  • Smooth Animations : Fluid character movements and weapon handling
  • Immersive Sound Design : Realistic weapon sounds and environmental audio

Gameplay Mechanics

Combat Strategy

Success in Masked Forces requires mastering several key tactical elements:

  • Constant Movement : Stay mobile to avoid enemy fire and maintain tactical advantage
  • Precision Aim : Use the right-click aim function for accurate long-range shots
  • Situational Awareness : Monitor your surroundings and anticipate enemy positions
  • Weapon Management : Cycle between weapons strategically based on combat situations

Arena Dynamics

Each battle takes place in carefully designed arena environments that promote:

  • Tactical Positioning : Use cover points and elevation advantages
  • Multiple Engagement Ranges : Combat scenarios from close-quarters to long-range
  • Dynamic Encounters : Unpredictable enemy appearances keep battles intense

Operation Guide

Basic Controls

Master these essential controls for effective combat:

  • WASD Keys : Character movement (forward, backward, strafe left/right)
  • Left Mouse Button : Fire your equipped weapon
  • Right Mouse Button : Aim down sights for improved accuracy
  • R Key : Reload your current weapon
  • Mouse Wheel : Cycle through available weapons in your loadout

Pre-Battle Preparation

Before entering combat arenas:

  1. Choose Username : Select your fighter identity
  2. Check Character Level : Monitor your progression status
  3. Review Available Cash : Plan weapon purchases and upgrades
  4. Collect Daily Rewards : Claim free weapons and currency
  5. Customize Loadout : Select optimal weapons and armor for your play style

Combat Tips for Success

  • Learn Map Layouts : Familiarize yourself with arena geography and cover points
  • Practice Weapon Switching : Master quick weapon changes for different situations
  • Control Recoil : Use short bursts for better accuracy with automatic weapons
  • Communicate : Coordinate with team members in multiplayer modes

Why Play Masked Forces

Accessibility and Convenience

  • No Download Required : Play instantly in any modern web browser
  • Free-to-Play : Complete FPS experience without any payment barriers
  • Cross-Platform : Compatible with Windows, Mac, and mobile devices
  • Instant Action : Jump into battles immediately without lengthy setup

Competitive Gaming Experience

  • Skill-Based Gameplay : Rewards tactical thinking and shooting accuracy
  • Active Player Base : Regular matches with players worldwide
  • Progression System : Long-term goals through character and weapon advancement
  • Balanced Combat : Fair weapon system that rewards skill over spending

Perfect for FPS Fans

Whether you're a veteran of tactical shooters or new to the FPS genre, Masked Forces offers:

  • Familiar Controls : Standard FPS control scheme that's easy to learn
  • Competitive Depth : Advanced tactics for experienced players
  • Casual Friendly : Quick matches perfect for short gaming sessions
  • Community Engagement : Active multiplayer community for ongoing competition

Frequently Asked Questions (FAQ)