Log inGet started
Package

styleRoles.package

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

README.md

Bright platformer (role set)

For a bright jump-and-run: the hero in a bold royal-blue line, enemies in a firm tomato red, coins in gold and power-ups in magenta so they pop, hazards in hot orange, scenery in a thin soft slate line.

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("brightPlatformer"). The look stays as it is.

RoleLineInk
hero2#1a3fd0
partner1.8#0f8a8a
friendly1.4#2a9a2a
enemy1.9#d0201a
elite2.3#c0106a
boss3#8a0a8a
pickup1.6#e0a000
rarePickup1.9#d0109a
usable1.5#1a8ad0
objective2#10a040
hazard2.2#ff5a00
projectile1.2#ff8a00
prop0.8#5a6a8a
ghost0.5#8a9ab8
distant0.4#7a8aa8

asRendered and every role not written here come from the look's set. Variant lines: enemy #d0201a, hazard #ff5a00, pickup #e0a000, player #1a3fd0.

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.