removed level.fillBG

added new graphics to several maps

to level developers: level.fillBG and level.fill no longer work,
you should draw backgrounds directly in level.custom like this:
level.custom = () => {
    ctx.fillStyle = "rgba(0,255,255,0.1)";
    ctx.fillRect(6400, -550, 300, 350);
    level.playerExitCheck();
    level.exit.draw();
    level.enter.draw();
};
This commit is contained in:
landgreen
2021-03-31 18:03:08 -07:00
parent 4848cc4e73
commit 94314f7a59
6 changed files with 489 additions and 1138 deletions

View File

@@ -19,7 +19,6 @@ const simulation = {
simulation.checks();
ctx.save();
simulation.camera();
level.drawFillBGs();
level.custom();
simulation.draw.powerUp();
mobs.draw();
@@ -30,7 +29,6 @@ const simulation = {
m.draw();
m.hold();
// v.draw(); //working on visibility work in progress
level.drawFills();
level.customTopLayer();
simulation.draw.drawMapPath();
b.fire();
@@ -54,13 +52,13 @@ const simulation = {
m.airControl()
}
// level.checkZones();
level.custom();
level.checkQuery();
m.move();
m.look();
simulation.checks();
ctx.save();
simulation.camera();
level.custom();
m.draw();
level.customTopLayer();
simulation.draw.wireFrame();
@@ -715,8 +713,6 @@ const simulation = {
m.fireCDcycle = 0
m.drop();
m.hole.isOn = false;
level.fill = [];
level.fillBG = [];
level.zones = [];
level.queryList = [];
simulation.drawList = [];