var load = function (game) {
};

load.prototype = {
    preload: function () {
        console.log('load.preload');
        var loadingBar = this.add.sprite(this.game.world.centerX - 95, this.game.world.centerY, "loading");
        loadingBar.anchor.setTo(0.5, 0.5);
        this.load.setPreloadSprite(loadingBar);

        // Menu
        this.game.load.image('btn_start', 'img/btn_start.png');

        // Configs
        this.game.load.json('trains', 'config/trains.json');
        this.game.load.json('level-1', 'config/level-1.json');
        this.game.load.json('level-2', 'config/level-2.json');
        this.game.load.json('level-3', 'config/level-3.json');

        // Rails
        this.game.load.image('tex_rail_activator_active', 'img/textures/rail_activator_active.png');
        this.game.load.image('tex_rail_activator', 'img/textures/rail_activator.png');
        this.game.load.image('tex_rail_curve', 'img/textures/rail_curve.png');
        this.game.load.image('tex_rail_detector_active', 'img/textures/rail_detector_active.png');
        this.game.load.image('tex_rail_golden_active', 'img/textures/rail_golden_active.png');
        this.game.load.image('tex_rail_golden_inactive', 'img/textures/rail_golden_inactive.png');
        this.game.load.image('tex_rail_straight', 'img/textures/rail_straight.png');
        this.game.load.image('tex_rail_crossing', 'img/textures/rail_crossing.png');

        // Trains
        this.game.load.image('tex_train_head_green', 'img/textures/train_head_green.png');
        this.game.load.image('tex_train_body_green', 'img/textures/train_body_green.png');
        this.game.load.image('tex_train_head_red', 'img/textures/train_head_red.png');
        this.game.load.image('tex_train_body_red', 'img/textures/train_body_red.png');
        this.game.load.image('tex_train_head_blue', 'img/textures/train_head_blue.png');
        this.game.load.image('tex_train_body_blue', 'img/textures/train_body_blue.png');

        // UI
        this.game.load.image('btn_slow_down', 'img/btn_slow_down.png');
        this.game.load.image('btn_speed_up', 'img/btn_speed_up.png');
        this.game.load.image('accelerator', 'img/textures/rail_golden_active.png');
        this.game.load.image('decelerator', 'img/textures/rail_golden_inactive.png');

        // Backgrounds
        this.game.load.image('bg_menu', 'img/bg_menu.jpg');
        this.game.load.image('bg_level_1', 'img/bg_level_1.jpg');
        this.game.load.image('bg_level_2', 'img/bg_level_2.jpg');
        this.game.load.image('bg_level_3', 'img/bg_level_3.jpg');
        this.game.load.image('bg_game_over_cemetery', 'img/bg_game_over_cemetery.jpg');
        this.game.load.image('bg_game_over_coffin', 'img/bg_game_over_coffin.jpg');
        this.game.load.image('bg_game_over_skull', 'img/bg_game_over_skull.jpg');
        this.game.load.image('bg_game_won_candy_1', 'img/bg_game_won_candy_1.jpg');
        this.game.load.image('bg_game_won_candy_2', 'img/bg_game_won_candy_2.jpg');
        this.game.load.image('bg_game_won_corn', 'img/bg_game_won_corn.jpg');

        // Foregrounds
        this.game.load.image('fg_level_1', 'img/fg_level_1.png');
        this.game.load.image('fg_level_2', 'img/fg_level_2.png');
        this.game.load.image('fg_level_3', 'img/fg_level_3.png');

        // Images
        this.game.load.image('circle_black', 'img/circle_black.png');

        // Audio
        this.game.load.audio('bg_ingame', ['audio/bg_ingame.mp3', 'audio/bg_ingame.ogg']);
        this.game.load.audio('fx_train_crash', ['audio/fx_train_crash.mp3', 'audio/fx_train_crash.ogg']);
    },
    create: function () {
        console.log('load.create');
        this.game.state.clearCurrentState();
        this.game.state.start('Menu');
    }
};

@@ -716,30 +716,19 @@
 ex_rail_
-activator_acti
+cur
 ve', 'im
@@ -747,22 +747,11 @@
 ail_
-activator_acti
+cur
 ve.p
@@ -795,25 +795,24 @@
 ex_rail_
-activator
+straight
 ', 'img/
@@ -829,17 +829,16 @@
 ail_
-activator
+straight
 .png
@@ -873,36 +873,39 @@
 mage('tex_rail_c
-urve
+rossing
 ', 'img/textures
@@ -907,36 +907,39 @@
 tures/rail_c
-urve
+rossing
 .png');%0A
         this
@@ -918,32 +918,33 @@
 crossing.png');%0A
+%0A
         this.gam
@@ -961,35 +961,28 @@
 ge('tex_
-rail_detector_activ
+speed_up_bas
 e', 'img
@@ -1000,16 +1000,14 @@
 ail_
-detector
+golden
 _act
@@ -1051,33 +1051,28 @@
 ge('tex_
-rail_golden_activ
+speed_up_dom
 e', 'img
@@ -1141,35 +1141,29 @@
 ge('tex_
-rail_golden_inactiv
+slow_down_bas
 e', 'img
@@ -1230,37 +1230,38 @@
 .image('tex_
-rail_straight
+slow_down_dome
 ', 'img/text
@@ -1274,101 +1274,23 @@
 ail_
-straight.png');%0A        this.game.load.image('tex_rail_crossing', 'img/textures/rail_crossing
+golden_inactive
 .png
@@ -1486,32 +1486,33 @@
 dy_green.png');%0A
+%0A
         this.gam
@@ -1661,32 +1661,33 @@
 body_red.png');%0A
+%0A
         this.gam

remove unused tracks add anomaly base & dome