diff --git a/registration-system/view/signups/game1/js/environment.js b/registration-system/view/signups/game1/js/environment.js index 84fe22acae3e602fd7e16954c70821665617341d..b2a867db38060db5cebeecfa39fb7e47fd43236f 100644 --- a/registration-system/view/signups/game1/js/environment.js +++ b/registration-system/view/signups/game1/js/environment.js @@ -2,22 +2,22 @@ function Environment () { // something? } -Environment.prototype.progress = { +Environment.progress = { fs_firstApproach: false, fs_georgeScreamed: false, fs_filledBoard: false, killedGoat: false }; -Environment.prototype.inventory = { +Environment.inventory = { money: false, goatDrops: false }; -Environment.prototype.mapEvents = { +Environment.mapEvents = { 'map_landing': { init: function(svg) { - if (this.progress.fs_filledBoard) { + if (Environment.progress.fs_filledBoard) { // TODO: remove baustelle (that doesn't exist yet) } else { var ship = svg.select("#shipGroup"); diff --git a/registration-system/view/signups/game1/js/game.js b/registration-system/view/signups/game1/js/game.js index d218acfeb7e95aa017490c029cb02cb7e2b64c3c..c1cbf18001e4fdbda828f015adc5a3aeb8fe835b 100644 --- a/registration-system/view/signups/game1/js/game.js +++ b/registration-system/view/signups/game1/js/game.js @@ -5,7 +5,6 @@ function Game(config) { Game.instance = this; Game.achievements = new Achievements(); - Game.environment = new Environment(); Game.eventHandler = null; Game.char = null; Game.cam = null; @@ -74,7 +73,7 @@ Game.prototype.loadMap = function(map, spawn) { // ------------------------------------- // init map specific things - Game.environment.mapEvents[mapId].init(svg); + Environment.mapEvents[mapId].init(svg); // init view stuff Game.char = new Char(svg, {spawnid: spawn});