Log inGet started
Package

main.scene

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

main

Lantern Drift, the example game of Curtain Call, built on the curtainKit package. Hold to rise, let go to sink: carry a paper sky lantern across a misty lake at dusk, between stone spires and through torii gates, to the Shrine of a Thousand Lanterns. Touch rock or water and the flame goes out.

Playing this scene starts the game: curtainKit's title over a slowly drifting camera, the opening cutscene (skippable), a run, an ending per outcome, and the results card with Replay.

What is here

Everything the environment adds hangs under clearing, each part with a role attribute:

PartroleWhat it is
lightingskyThe lanternDriftDusk scene setup: a dusk sky with sunlit cloud banks, a low sun behind the course, lake mist, bloom and vignette.
lakegroundTidewater lake water, the far shore and its trees, village lights and layered mountains.
jettypropThe start jetty with the bank and the child who releases the lantern.
shrinepropThe shrine island: pagoda, torii, stone lanterns, hanging paper lanterns and floating lanterns.
Course—The course from games/lanternDrift/course.module: rock spires (baked), seven torii gates, fireflies and the player's lantern.
BackdropRocks—Decorative and floating rock spires around the course (baked).

Beside them:

  • TemporalUpscale renders the 3D scene at 80% and rebuilds full resolution from successive frames; the UI stays full resolution.
  • LakeMirror (games/lanternDrift/LakeMirror.component) gives the lake a true mirror reflection: a camera reflected through the water plane, shown by the world's own lakeMirror material on a layer just above the water.
  • PlayerSetups holds the engine's default player, which the game hides; the game drives its own camera (LanternDriftCamera).

Building it

build.luau is the scene's source. Spires and backdrop rocks are baked (built once and stored as plain entities) so play starts fast; gates, the lantern, the shrine, the jetty and the lake are scene-module placements. After changing the course or a model, rebuild with zero scene reload main.

Entry point

The game itself is games/lanternDrift/game.module: its hooks (reset, begin, update, stop) and its curtainKit config (title, opening, endings, results, unlocks). See curtainKit.package/README.md and its guides for how a game plugs into the frame.