Log inGet started
World

Red Dot Rising

Branchmain
Branchesmain
Commit3b5552605d

README.md

Env

The look of NEKO-9. Mounted on mount_env by the scene's entrypoint, in edit and in play alike, so the café is dressed while the other slices author against it.

awake rebuilds the whole slice from nothing: it drops the subtree it built last time, skins the scene's shell, spawns the set dressing and the neon sign, arms the fog, the participating medium, the wetness, the rain, the bloom and the grade, and bakes the reflection the wet floors reflect. The per-frame tick reads Core.state.dawn and pushes the night one step toward sunrise; every value it writes comes out of game.env.palette.

Fields

FieldWhat it does
drivingWhether the night advances with Core.state.dawn. Off holds the look where it stands, which is how a shot is taken at one moment.
dawnOverrideHold the look at a chosen point in the night, 0 through 1. Below 0 follows the run's own dawn.

Methods

  • rebuild() — build the slice again from nothing. Safe to call repeatedly; it finds its previous subtree by name and despawns it first, so nothing doubles.
  • setDawn(d) — hold the look at d without waiting a night out. -1 hands it back to the run.
  • observe() — what the slice holds right now: the root, the prop count, the practicals, the dawn, the whole look table, and the state of the fog, the medium, the weather, the post-process chain and the rain.

What it touches that it does not own

The scene owns the slabs, the walls, the rails, the neon strips, the lights and the sky. This slice writes exactly two things on them: each Model's material (see game.env.shell), and the colour and intensity of the scene's lights plus the sky's clock as the dawn turns. It never moves, despawns, reparents or adds a component to anything the scene carries. Everything it makes is spawned under one env_built root, marked temporary, so no part of it reaches scene.json.