Isle-Slingers/js/levels/data/level-5.js

47 lines
1.5 KiB
JavaScript
Raw Permalink Normal View History

/* ISLE SLINGERS -- levels/data/level-5.js (submodule: level-5)
* Modularization pass: level 5 definition, split from the original js/levels.js.
* Installer: returns the level object built from the shared helpers scope L.
*/
(function (root, factory) {
var part = factory();
if (typeof module !== 'undefined' && module.exports) module.exports = part;
else (root.ISLE_LEVEL_PARTS = root.ISLE_LEVEL_PARTS || []).push(part);
})(typeof globalThis !== 'undefined' ? globalThis : this, function () {
'use strict';
return function (L) {
return {
id: 5,
name: 'Mog Fortress',
birds: ['wren', 'zippy', 'boulder', 'boulder'],
sling: L.SLING,
stars: [28000, 48000, 70000],
decor: { palms: [980, 2320], flowers: [780, 1300, 2180] },
blocks: [
// left stone tower (2 stories + ice cap)
L.stone(1450, 865, 70, 70),
L.stone(1450, 760, 70, 70),
L.ice(1450, 710, 30, 30),
// center keep
L.stone(1700, 865, 70, 70),
L.stone(1850, 865, 70, 70),
L.wood(1775, 815, 260, 30),
L.wood(1700, 740, 30, 120),
L.wood(1850, 740, 30, 120),
L.wood(1775, 665, 220, 30),
L.ice(1775, 635, 260, 30),
// right post
L.stone(2050, 865, 70, 70),
L.wood(2050, 760, 30, 120)
],
enemies: [
L.king(1775, 862),
L.mogg(1450, 671),
L.mogg(1775, 626),
L.mogg(2050, 676),
L.mogg(1575, 876),
L.mogg(1975, 876)
]
}
};
});