diff --git a/js/game.js b/js/game.js index 16d23bb..9739958 100644 --- a/js/game.js +++ b/js/game.js @@ -611,7 +611,7 @@ const game = { if (game.isCommunityMaps) { level.levels.push("stronghold"); level.levels.push("basement"); - level.levels.push("newLevel"); + // level.levels.push("newLevel"); } level.levels = shuffle(level.levels); //shuffles order of maps level.levels.unshift("bosses"); //add bosses level to the end of the randomized levels list diff --git a/js/level.js b/js/level.js index 171a976..ced1875 100644 --- a/js/level.js +++ b/js/level.js @@ -3841,7 +3841,7 @@ const level = { } } }, - chain(x, y, len = 15, radius = 20) { + chain(x, y, len = 15, radius = 20, stiffness = 0.4, damping = 0.01) { for (let i = 0; i < len; i++) { body[body.length] = Bodies.polygon(x, y + 2 * radius * i, 12, radius, { inertia: Infinity @@ -3851,8 +3851,8 @@ const level = { consBB[consBB.length] = Constraint.create({ bodyA: body[body.length - i], bodyB: body[body.length - i - 1], - stiffness: 0.4, - damping: 0.01 + stiffness: stiffness, + damping: damping }); } cons[cons.length] = Constraint.create({ //pin first block to a point in space @@ -3861,8 +3861,8 @@ const level = { y: y - radius }, bodyB: body[body.length - len], - stiffness: 0.4, - damping: 0.01 + stiffness: stiffness, + damping: damping }); }, }; \ No newline at end of file diff --git a/todo.txt b/todo.txt index e7890e3..60bb613 100644 --- a/todo.txt +++ b/todo.txt @@ -1,5 +1,4 @@ -mod: rail road ties - nails are 40% bigger ************** TODO - n-gon **************