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