var c4N={ 'R0S':"Art/MenuScene/CuadroNegro", 'l1S':"R6", 'I0S':"load", 'a3S':"Art/GameScene/GameScene_NumerosPuntajes", 'v1S':"orientationchange", 'd3S':"min", 'P6':function(E, S){ return E in S; }, 'i6':function(E, S){ return E/S; }, 'h8S':"Art/GameScene/GameScene_Score", 'V1S':"0px", 'X0S':"K", 'y1S':"en_US", 'Y8S':"domElement", 'q1S':"Art/LoadingScene/LoadingScene", 'G2':function(E, S){ return E>S; }, 'J8S':"Z", 'E6':function(E, S){ return ES; }, 'p':function(E){ preloader[ "onComplete" ]=E; }, 'c8S':5, 'k6':function(E, S){ return E/S; }, 'j0S':"isCocoonJS", 'Q6':function(E, S){ return E/S; }, 'E0S':"absolute", 'F3S':"Art/Animacion/Bear_FastZombie/BearFastData", 'D1S':"Art/GameScene/NivelHabilidad", 'H3S':"Art/GameScene/GameScene_Hits", 'D8S':"Art/Animacion/Tutorial/TutorialData", 'B0S':"Art/Animacion/PjBear_LevelUp/PjBearLevelUpData", 'B8S':480, 'j1S':"Art/MenuScene/MenuScene", 'R6':function(E, S){ return E/S; }, 'M1S':"appendChild", 'V0S':"Art/MenuScene/Fuentes/Tienda_FuenteObjeto", 'W0S':"Art/Animacion/Bear_Skate/BearSkateData", 'j8S':"setAttribute", 'Z1S':",minimal-ui", 'J1S':"V6", 'x8S':".fnt", 'W6':function(E, S){ return E>S; }, 'A8S':"Art/LoadingScene/CirculoCarga", 'r8S':0, 'c1S':"DEBUG", 'K':function(E, S){ return E<=S; }, 'Q8S':"Art/LoadingScene/RotacionMovil", 'q8S':"autoDetectRenderer", 's8S':0.5, 'e3S':"Art/Animacion/Bear_Zombie/BearZombie-hd.json", 'F0S':"W6", 'f0S':"r", 'i1S':"Q6", 'Z0S':"Art/Animacion/Bear_Metal/MetalBear-hd.json", 'h5k':(function(){ var I5k=0, S5k='', Q5k=[ { }, / /, -1, null, NaN, NaN, null, '', '', [ ], NaN, null, NaN, -1, / /, '', NaN, NaN, null, [ ], '', [ ], '', { }, false, false, [ ], null, NaN, -1, -1, [ ], null, NaN, null, [ ], '', '', false, false, false, '', '' ], v5k=Q5k[ "length" ];for(;I5kv5k, Z5k;for(;I5k=S; }, 'B3S':"Art/GameScene/GameScene_Niveles", 'o0S':"Art/Animacion/Bear_Tank/BearTankData", 'o3S':"-hd", 'l3S':"W", 'L1S':640, 'm3S':"Art/Animacion/Bear_Skate/BearSkateIn-hd.json", 'p0S':".json", 'a1S':"width=device-width,initial-scale=", 'w0S':"u6", 'H8S':"", 'p6':function(E, S){ return E/S; }, 's0S':"Art/Logo/LogoData", 'e8S':"Art/Animacion/Pj_Bear/BearData", 'D0S':"addEventListener", 'f1S':"Art/GameScene/CuadroBlanco.png", 'k0S':"Art/LoadingScene/BordeIzq", 'J3S':"onComplete", 'T6':function(E, S){ return E*S; }, 'g1S':"ready", 'q0S':"Art/LoadingScene/BordeDer", 'A3S':".png", 'Z3S':"rootContainer", 'B1S':"y", 'v8S':"Art/GameScene/Piso", 't0S':"innerHeight", 'g8S':"L6", 'Y3S':"Art/GameScene/Fondo_Sombra", 'V8S':"AssetLoader", 'S6':function(E, S){ return E*S; }, 'L3S':"Art/Logo/Logo-hd.json", 'U1S':"x", 'I6':function(E, S){ return E*S; }, 'N3S':"Art/Animacion/Bear_Baseball/BearBaseballData" };function onAssetsLoaded(){ var E=c4N.h5k.G5k("18")?"readyToPlay":"k";gameEngine[ E ]();resize(); }function backingScale(){ var E=c4N.h5k.G5k("a3f")?"in":"G2", S=c4N.h5k.G5k("e5a")?"devicePixelRatio":"GAMEOVER_STATE", X5=c4N.h5k.G5k("e7")?"P6":"#fff";if(c4N[ X5 ](S, window)){ if(c4N[ E ](window[ S ], c4N.M8S)){ return window[ S ]; } }return c4N.M8S; }function fnPause(){ var E=c4N.h5k.G5k("c44c")?"luminance":"mute";Howler[ E ]();if(gameEngine){ gameEngine.pause(); } }function onVisibilityChange(E){ var S=c4N.h5k.G5k("318")?"orientationContainer":"webkitHidden", X5=c4N.h5k.G5k("ff3")?"target":"au";if(E[ X5 ][ S ]){ fnPause(); }else{ fnResume(); } }function onAssetsPreloaded(){ var E=c4N.h5k.G5k("3e")?"SFX/win.mp3":" sum += texture2D(uSampler, vec2(vTextureCoord.x - 4.0*blur, vTextureCoord.y)) * 0.05;", S="SFX/win.ogg", X5="SFX/gameover.mp3", L2="SFX/gameover.ogg", m=c4N.h5k.G5k("b3")?" sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - 3.0*blur)) * 0.09;":"SFX/ingame.mp3", S3u="SFX/ingame.ogg", Q3=true, Q3u="SFX/menu.mp3", B="SFX/menu.ogg", F=29000, v3u=c4N.h5k.G5k("4cb")?900:900, J3=28000, L0u=400, d3u=27000, J3u=26000, D=24000, W1=23000, N=c4N.h5k.G5k("15")?"uniform vec2 testDim;":800, i=c4N.h5k.G5k("75fd")?"red":22000, z4u=c4N.h5k.G5k("73f")?21000:4, U=20000, J=c4N.h5k.G5k("d18c")?99999:18000, G3Y=16000, t3Y=15000, O=14000, I3Y=c4N.h5k.G5k("7f1")?13000:"Art/GameScene/Piso", d1=c4N.h5k.G5k("218a")?11000:0.62, M3=10000, d=9000, R=8000, k=7000, S3Y=6000, V0u=300, A=5000, S5=500, h5=4000, I5=1800, t5=2000, M=1500, Q3Y="SFX/teddysfx.mp3", E5="SFX/teddysfx.ogg", Q5="startLoading";gameEngine[ Q5 ]();sounds=new Howl({ urls:[ E5, Q3Y ], sprite:{ door_open:[ c4N.r8S, M ], door_open_begin:[ t5, I5 ], roll_over_button:[ h5, S5 ], click_button:[ A, V0u ], select_equip:[ S3Y, V0u ], cancel_or_close:[ k, V0u ], tutorial_appear:[ R, S5 ], enemies_appear:[ d, V0u ], credits_appear:[ M3, S5 ], ready:[ d1, M ], go:[ I3Y, S5 ], grenade1:[ O, S5 ], grenade2:[ t3Y, S5 ], explosion:[ G3Y, M ], critical_explosion:[ J, M ], zombie_death1:[ U, V0u ], zombie_death2:[ z4u, S5 ], zombie_death3:[ i, N ], zombie_death4:[ W1, N ], homerun:[ D, I5 ], reload_ammo:[ J3u, S5 ], lost_live:[ d3u, L0u ], level_up:[ J3, v3u ], select_ability:[ F, N ] }, onload:onAssetsProgress, onloaderror:onAssetsProgress });menuMusic=new Howl({ urls:[ B, Q3u ], loop:Q3, onload:onAssetsProgress, onloaderror:onAssetsProgress });gameMusic=new Howl({ urls:[ S3u, m ], loop:Q3, onload:onAssetsProgress, onloaderror:onAssetsProgress });gameoverMusic=new Howl({ urls:[ L2, X5 ], loop:c4N.f8S, onload:onAssetsProgress, onloaderror:onAssetsProgress });winMusic=new Howl({ urls:[ S, E ], loop:c4N.f8S, onload:onAssetsProgress, onloaderror:onAssetsProgress });onAssetsProgress(); }function update(){ var S="end", X5="stage", L2="render", m="update", S3u=1000, Q3="k6", Q3u="begin", B=function(E){ lastUpdate=E; };if(gameEngine[ c4N.c1S ]){ stats[ Q3u ](); }var F=Date[ c4N.E8S ](), v3u=c4N[ Q3 ]((F-lastUpdate), S3u);B(F);requestAnimFrame(update);gameEngine[ m ](v3u);renderer[ L2 ](gameEngine[ X5 ]);if(gameEngine[ c4N.c1S ]){ stats[ S ](); } }function fnResume(){ var E="unpause", S="unmute";Howler[ S ]();if(gameEngine){ gameEngine[ E ](); } }function onAssetsProgress(){ var X5="S6", L2="max", m="setFactor", S3u="LOADING", Q3="scenes", Q3u="y6", B="E6";if(c4N[ B ](soundsLoaded, soundsToLoad)){ soundsLoaded++;if(c4N[ Q3u ](soundsLoaded, soundsToLoad)){ var F=function(E){ var S="onProgress";J3[ S ]=E; }, v3u=function(E){ J3[ c4N.J3S ]=E; };var J3=new PIXI[ c4N.V8S ](assetsToLoader);F(onAssetsProgress);v3u(onAssetsLoaded);J3.load(); } }else{ assetsLoaded++; }gameEngine[ Q3 ][ GAME_MODE[ S3u ] ][ m ](Math[ c4N.d3S ](Math[ L2 ](c4N[ X5 ](((1-0)/((assetsToLoader.length+soundsToLoad)-0)), ((assetsLoaded+soundsLoaded)-0))+0, 0), 1)); }function resize(){ var S="Y2", X5="s2", L2="n2", m="o2", S3u="z2", Q3="scrollTo", Q3u=function(){ document[ c4N.a8S ][ c4N.y3S ].height=window[ c4N.t0S ]+"px"; }, B=function(E){ gameEngine[ c4N.Z3S ].scale[ c4N.U1S ]=E; }, F=function(E){ gameEngine[ c4N.Z3S ].scale[ c4N.B1S ]=E; }, v3u=function(){ document[ c4N.a8S ][ c4N.y3S ].width=window[ c4N.j3S ]+"px"; };window[ Q3 ](c4N.r8S, c4N.r8S);var J3=c4N[ S3u ](defaultWidth, defaultHeight), L0u=c4N[ m ](window[ c4N.j3S ], window[ c4N.t0S ]), d3u, J3u;if(c4N[ L2 ](L0u, J3)){ var D=function(){ var E="A2";d3u=c4N[ E ](defaultHeight, L0u); }, W1=function(E){ J3u=E; };D();W1(defaultHeight); }else{ var N=function(E){ d3u=E; }, i=function(){ var E="H2";J3u=c4N[ E ](defaultWidth, L0u); };N(defaultWidth);i(); }renderer[ c4N.A0S ](window[ c4N.j3S ], window[ c4N.t0S ]);v3u();Q3u();gameEngine[ c4N.A0S ](d3u, J3u);var z4u=Math[ c4N.d3S ](c4N[ X5 ](window[ c4N.j3S ], d3u), c4N[ S ](window[ c4N.t0S ], J3u));B(z4u);F(z4u); }function onAssetsInitloaded(){ var S="preload", X5=function(E){ L2[ c4N.J3S ]=E; };gameEngine[ S ]();var L2=new PIXI[ c4N.V8S ](assetsLoading);X5(onAssetsPreloaded);L2.load();requestAnimFrame(update); }var defaultWidth=c4N.L1S, defaultHeight=c4N.u0S, artSuffix=c4N.o3S, locale=c4N.y1S, lastUpdate=Date[ c4N.E8S ]();if(c4N[ c4N.f0S ](screen.height*backingScale(), c4N.B8S)||c4N[ c4N.X0S ](screen.width*backingScale(), c4N.B8S)){ var I=function(){ var E="I6";defaultHeight=c4N[ E ](c4N.u0S, c4N.s8S); }, G=function(){ var E="T6";defaultWidth=c4N[ E ](c4N.L1S, c4N.s8S); }, w=function(E){ artSuffix=E; };G();I();w(c4N.H8S); }var assetsToInitloader=[ c4N.v8S+artSuffix+c4N.A3S, c4N.Y3S+artSuffix+c4N.A3S, c4N.A8S+artSuffix+c4N.A3S, c4N.R0S+artSuffix+c4N.A3S, c4N.Q8S+artSuffix+c4N.A3S ], assetsLoading=[ c4N.q1S+artSuffix+c4N.p0S, c4N.s0S+artSuffix+c4N.p0S, c4N.L3S ], assetsToLoader=[ c4N.y8S+artSuffix+c4N.p0S, c4N.j1S+artSuffix+c4N.p0S, c4N.q0S+artSuffix+c4N.A3S, c4N.k0S+artSuffix+c4N.A3S, c4N.e1S+artSuffix+c4N.A3S, c4N.V0S+artSuffix+c4N.x8S, c4N.m1S+artSuffix+c4N.x8S, c4N.r1S+artSuffix+c4N.x8S, c4N.P8S+artSuffix+c4N.x8S, c4N.e8S+artSuffix+c4N.p0S, c4N.T3S, c4N.B0S+artSuffix+c4N.p0S, c4N.W3S, c4N.h0S+artSuffix+c4N.p0S, c4N.e3S, c4N.F3S+artSuffix+c4N.p0S, c4N.G1S, c4N.o0S+artSuffix+c4N.p0S, c4N.C0S, c4N.N3S+artSuffix+c4N.p0S, c4N.n3S, c4N.W0S+artSuffix+c4N.p0S, c4N.O3S, c4N.R8S+artSuffix+c4N.p0S, c4N.m3S, c4N.A1S+artSuffix+c4N.p0S, c4N.Z0S, c4N.D8S+artSuffix+c4N.p0S, c4N.l0S, c4N.J0S, c4N.f1S, c4N.a3S+artSuffix+c4N.x8S, c4N.B3S+artSuffix+c4N.x8S, c4N.H3S+artSuffix+c4N.x8S, c4N.h8S+artSuffix+c4N.x8S, c4N.D1S+artSuffix+c4N.x8S ], assetsLoaded=c4N.r8S, gameMusic, sounds, soundsToLoad=c4N.c8S, soundsLoaded=c4N.r8S, widthToHeight=c4N[ c4N.w0S ](defaultWidth, defaultHeight), newWidthToHeight=c4N[ c4N.g8S ](window[ c4N.j3S ], window[ c4N.t0S ]), gameWidth, gameHeight;if(c4N[ c4N.F0S ](newWidthToHeight, widthToHeight)){ var o=function(E){ gameHeight=E; }, T=function(){ var E="h6";gameWidth=c4N[ E ](defaultHeight, newWidthToHeight); };T();o(defaultHeight); }else{ var C=function(E){ gameWidth=E; }, L=function(){ var E="p6";gameHeight=c4N[ E ](defaultWidth, newWidthToHeight); };C(defaultWidth);L(); }var renderer=PIXI[ c4N.q8S ](window[ c4N.j3S ], window[ c4N.t0S ]);document[ c4N.a8S ][ c4N.M1S ](renderer[ c4N.C3S ]);var gameEngine=new GAME[ c4N.k1S ](gameWidth, gameHeight), ratio=Math[ c4N.d3S ](c4N[ c4N.l1S ](window[ c4N.j3S ], gameWidth), c4N[ c4N.S8S ](window[ c4N.t0S ], gameHeight));c4N[ c4N.J8S ](ratio);c4N[ c4N.l3S ](ratio);if(gameEngine[ c4N.c1S ]){ var q=function(E){ stats.domElement.style.top=E; }, H=function(E){ var S="position";stats[ c4N.Y8S ][ c4N.y3S ][ S ]=E; };stats=new Stats();document[ c4N.a8S ][ c4N.M1S ](stats[ c4N.Y8S ]);H(c4N.E0S);q(c4N.V1S); }if(!navigator[ c4N.j0S ]){ window[ c4N.D0S ](c4N.A0S, resize, c4N.f8S);window[ c4N.D0S ](c4N.I0S, resize, c4N.f8S);document[ c4N.D0S ](c4N.g1S, resize, c4N.f8S);window[ c4N.D0S ](c4N.v1S, resize, c4N.f8S);document[ c4N.D0S ](c4N.W8S, onVisibilityChange); }var preloader=new PIXI[ c4N.V8S ](assetsToInitloader);c4N[ c4N.H1S ](onAssetsInitloaded);preloader.load();document[ c4N.R1S ](c4N.z3S)[ c4N.j8S ](c4N.i3S, c4N.a1S+c4N[ c4N.i1S ](c4N.M8S, backingScale())+c4N.z1S+c4N[ c4N.J1S ](c4N.M8S, backingScale())+c4N.F1S+c4N[ c4N.L8S ](c4N.M8S, backingScale())+c4N.Z1S);;