feedback5 R5: split the match screen's standalone pieces out
The match-ended plate, the solo pause plate, the highlight styles and keepEarly now live in public/js/screens/game/*.js. game.js stays the screen entry. MatchScreen stays one component. Imports only those pieces used moved with them. Two source pins follow the lines that moved.
This commit is contained in:
1 parent
aaef748ad9
commit
dd07dc1ec1
6 files changed
+65
-48
No files matched your search
@@ -0,0 +1,11 @@
|
||||
// public/js/screens/game/marks.js — class-name join and the field highlight styles the match screen passes to the view.
|
||||
|
||||
export const cx = (...p) => p.flat().filter(Boolean).join(' ');
|
||||
|
||||
export const HUD_HZ_MS = 200;
|
||||
|
||||
/** Range tiles of the selected unit (its own highlight group: the wheel's 'facing' group may be up at the same time). */
|
||||
export const SEL_RANGE = Object.freeze({ group: 'selRange', color: 0xff9c33, fill: 0.3, line: 0.95 });
|
||||
|
||||
/** The tile an armed merge-completing card's elite will take (its own group; gold like the promotion cue, render/fx.js). */
|
||||
export const MERGE_HL = Object.freeze({ group: 'mergeTile', color: 0xffd45a, fill: 0.34, line: 1 });
|
||||
Reference in new issue
Block a user