custom mode rework, might be done

This commit is contained in:
landgreen
2020-02-17 07:26:14 -08:00
parent 32733909ab
commit b9ecfbc997
7 changed files with 230 additions and 202 deletions

View File

@@ -105,7 +105,7 @@ const mech = {
Sy: 0, //adds a smoothing effect to vertical only
Vx: 0,
Vy: 0,
jumpForce: 0.38, //0.38 //this is reset in b.setModDefaults()
jumpForce: 0.38, //0.38 //this is reset in b.setupAllMods()
gravity: 0.0024, //0.0019 //game.g is 0.001
friction: {
ground: 0.01,
@@ -323,7 +323,7 @@ const mech = {
}
function randomizeMods() {
b.setModDefaults(); //remove all mods
b.setupAllMods(); //remove all mods
//remove all bullets
for (let i = 0; i < bullet.length; ++i) Matter.World.remove(engine.world, bullet[i]);
bullet = [];