diff --git a/client/js/assets/preloader.js b/client/js/assets/preloader.js index fb0c069..46c93c7 100644 --- a/client/js/assets/preloader.js +++ b/client/js/assets/preloader.js @@ -2,8 +2,8 @@ * Created by horacio on 3/22/16. */ -define(['lib/pixi', 'json!../../preload_config/preload_sounds.json','json!../../preload_config/preload_graficos.json'], - function (PIXI, PreloadSounds, PreloadGraficos) { +define(['lib/pixi', 'json!../../preload_config/preload_sounds.json','json!../../preload_config/preload_graficos.json', 'json!../../preload_config/preload_mapas.json'], + function (PIXI, PreloadSounds, PreloadGraficos, PreloadMapas) { class Preloader { constructor(assetManager) { @@ -38,6 +38,10 @@ define(['lib/pixi', 'json!../../preload_config/preload_sounds.json','json!../../ loader.add("indices", "indices/graficos.json"); + for (let mapas of PreloadMapas) { + loader.add(mapas, "mapas/mapa" + mapas + ".json"); + } + for (let grafico of PreloadGraficos) { loader.add(grafico, "graficos/" + grafico + ".png"); } diff --git a/client/preload_config/preload_mapas.json b/client/preload_config/preload_mapas.json new file mode 100644 index 0000000..ebe0e00 --- /dev/null +++ b/client/preload_config/preload_mapas.json @@ -0,0 +1,11 @@ +[ + "1", + "34", + "59", + "60", + "62", + "168", + "196", + "272", + "286" +]