Log inGet started
Package

main.scene

README.md

main

The juiceKit showroom, and the world's start scene: an evening stage where every juiceKit preset stands as a labelled station you can walk up to and trigger.

  • The stage at the front holds a target blob and the "juiceKit" title. While Play all runs, the stage plays every preset in turn, and the title shows the name of the one playing.
  • Six rows of stations sit behind the stage, one row per family: combos, effects, shakes, flashes, squash & stretch and hitstop. Each row has a coloured title and a light. Each station (a pedestal, a ring, a target and a label) stands for one preset. The rows are built from Juice.list({ kind = ... }) by gallery.layout, so a new preset gets its own station. Walk up to one and press E (Interact) to play it.
  • The HUD panel shows:
    • the look: cartoon, realistic, pixel or sci-fi
    • an intensity slider from 0 to 2
    • reduce motion
    • the kit's version under the title (juiceKit 1.2.8, read from Juice.VERSION)
    • the camera style, switched across nine built-in controllers: orbital follow, third person, first person, orbit, chase, side scroller, top-down, isometric and RTS
    • Stop effects
    • the last preset played
  • The sky is a procedural evening sky, lit by a cool moon light, a dim ambient light and a warm light over the stage, so flashes and glowing effects read clearly.
  • The player setup:
    • a player prototype with a humanoid avatar and an orbital follow camera (camera rig OwnerOnly)
    • the DefaultSpawn point in front of the stage
    • every player who joins, at any time, gets their own player, camera and panel, and starts on the spawn facing the stage and stations with the camera behind them. The Gallery works the start view out from the spawn and the stage, not from the body, so it holds even when a joiner's body is slow to load or never shows. Until a body arrives, a local start camera stands where the follow camera will stand. A joiner whose camera rig did not reach them (it is OwnerOnly) keeps that camera, which then follows their player.
  • Two entities run the show:
    • Juice carries juiceKit.JuiceNet (look cartoon). It carries plays between peers, so world effects show for everyone and personal ones show only for their player.
    • Gallery carries gallery.Gallery, which runs the HUD, the stations and the tour for each peer's own player. Each peer sets it up once its scene has arrived. If a joining peer has no HUD or no player shortly after its gameplay is ready, the Gallery puts them back.

build.luau states the whole scene as code, and scene.json holds the baked result, so the scene is there the moment the world opens.