strategy.styleRoleSet
- .metadata190 B
- README.md1.9 KB
- roles.yaml2.5 KB
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.
| Role | Line | Ink |
|---|---|---|
hero | 1.8 | #1848e8 |
partner | 1.6 | #00a0a0 |
friendly | 1 | #6a8a6a |
enemy | 1.8 | #d0102a |
elite | 2.2 | #a00828 |
boss | 2.8 | #700018 |
pickup | 1.6 | #f0c000 |
rarePickup | 2 | #ff60e0 |
usable | 1.5 | #00c8e0 |
objective | 2.4 | #ffe070 |
hazard | 2 | #ff7a00 |
projectile | 1 | #ffd040 |
prop | 0.5 | #6a6a6a |
ghost | 0.5 | #80a0c0 |
distant | 0.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.