diff --git a/src/levels/lobby.js b/src/levels/lobby.js new file mode 100644 index 0000000..7a8f8ab --- /dev/null +++ b/src/levels/lobby.js @@ -0,0 +1,24 @@ +// Seed #4: the lobby of the arcade. A row of cabinets; the door on the left goes back up to the roof. +import { PAL } from "../palette.js"; +import { blit } from "../sprites.js"; + +export default { + name: "lobby", + label: "lobby", + ground: 150, + platforms: [{ x: 210, y: 118, w: 46 }], + start: { x: 40, y: 150 }, + exits: {}, + doors: [{ x: 16, y: 138, to: "rooftop", at: { x: 60, y: 90 } }], + boss: null, + spawn: [], + music: "lobby-a", + draw(g) { + g.fillStyle = PAL.skyDeep; g.fillRect(0, 0, 320, 180); + g.fillStyle = PAL.wall; g.fillRect(0, 24, 320, 126); + g.fillStyle = PAL.ink; g.fillRect(0, 150, 320, 30); + for (let x = 0; x < 320; x += 16) { g.fillStyle = (x / 16) % 2 ? PAL.roof : PAL.far; g.fillRect(x, 150, 16, 4); } + for (let i = 0; i < 6; i++) blit(g, "cabinet", 60 + i * 24, 136); + g.fillStyle = PAL.roof; g.fillRect(210, 118, 46, 4); + }, +};