diff --git a/js/constants.js b/js/constants.js index 821fc38..6e5f20c 100644 --- a/js/constants.js +++ b/js/constants.js @@ -1,7 +1,7 @@ // Game constants const CHUNK_SIZE = 200; const PIXEL_SIZE = 4; -const GRAVITY = 0.5; +const GRAVITY = 1.5; // Increased gravity (3x stronger) const WATER_SPREAD = 3; // Base Colors diff --git a/js/elements/basic.js b/js/elements/basic.js index c23103f..19771dd 100644 --- a/js/elements/basic.js +++ b/js/elements/basic.js @@ -1,7 +1,7 @@ // Basic element behaviors (sand, water, dirt) function updateSand(x, y) { - // Try to move down with stronger gravity (up to 3 pixels at once) - let maxFall = 3; + // Try to move down with stronger gravity (up to 5 pixels at once) + let maxFall = 5; let newY = y; // Check how far down we can fall @@ -62,8 +62,8 @@ function updateWater(x, y) { setMetadata(x, y, metadata); } - // Try to move down with stronger gravity (up to 2 pixels at once) - let maxFall = 2; + // Try to move down with stronger gravity (up to 4 pixels at once) + let maxFall = 4; let newY = y; // Check how far down we can fall @@ -154,8 +154,8 @@ function updateWater(x, y) { } function updateDirt(x, y) { - // Try to move down with stronger gravity (up to 3 pixels at once) - let maxFall = 3; + // Try to move down with stronger gravity (up to 5 pixels at once) + let maxFall = 5; let newY = y; // Check how far down we can fall diff --git a/js/elements/plants.js b/js/elements/plants.js index 21d93c5..1363279 100644 --- a/js/elements/plants.js +++ b/js/elements/plants.js @@ -1,7 +1,7 @@ // Plant element behaviors (grass, seeds, trees) function updateGrass(x, y) { // Grass behaves like dirt for physics with stronger gravity - let maxFall = 3; + let maxFall = 5; let newY = y; // Check how far down we can fall @@ -61,7 +61,7 @@ function updateGrass(x, y) { function updateSeed(x, y) { // Seeds fall like sand with stronger gravity - let maxFall = 3; + let maxFall = 5; let newY = y; // Check how far down we can fall diff --git a/js/elements/trees.js b/js/elements/trees.js index 9a5b97b..89995c1 100644 --- a/js/elements/trees.js +++ b/js/elements/trees.js @@ -1,7 +1,7 @@ // Tree element behaviors function updateTreeSeed(x, y) { // Tree seeds fall like other seeds with stronger gravity - let maxFall = 3; + let maxFall = 5; let newY = y; // Check how far down we can fall