Log inGet started
Package

roleShowcase.scene

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

README.md

Role Showcase

One look over a small town square, and a cast that reads apart under it: the scene shows styleRoles and styleKit's style channels at work. Every thing in it carries a game role, and a panel in the top right switches the whole scene between the six role sets (each with the look it was made for) and "Roles off", so you can see what the roles do. Load it from the editor's scene list, or with zero scene load scenes.roleShowcase.

What is in it

  • The players' side: the Hero (role hero) and a co-op Partner (partner), humanoid avatars at the front of the square.
  • The enemies' side: three Grunts (enemy), an Elite (elite) and a Boss (boss, the largest), across the square.
  • Between them: five coins (pickup), two gems and a power-up star (rarePickup), all spinning.
  • Things to use and reach: a Lever (usable) and a GoalFlag (objective).
  • What hurts: a spinning SawBlade (hazard).
  • The rest of the town: a Shopkeeper by his stall (friendly), crates, barrels, the stall and the walls (prop), a Ghost at the back (ghost), the far houses behind the wall (distant), and a sign kept exactly as rendered (asRendered).
  • The look: a synced StyleStack with Comic ink cel and the toon game role set, plus a StyleRoleSet beside it.
  • The switcher: a RoleSwitcher entity with styleRoles.RoleSetSwitcher. Each button applies a role set and its look (toon game with Comic ink cel, ink comic with Comic ink, watercolor storybook with Picture book, pencil sketch with Pencil sketch, paper cutout with Paper cutout game, line and wash with Urban sketch); "Roles off" draws every object alike to compare. Clicks go through the synced stack, so everyone in the room switches together.
  • The camera: RoleShowcaseCamera frames the whole square. The scene has no player spawn ("none"): it is a showcase to look at, not a level to walk.

Every role is a synced styleKit.StyleChannel on the thing's own entity, saved with the scene. Give anything here another role with StyleRoles.give(entity.find("Grunt1"), "boss"), or switch sets from code with StyleRoles.use("inkComic").

How it is built

build.luau builds the whole square: materials from materialLibraryKit (a checkerboard where one is missing), the humanoid avatar for the cast, hollow_rigged for the enemies, Spinner for the coins, gems, star and saw, and the wooden crate and barrel bundles in showcaseAssets for the props. The Paper cutout game look it switches to is in scenes/roleShowcaseLooks. entrypoint.luau holds no logic: the panel runs from its own component, in edit and in play.