about summary refs log tree commit diff stats
path: root/html/side-scrolling-rogue-thing/js/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/side-scrolling-rogue-thing/js/config.js')
-rw-r--r--html/side-scrolling-rogue-thing/js/config.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/html/side-scrolling-rogue-thing/js/config.js b/html/side-scrolling-rogue-thing/js/config.js
new file mode 100644
index 0000000..77100e1
--- /dev/null
+++ b/html/side-scrolling-rogue-thing/js/config.js
@@ -0,0 +1,32 @@
+const CONFIG = {
+    player: {
+        width: 32,
+        height: 48,
+        speed: 5,
+        jumpForce: 12,
+        gravity: 0.5,
+        color: '#ff0000'
+    },
+    world: {
+        groundHeight: 12,
+        wilderness: {
+            vegetation: {
+                grass: {
+                    colors: ['#3a5', '#294'],
+                    hatch: {
+                        angle: Math.PI / 4,
+                        variation: Math.PI / 6,
+                        spacing: 4,
+                        length: 8,
+                        margin: 2
+                    }
+                }
+            }
+        }
+    },
+    camera: {
+        width: window.innerWidth,
+        height: window.innerHeight,
+        followSpeed: 0.1
+    }
+}; 
\ No newline at end of file