Log inGet started
Package

styleRoles.package

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

README.md

Strategy (role set)

For a strategy, tower defence or tactics game seen from above: your units in a bold royal blue, allied units in teal, enemy units in crimson with elites and the enemy commander heavier, resources in gold, things you can build on or use in cyan, objectives in white-gold, hazards in orange, and the map itself thin and quiet so a crowded battlefield still reads by team.

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, what the free value does and the colour each group is glazed in. 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("strategy"). The look stays as it is.

RoleLineInk
hero1.8#1848e8
partner1.6#00a0a0
friendly1#6a8a6a
enemy1.8#d0102a
elite2.2#a00828
boss2.8#700018
pickup1.6#f0c000
rarePickup2#ff60e0
usable1.5#00c8e0
objective2.4#ffe070
hazard2#ff7a00
projectile1#ffd040
prop0.5#6a6a6a
ghost0.5#80a0c0
distant0.3#8a8a8a

Roles this set does not write (asRendered) come from the look's set as they are.

Known limits

  • At most eight distinct settings are drawn per scene (#22178, #24549): roles sharing a setting share one.
  • A per-object value cannot reach a geometry pass, so per-object looks that need one draw passes of their own (#24549).
  • With no look on, a set for a kind of game sits over the toon game set (styleRoles 1.3.8 and later), so its roles still carry their groups.