diff options
Diffstat (limited to 'html/rogue/js/config.js')
-rw-r--r-- | html/rogue/js/config.js | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/html/rogue/js/config.js b/html/rogue/js/config.js index 50687ba..d2c0b36 100644 --- a/html/rogue/js/config.js +++ b/html/rogue/js/config.js @@ -3,7 +3,23 @@ const Config = { BACKGROUND: 'rgba(135, 207, 235, 1)', GRID: 'rgba(0, 0, 0, 0.25)', PLAYER: 'red', - HEX_FILL: '#ffffff' + HEX_FILL: '#ffffff', + FOG: { + HIDDEN: 'rgba(0, 0, 0, 1)', + REVEALED: 'rgba(0, 0, 0, 0.5)', + GRID_DIM: 'rgba(255, 255, 255, 1)' // For grid lines in revealed but not visible hexes + }, + UI: { + INVENTORY: { + BACKGROUND: 'rgba(0, 0, 0, 0.7)', + WINDOW: '#ffffff', + TEXT: '#000000' + } + }, + ITEMS: { + COIN: '#FFD700', + GEM: '#50C878' + } }, hex: { @@ -45,10 +61,7 @@ const Config = { ITEM_FONT: '16px Arial', ITEM_SPACING: 30, TITLE_OFFSET: 20, - ITEMS_START_OFFSET: 60, - BACKGROUND_COLOR: 'rgba(0, 0, 0, 0.7)', - WINDOW_COLOR: '#ffffff', - TEXT_COLOR: '#000000' + ITEMS_START_OFFSET: 60 } }, @@ -57,14 +70,20 @@ const Config = { types: { COIN: { name: 'Coin', - color: '#FFD700', size: 0.2 }, GEM: { name: 'Gem', - color: '#50C878', size: 0.25 } } + }, + + fog: { + states: { + HIDDEN: { alpha: 1.0 }, + REVEALED: { alpha: 0.5 }, + VISIBLE: { alpha: 0 } + } } }; \ No newline at end of file |