Log inGet started
Package

LanternDriftLantern.sceneModule

Newest version

README.md

LanternDriftLantern

The paper sky lantern the player flies in Lantern Drift: a 0.84 m rice-paper envelope (generated mesh, paperGlow material: golden glow low by the flame, deep orange crown, rib shadows, crinkle), eight bamboo ribs, bamboo ring and wire cross, fuel cake, a flickering two-layer flame, and a warm point light (orange, range 8). Pivot at the lantern's centre.

Spawn / place: asset.resolve("games.lanternDrift.art.models.LanternDriftLantern", "sceneModule"):instantiate(nil, { name = "Lantern", position = { 1, 1.4, 0 } }) — the main scene already places one named Lantern. Move the placement root; the light follows.

Inputs: lit (false builds it with no flame/light), lightIntensity (6), lightRange (8), scale (1).

Children by name: paper (Model; instance lane 0.x = doused, 0.y = flash), glow (flame model; :setActive(false) hides it), lanternLight (Light). require("games.lanternDrift.art.LanternDriftArt").douse(lantern) / .relight(lantern) do the whole switch.