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

41 lines
1.3 KiB
JavaScript
Raw Normal View History

/* ISLE SLINGERS -- levels/data/level-3.js (submodule: level-3)
* Modularization pass: level 3 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: 3,
name: 'Glass Works',
birds: ['wren', 'zippy', 'boulder'],
sling: L.SLING,
stars: [18000, 34000, 50000],
decor: { palms: [900, 2250], flowers: [750, 1300, 2100] },
blocks: [
// ice workshop: two-storey
L.ice(1500, 840, 30, 120),
L.ice(1640, 840, 30, 120),
L.wood(1570, 765, 200, 30),
L.ice(1520, 700, 30, 100),
L.ice(1620, 700, 30, 100),
L.ice(1570, 635, 170, 30),
// wood hut
L.wood(1850, 830, 30, 140),
L.wood(1950, 830, 30, 140),
L.wood(1900, 745, 160, 30)
],
enemies: [
L.mogg(1570, 876),
L.mogg(1570, 596),
L.grum(1900, 868),
L.mogg(1900, 706)
]
}
};
});