From 1ae1729728f0907ddb17e9303edad19aa2ff143c Mon Sep 17 00:00:00 2001 From: elioat Date: Fri, 27 Dec 2024 07:25:05 -0500 Subject: * --- html/side-scrolling-rogue-thing/js/config.js | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 html/side-scrolling-rogue-thing/js/config.js (limited to 'html/side-scrolling-rogue-thing/js/config.js') 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 -- cgit 1.4.1-2-gfad0