timeSkip
new reactor boss: timeBoss - after taking some damage it speeds up the passage of time reactor level has big doors nonrefundable tech show up in the pause menu time dilation field - move, jump, and fire 25% faster JUNK tech: closed timelike curve - spawn 5 field power ups, but every 12 seconds teleport a second into your future
This commit is contained in:
@@ -89,18 +89,35 @@ const simulation = {
|
||||
m.airControl()
|
||||
}
|
||||
m.move();
|
||||
level.custom();
|
||||
simulation.checks();
|
||||
mobs.loop();
|
||||
// m.draw();
|
||||
m.walk_cycle += m.flipLegs * m.Vx;
|
||||
|
||||
m.hold();
|
||||
level.customTopLayer();
|
||||
b.fire();
|
||||
b.bulletRemove();
|
||||
b.bulletDo();
|
||||
}
|
||||
simulation.isTimeSkipping = false;
|
||||
},
|
||||
timePlayerSkip(cycles = 60) {
|
||||
simulation.isTimeSkipping = true;
|
||||
for (let i = 0; i < cycles; i++) {
|
||||
simulation.cycle++;
|
||||
simulation.gravity();
|
||||
Engine.update(engine, simulation.delta);
|
||||
// level.custom();
|
||||
// level.customTopLayer();
|
||||
if (!m.isBodiesAsleep) {
|
||||
simulation.checks();
|
||||
mobs.loop();
|
||||
}
|
||||
b.bulletRemove();
|
||||
if (!m.isBodiesAsleep) b.bulletDo();
|
||||
}
|
||||
simulation.isTimeSkipping = false;
|
||||
},
|
||||
mouse: {
|
||||
x: canvas.width / 2,
|
||||
y: canvas.height / 2
|
||||
|
||||
Reference in New Issue
Block a user