Please wait while we load the game details.
# Plutus Three.js Environment 3 (gun_sprint style) Scene, lighting, linear fog, atmospheric particles, vertical platforms. Extracted from gun_sprint_3d. Use `scene.add(mesh)` for your objects. Requires Three.js `>= 0.150.0`, ES modules. **Install:** `npm install three`. Build: `cd environment3 && npm run build`. Preview: `npm run dev`. --- ## Use in your project ```ts import { createEnvironment, createScene, createLighting, createArenaMap } from 'plutus-threejs-environment3'; // Full environment (scene + lighting + arena) const { scene, lighting, map } = createEnvironment({ addMap: true, mapOptions: { ground: true, platforms: true, atmosphericParticles: true }, }); // Or modular const { scene } = createScene({ backgroundColor: 0x87ceeb, fog: { type: 'linear', color: 0x87ceeb, near: 30, far: 100 } }); createLighting(scene); scene.add(yourMesh); ``` --- ## Run the app ```bash cd environment3 npm install npm run dev ``` --- ## Layout | File | Purpose | |------|---------| | `index.ts` | API + `createEnvironment()` | | `types.ts` | SceneOptions, LightingOptions, MapOptions | | `config.ts` | EnvConfig (gun_sprint: sky blue, fog, hemisphere + directional, particles, platform colors) | | `createScene.ts` | Scene, background, THREE.Fog (linear) | | `createLighting.ts` | Ambient + hemisphere + directional, shadows | | `map.ts` | createGround, createPlatforms, createAtmosphericParticles, createArenaMap | | `main.ts` | Demo entry (isometric camera) |