blob: 77100e17d7b0b4d97926d1e8f85ca6e5747572da (
plain) (
tree)
|
|
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
}
};
|