n-gon phase graphics

n-gon phase graphics
timeskipBoss written
build sharing with URL variables
This commit is contained in:
landgreen
2020-04-02 12:54:28 -07:00
parent b52f5f7748
commit 26fbb7bad6
7 changed files with 231 additions and 99 deletions

View File

@@ -61,14 +61,19 @@ const game = {
game.isTimeSkipping = true;
for (let i = 0; i < cycles; i++) {
game.cycle++;
// mech.cycle++;
mech.cycle++;
game.gravity();
Engine.update(engine, game.delta);
level.checkZones();
level.checkQuery();
mech.move();
game.checks();
mobs.loop();
// mech.draw();
mech.walk_cycle += mech.flipLegs * mech.Vx;
mech.hold();
b.fire();
b.bulletActions();
}
game.isTimeSkipping = false;
@@ -106,6 +111,7 @@ const game = {
accelScale: null, //set in levels.setDifficulty
CDScale: null, //set in levels.setDifficulty
lookFreqScale: null, //set in levels.setDifficulty
mouseDown: false,
// dropFPS(cap = 40, time = 15) {
// game.fpsCap = cap
// game.fpsInterval = 1000 / game.fpsCap;
@@ -202,6 +208,7 @@ const game = {
if (b.mods[i].count > 0) {
if (text) text += "<br>" //add a new line, but not on the first line
text += b.mods[i].name
if (b.mods[i].nameInfo) text += b.mods[i].nameInfo
if (b.mods[i].count > 1) text += ` (${b.mods[i].count}x)`
}
}