about summary refs log tree commit diff stats
path: root/html/rogue/js/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/rogue/js/config.js')
-rw-r--r--html/rogue/js/config.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/html/rogue/js/config.js b/html/rogue/js/config.js
index aea067f..284ad89 100644
--- a/html/rogue/js/config.js
+++ b/html/rogue/js/config.js
@@ -4,5 +4,32 @@ const Config = {
         GRID: '#333333',                        // Off-black for grid lines
         PLAYER: 'red',                          // Player color
         HEX_FILL: '#ffffff'                     // White fill for passable hexes
+    },
+    
+    hex: {
+        SIZE: 40,                    // Base size of hexagons
+        GRID_SIZE: 10,              // Number of hexes in grid (width/height)
+        get WIDTH() {               // Computed hex width
+            return this.SIZE * 2;
+        },
+        get HEIGHT() {              // Computed hex height
+            return Math.sqrt(3) * this.SIZE;
+        }
+    },
+
+    game: {
+        FPS: 60,                    // Target frame rate
+        get FRAME_TIME() {          // Computed frame duration
+            return 1000 / this.FPS;
+        }
+    },
+
+    player: {
+        MOVE_SPEED: 0.1,           // Player movement speed
+        SIZE_RATIO: 1/3            // Player size relative to hex size
+    },
+
+    camera: {
+        FOLLOW_SPEED: 0.1          // Camera smoothing factor
     }
 }; 
\ No newline at end of file
'#n139'>139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172