Day and night
Continuous celestial time, ambient colour, and a torch mask.
Open day/night demoDeterministic game simulation
LittleEnvironment is a dependency-free ESM toolkit for connecting celestial time, weather, lighting, physiology, attributes, status effects, progression, and saves. Its simulation runs without a browser or a renderer.
Continuous celestial time, ambient colour, and a torch mask.
Open day/night demoClimate transitions and camera-bounded rain, snow, ash, and fog.
Open weather demoHeat exchange, insulation, fire warmth, and vital pools.
Open survival demoArmour mitigation, shields, critical hits, and frostbite ticks.
Open combat demoContinuous time is normalised to [0, 1). Calendar changes occur only on day rollover, while weather transitions interpolate a compact climate matrix.
Core modules in src/ contain no DOM, Canvas, or WebGL assumptions. Renderer adapters consume plain light frames and particle data.
Core temperature evolves smoothly with environmental delta, thermal resistance, and a configurable exchange rate. Hunger, thirst, stamina, and oxygen update at sub-second precision.
Attributes cache their effective values until invalidated. Effects process all elapsed tick intervals, retaining the fractional remainder.
npm test npm run build python3 -m http.server 8000
Open this documentation from the local server rather than directly from the filesystem, so the browser can load the generated ESM bundle.