several fixes

added more testings options
fixed momentum bug
camera no scroll on new level
This commit is contained in:
lilgreenland
2019-12-19 13:40:25 -08:00
parent 27018e6253
commit 2544bb96c3
4 changed files with 78 additions and 42 deletions

View File

@@ -14,7 +14,7 @@ const level = {
start() {
if (level.levelsCleared === 0) {
// game.difficulty = 6; //for testing to simulate possible mobs spawns
b.giveGuns(12)
// b.giveGuns(15)
// mech.fieldUpgrades[1].effect();
// b.giveMod(21)
@@ -32,6 +32,7 @@ const level = {
level[level.levels[level.onLevel]](); //picks the current map from the the levels array
level.levelAnnounce();
}
game.noCameraScroll();
game.setZoom();
level.addToWorld(); //add bodies to game engine
game.draw.setPaths();