diff options
author | elioat <elioat@tilde.institute> | 2024-12-27 07:25:05 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2024-12-27 07:25:05 -0500 |
commit | 1ae1729728f0907ddb17e9303edad19aa2ff143c (patch) | |
tree | b7bb5082e9099890156d9e9c36866a9dc2b8ee99 /html/side-scrolling-rogue-thing/js/config.js | |
parent | f1268ab00394de6f751c58f825efbc905680b161 (diff) | |
download | tour-1ae1729728f0907ddb17e9303edad19aa2ff143c.tar.gz |
*
Diffstat (limited to 'html/side-scrolling-rogue-thing/js/config.js')
-rw-r--r-- | html/side-scrolling-rogue-thing/js/config.js | 32 |
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 |