Southpole level added

This commit is contained in:
Mal
2024-12-08 23:11:52 +01:00
parent ca794ca49c
commit a583005814
3 changed files with 13 additions and 0 deletions

View File

@@ -85,6 +85,17 @@ export default class Level
const json = JSON.parse(data);
const level = new Level(Terrain.createFromJson(json));
level.setGravity(json.gravity / Level.FACTOR_GRAVITY);
if (json.hasOwnProperty('effects')) {
const effectFactory = new FullscreenEffectFactory();
for (const effect of json.effects) {
level.fullscreenEffects.push(
effectFactory.getEffect(effect)
);
}
}
callback(level);
}
loader.loadContent();

View File

@@ -87,6 +87,7 @@ const LEVEL = [
'terrain8.json',
'darius.json',
'imperial-prison.json',
'southpole.json',
];
let game;