The Sniper Code

Seele01-Flash
By
The Sniper Code is an engaging puzzle shooter game that challenges your precision and stealth skills. Complete over 30 levels of tactical shooting missions while upgrading your equipment and abilities.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**The Sniper Code: Mobile Ops**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Minimalist "Stickman Noir" aesthetic in 2.5D. The game world should use flat, low-poly geometries to simulate a vector art style. * **Foreground (Target Area):** Silhouetted black stickman models and building structures (rooftops, windows). * **Background:** Muted, desaturated blue/grey skyboxes representing an urban night setting (referencing the screenshot's color palette). * **The Scope Overlay (Crucial):** A high-quality shader or overlay texture that creates a circular view. The area *outside* the circle must be completely black. Inside the circle, apply a slight "fish-eye" distortion and a red crosshair UI. * **Performance:** Use unlit materials (MeshBasicMaterial) for the stickmen to save performance. Limit the scene to <5000 triangles. Use object pooling for bullet trails and blood particle effects. ### 2. Audio Requirements * **BGM:** A low-frequency, suspenseful ambient track (Synthesizer pads + slow bass beat) that builds tension. * **SFX:** * **Weapon:** A powerful, suppressed "Thud-Crack" sound with a slight urban echo. * **Atmosphere:** Subtle wind noise, distant city sirens. * **UI/Feedback:** A "Heartbeat" sound that gets louder as the player steadies their aim. A "Cash Register" sound for successful kills. A "Glitch/Static" noise for Mission Failed. ### 3. Gameplay Loop * **Briefing Phase:** At the start of the level, show a static 2D UI overlay describing the target (e.g., "Eliminate the target holding the briefcase" or "Don't shoot the civilian"). * **The Shot:** The player scans the environment through the scope. The scope sways slightly (Perlin noise) to simulate breathing. The player must compensate for this movement. * **Puzzle Element:** The player must identify the correct stickman based on behavior (walking pattern) or accessories (hat, briefcase), distinguishing them from innocent NPCs. * **Win/Loss:** * **Win:** Correct target eliminated. Score calculated based on Accuracy (Headshot vs Body shot) and Time. * **Loss:** Innocent civilian killed or the target escapes (runs off-screen). ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Landscape Mode** (Essential for wide scanning angles). * **Touch Controls:** * **Left Half of Screen (Aiming):** Acts as a large trackpad. Dragging the thumb moves the scope view. Implement "momentum" or "smoothing" so the scope movement feels heavy and precise, not jittery. * **Right Side Button (Fire):** A large, distinct red button (at least 64x64px) for the trigger. * **Zoom Slider:** A vertical slider on the right edge to adjust the Field of View (FOV) of the camera (Zoom In/Out). * **Haptic Feedback:** Trigger a short, sharp vibration (using `navigator.vibrate`) upon firing, and a heavy buzz if the mission fails. * **UI Layout:** Keep the center of the screen clear for the scope. Place score, wind indicator, and ammo count in the top corners (safe area). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About The Game

The Sniper Code is a strategic puzzle shooter that puts your marksmanship skills to the ultimate test. This free online game combines precision shooting with tactical thinking, offering players an immersive sniper experience that emphasizes accuracy, stealth, and strategic planning. With intuitive controls and smooth gameplay mechanics, it delivers an authentic sniping experience directly in your browser.

Core Features

Challenging Mission-Based Gameplay

The game features over 30 meticulously designed levels, each presenting unique objectives and tactical challenges. From eliminating specific targets to completing stealth missions, every level demands careful planning and precise execution.

Precision-Focused Mechanics

Accuracy is paramount in The Sniper Code. The game rewards patient, calculated shots over rapid firing, making each bullet count. Players must consider factors like distance, target movement, and environmental obstacles to achieve mission success.

Progressive Skill System

Earn money through successful missions and invest in weapon upgrades and skill improvements. The progression system allows players to enhance their shooting capabilities, unlock better equipment, and tackle increasingly difficult challenges.

Stealth Elements

Beyond pure shooting skills, the game emphasizes stealth tactics. Players must remain undetected while positioning for the perfect shot, adding layers of strategy to the traditional shooter experience.

Game Mechanics

The Sniper Code blends puzzle-solving with shooting action. Each level presents a tactical scenario where players must identify targets, plan their approach, and execute precise shots while avoiding detection. The game's physics engine ensures realistic bullet trajectories and impact effects.

Weapon Customization

As you progress, unlock various rifle modifications and equipment upgrades. Improved scopes, enhanced stability, and increased damage potential become available through the in-game store system.

Operation Guide

The game features intuitive controls designed for precision:

  • Mouse Movement : Aim your sniper scope with smooth cursor control
  • Left Mouse Button : Fire your rifle - timing and accuracy are crucial
  • Scope View : Zoom in for long-distance shots and target identification
  • Mission Briefing : Review objectives before each level

Success requires patience and careful observation. Take time to study target patterns, identify optimal shooting positions, and plan your escape routes.

Why Play This Game

Perfect for Strategy Enthusiasts : If you enjoy games that reward careful planning and precise execution, The Sniper Code offers the perfect blend of action and tactical thinking.

Free Browser Gaming : No downloads required - jump straight into the action through your web browser. The game runs smoothly on both desktop and mobile devices.

Skill Development : Improve your hand-eye coordination, strategic thinking, and patience through progressively challenging scenarios.

Replayability : With multiple approaches to each mission and upgrade paths to explore, the game offers excellent replay value for perfectionists seeking three-star completions.

Suitable for Action Game Fans : Appeals to players who enjoy shooting games, puzzle games, and tactical scenarios. The game strikes an excellent balance between accessibility for newcomers and depth for experienced players.

Frequently Asked Questions (FAQ)