Log inGet started
Package

styleRoles.package

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

README.md

Racing (role set)

For a racer read at speed: your car in a bold electric blue, teammates in sky blue, rival racers in orange-red with the leader heaviest, boosts in nitro green, checkpoints in a strong green, hazards in orange, and the track side thin and light so it streams past.

A set for a kind of game rather than a kind of look: it extends: look, so its line weights and inks are laid over the set the scene's look suits (toon game under a toon look, pencil sketch under a pencil look, and so on), and that set keeps deciding how much tone, fill and paper reach each role and what the free value does. It works the same under every look, and every set of this kind fills the same roles, so a game switches from one to another with one call: StyleRoles.use("racing"). The look stays as it is.

RoleLineInk
hero2#0050ff
partner1.6#00a0e0
friendly1#6a8a6a
enemy1.6#ff3a10
elite1.9#e01060
boss2.4#c00030
pickup1.6#00e0a0
rarePickup2#ff00c0
usable1.4#2080ff
objective2.2#20d020
hazard2.2#ff8000
projectile1.2#ffd000
prop0.5#707070
ghost0.5#80a0c0
distant0.3#8a8a8a

asRendered and every role not written here come from the look's set. Variant lines: enemy #ff3a10, hazard #ff8000, pickup #00e0a0, player #0050ff.

Known limits

  • At most eight distinct settings are drawn per scene; roles that resolve to the same setting share one (#24549, #22178).
  • A per-object value cannot reach a geometry pass, so some per-object looks need passes of their own (#24549).
  • Two engines on one account join as one player, so a two-player check needs two accounts or two machines (#14448).

The package README's Known limits lists the rest.