Please wait while we load the game details.
# Environment 7 — sniper_shooter_3d Modular Three.js environment based on **sniper_shooter_3d**: night tactical look, dark background, purple ambient light, hill terrain, trees, and rocks. Suitable for sniper, tactical, or stealth games. ## Features - **Night atmosphere** — Dark blue background (0x0b1426), fog (0x1a1a2e, near 15, far 80) - **Lighting** — Purple ambient (0x404080, 0.8) + directional (0xffffff, 1.2) at (10, 25, 10) - **Ground** — Green ground plane (0x1a4a1a), 100×100 - **Field** — Lighter green field (0x2d4a2d), 80×80 - **Hill** — Brown hill (0x5a4a3a) at (0, 2.5, 45) for sniping position - **Trees & rocks** — Procedural decorations - **Third-person camera** — Positioned behind, looking at hill ## Usage ```ts import { createEnvironment } from './index.js'; const { scene, lighting, map } = createEnvironment({ addMap: true, mapOptions: { ground: true, field: true, hill: true, trees: true, rocks: true }, }); // Use scene.add() for player, enemies, etc. ``` ## Config `EnvConfig` in `src/config.ts`: - `fog` — near 15, far 80, color 0x1a1a2e - `background` — 0x0b1426 - `lighting` — ambient, directional - `level` — ground, field, hill, tree, rock colors - `world` — ground size, field size, hill position/size ## Demo ```bash npm install && npm run dev ``` Opens at port 3000. Orbit camera, night tactical terrain, blue capsule placeholder (player).