avk_game.js 116 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009
  1. function AVK_GAME(fini,back,ev)
  2. {
  3. var oldTime;
  4. var back_function = back;
  5. var init_func = fini;
  6. var event_func = ev;
  7. var that = this;
  8. var assetsToLoader = ["data/images_1.json","data/images_2.json","data/images_3.json","data/images_4.json","data/images_5.json","data/images_6.json","data/images_7.json","data/images_8.json","data/images_9.json","data/images_10.json","data/fonts/main_font.xml"];
  9. var loader = new PIXI.AssetLoader(assetsToLoader);
  10. var f = 0;
  11. var old_f = 0;
  12. var f_cnt = 0;
  13. var btn_scale = 0.015;
  14. loader.onComplete = onAssetsLoaded;
  15. this.LANGUAGE="TXT";
  16. this.GUI_BUSY=false;
  17. this.SCREEN_WIDTH=600;
  18. this.SCREEN_HEIGHT=900;
  19. this.STAGE = new PIXI.Stage(0x000000);
  20. this.RENDER = PIXI.autoDetectRenderer(this.SCREEN_WIDTH, this.SCREEN_HEIGHT,null,true,true);
  21. document.body.appendChild(this.RENDER.view);
  22. this.RENDER.view.style.position = "absolute";
  23. this.RENDER.view.style.top = "0px";
  24. this.RENDER.view.style.left = "0px";
  25. this.RENDER.view.style["z-index"] = "1";
  26. this.TMP_SPR = new PIXI.DisplayObjectContainer();
  27. this.BACK_SPR = new PIXI.DisplayObjectContainer();
  28. this.GUI = new PIXI.DisplayObjectContainer();
  29. this.UP_SPR = new PIXI.DisplayObjectContainer();
  30. this.TOO_SLOW=false;
  31. var here=this;
  32. this.isMobile = {
  33. Android:function(){return navigator.userAgent.match(/Android/i);},
  34. BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i);},
  35. iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i);},
  36. Opera:function(){return navigator.userAgent.match(/Opera Mini/i);},
  37. Windows:function(){return navigator.userAgent.match(/IEMobile/i);},
  38. any:function(){return (here.isMobile.Android() || here.isMobile.BlackBerry() || here.isMobile.iOS() || here.isMobile.Opera() || here.isMobile.Windows());}
  39. };
  40. var t_rotate=PIXI.Texture.fromImage("data/pics/rotate.jpg");
  41. var rotate = new PIXI.Sprite(t_rotate);
  42. rotate.visible=false;
  43. function resize()
  44. {
  45. window.scrollTo(0, 1);
  46. var h = 900;
  47. var w = 600;
  48. var width = window.innerWidth || document.body.clientWidth;
  49. var height = window.innerHeight || document.body.clientHeight;
  50. that.GUI.scale.x=1;
  51. that.GUI.scale.y=1;
  52. var view = here.RENDER.view;
  53. if ((height>width)||(!here.isMobile.any()))
  54. {
  55. rotate.visible=false;
  56. var ow=width;
  57. var oh=height;
  58. var ratio_h = height / h;
  59. var ratio_w = width / w;
  60. var ratio=ratio_h;
  61. if (ratio_h>ratio_w)
  62. {
  63. height=width*1.5;
  64. ratio=ratio_w;
  65. }else width=height/1.5;
  66. if (ow>width)
  67. {
  68. if (width*1.1>=ow)
  69. width=ow;
  70. else if (width*1.2>=ow)
  71. {
  72. that.GUI.scale.y=1.15/1.1;
  73. width=ow;
  74. }
  75. }else
  76. {
  77. if (height*1.1>=oh)
  78. height=oh;
  79. }
  80. view.style.height = height +"px";
  81. view.style.width = width +"px";
  82. view.style.top = (oh-height)/2+"px";
  83. view.style.left = (ow-width)/2+"px";
  84. }else
  85. {
  86. view.style.height = height +"px";
  87. view.style.width = width +"px";
  88. view.style.top = "0px";
  89. view.style.left = "0px";
  90. rotate.visible=true;
  91. return;
  92. }
  93. }
  94. window.addEventListener('resize', function(){resize();});
  95. window.onorientationchange = resize;
  96. resize();
  97. this.STAGE.addChild(this.TMP_SPR);
  98. this.STAGE.addChild(this.BACK_SPR);
  99. this.STAGE.addChild(this.GUI);
  100. this.STAGE.addChild(this.UP_SPR);
  101. this.STAGE.addChild(rotate);
  102. var progr = new PIXI.Graphics();
  103. var cnt_p=-1;
  104. this.UP_SPR.addChild(progr);
  105. var tback=PIXI.Texture.fromImage("data/pics/back_1.png");
  106. var back = new PIXI.Sprite(tback);
  107. back.position.x=105;
  108. back.position.y=60;
  109. this.UP_SPR.addChild(back);
  110. loader.onProgress = onProgress;
  111. onProgress();
  112. var timeProg=0;
  113. function onProgress()
  114. {
  115. cnt_p++;
  116. timeProg=0;
  117. drawProgress()
  118. }
  119. function drawProgress()
  120. {
  121. timeProg+=1/100;
  122. progr.beginFill(0x484848);
  123. progr.drawRect(50, that.SCREEN_HEIGHT-40, that.SCREEN_WIDTH-100, 12);
  124. progr.endFill();
  125. progr.beginFill(0xFFFFFF);
  126. progr.drawRect(51, that.SCREEN_HEIGHT-39, that.SCREEN_WIDTH-102, 10);
  127. progr.endFill();
  128. progr.beginFill(0x484848);
  129. progr.drawRect(52, that.SCREEN_HEIGHT-38, that.SCREEN_WIDTH-104, 8);
  130. progr.endFill();
  131. progr.beginFill(0x000000);
  132. progr.drawRect(53, that.SCREEN_HEIGHT-37, that.SCREEN_WIDTH-106, 6);
  133. progr.endFill();
  134. progr.beginFill(0xFF3300);
  135. if (cnt_p==assetsToLoader.length)
  136. timeProg=0;
  137. progr.drawRect(54, that.SCREEN_HEIGHT-36, (cnt_p+timeProg/(timeProg+1))*(that.SCREEN_WIDTH-108)/assetsToLoader.length, 4);
  138. progr.endFill();
  139. that.RENDER.render(that.STAGE);
  140. if (cnt_p<assetsToLoader.length)
  141. requestAnimFrame(drawProgress);
  142. }
  143. this.WND = "";
  144. this.EL = "";
  145. this.ID = 0;
  146. var DEBUG = "";
  147. var DEB_CNT = 0;
  148. this.deb = function(d)
  149. {
  150. DEBUG = d;
  151. DEB_CNT ++;
  152. if (DEBUG=="")
  153. that.FPS.setText("" + old_f);
  154. else
  155. that.FPS.setText(DEBUG);
  156. }
  157. function onAssetsLoaded()
  158. {
  159. if (GLOB_M)
  160. {
  161. if (GLOB_SND_TO_LOAD==0)
  162. FinishLoaded();
  163. else
  164. requestAnimFrame(onAssetsLoaded);
  165. }else FinishLoaded();
  166. }
  167. function FinishLoaded()
  168. {
  169. try{
  170. resize();
  171. that.WND = "MAIN";
  172. that.MAIN = new AVK_MAIN();
  173. that.WND = "GAME";
  174. that.GAME = new AVK_GAME();
  175. that.WND = "BALLS";
  176. that.BALLS = new AVK_BALLS();
  177. that.WND = "LIGHT";
  178. that.LIGHT = new AVK_LIGHT();
  179. that.FPS = new PIXI.BitmapText("fps:", {font: "8px AVK_FNT_main", align: "left"});
  180. that.FPS.position.y=that.SCREEN_HEIGHT-15;
  181. that.STAGE.addChild(that.FPS);
  182. f = 0;
  183. old_f = 0;
  184. f_cnt = 0;
  185. init_func();
  186. oldTime = (new Date()).getTime();
  187. requestAnimFrame(fw_update);
  188. }catch(e){AVK_ERROR(e);};
  189. }
  190. this.init_captions=function()
  191. {
  192. var flag;
  193. for (var i=0; i<that.DATA.gui.length;i++)
  194. {
  195. flag=!that[that.DATA.gui[i].id].sprite.visible;
  196. if (flag)
  197. {
  198. that.GUI.removeChild(that[that.DATA.gui[i].id].sprite);
  199. that.TMP_SPR.addChildAt(that[that.DATA.gui[i].id].sprite,0);
  200. }
  201. that[that.DATA.gui[i].id].sprite.visible=true;
  202. that[that.DATA.gui[i].id][that.DATA.gui[i].element].set_text(that.get("gui","val",i));
  203. if (flag)
  204. {
  205. that.GUI.addChildAt(that[that.DATA.gui[i].id].sprite,0);
  206. that[that.DATA.gui[i].id].sprite.visible=false;
  207. }
  208. }
  209. }
  210. var slow_cnt=0;
  211. function fw_update()
  212. {
  213. try{
  214. var tm = (new Date()).getTime();
  215. f_cnt += tm - oldTime;
  216. if (tm - oldTime>200)
  217. oldTime=tm-200;
  218. if (!rotate.visible)
  219. {
  220. back_function(tm - oldTime);
  221. that.ACT.update(tm - oldTime);
  222. }
  223. f++;
  224. while (f_cnt > 2000)
  225. f_cnt-=1000;
  226. while (f_cnt > 1000)
  227. {
  228. old_f = f;
  229. if (f<20)
  230. slow_cnt++;
  231. if (f>45)
  232. slow_cnt=0;
  233. if (slow_cnt>5)
  234. that.TOO_SLOW=true;
  235. if (DEBUG=="")
  236. that.FPS.setText("" + old_f);
  237. else
  238. that.FPS.setText(DEBUG);
  239. f = 0;
  240. f_cnt-=1000;
  241. }
  242. oldTime = tm;
  243. that.RENDER.render(that.STAGE);
  244. requestAnimFrame(fw_update);
  245. }catch(e){AVK_ERROR(e);};
  246. }
  247. function AVK_spr(pic,x,y,w,h,columns)
  248. {
  249. this.add=function (el)
  250. {
  251. this.sprite.addChild(el.sprite);
  252. }
  253. var mem=[pic,x,y,w,h,columns];
  254. this.make_copy = function()
  255. {
  256. that.WND = this.WND;
  257. that.EL = this.EL;
  258. that.ID = this.ID+1;
  259. return new AVK_spr(mem[0],mem[1],mem[2],mem[3],mem[4],mem[5]);
  260. }
  261. this.animations = columns;
  262. this.uni_width = w;
  263. this.uni_height = h;
  264. this.time = 1000;
  265. this.WND = that.WND;
  266. this.EL = that.EL;
  267. this.ID = that.ID;
  268. var currentTime = 0;
  269. var currentFrame = 0;
  270. if (pic=="")
  271. {
  272. this.sprite = new PIXI.DisplayObjectContainer();
  273. }else if (columns==1)
  274. {
  275. this.sprite = PIXI.Sprite.fromFrame(pic);
  276. }else
  277. {
  278. var array = [];
  279. for (var i = 0; i < columns; i++)
  280. {
  281. var texture = PIXI.Texture.fromFrame(pic + "_anim_" + i);
  282. array.push(texture);
  283. }
  284. this.sprite = new PIXI.MovieClip(array);
  285. }
  286. this.sprite.position.x = x;
  287. this.sprite.position.y = y;
  288. that.GUI.addChild(this.sprite);
  289. this.update = function(tk)
  290. {
  291. if (tk>0)
  292. {
  293. currentTime -= tk;
  294. while (currentTime <= 0)
  295. {
  296. currentTime += this.time/this.animations;
  297. currentFrame--;
  298. while (currentFrame < 0)
  299. currentFrame += this.animations;
  300. this.sprite.gotoAndStop(currentFrame);
  301. }
  302. }else if (tk<0)
  303. {
  304. currentTime -= tk;
  305. while (currentTime >= this.time/this.animations)
  306. {
  307. currentTime -= this.time/this.animations;
  308. currentFrame++;
  309. while (currentFrame >= this.animations)
  310. currentFrame -= this.animations;
  311. this.sprite.gotoAndStop(currentFrame);
  312. }
  313. }
  314. }
  315. this.set_parent = function(prnt)
  316. {
  317. prnt.sprite.addChild(this.sprite);
  318. var p = this.sprite;
  319. var x = 0;
  320. var y = 0;
  321. while(p = p.parent)
  322. {
  323. x += p.position.x;
  324. y += p.position.y;
  325. }
  326. this.sprite.position.x -= x;
  327. this.sprite.position.y -= y;
  328. }
  329. }
  330. this.AVK_spr = AVK_spr;
  331. function AVK_spr_bar(pic,x,y,w,h,columns)
  332. {
  333. this.add=function (el)
  334. {
  335. this.sprite.addChild(el.sprite);
  336. }
  337. var mem=[pic,x,y,w,h,columns];
  338. this.make_copy = function()
  339. {
  340. that.WND = this.WND;
  341. that.EL = this.EL;
  342. that.ID = this.ID+1;
  343. return new AVK_spr_bar(mem[0],mem[1],mem[2],mem[3],mem[4],mem[5]);
  344. }
  345. this.animations = columns;
  346. this.uni_width = w;
  347. this.uni_height = h;
  348. this.time = 1000;
  349. this.WND = that.WND;
  350. this.EL = that.EL;
  351. this.ID = that.ID;
  352. var currentTime = 0;
  353. var currentFrame = 0;
  354. if (pic=="")
  355. {
  356. this.sprite = new PIXI.DisplayObjectContainer();
  357. }else if (columns==1)
  358. {
  359. this.sprite = PIXI.Sprite.fromFrame(pic);
  360. }else
  361. {
  362. var array = [];
  363. for (var i = 0; i < columns; i++)
  364. {
  365. var texture = PIXI.Texture.fromFrame(pic + "_anim_" + i);
  366. array.push(texture);
  367. }
  368. this.sprite = new PIXI.MovieClip(array);
  369. }
  370. this.sprite.position.x = x;
  371. this.sprite.position.y = y;
  372. that.GUI.addChild(this.sprite);
  373. this.update = function(tk)
  374. {
  375. currentTime -= tk;
  376. if (currentTime <= 0)
  377. {
  378. currentTime = this.time/animations;
  379. currentFrame++;
  380. if (currentFrame >= animations)
  381. currentFrame = 0;
  382. this.sprite.gotoAndStop(currentFrame);
  383. }
  384. }
  385. this.set_parent = function(prnt)
  386. {
  387. prnt.sprite.addChild(this.sprite);
  388. var p = this.sprite;
  389. var x = 0;
  390. var y = 0;
  391. while(p = p.parent)
  392. {
  393. x += p.position.x;
  394. y += p.position.y;
  395. }
  396. this.sprite.position.x -= x;
  397. this.sprite.position.y -= y;
  398. }
  399. }
  400. this.AVK_spr_bar = AVK_spr_bar;
  401. function AVK_txt(pic,x,y,w,h,columns)
  402. {
  403. this.add=function (el)
  404. {
  405. this.sprite.addChild(el.sprite);
  406. }
  407. var mem=[pic,x,y,w,h,columns];
  408. this.make_copy = function()
  409. {
  410. that.WND = this.WND;
  411. that.EL = this.EL;
  412. that.ID = this.ID+1;
  413. return new AVK_txt(mem[0],mem[1],mem[2],mem[3],mem[4],mem[5]);
  414. }
  415. var fnt=Math.floor(h*0.8)+"px AVK_FNT_main";
  416. this.txt = new PIXI.BitmapText("", {font: fnt, align: "left"});
  417. this.align = "left";
  418. this.caption = "";
  419. this.animations = columns;
  420. this.uni_width = w;
  421. this.uni_height = h;
  422. this.time = 1000;
  423. this.WND = that.WND;
  424. this.EL = that.EL;
  425. this.ID = that.ID;
  426. var currentTime = 0;
  427. var currentFrame = 0;
  428. if (pic=="")
  429. {
  430. this.sprite = new PIXI.DisplayObjectContainer();
  431. this.sprite.position.x = x;
  432. this.sprite.position.y = y;
  433. }else if (columns==1)
  434. {
  435. this.sprite = PIXI.Sprite.fromFrame(pic);
  436. this.sprite.position.x = x;
  437. this.sprite.position.y = y;
  438. }else
  439. {
  440. var array = [];
  441. for (var i = 0; i < columns; i++)
  442. {
  443. var texture = PIXI.Texture.fromFrame(pic + "_anim_" + i);
  444. array.push(texture);
  445. }
  446. this.sprite = new PIXI.MovieClip(array);
  447. }
  448. this.sprite.position.x = x;
  449. this.sprite.position.y = y;
  450. that.GUI.addChild(this.sprite);
  451. this.sprite.addChild(this.txt);
  452. this.update = function(tk)
  453. {
  454. currentTime -= tk;
  455. if (currentTime <= 0)
  456. {
  457. currentTime = this.time/animations;
  458. currentFrame++;
  459. if (currentFrame >= animations)
  460. currentFrame = 0;
  461. this.sprite.gotoAndStop(currentFrame);
  462. }
  463. }
  464. this.set_parent = function(prnt)
  465. {
  466. prnt.sprite.addChild(this.sprite);
  467. var p = this.sprite;
  468. var x = 0;
  469. var y = 0;
  470. while(p = p.parent)
  471. {
  472. x += p.position.x;
  473. y += p.position.y;
  474. }
  475. this.sprite.position.x -= x;
  476. this.sprite.position.y -= y;
  477. }
  478. this.set_style = function(size,font,al)
  479. {
  480. this.align = al;
  481. var fnt = Math.floor(h*size*0.8) + "px " + font;
  482. this.txt.setStyle({font: fnt, align: al});
  483. this.set_text(this.caption);
  484. }
  485. this.refresh = function()
  486. {
  487. switch(this.align)
  488. {
  489. case "left":
  490. this.txt.position.x=0;
  491. break;
  492. case "right":
  493. this.txt.position.x=this.uni_width-this.txt.textWidth;
  494. break;
  495. case "center":
  496. this.txt.position.x=(this.uni_width-this.txt.textWidth)/2;
  497. this.txt.position.y=(this.uni_height-this.txt.textHeight)/2;
  498. break;
  499. }
  500. }
  501. this.set_text = function(text)
  502. {
  503. this.caption = text;
  504. this.txt.setText(text);
  505. this.refresh();
  506. }
  507. }
  508. this.AVK_txt = AVK_txt;
  509. function AVK_btn(pic,x,y,w,h,columns)
  510. {
  511. this.add=function (el)
  512. {
  513. this.sprite.addChild(el.sprite);
  514. }
  515. var mem=[pic,x,y,w,h,columns];
  516. this.make_copy = function()
  517. {
  518. that.WND = this.WND;
  519. that.EL = this.EL;
  520. that.ID = this.ID+1;
  521. return new AVK_btn(mem[0],mem[1],mem[2],mem[3],mem[4],mem[5]);
  522. }
  523. var here=this;
  524. this.enabled = true;
  525. this.animations = columns;
  526. this.uni_width = w;
  527. this.uni_height = h;
  528. this.time = 1000;
  529. this.WND = that.WND;
  530. this.EL = that.EL;
  531. this.ID = that.ID;
  532. var currentTime = 0;
  533. var currentFrame = 0;
  534. if (pic=="")
  535. {
  536. this.sprite = new PIXI.DisplayObjectContainer();
  537. }else if (columns==1)
  538. {
  539. this.sprite = PIXI.Sprite.fromFrame(pic);
  540. }else
  541. {
  542. var array = [];
  543. for (var i = 0; i < columns; i++)
  544. {
  545. var texture = PIXI.Texture.fromFrame(pic + "_anim_" + i);
  546. array.push(texture);
  547. }
  548. this.sprite = new PIXI.MovieClip(array);
  549. }
  550. this.sprite.position.x = x;
  551. this.sprite.position.y = y;
  552. this.sprite.owner = this;
  553. this.sprite.buttonMode = true;
  554. this.sprite.interactive = true;
  555. this.sprite.mousedown = this.sprite.touchstart = function(data)
  556. {
  557. if (!here.enabled)
  558. return;
  559. this.position.x = this.owner.down_x;
  560. this.position.y = this.owner.down_y;
  561. this.scale.x = 1 - btn_scale;
  562. this.scale.y = 1 - btn_scale;
  563. event_func("down",this.owner.WND,this.owner.EL,this.owner.ID);
  564. }
  565. this.sprite.click = this.sprite.tap = function(data)
  566. {
  567. if (!here.enabled)
  568. return;
  569. this.scale.x = 1;
  570. this.scale.y = 1;
  571. this.position.x = this.owner.up_x;
  572. this.position.y = this.owner.up_y;
  573. event_func("click",this.owner.WND,this.owner.EL,this.owner.ID);
  574. }
  575. this.sprite.mouseup = this.sprite.touchend = this.sprite.mouseupoutside = this.sprite.touchendoutside = function(data)
  576. {
  577. if (!here.enabled)
  578. return;
  579. this.scale.x = 1;
  580. this.scale.y = 1;
  581. this.position.x = this.owner.up_x;
  582. this.position.y = this.owner.up_y;
  583. event_func("up",this.owner.WND,this.owner.EL,this.owner.ID);
  584. }
  585. that.GUI.addChild(this.sprite);
  586. this.update = function(tk)
  587. {
  588. currentTime -= tk;
  589. if (currentTime <= 0)
  590. {
  591. currentTime = this.time/animations;
  592. currentFrame++;
  593. if (currentFrame >= animations)
  594. currentFrame = 0;
  595. this.sprite.gotoAndStop(currentFrame);
  596. }
  597. }
  598. this.set_enabled = function(val)
  599. {
  600. this.enabled = val;
  601. if (val)
  602. this.sprite.alpha=1;
  603. else
  604. this.sprite.alpha=0.48;
  605. }
  606. this.set_parent = function(prnt)
  607. {
  608. prnt.sprite.addChild(this.sprite);
  609. var p = this.sprite;
  610. var x = 0;
  611. var y = 0;
  612. while(p = p.parent)
  613. {
  614. x += p.position.x;
  615. y += p.position.y;
  616. }
  617. this.sprite.position.x -= x;
  618. this.sprite.position.y -= y;
  619. this.down_x -= x;
  620. this.down_y -= y;
  621. this.up_x -= x;
  622. this.up_y -= y;
  623. }
  624. this.refresh=function()
  625. {
  626. this.down_x = this.sprite.position.x + this.uni_width * btn_scale / 2;
  627. this.down_y = this.sprite.position.y + this.uni_height * btn_scale / 2;
  628. this.up_x = this.sprite.position.x;
  629. this.up_y = this.sprite.position.y;
  630. }
  631. this.refresh();
  632. }
  633. this.AVK_btn = AVK_btn;
  634. function AVK_bar(pic,x,y,w,h,columns)
  635. {
  636. this.add=function (el)
  637. {
  638. this.sprite.addChild(el.sprite);
  639. }
  640. var mem=[pic,x,y,w,h,columns];
  641. this.make_copy = function()
  642. {
  643. that.WND = this.WND;
  644. that.EL = this.EL;
  645. that.ID = this.ID+1;
  646. return new AVK_bar(mem[0],mem[1],mem[2],mem[3],mem[4],mem[5]);
  647. }
  648. var align = "l";
  649. var progress = 1;
  650. var max = 100;
  651. var val = 100;
  652. this.animations = columns;
  653. this.uni_width = w;
  654. this.uni_height = h;
  655. this.time = 1000;
  656. this.WND = that.WND;
  657. this.EL = that.EL;
  658. this.ID = that.ID;
  659. var currentTime = 0;
  660. var currentFrame = 0;
  661. if (pic=="")
  662. {
  663. this.sprite = new PIXI.DisplayObjectContainer();
  664. this.sprite.position.x = x;
  665. this.sprite.position.y = y;
  666. }else if (columns==1)
  667. {
  668. this.sprite = PIXI.Sprite.fromFrame(pic);
  669. this.sprite.position.x = x;
  670. this.sprite.position.y = y;
  671. }else
  672. {
  673. var array = [];
  674. for (var i = 0; i < columns; i++)
  675. {
  676. var texture = PIXI.Texture.fromFrame(pic + "_anim_" + i);
  677. array.push(texture);
  678. }
  679. this.sprite = new PIXI.MovieClip(array);
  680. }
  681. this.sprite.position.x = x;
  682. this.sprite.position.y = y;
  683. this.old_x =this.sprite.position.x;
  684. this.old_y =this.sprite.position.y;
  685. that.GUI.addChild(this.sprite);
  686. this.update = function(tk)
  687. {
  688. currentTime -= tk;
  689. if (currentTime <= 0)
  690. {
  691. currentTime = this.time/animations;
  692. currentFrame++;
  693. if (currentFrame >= animations)
  694. currentFrame = 0;
  695. this.sprite.gotoAndStop(currentFrame);
  696. }
  697. }
  698. this.set_parent = function(prnt)
  699. {
  700. prnt.sprite.addChild(this.sprite);
  701. var p = this.sprite;
  702. var x = 0;
  703. var y = 0;
  704. while(p = p.parent)
  705. {
  706. x += p.position.x;
  707. y += p.position.y;
  708. }
  709. this.sprite.position.x -= x;
  710. this.sprite.position.y -= y;
  711. this.old_x =this.sprite.position.x;
  712. this.old_y =this.sprite.position.y;
  713. }
  714. this.set_max = function(m)
  715. {
  716. max=m;
  717. this.set_progress(val/max);
  718. }
  719. this.set_val = function(v)
  720. {
  721. val=v;
  722. this.set_progress(val/max);
  723. }
  724. this.get_val = function()
  725. {
  726. return val;
  727. }
  728. this.get_progress = function()
  729. {
  730. return progress;
  731. }
  732. this.set_progress = function(pr)
  733. {
  734. if (pr<0)
  735. pr=0;
  736. if (pr>1)
  737. pr=1;
  738. progress=pr;
  739. switch(align)
  740. {
  741. case "l":
  742. this.sprite.scale.x=pr;
  743. this.sprite.scale.y=1;
  744. this.sprite.position.x=this.old_x;
  745. this.sprite.position.y=this.old_y;
  746. break;
  747. case "r":
  748. this.sprite.scale.x=pr;
  749. this.sprite.scale.y=1;
  750. this.sprite.position.x=this.old_x+this.uni_width*(1-pr);
  751. this.sprite.position.y=this.old_y;
  752. break;
  753. case "u":
  754. this.sprite.scale.x=1;
  755. this.sprite.scale.y=pr;
  756. this.sprite.position.x=this.old_x;
  757. this.sprite.position.y=this.old_y;
  758. break;
  759. case "d":
  760. this.sprite.scale.x=1;
  761. this.sprite.scale.y=pr;
  762. this.sprite.position.x=this.old_x;
  763. this.sprite.position.y=this.old_y+this.uni_height*(1-pr);
  764. break;
  765. }
  766. }
  767. this.set_align = function(al)
  768. {
  769. align=al;
  770. this.set_progress(progress);
  771. }
  772. }
  773. this.AVK_bar = AVK_bar;
  774. function AVK_MAIN()
  775. {
  776. this.sprite = new PIXI.DisplayObjectContainer();
  777. this.add=function(el)
  778. {
  779. this.sprite.addChild(el.sprite);
  780. }
  781. that.GUI.addChild(this.sprite);
  782. this.sprite.visible = false;
  783. that.EL ="zag";
  784. this.zag = new AVK_spr("main_zag",0,0,600,900,1);
  785. this.sprite.addChild(this.zag.sprite);
  786. that.EL ="cloud";
  787. this.cloud = new AVK_spr("main_cloud",177,60,222,93,1);
  788. this.sprite.addChild(this.cloud.sprite);
  789. that.EL ="up_back";
  790. this.up_back = new AVK_spr("main_up_back",105,60,403,310,1);
  791. this.sprite.addChild(this.up_back.sprite);
  792. that.EL ="levels";
  793. this.levels = new AVK_spr("",0,0,0,0,1);
  794. this.sprite.addChild(this.levels.sprite);
  795. that.EL ="main";
  796. this.main = new AVK_spr("",0,0,0,0,1);
  797. this.sprite.addChild(this.main.sprite);
  798. that.EL ="btn_lev_18";
  799. this.btn_lev_18 = new AVK_btn("main_btn_lev_18",368,741,87,105,1);
  800. this.sprite.addChild(this.btn_lev_18.sprite);
  801. that.EL ="btn_lev_17";
  802. this.btn_lev_17 = new AVK_btn("main_btn_lev_17",261,741,87,105,1);
  803. this.sprite.addChild(this.btn_lev_17.sprite);
  804. that.EL ="btn_lev_16";
  805. this.btn_lev_16 = new AVK_btn("main_btn_lev_16",151,741,87,105,1);
  806. this.sprite.addChild(this.btn_lev_16.sprite);
  807. that.EL ="btn_lev_15";
  808. this.btn_lev_15 = new AVK_btn("main_btn_lev_15",43,741,87,105,1);
  809. this.sprite.addChild(this.btn_lev_15.sprite);
  810. that.EL ="btn_lev_14";
  811. this.btn_lev_14 = new AVK_btn("main_btn_lev_14",481,637,87,106,1);
  812. this.sprite.addChild(this.btn_lev_14.sprite);
  813. that.EL ="btn_lev_13";
  814. this.btn_lev_13 = new AVK_btn("main_btn_lev_13",373,637,87,103,1);
  815. this.sprite.addChild(this.btn_lev_13.sprite);
  816. that.EL ="btn_lev_12";
  817. this.btn_lev_12 = new AVK_btn("main_btn_lev_12",261,637,112,103,1);
  818. this.sprite.addChild(this.btn_lev_12.sprite);
  819. that.EL ="btn_lev_11";
  820. this.btn_lev_11 = new AVK_btn("main_btn_lev_11",151,637,87,103,1);
  821. this.sprite.addChild(this.btn_lev_11.sprite);
  822. that.EL ="btn_lev_10";
  823. this.btn_lev_10 = new AVK_btn("main_btn_lev_10",43,637,87,103,1);
  824. this.sprite.addChild(this.btn_lev_10.sprite);
  825. that.EL ="btn_lev_9";
  826. this.btn_lev_9 = new AVK_btn("main_btn_lev_9",481,535,87,103,1);
  827. this.sprite.addChild(this.btn_lev_9.sprite);
  828. that.EL ="btn_lev_8";
  829. this.btn_lev_8 = new AVK_btn("main_btn_lev_8",373,535,87,103,1);
  830. this.sprite.addChild(this.btn_lev_8.sprite);
  831. that.EL ="btn_lev_7";
  832. this.btn_lev_7 = new AVK_btn("main_btn_lev_7",261,535,87,103,1);
  833. this.sprite.addChild(this.btn_lev_7.sprite);
  834. that.EL ="btn_lev_6";
  835. this.btn_lev_6 = new AVK_btn("main_btn_lev_6",151,535,87,103,1);
  836. this.sprite.addChild(this.btn_lev_6.sprite);
  837. that.EL ="btn_lev_5";
  838. this.btn_lev_5 = new AVK_btn("main_btn_lev_5",43,535,87,103,1);
  839. this.sprite.addChild(this.btn_lev_5.sprite);
  840. that.EL ="btn_lev_4";
  841. this.btn_lev_4 = new AVK_btn("main_btn_lev_4",481,430,87,103,1);
  842. this.sprite.addChild(this.btn_lev_4.sprite);
  843. that.EL ="btn_lev_3";
  844. this.btn_lev_3 = new AVK_btn("main_btn_lev_3",373,430,87,103,1);
  845. this.sprite.addChild(this.btn_lev_3.sprite);
  846. that.EL ="btn_lev_2";
  847. this.btn_lev_2 = new AVK_btn("main_btn_lev_2",261,430,87,103,1);
  848. this.sprite.addChild(this.btn_lev_2.sprite);
  849. that.EL ="btn_lev_1";
  850. this.btn_lev_1 = new AVK_btn("main_btn_lev_1",151,430,87,103,1);
  851. this.sprite.addChild(this.btn_lev_1.sprite);
  852. that.EL ="btn_lev_0";
  853. this.btn_lev_0 = new AVK_btn("main_btn_lev_0",43,430,87,103,1);
  854. this.sprite.addChild(this.btn_lev_0.sprite);
  855. that.EL = "my_prg";
  856. this.my_prg = new AVK_avk_prg("",44,448,83,72,1);
  857. this.sprite.addChild(this.my_prg.sprite);
  858. that.EL ="btn_back";
  859. this.btn_back = new AVK_btn("main_btn_back",457,763,135,135,1);
  860. this.sprite.addChild(this.btn_back.sprite);
  861. that.EL ="btn_start";
  862. this.btn_start = new AVK_btn("main_btn_start",205,409,190,162,1);
  863. this.sprite.addChild(this.btn_start.sprite);
  864. that.EL ="btn_no_snd";
  865. this.btn_no_snd = new AVK_btn("main_btn_no_snd",547,5,42,40,1);
  866. this.sprite.addChild(this.btn_no_snd.sprite);
  867. that.EL ="btn_snd";
  868. this.btn_snd = new AVK_btn("main_btn_snd",547,5,42,40,1);
  869. this.sprite.addChild(this.btn_snd.sprite);
  870. that.EL ="btn_more";//more
  871. this.btn_more = new AVK_btn("main_btn_more",11,9,104,100,1);
  872. this.sprite.addChild(this.btn_more.sprite);
  873. this.btn_lev_18.set_parent(this.levels);
  874. this.btn_lev_17.set_parent(this.levels);
  875. this.btn_lev_16.set_parent(this.levels);
  876. this.btn_lev_15.set_parent(this.levels);
  877. this.btn_lev_14.set_parent(this.levels);
  878. this.btn_lev_13.set_parent(this.levels);
  879. this.btn_lev_12.set_parent(this.levels);
  880. this.btn_lev_11.set_parent(this.levels);
  881. this.btn_lev_10.set_parent(this.levels);
  882. this.btn_lev_9.set_parent(this.levels);
  883. this.btn_lev_8.set_parent(this.levels);
  884. this.btn_lev_7.set_parent(this.levels);
  885. this.btn_lev_6.set_parent(this.levels);
  886. this.btn_lev_5.set_parent(this.levels);
  887. this.btn_lev_4.set_parent(this.levels);
  888. this.btn_lev_3.set_parent(this.levels);
  889. this.btn_lev_2.set_parent(this.levels);
  890. this.btn_lev_1.set_parent(this.levels);
  891. this.btn_lev_0.set_parent(this.levels);
  892. this.my_prg.set_parent(this.btn_lev_0);
  893. this.btn_back.set_parent(this.levels);
  894. this.btn_start.set_parent(this.main);
  895. }
  896. this.AVK_MAIN=AVK_MAIN;
  897. function AVK_avk_prg(pic,x,y,w,h,columns)
  898. {
  899. this.add=function (el)
  900. {
  901. this.sprite.addChild(el.sprite);
  902. }
  903. var mem=[pic,x,y,w,h,columns];
  904. this.make_copy = function()
  905. {
  906. that.WND = this.WND;
  907. that.EL = this.EL;
  908. that.ID = this.ID+1;
  909. return new AVK_avk_prg(mem[0],mem[1],mem[2],mem[3],mem[4],mem[5]);
  910. }
  911. this.uni_width = w;
  912. this.uni_height = h;
  913. this.sprite = new PIXI.DisplayObjectContainer();
  914. that.GUI.addChild(this.sprite);
  915. this.WND = that.WND;
  916. this.EL = that.EL;
  917. this.ID = that.ID;
  918. that.EL ="prg_back";
  919. this.prg_back = new AVK_spr("main_prg_back",11,42,60,27,1);
  920. this.sprite.addChild(this.prg_back.sprite);
  921. that.EL ="prg_close";
  922. this.prg_close = new AVK_spr("main_prg_close",0,0,83,71,1);
  923. this.sprite.addChild(this.prg_close.sprite);
  924. that.EL ="prg_0";
  925. this.prg_0 = new AVK_spr("main_prg_0",8,41,23,21,1);
  926. this.sprite.addChild(this.prg_0.sprite);
  927. that.EL ="prg_1";
  928. this.prg_1 = new AVK_spr("main_prg_1",29,51,23,21,1);
  929. this.sprite.addChild(this.prg_1.sprite);
  930. that.EL ="prg_2";
  931. this.prg_2 = new AVK_spr("main_prg_2",49,41,23,21,1);
  932. this.sprite.addChild(this.prg_2.sprite);
  933. this.sprite.position.x = x;
  934. this.sprite.position.y = y;
  935. this.set_parent = function(prnt)
  936. {
  937. prnt.sprite.addChild(this.sprite);
  938. var p = this.sprite;
  939. var x = 0;
  940. var y = 0;
  941. while(p = p.parent)
  942. {
  943. x += p.position.x;
  944. y += p.position.y;
  945. }
  946. this.sprite.position.x -= x;
  947. this.sprite.position.y -= y;
  948. }
  949. }
  950. this.AVK_avk_prg=AVK_avk_prg;
  951. function AVK_GAME()
  952. {
  953. this.sprite = new PIXI.DisplayObjectContainer();
  954. this.add=function(el)
  955. {
  956. this.sprite.addChild(el.sprite);
  957. }
  958. that.GUI.addChild(this.sprite);
  959. this.sprite.visible = false;
  960. that.EL ="back";
  961. this.back = new AVK_spr("",0,0,600,900,1);
  962. this.sprite.addChild(this.back.sprite);
  963. that.EL ="res_9";
  964. this.res_9 = new AVK_spr("game_res_9",60,159,480,658,1);
  965. this.sprite.addChild(this.res_9.sprite);
  966. that.EL ="res_8";
  967. this.res_8 = new AVK_spr("game_res_8",60,159,480,658,1);
  968. this.sprite.addChild(this.res_8.sprite);
  969. that.EL ="res_7";
  970. this.res_7 = new AVK_spr("game_res_7",60,159,480,658,1);
  971. this.sprite.addChild(this.res_7.sprite);
  972. that.EL ="res_6";
  973. this.res_6 = new AVK_spr("game_res_6",60,159,480,658,1);
  974. this.sprite.addChild(this.res_6.sprite);
  975. that.EL ="res_5";
  976. this.res_5 = new AVK_spr("game_res_5",60,159,480,658,1);
  977. this.sprite.addChild(this.res_5.sprite);
  978. that.EL ="res_4";
  979. this.res_4 = new AVK_spr("game_res_4",60,159,480,658,1);
  980. this.sprite.addChild(this.res_4.sprite);
  981. that.EL ="res_3";
  982. this.res_3 = new AVK_spr("game_res_3",60,159,480,658,1);
  983. this.sprite.addChild(this.res_3.sprite);
  984. that.EL ="res_2";
  985. this.res_2 = new AVK_spr("game_res_2",60,159,480,658,1);
  986. this.sprite.addChild(this.res_2.sprite);
  987. that.EL ="res_1";
  988. this.res_1 = new AVK_spr("game_res_1",60,159,480,658,1);
  989. this.sprite.addChild(this.res_1.sprite);
  990. that.EL ="res_0";
  991. this.res_0 = new AVK_spr("game_res_0",60,159,480,658,1);
  992. this.sprite.addChild(this.res_0.sprite);
  993. that.EL ="back_place_shad";
  994. this.back_place_shad = new AVK_spr("",0,0,0,0,1);
  995. this.sprite.addChild(this.back_place_shad.sprite);
  996. that.EL ="back_place";
  997. this.back_place = new AVK_spr("",0,0,0,0,1);
  998. this.sprite.addChild(this.back_place.sprite);
  999. that.EL ="up_0";
  1000. this.up_0 = new AVK_spr("",0,0,0,0,1);
  1001. this.sprite.addChild(this.up_0.sprite);
  1002. that.EL ="up_1";
  1003. this.up_1 = new AVK_spr("",0,0,0,0,1);
  1004. this.sprite.addChild(this.up_1.sprite);
  1005. that.EL ="up_2";
  1006. this.up_2 = new AVK_spr("",0,0,0,0,1);
  1007. this.sprite.addChild(this.up_2.sprite);
  1008. that.EL ="up_3";
  1009. this.up_3 = new AVK_spr("game_up_3",163,441,252,387,1);
  1010. this.sprite.addChild(this.up_3.sprite);
  1011. that.EL ="up_4";
  1012. this.up_4 = new AVK_spr("",0,0,0,0,1);
  1013. this.sprite.addChild(this.up_4.sprite);
  1014. that.EL ="up_5";
  1015. this.up_5 = new AVK_spr("",0,0,0,0,1);
  1016. this.sprite.addChild(this.up_5.sprite);
  1017. that.EL ="up_6";
  1018. this.up_6 = new AVK_spr("game_up_6",44,201,278,188,1);
  1019. this.sprite.addChild(this.up_6.sprite);
  1020. that.EL ="up_7";
  1021. this.up_7 = new AVK_spr("game_up_7",62,225,477,599,1);
  1022. this.sprite.addChild(this.up_7.sprite);
  1023. that.EL ="up_8";
  1024. this.up_8 = new AVK_spr("game_up_8",60,175,480,643,1);
  1025. this.sprite.addChild(this.up_8.sprite);
  1026. that.EL ="up_9";
  1027. this.up_9 = new AVK_spr("game_up_9",69,156,471,624,1);
  1028. this.sprite.addChild(this.up_9.sprite);
  1029. that.EL ="place_shad";
  1030. this.place_shad = new AVK_spr("",0,0,0,0,1);
  1031. this.sprite.addChild(this.place_shad.sprite);
  1032. that.EL ="place";
  1033. this.place = new AVK_spr("",0,0,0,0,1);
  1034. this.sprite.addChild(this.place.sprite);
  1035. that.EL ="head_9";
  1036. this.head_9 = new AVK_spr("game_head_9",430,78,169,165,1);
  1037. this.sprite.addChild(this.head_9.sprite);
  1038. that.EL ="head_8";
  1039. this.head_8 = new AVK_spr("game_head_8",526,101,73,206,1);
  1040. this.sprite.addChild(this.head_8.sprite);
  1041. that.EL ="head_7";
  1042. this.head_7 = new AVK_spr("game_head_7",550,149,49,203,1);
  1043. this.sprite.addChild(this.head_7.sprite);
  1044. that.EL ="head_6";
  1045. this.head_6 = new AVK_spr("game_head_6",0,408,126,232,1);
  1046. this.sprite.addChild(this.head_6.sprite);
  1047. that.EL ="head_5";
  1048. this.head_5 = new AVK_spr("game_head_5",507,143,92,203,1);
  1049. this.sprite.addChild(this.head_5.sprite);
  1050. that.EL ="head_4";
  1051. this.head_4 = new AVK_spr("game_head_4",0,350,111,248,1);
  1052. this.sprite.addChild(this.head_4.sprite);
  1053. that.EL ="head_3";
  1054. this.head_3 = new AVK_spr("game_head_3",0,156,82,210,1);
  1055. this.sprite.addChild(this.head_3.sprite);
  1056. that.EL ="head_2";
  1057. this.head_2 = new AVK_spr("game_head_2",524,194,75,205,1);
  1058. this.sprite.addChild(this.head_2.sprite);
  1059. that.EL ="head_1";
  1060. this.head_1 = new AVK_spr("game_head_1",0,79,101,186,1);
  1061. this.sprite.addChild(this.head_1.sprite);
  1062. that.EL ="head_0";
  1063. this.head_0 = new AVK_spr("game_head_0",486,136,113,204,1);
  1064. this.sprite.addChild(this.head_0.sprite);
  1065. that.EL ="gui_bar";
  1066. this.gui_bar = new AVK_spr("game_gui_bar",-1,-1,601,80,1);
  1067. this.sprite.addChild(this.gui_bar.sprite);
  1068. that.EL ="waves_0";
  1069. this.waves_0 = new AVK_spr("game_waves_0",46,3,42,13,1);
  1070. this.sprite.addChild(this.waves_0.sprite);
  1071. that.EL ="waves_2";
  1072. this.waves_2 = new AVK_spr("game_waves_2",88,3,42,13,1);
  1073. this.sprite.addChild(this.waves_2.sprite);
  1074. that.EL ="waves_4";
  1075. this.waves_4 = new AVK_spr("game_waves_4",130,3,42,13,1);
  1076. this.sprite.addChild(this.waves_4.sprite);
  1077. that.EL ="waves_6";
  1078. this.waves_6 = new AVK_spr("game_waves_6",172,3,42,13,1);
  1079. this.sprite.addChild(this.waves_6.sprite);
  1080. that.EL ="waves_8";
  1081. this.waves_8 = new AVK_spr("game_waves_8",216,3,42,13,1);
  1082. this.sprite.addChild(this.waves_8.sprite);
  1083. that.EL ="waves_10";
  1084. this.waves_10 = new AVK_spr("game_waves_10",258,3,42,13,1);
  1085. this.sprite.addChild(this.waves_10.sprite);
  1086. that.EL ="waves_12";
  1087. this.waves_12 = new AVK_spr("game_waves_12",300,3,42,13,1);
  1088. this.sprite.addChild(this.waves_12.sprite);
  1089. that.EL ="waves_14";
  1090. this.waves_14 = new AVK_spr("game_waves_14",342,3,42,13,1);
  1091. this.sprite.addChild(this.waves_14.sprite);
  1092. that.EL ="waves_16";
  1093. this.waves_16 = new AVK_spr("game_waves_16",384,3,42,13,1);
  1094. this.sprite.addChild(this.waves_16.sprite);
  1095. that.EL ="waves_18";
  1096. this.waves_18 = new AVK_spr("game_waves_18",426,3,42,13,1);
  1097. this.sprite.addChild(this.waves_18.sprite);
  1098. that.EL ="waves_20";
  1099. this.waves_20 = new AVK_spr("game_waves_20",468,3,42,13,1);
  1100. this.sprite.addChild(this.waves_20.sprite);
  1101. that.EL ="waves_22";
  1102. this.waves_22 = new AVK_spr("game_waves_22",510,3,42,13,1);
  1103. this.sprite.addChild(this.waves_22.sprite);
  1104. that.EL ="waves_23";
  1105. this.waves_23 = new AVK_spr("game_waves_23",511,34,42,13,1);
  1106. this.sprite.addChild(this.waves_23.sprite);
  1107. that.EL ="waves_21";
  1108. this.waves_21 = new AVK_spr("game_waves_21",469,34,42,13,1);
  1109. this.sprite.addChild(this.waves_21.sprite);
  1110. that.EL ="waves_19";
  1111. this.waves_19 = new AVK_spr("game_waves_19",427,34,42,13,1);
  1112. this.sprite.addChild(this.waves_19.sprite);
  1113. that.EL ="waves_17";
  1114. this.waves_17 = new AVK_spr("game_waves_17",385,34,42,13,1);
  1115. this.sprite.addChild(this.waves_17.sprite);
  1116. that.EL ="waves_15";
  1117. this.waves_15 = new AVK_spr("game_waves_15",342,34,42,13,1);
  1118. this.sprite.addChild(this.waves_15.sprite);
  1119. that.EL ="waves_13";
  1120. this.waves_13 = new AVK_spr("game_waves_13",300,34,42,13,1);
  1121. this.sprite.addChild(this.waves_13.sprite);
  1122. that.EL ="waves_11";
  1123. this.waves_11 = new AVK_spr("game_waves_11",258,34,42,13,1);
  1124. this.sprite.addChild(this.waves_11.sprite);
  1125. that.EL ="waves_9";
  1126. this.waves_9 = new AVK_spr("game_waves_9",216,34,42,13,1);
  1127. this.sprite.addChild(this.waves_9.sprite);
  1128. that.EL ="waves_7";
  1129. this.waves_7 = new AVK_spr("game_waves_7",174,34,42,13,1);
  1130. this.sprite.addChild(this.waves_7.sprite);
  1131. that.EL ="waves_5";
  1132. this.waves_5 = new AVK_spr("game_waves_5",132,34,42,13,1);
  1133. this.sprite.addChild(this.waves_5.sprite);
  1134. that.EL ="waves_3";
  1135. this.waves_3 = new AVK_spr("game_waves_3",90,34,42,13,1);
  1136. this.sprite.addChild(this.waves_3.sprite);
  1137. that.EL ="waves_1";
  1138. this.waves_1 = new AVK_spr("game_waves_1",48,34,42,13,1);
  1139. this.sprite.addChild(this.waves_1.sprite);
  1140. that.EL ="txt_score";
  1141. this.txt_score = new AVK_txt("",60,13,235,34,1);
  1142. this.sprite.addChild(this.txt_score.sprite);
  1143. that.EL ="txt_score_part";
  1144. this.txt_score_part = new AVK_txt("",121,121,235,34,1);
  1145. this.sprite.addChild(this.txt_score_part.sprite);
  1146. that.EL ="zvezda_part";
  1147. this.zvezda_part = new AVK_spr("game_zvezda_part",292,125,34,30,1);
  1148. this.sprite.addChild(this.zvezda_part.sprite);
  1149. that.EL ="back_bar";
  1150. this.back_bar = new AVK_spr("game_back_bar",307,20,231,12,1);
  1151. this.sprite.addChild(this.back_bar.sprite);
  1152. that.EL ="prog_0";
  1153. this.prog_0 = new AVK_spr("game_prog_0",310,21,225,8,1);
  1154. this.sprite.addChild(this.prog_0.sprite);
  1155. that.EL ="prog_1";
  1156. this.prog_1 = new AVK_spr("game_prog_1",310,22,225,7,1);
  1157. this.sprite.addChild(this.prog_1.sprite);
  1158. that.EL ="prog_2";
  1159. this.prog_2 = new AVK_spr("game_prog_2",310,22,225,7,1);
  1160. this.sprite.addChild(this.prog_2.sprite);
  1161. that.EL ="riska_0";
  1162. this.riska_0 = new AVK_spr("game_riska_0",496,16,9,18,1);
  1163. this.sprite.addChild(this.riska_0.sprite);
  1164. that.EL ="riska_1";
  1165. this.riska_1 = new AVK_spr("game_riska_1",519,16,9,18,1);
  1166. this.sprite.addChild(this.riska_1.sprite);
  1167. that.EL ="uppper";
  1168. this.uppper = new AVK_spr("game_uppper",195,40,89,52,1);
  1169. this.sprite.addChild(this.uppper.sprite);
  1170. that.EL ="ready_0";
  1171. this.ready_0 = new AVK_spr("game_ready_0",205,46,36,35,1);
  1172. this.sprite.addChild(this.ready_0.sprite);
  1173. that.EL ="ready_1";
  1174. this.ready_1 = new AVK_spr("game_ready_1",238,45,36,35,1);
  1175. this.sprite.addChild(this.ready_1.sprite);
  1176. that.EL ="up_b";
  1177. this.up_b = new AVK_spr("",221,33,36,35,1);
  1178. this.sprite.addChild(this.up_b.sprite);
  1179. that.EL ="start_place";
  1180. this.start_place = new AVK_spr("",0,73,600,5,1);
  1181. this.sprite.addChild(this.start_place.sprite);
  1182. that.EL ="btn_no_snd";
  1183. this.btn_no_snd = new AVK_btn("game_btn_no_snd",549,6,42,40,1);
  1184. this.sprite.addChild(this.btn_no_snd.sprite);
  1185. that.EL ="btn_snd";
  1186. this.btn_snd = new AVK_btn("game_btn_snd",549,6,42,40,1);
  1187. this.sprite.addChild(this.btn_snd.sprite);
  1188. that.EL ="btn_close";
  1189. this.btn_close = new AVK_btn("game_btn_close",6,4,42,42,1);
  1190. this.sprite.addChild(this.btn_close.sprite);
  1191. that.EL ="level_0";
  1192. this.level_0 = new AVK_spr("",0,0,0,0,1);
  1193. this.sprite.addChild(this.level_0.sprite);
  1194. that.EL ="level_1";
  1195. this.level_1 = new AVK_spr("",0,0,0,0,1);
  1196. this.sprite.addChild(this.level_1.sprite);
  1197. that.EL ="level_2";
  1198. this.level_2 = new AVK_spr("",0,0,0,0,1);
  1199. this.sprite.addChild(this.level_2.sprite);
  1200. that.EL ="level_3";
  1201. this.level_3 = new AVK_spr("",0,0,0,0,1);
  1202. this.sprite.addChild(this.level_3.sprite);
  1203. that.EL ="level_4";
  1204. this.level_4 = new AVK_spr("",0,0,0,0,1);
  1205. this.sprite.addChild(this.level_4.sprite);
  1206. that.EL ="level_5";
  1207. this.level_5 = new AVK_spr("",0,0,0,0,1);
  1208. this.sprite.addChild(this.level_5.sprite);
  1209. that.EL ="level_6";
  1210. this.level_6 = new AVK_spr("",0,0,0,0,1);
  1211. this.sprite.addChild(this.level_6.sprite);
  1212. that.EL ="level_7";
  1213. this.level_7 = new AVK_spr("",0,0,0,0,1);
  1214. this.sprite.addChild(this.level_7.sprite);
  1215. that.EL ="level_8";
  1216. this.level_8 = new AVK_spr("",0,0,0,0,1);
  1217. this.sprite.addChild(this.level_8.sprite);
  1218. that.EL ="level_9";
  1219. this.level_9 = new AVK_spr("",0,0,0,0,1);
  1220. this.sprite.addChild(this.level_9.sprite);
  1221. that.EL ="l_0_pnt_0";
  1222. this.l_0_pnt_0 = new AVK_spr("",-45,804,9,9,1);
  1223. this.sprite.addChild(this.l_0_pnt_0.sprite);
  1224. that.EL ="l_0_pnt_1";
  1225. this.l_0_pnt_1 = new AVK_spr("",260,799,9,9,1);
  1226. this.sprite.addChild(this.l_0_pnt_1.sprite);
  1227. that.EL ="l_0_pnt_2";
  1228. this.l_0_pnt_2 = new AVK_spr("",448,852,9,9,1);
  1229. this.sprite.addChild(this.l_0_pnt_2.sprite);
  1230. that.EL ="l_0_pnt_3";
  1231. this.l_0_pnt_3 = new AVK_spr("",565,736,9,9,1);
  1232. this.sprite.addChild(this.l_0_pnt_3.sprite);
  1233. that.EL ="l_0_pnt_4";
  1234. this.l_0_pnt_4 = new AVK_spr("",449,616,9,9,1);
  1235. this.sprite.addChild(this.l_0_pnt_4.sprite);
  1236. that.EL ="l_0_pnt_5";
  1237. this.l_0_pnt_5 = new AVK_spr("",299,656,9,9,1);
  1238. this.sprite.addChild(this.l_0_pnt_5.sprite);
  1239. that.EL ="l_0_pnt_6";
  1240. this.l_0_pnt_6 = new AVK_spr("",139,702,9,9,1);
  1241. this.sprite.addChild(this.l_0_pnt_6.sprite);
  1242. that.EL ="l_0_pnt_7";
  1243. this.l_0_pnt_7 = new AVK_spr("",24,577,9,9,1);
  1244. this.sprite.addChild(this.l_0_pnt_7.sprite);
  1245. that.EL ="l_0_pnt_8";
  1246. this.l_0_pnt_8 = new AVK_spr("",142,464,9,9,1);
  1247. this.sprite.addChild(this.l_0_pnt_8.sprite);
  1248. that.EL ="l_0_pnt_9";
  1249. this.l_0_pnt_9 = new AVK_spr("",301,510,9,9,1);
  1250. this.sprite.addChild(this.l_0_pnt_9.sprite);
  1251. that.EL ="l_0_pnt_10";
  1252. this.l_0_pnt_10 = new AVK_spr("",447,543,9,9,1);
  1253. this.sprite.addChild(this.l_0_pnt_10.sprite);
  1254. that.EL ="l_0_pnt_11";
  1255. this.l_0_pnt_11 = new AVK_spr("",567,421,9,9,1);
  1256. this.sprite.addChild(this.l_0_pnt_11.sprite);
  1257. that.EL ="l_0_pnt_12";
  1258. this.l_0_pnt_12 = new AVK_spr("",449,311,9,9,1);
  1259. this.sprite.addChild(this.l_0_pnt_12.sprite);
  1260. that.EL ="l_0_pnt_13";
  1261. this.l_0_pnt_13 = new AVK_spr("",300,347,9,9,1);
  1262. this.sprite.addChild(this.l_0_pnt_13.sprite);
  1263. that.EL ="l_0_pnt_14";
  1264. this.l_0_pnt_14 = new AVK_spr("",144,389,9,9,1);
  1265. this.sprite.addChild(this.l_0_pnt_14.sprite);
  1266. that.EL ="l_0_pnt_15";
  1267. this.l_0_pnt_15 = new AVK_spr("",24,270,9,9,1);
  1268. this.sprite.addChild(this.l_0_pnt_15.sprite);
  1269. that.EL ="l_0_pnt_16";
  1270. this.l_0_pnt_16 = new AVK_spr("",156,161,9,9,1);
  1271. this.sprite.addChild(this.l_0_pnt_16.sprite);
  1272. that.EL ="l_0_pnt_17";
  1273. this.l_0_pnt_17 = new AVK_spr("",340,210,9,9,1);
  1274. this.sprite.addChild(this.l_0_pnt_17.sprite);
  1275. that.EL ="l_0_pnt_18";
  1276. this.l_0_pnt_18 = new AVK_spr("",564,210,9,9,1);
  1277. this.sprite.addChild(this.l_0_pnt_18.sprite);
  1278. that.EL ="l_1_pnt_0";
  1279. this.l_1_pnt_0 = new AVK_spr("",638,808,9,9,1);
  1280. this.sprite.addChild(this.l_1_pnt_0.sprite);
  1281. that.EL ="l_1_pnt_1";
  1282. this.l_1_pnt_1 = new AVK_spr("",81,803,9,9,1);
  1283. this.sprite.addChild(this.l_1_pnt_1.sprite);
  1284. that.EL ="l_1_pnt_2";
  1285. this.l_1_pnt_2 = new AVK_spr("",54,773,9,9,1);
  1286. this.sprite.addChild(this.l_1_pnt_2.sprite);
  1287. that.EL ="l_1_pnt_3";
  1288. this.l_1_pnt_3 = new AVK_spr("",54,344,9,9,1);
  1289. this.sprite.addChild(this.l_1_pnt_3.sprite);
  1290. that.EL ="l_1_pnt_4";
  1291. this.l_1_pnt_4 = new AVK_spr("",90,308,9,9,1);
  1292. this.sprite.addChild(this.l_1_pnt_4.sprite);
  1293. that.EL ="l_1_pnt_5";
  1294. this.l_1_pnt_5 = new AVK_spr("",373,308,9,9,1);
  1295. this.sprite.addChild(this.l_1_pnt_5.sprite);
  1296. that.EL ="l_1_pnt_6";
  1297. this.l_1_pnt_6 = new AVK_spr("",423,344,9,9,1);
  1298. this.sprite.addChild(this.l_1_pnt_6.sprite);
  1299. that.EL ="l_1_pnt_7";
  1300. this.l_1_pnt_7 = new AVK_spr("",423,426,9,9,1);
  1301. this.sprite.addChild(this.l_1_pnt_7.sprite);
  1302. that.EL ="l_1_pnt_8";
  1303. this.l_1_pnt_8 = new AVK_spr("",382,466,9,9,1);
  1304. this.sprite.addChild(this.l_1_pnt_8.sprite);
  1305. that.EL ="l_1_pnt_9";
  1306. this.l_1_pnt_9 = new AVK_spr("",211,466,9,9,1);
  1307. this.sprite.addChild(this.l_1_pnt_9.sprite);
  1308. that.EL ="l_1_pnt_10";
  1309. this.l_1_pnt_10 = new AVK_spr("",180,505,9,9,1);
  1310. this.sprite.addChild(this.l_1_pnt_10.sprite);
  1311. that.EL ="l_1_pnt_11";
  1312. this.l_1_pnt_11 = new AVK_spr("",180,605,9,9,1);
  1313. this.sprite.addChild(this.l_1_pnt_11.sprite);
  1314. that.EL ="l_1_pnt_12";
  1315. this.l_1_pnt_12 = new AVK_spr("",220,645,9,9,1);
  1316. this.sprite.addChild(this.l_1_pnt_12.sprite);
  1317. that.EL ="l_1_pnt_13";
  1318. this.l_1_pnt_13 = new AVK_spr("",503,649,9,9,1);
  1319. this.sprite.addChild(this.l_1_pnt_13.sprite);
  1320. that.EL ="l_1_pnt_14";
  1321. this.l_1_pnt_14 = new AVK_spr("",540,610,9,9,1);
  1322. this.sprite.addChild(this.l_1_pnt_14.sprite);
  1323. that.EL ="l_1_pnt_15";
  1324. this.l_1_pnt_15 = new AVK_spr("",540,177,9,9,1);
  1325. this.sprite.addChild(this.l_1_pnt_15.sprite);
  1326. that.EL ="l_1_pnt_16";
  1327. this.l_1_pnt_16 = new AVK_spr("",503,139,9,9,1);
  1328. this.sprite.addChild(this.l_1_pnt_16.sprite);
  1329. that.EL ="l_1_pnt_17";
  1330. this.l_1_pnt_17 = new AVK_spr("",21,139,9,9,1);
  1331. this.sprite.addChild(this.l_1_pnt_17.sprite);
  1332. that.EL ="l_2_pnt_0";
  1333. this.l_2_pnt_0 = new AVK_spr("",-49,270,9,9,1);
  1334. this.sprite.addChild(this.l_2_pnt_0.sprite);
  1335. that.EL ="l_2_pnt_1";
  1336. this.l_2_pnt_1 = new AVK_spr("",140,270,9,9,1);
  1337. this.sprite.addChild(this.l_2_pnt_1.sprite);
  1338. that.EL ="l_2_pnt_2";
  1339. this.l_2_pnt_2 = new AVK_spr("",161,274,9,9,1);
  1340. this.sprite.addChild(this.l_2_pnt_2.sprite);
  1341. that.EL ="l_2_pnt_3";
  1342. this.l_2_pnt_3 = new AVK_spr("",170,307,9,9,1);
  1343. this.sprite.addChild(this.l_2_pnt_3.sprite);
  1344. that.EL ="l_2_pnt_4";
  1345. this.l_2_pnt_4 = new AVK_spr("",154,334,9,9,1);
  1346. this.sprite.addChild(this.l_2_pnt_4.sprite);
  1347. that.EL ="l_2_pnt_5";
  1348. this.l_2_pnt_5 = new AVK_spr("",63,405,9,9,1);
  1349. this.sprite.addChild(this.l_2_pnt_5.sprite);
  1350. that.EL ="l_2_pnt_6";
  1351. this.l_2_pnt_6 = new AVK_spr("",20,591,9,9,1);
  1352. this.sprite.addChild(this.l_2_pnt_6.sprite);
  1353. that.EL ="l_2_pnt_7";
  1354. this.l_2_pnt_7 = new AVK_spr("",92,741,9,9,1);
  1355. this.sprite.addChild(this.l_2_pnt_7.sprite);
  1356. that.EL ="l_2_pnt_8";
  1357. this.l_2_pnt_8 = new AVK_spr("",300,808,9,9,1);
  1358. this.sprite.addChild(this.l_2_pnt_8.sprite);
  1359. that.EL ="l_2_pnt_9";
  1360. this.l_2_pnt_9 = new AVK_spr("",483,761,9,9,1);
  1361. this.sprite.addChild(this.l_2_pnt_9.sprite);
  1362. that.EL ="l_2_pnt_10";
  1363. this.l_2_pnt_10 = new AVK_spr("",560,611,9,9,1);
  1364. this.sprite.addChild(this.l_2_pnt_10.sprite);
  1365. that.EL ="l_2_pnt_11";
  1366. this.l_2_pnt_11 = new AVK_spr("",560,436,9,9,1);
  1367. this.sprite.addChild(this.l_2_pnt_11.sprite);
  1368. that.EL ="l_2_pnt_12";
  1369. this.l_2_pnt_12 = new AVK_spr("",493,351,9,9,1);
  1370. this.sprite.addChild(this.l_2_pnt_12.sprite);
  1371. that.EL ="l_2_pnt_13";
  1372. this.l_2_pnt_13 = new AVK_spr("",440,349,9,9,1);
  1373. this.sprite.addChild(this.l_2_pnt_13.sprite);
  1374. that.EL ="l_2_pnt_14";
  1375. this.l_2_pnt_14 = new AVK_spr("",424,395,9,9,1);
  1376. this.sprite.addChild(this.l_2_pnt_14.sprite);
  1377. that.EL ="l_2_pnt_15";
  1378. this.l_2_pnt_15 = new AVK_spr("",474,477,9,9,1);
  1379. this.sprite.addChild(this.l_2_pnt_15.sprite);
  1380. that.EL ="l_2_pnt_16";
  1381. this.l_2_pnt_16 = new AVK_spr("",465,571,9,9,1);
  1382. this.sprite.addChild(this.l_2_pnt_16.sprite);
  1383. that.EL ="l_2_pnt_17";
  1384. this.l_2_pnt_17 = new AVK_spr("",405,655,9,9,1);
  1385. this.sprite.addChild(this.l_2_pnt_17.sprite);
  1386. that.EL ="l_2_pnt_18";
  1387. this.l_2_pnt_18 = new AVK_spr("",289,688,9,9,1);
  1388. this.sprite.addChild(this.l_2_pnt_18.sprite);
  1389. that.EL ="l_2_pnt_19";
  1390. this.l_2_pnt_19 = new AVK_spr("",180,650,9,9,1);
  1391. this.sprite.addChild(this.l_2_pnt_19.sprite);
  1392. that.EL ="l_2_pnt_20";
  1393. this.l_2_pnt_20 = new AVK_spr("",131,571,9,9,1);
  1394. this.sprite.addChild(this.l_2_pnt_20.sprite);
  1395. that.EL ="l_2_pnt_21";
  1396. this.l_2_pnt_21 = new AVK_spr("",154,472,9,9,1);
  1397. this.sprite.addChild(this.l_2_pnt_21.sprite);
  1398. that.EL ="l_2_pnt_22";
  1399. this.l_2_pnt_22 = new AVK_spr("",219,400,9,9,1);
  1400. this.sprite.addChild(this.l_2_pnt_22.sprite);
  1401. that.EL ="l_2_pnt_23";
  1402. this.l_2_pnt_23 = new AVK_spr("",263,400,9,9,1);
  1403. this.sprite.addChild(this.l_2_pnt_23.sprite);
  1404. that.EL ="l_2_pnt_24";
  1405. this.l_2_pnt_24 = new AVK_spr("",285,450,9,9,1);
  1406. this.sprite.addChild(this.l_2_pnt_24.sprite);
  1407. that.EL ="l_2_pnt_25";
  1408. this.l_2_pnt_25 = new AVK_spr("",238,518,9,9,1);
  1409. this.sprite.addChild(this.l_2_pnt_25.sprite);
  1410. that.EL ="l_2_pnt_26";
  1411. this.l_2_pnt_26 = new AVK_spr("",247,561,9,9,1);
  1412. this.sprite.addChild(this.l_2_pnt_26.sprite);
  1413. that.EL ="l_2_pnt_27";
  1414. this.l_2_pnt_27 = new AVK_spr("",299,582,9,9,1);
  1415. this.sprite.addChild(this.l_2_pnt_27.sprite);
  1416. that.EL ="l_2_pnt_28";
  1417. this.l_2_pnt_28 = new AVK_spr("",346,561,9,9,1);
  1418. this.sprite.addChild(this.l_2_pnt_28.sprite);
  1419. that.EL ="l_2_pnt_29";
  1420. this.l_2_pnt_29 = new AVK_spr("",356,528,9,9,1);
  1421. this.sprite.addChild(this.l_2_pnt_29.sprite);
  1422. that.EL ="l_2_pnt_30";
  1423. this.l_2_pnt_30 = new AVK_spr("",351,460,9,9,1);
  1424. this.sprite.addChild(this.l_2_pnt_30.sprite);
  1425. that.EL ="l_2_pnt_31";
  1426. this.l_2_pnt_31 = new AVK_spr("",332,405,9,9,1);
  1427. this.sprite.addChild(this.l_2_pnt_31.sprite);
  1428. that.EL ="l_2_pnt_32";
  1429. this.l_2_pnt_32 = new AVK_spr("",327,334,9,9,1);
  1430. this.sprite.addChild(this.l_2_pnt_32.sprite);
  1431. that.EL ="l_2_pnt_33";
  1432. this.l_2_pnt_33 = new AVK_spr("",342,284,9,9,1);
  1433. this.sprite.addChild(this.l_2_pnt_33.sprite);
  1434. that.EL ="l_2_pnt_34";
  1435. this.l_2_pnt_34 = new AVK_spr("",386,270,9,9,1);
  1436. this.sprite.addChild(this.l_2_pnt_34.sprite);
  1437. that.EL ="l_2_pnt_35";
  1438. this.l_2_pnt_35 = new AVK_spr("",595,267,9,9,1);
  1439. this.sprite.addChild(this.l_2_pnt_35.sprite);
  1440. that.EL ="l_3_pnt_0";
  1441. this.l_3_pnt_0 = new AVK_spr("",630,814,9,9,1);
  1442. this.sprite.addChild(this.l_3_pnt_0.sprite);
  1443. that.EL ="l_3_pnt_1";
  1444. this.l_3_pnt_1 = new AVK_spr("",364,819,9,9,1);
  1445. this.sprite.addChild(this.l_3_pnt_1.sprite);
  1446. that.EL ="l_3_pnt_2";
  1447. this.l_3_pnt_2 = new AVK_spr("",214,819,9,9,1);
  1448. this.sprite.addChild(this.l_3_pnt_2.sprite);
  1449. that.EL ="l_3_pnt_3";
  1450. this.l_3_pnt_3 = new AVK_spr("",91,819,9,9,1);
  1451. this.sprite.addChild(this.l_3_pnt_3.sprite);
  1452. that.EL ="l_3_pnt_4";
  1453. this.l_3_pnt_4 = new AVK_spr("",41,819,9,9,1);
  1454. this.sprite.addChild(this.l_3_pnt_4.sprite);
  1455. that.EL ="l_3_pnt_5";
  1456. this.l_3_pnt_5 = new AVK_spr("",20,770,9,9,1);
  1457. this.sprite.addChild(this.l_3_pnt_5.sprite);
  1458. that.EL ="l_3_pnt_6";
  1459. this.l_3_pnt_6 = new AVK_spr("",41,723,9,9,1);
  1460. this.sprite.addChild(this.l_3_pnt_6.sprite);
  1461. that.EL ="l_3_pnt_7";
  1462. this.l_3_pnt_7 = new AVK_spr("",87,723,9,9,1);
  1463. this.sprite.addChild(this.l_3_pnt_7.sprite);
  1464. that.EL ="l_3_pnt_8";
  1465. this.l_3_pnt_8 = new AVK_spr("",492,723,9,9,1);
  1466. this.sprite.addChild(this.l_3_pnt_8.sprite);
  1467. that.EL ="l_3_pnt_9";
  1468. this.l_3_pnt_9 = new AVK_spr("",540,723,9,9,1);
  1469. this.sprite.addChild(this.l_3_pnt_9.sprite);
  1470. that.EL ="l_3_pnt_10";
  1471. this.l_3_pnt_10 = new AVK_spr("",570,678,9,9,1);
  1472. this.sprite.addChild(this.l_3_pnt_10.sprite);
  1473. that.EL ="l_3_pnt_11";
  1474. this.l_3_pnt_11 = new AVK_spr("",544,630,9,9,1);
  1475. this.sprite.addChild(this.l_3_pnt_11.sprite);
  1476. that.EL ="l_3_pnt_12";
  1477. this.l_3_pnt_12 = new AVK_spr("",492,630,9,9,1);
  1478. this.sprite.addChild(this.l_3_pnt_12.sprite);
  1479. that.EL ="l_3_pnt_13";
  1480. this.l_3_pnt_13 = new AVK_spr("",438,630,9,9,1);
  1481. this.sprite.addChild(this.l_3_pnt_13.sprite);
  1482. that.EL ="l_3_pnt_14";
  1483. this.l_3_pnt_14 = new AVK_spr("",293,630,9,9,1);
  1484. this.sprite.addChild(this.l_3_pnt_14.sprite);
  1485. that.EL ="l_3_pnt_15";
  1486. this.l_3_pnt_15 = new AVK_spr("",141,630,9,9,1);
  1487. this.sprite.addChild(this.l_3_pnt_15.sprite);
  1488. that.EL ="l_3_pnt_16";
  1489. this.l_3_pnt_16 = new AVK_spr("",96,630,9,9,1);
  1490. this.sprite.addChild(this.l_3_pnt_16.sprite);
  1491. that.EL ="l_3_pnt_17";
  1492. this.l_3_pnt_17 = new AVK_spr("",46,630,9,9,1);
  1493. this.sprite.addChild(this.l_3_pnt_17.sprite);
  1494. that.EL ="l_3_pnt_18";
  1495. this.l_3_pnt_18 = new AVK_spr("",25,581,9,9,1);
  1496. this.sprite.addChild(this.l_3_pnt_18.sprite);
  1497. that.EL ="l_3_pnt_19";
  1498. this.l_3_pnt_19 = new AVK_spr("",46,534,9,9,1);
  1499. this.sprite.addChild(this.l_3_pnt_19.sprite);
  1500. that.EL ="l_3_pnt_20";
  1501. this.l_3_pnt_20 = new AVK_spr("",92,534,9,9,1);
  1502. this.sprite.addChild(this.l_3_pnt_20.sprite);
  1503. that.EL ="l_3_pnt_21";
  1504. this.l_3_pnt_21 = new AVK_spr("",496,534,9,9,1);
  1505. this.sprite.addChild(this.l_3_pnt_21.sprite);
  1506. that.EL ="l_3_pnt_22";
  1507. this.l_3_pnt_22 = new AVK_spr("",544,534,9,9,1);
  1508. this.sprite.addChild(this.l_3_pnt_22.sprite);
  1509. that.EL ="l_3_pnt_23";
  1510. this.l_3_pnt_23 = new AVK_spr("",574,489,9,9,1);
  1511. this.sprite.addChild(this.l_3_pnt_23.sprite);
  1512. that.EL ="l_3_pnt_24";
  1513. this.l_3_pnt_24 = new AVK_spr("",549,441,9,9,1);
  1514. this.sprite.addChild(this.l_3_pnt_24.sprite);
  1515. that.EL ="l_3_pnt_25";
  1516. this.l_3_pnt_25 = new AVK_spr("",517,436,9,9,1);
  1517. this.sprite.addChild(this.l_3_pnt_25.sprite);
  1518. that.EL ="l_3_pnt_26";
  1519. this.l_3_pnt_26 = new AVK_spr("",373,436,9,9,1);
  1520. this.sprite.addChild(this.l_3_pnt_26.sprite);
  1521. that.EL ="l_3_pnt_27";
  1522. this.l_3_pnt_27 = new AVK_spr("",223,436,9,9,1);
  1523. this.sprite.addChild(this.l_3_pnt_27.sprite);
  1524. that.EL ="l_3_pnt_28";
  1525. this.l_3_pnt_28 = new AVK_spr("",96,436,9,9,1);
  1526. this.sprite.addChild(this.l_3_pnt_28.sprite);
  1527. that.EL ="l_3_pnt_29";
  1528. this.l_3_pnt_29 = new AVK_spr("",46,436,9,9,1);
  1529. this.sprite.addChild(this.l_3_pnt_29.sprite);
  1530. that.EL ="l_3_pnt_30";
  1531. this.l_3_pnt_30 = new AVK_spr("",25,387,9,9,1);
  1532. this.sprite.addChild(this.l_3_pnt_30.sprite);
  1533. that.EL ="l_3_pnt_31";
  1534. this.l_3_pnt_31 = new AVK_spr("",46,340,9,9,1);
  1535. this.sprite.addChild(this.l_3_pnt_31.sprite);
  1536. that.EL ="l_3_pnt_32";
  1537. this.l_3_pnt_32 = new AVK_spr("",92,340,9,9,1);
  1538. this.sprite.addChild(this.l_3_pnt_32.sprite);
  1539. that.EL ="l_3_pnt_33";
  1540. this.l_3_pnt_33 = new AVK_spr("",496,340,9,9,1);
  1541. this.sprite.addChild(this.l_3_pnt_33.sprite);
  1542. that.EL ="l_3_pnt_34";
  1543. this.l_3_pnt_34 = new AVK_spr("",544,340,9,9,1);
  1544. this.sprite.addChild(this.l_3_pnt_34.sprite);
  1545. that.EL ="l_3_pnt_35";
  1546. this.l_3_pnt_35 = new AVK_spr("",574,295,9,9,1);
  1547. this.sprite.addChild(this.l_3_pnt_35.sprite);
  1548. that.EL ="l_3_pnt_36";
  1549. this.l_3_pnt_36 = new AVK_spr("",549,247,9,9,1);
  1550. this.sprite.addChild(this.l_3_pnt_36.sprite);
  1551. that.EL ="l_3_pnt_37";
  1552. this.l_3_pnt_37 = new AVK_spr("",496,247,9,9,1);
  1553. this.sprite.addChild(this.l_3_pnt_37.sprite);
  1554. that.EL ="l_3_pnt_38";
  1555. this.l_3_pnt_38 = new AVK_spr("",-9,243,9,9,1);
  1556. this.sprite.addChild(this.l_3_pnt_38.sprite);
  1557. that.EL ="l_4_pnt_0";
  1558. this.l_4_pnt_0 = new AVK_spr("",639,728,9,9,1);
  1559. this.sprite.addChild(this.l_4_pnt_0.sprite);
  1560. that.EL ="l_4_pnt_1";
  1561. this.l_4_pnt_1 = new AVK_spr("",472,837,9,9,1);
  1562. this.sprite.addChild(this.l_4_pnt_1.sprite);
  1563. that.EL ="l_4_pnt_2";
  1564. this.l_4_pnt_2 = new AVK_spr("",294,873,9,9,1);
  1565. this.sprite.addChild(this.l_4_pnt_2.sprite);
  1566. that.EL ="l_4_pnt_3";
  1567. this.l_4_pnt_3 = new AVK_spr("",117,841,9,9,1);
  1568. this.sprite.addChild(this.l_4_pnt_3.sprite);
  1569. that.EL ="l_4_pnt_4";
  1570. this.l_4_pnt_4 = new AVK_spr("",31,762,9,9,1);
  1571. this.sprite.addChild(this.l_4_pnt_4.sprite);
  1572. that.EL ="l_4_pnt_5";
  1573. this.l_4_pnt_5 = new AVK_spr("",31,694,9,9,1);
  1574. this.sprite.addChild(this.l_4_pnt_5.sprite);
  1575. that.EL ="l_4_pnt_6";
  1576. this.l_4_pnt_6 = new AVK_spr("",88,679,9,9,1);
  1577. this.sprite.addChild(this.l_4_pnt_6.sprite);
  1578. that.EL ="l_4_pnt_7";
  1579. this.l_4_pnt_7 = new AVK_spr("",167,757,9,9,1);
  1580. this.sprite.addChild(this.l_4_pnt_7.sprite);
  1581. that.EL ="l_4_pnt_8";
  1582. this.l_4_pnt_8 = new AVK_spr("",295,789,9,9,1);
  1583. this.sprite.addChild(this.l_4_pnt_8.sprite);
  1584. that.EL ="l_4_pnt_9";
  1585. this.l_4_pnt_9 = new AVK_spr("",441,757,9,9,1);
  1586. this.sprite.addChild(this.l_4_pnt_9.sprite);
  1587. that.EL ="l_4_pnt_10";
  1588. this.l_4_pnt_10 = new AVK_spr("",560,694,9,9,1);
  1589. this.sprite.addChild(this.l_4_pnt_10.sprite);
  1590. that.EL ="l_4_pnt_11";
  1591. this.l_4_pnt_11 = new AVK_spr("",573,640,9,9,1);
  1592. this.sprite.addChild(this.l_4_pnt_11.sprite);
  1593. that.EL ="l_4_pnt_12";
  1594. this.l_4_pnt_12 = new AVK_spr("",528,622,9,9,1);
  1595. this.sprite.addChild(this.l_4_pnt_12.sprite);
  1596. that.EL ="l_4_pnt_13";
  1597. this.l_4_pnt_13 = new AVK_spr("",419,689,9,9,1);
  1598. this.sprite.addChild(this.l_4_pnt_13.sprite);
  1599. that.EL ="l_4_pnt_14";
  1600. this.l_4_pnt_14 = new AVK_spr("",295,708,9,9,1);
  1601. this.sprite.addChild(this.l_4_pnt_14.sprite);
  1602. that.EL ="l_4_pnt_15";
  1603. this.l_4_pnt_15 = new AVK_spr("",202,684,9,9,1);
  1604. this.sprite.addChild(this.l_4_pnt_15.sprite);
  1605. that.EL ="l_4_pnt_16";
  1606. this.l_4_pnt_16 = new AVK_spr("",117,602,9,9,1);
  1607. this.sprite.addChild(this.l_4_pnt_16.sprite);
  1608. that.EL ="l_4_pnt_17";
  1609. this.l_4_pnt_17 = new AVK_spr("",122,543,9,9,1);
  1610. this.sprite.addChild(this.l_4_pnt_17.sprite);
  1611. that.EL ="l_4_pnt_18";
  1612. this.l_4_pnt_18 = new AVK_spr("",190,543,9,9,1);
  1613. this.sprite.addChild(this.l_4_pnt_18.sprite);
  1614. that.EL ="l_4_pnt_19";
  1615. this.l_4_pnt_19 = new AVK_spr("",256,602,9,9,1);
  1616. this.sprite.addChild(this.l_4_pnt_19.sprite);
  1617. that.EL ="l_4_pnt_20";
  1618. this.l_4_pnt_20 = new AVK_spr("",366,618,9,9,1);
  1619. this.sprite.addChild(this.l_4_pnt_20.sprite);
  1620. that.EL ="l_4_pnt_21";
  1621. this.l_4_pnt_21 = new AVK_spr("",463,592,9,9,1);
  1622. this.sprite.addChild(this.l_4_pnt_21.sprite);
  1623. that.EL ="l_4_pnt_22";
  1624. this.l_4_pnt_22 = new AVK_spr("",565,525,9,9,1);
  1625. this.sprite.addChild(this.l_4_pnt_22.sprite);
  1626. that.EL ="l_4_pnt_23";
  1627. this.l_4_pnt_23 = new AVK_spr("",578,467,9,9,1);
  1628. this.sprite.addChild(this.l_4_pnt_23.sprite);
  1629. that.EL ="l_4_pnt_24";
  1630. this.l_4_pnt_24 = new AVK_spr("",528,445,9,9,1);
  1631. this.sprite.addChild(this.l_4_pnt_24.sprite);
  1632. that.EL ="l_4_pnt_25";
  1633. this.l_4_pnt_25 = new AVK_spr("",438,497,9,9,1);
  1634. this.sprite.addChild(this.l_4_pnt_25.sprite);
  1635. that.EL ="l_4_pnt_26";
  1636. this.l_4_pnt_26 = new AVK_spr("",371,525,9,9,1);
  1637. this.sprite.addChild(this.l_4_pnt_26.sprite);
  1638. that.EL ="l_4_pnt_27";
  1639. this.l_4_pnt_27 = new AVK_spr("",274,502,9,9,1);
  1640. this.sprite.addChild(this.l_4_pnt_27.sprite);
  1641. that.EL ="l_4_pnt_28";
  1642. this.l_4_pnt_28 = new AVK_spr("",211,462,9,9,1);
  1643. this.sprite.addChild(this.l_4_pnt_28.sprite);
  1644. that.EL ="l_4_pnt_29";
  1645. this.l_4_pnt_29 = new AVK_spr("",221,399,9,9,1);
  1646. this.sprite.addChild(this.l_4_pnt_29.sprite);
  1647. that.EL ="l_4_pnt_30";
  1648. this.l_4_pnt_30 = new AVK_spr("",279,384,9,9,1);
  1649. this.sprite.addChild(this.l_4_pnt_30.sprite);
  1650. that.EL ="l_4_pnt_31";
  1651. this.l_4_pnt_31 = new AVK_spr("",362,420,9,9,1);
  1652. this.sprite.addChild(this.l_4_pnt_31.sprite);
  1653. that.EL ="l_4_pnt_32";
  1654. this.l_4_pnt_32 = new AVK_spr("",443,399,9,9,1);
  1655. this.sprite.addChild(this.l_4_pnt_32.sprite);
  1656. that.EL ="l_4_pnt_33";
  1657. this.l_4_pnt_33 = new AVK_spr("",518,360,9,9,1);
  1658. this.sprite.addChild(this.l_4_pnt_33.sprite);
  1659. that.EL ="l_4_pnt_34";
  1660. this.l_4_pnt_34 = new AVK_spr("",564,314,9,9,1);
  1661. this.sprite.addChild(this.l_4_pnt_34.sprite);
  1662. that.EL ="l_4_pnt_35";
  1663. this.l_4_pnt_35 = new AVK_spr("",582,261,9,9,1);
  1664. this.sprite.addChild(this.l_4_pnt_35.sprite);
  1665. that.EL ="l_4_pnt_36";
  1666. this.l_4_pnt_36 = new AVK_spr("",540,226,9,9,1);
  1667. this.sprite.addChild(this.l_4_pnt_36.sprite);
  1668. that.EL ="l_4_pnt_37";
  1669. this.l_4_pnt_37 = new AVK_spr("",477,266,9,9,1);
  1670. this.sprite.addChild(this.l_4_pnt_37.sprite);
  1671. that.EL ="l_4_pnt_38";
  1672. this.l_4_pnt_38 = new AVK_spr("",381,319,9,9,1);
  1673. this.sprite.addChild(this.l_4_pnt_38.sprite);
  1674. that.EL ="l_4_pnt_39";
  1675. this.l_4_pnt_39 = new AVK_spr("",286,261,9,9,1);
  1676. this.sprite.addChild(this.l_4_pnt_39.sprite);
  1677. that.EL ="l_4_pnt_40";
  1678. this.l_4_pnt_40 = new AVK_spr("",181,261,9,9,1);
  1679. this.sprite.addChild(this.l_4_pnt_40.sprite);
  1680. that.EL ="l_4_pnt_41";
  1681. this.l_4_pnt_41 = new AVK_spr("",116,339,9,9,1);
  1682. this.sprite.addChild(this.l_4_pnt_41.sprite);
  1683. that.EL ="l_4_pnt_42";
  1684. this.l_4_pnt_42 = new AVK_spr("",6,435,9,9,1);
  1685. this.sprite.addChild(this.l_4_pnt_42.sprite);
  1686. that.EL ="l_5_pnt_0";
  1687. this.l_5_pnt_0 = new AVK_spr("",-43,218,9,9,1);
  1688. this.sprite.addChild(this.l_5_pnt_0.sprite);
  1689. that.EL ="l_5_pnt_1";
  1690. this.l_5_pnt_1 = new AVK_spr("",227,218,9,9,1);
  1691. this.sprite.addChild(this.l_5_pnt_1.sprite);
  1692. that.EL ="l_5_pnt_2";
  1693. this.l_5_pnt_2 = new AVK_spr("",264,264,9,9,1);
  1694. this.sprite.addChild(this.l_5_pnt_2.sprite);
  1695. that.EL ="l_5_pnt_3";
  1696. this.l_5_pnt_3 = new AVK_spr("",264,316,9,9,1);
  1697. this.sprite.addChild(this.l_5_pnt_3.sprite);
  1698. that.EL ="l_5_pnt_4";
  1699. this.l_5_pnt_4 = new AVK_spr("",227,363,9,9,1);
  1700. this.sprite.addChild(this.l_5_pnt_4.sprite);
  1701. that.EL ="l_5_pnt_5";
  1702. this.l_5_pnt_5 = new AVK_spr("",69,363,9,9,1);
  1703. this.sprite.addChild(this.l_5_pnt_5.sprite);
  1704. that.EL ="l_5_pnt_6";
  1705. this.l_5_pnt_6 = new AVK_spr("",19,407,9,9,1);
  1706. this.sprite.addChild(this.l_5_pnt_6.sprite);
  1707. that.EL ="l_5_pnt_7";
  1708. this.l_5_pnt_7 = new AVK_spr("",19,467,9,9,1);
  1709. this.sprite.addChild(this.l_5_pnt_7.sprite);
  1710. that.EL ="l_5_pnt_8";
  1711. this.l_5_pnt_8 = new AVK_spr("",59,513,9,9,1);
  1712. this.sprite.addChild(this.l_5_pnt_8.sprite);
  1713. that.EL ="l_5_pnt_9";
  1714. this.l_5_pnt_9 = new AVK_spr("",227,513,9,9,1);
  1715. this.sprite.addChild(this.l_5_pnt_9.sprite);
  1716. that.EL ="l_5_pnt_10";
  1717. this.l_5_pnt_10 = new AVK_spr("",264,557,9,9,1);
  1718. this.sprite.addChild(this.l_5_pnt_10.sprite);
  1719. that.EL ="l_5_pnt_11";
  1720. this.l_5_pnt_11 = new AVK_spr("",264,608,9,9,1);
  1721. this.sprite.addChild(this.l_5_pnt_11.sprite);
  1722. that.EL ="l_5_pnt_12";
  1723. this.l_5_pnt_12 = new AVK_spr("",227,655,9,9,1);
  1724. this.sprite.addChild(this.l_5_pnt_12.sprite);
  1725. that.EL ="l_5_pnt_13";
  1726. this.l_5_pnt_13 = new AVK_spr("",59,655,9,9,1);
  1727. this.sprite.addChild(this.l_5_pnt_13.sprite);
  1728. that.EL ="l_5_pnt_14";
  1729. this.l_5_pnt_14 = new AVK_spr("",28,698,9,9,1);
  1730. this.sprite.addChild(this.l_5_pnt_14.sprite);
  1731. that.EL ="l_5_pnt_15";
  1732. this.l_5_pnt_15 = new AVK_spr("",111,803,9,9,1);
  1733. this.sprite.addChild(this.l_5_pnt_15.sprite);
  1734. that.EL ="l_5_pnt_16";
  1735. this.l_5_pnt_16 = new AVK_spr("",237,873,9,9,1);
  1736. this.sprite.addChild(this.l_5_pnt_16.sprite);
  1737. that.EL ="l_5_pnt_17";
  1738. this.l_5_pnt_17 = new AVK_spr("",354,873,9,9,1);
  1739. this.sprite.addChild(this.l_5_pnt_17.sprite);
  1740. that.EL ="l_5_pnt_18";
  1741. this.l_5_pnt_18 = new AVK_spr("",491,803,9,9,1);
  1742. this.sprite.addChild(this.l_5_pnt_18.sprite);
  1743. that.EL ="l_5_pnt_19";
  1744. this.l_5_pnt_19 = new AVK_spr("",570,693,9,9,1);
  1745. this.sprite.addChild(this.l_5_pnt_19.sprite);
  1746. that.EL ="l_5_pnt_20";
  1747. this.l_5_pnt_20 = new AVK_spr("",528,660,9,9,1);
  1748. this.sprite.addChild(this.l_5_pnt_20.sprite);
  1749. that.EL ="l_5_pnt_21";
  1750. this.l_5_pnt_21 = new AVK_spr("",359,655,9,9,1);
  1751. this.sprite.addChild(this.l_5_pnt_21.sprite);
  1752. that.EL ="l_5_pnt_22";
  1753. this.l_5_pnt_22 = new AVK_spr("",323,613,9,9,1);
  1754. this.sprite.addChild(this.l_5_pnt_22.sprite);
  1755. that.EL ="l_5_pnt_23";
  1756. this.l_5_pnt_23 = new AVK_spr("",323,557,9,9,1);
  1757. this.sprite.addChild(this.l_5_pnt_23.sprite);
  1758. that.EL ="l_5_pnt_24";
  1759. this.l_5_pnt_24 = new AVK_spr("",359,513,9,9,1);
  1760. this.sprite.addChild(this.l_5_pnt_24.sprite);
  1761. that.EL ="l_5_pnt_25";
  1762. this.l_5_pnt_25 = new AVK_spr("",514,513,9,9,1);
  1763. this.sprite.addChild(this.l_5_pnt_25.sprite);
  1764. that.EL ="l_5_pnt_26";
  1765. this.l_5_pnt_26 = new AVK_spr("",555,467,9,9,1);
  1766. this.sprite.addChild(this.l_5_pnt_26.sprite);
  1767. that.EL ="l_5_pnt_27";
  1768. this.l_5_pnt_27 = new AVK_spr("",555,407,9,9,1);
  1769. this.sprite.addChild(this.l_5_pnt_27.sprite);
  1770. that.EL ="l_5_pnt_28";
  1771. this.l_5_pnt_28 = new AVK_spr("",514,358,9,9,1);
  1772. this.sprite.addChild(this.l_5_pnt_28.sprite);
  1773. that.EL ="l_5_pnt_29";
  1774. this.l_5_pnt_29 = new AVK_spr("",359,358,9,9,1);
  1775. this.sprite.addChild(this.l_5_pnt_29.sprite);
  1776. that.EL ="l_5_pnt_30";
  1777. this.l_5_pnt_30 = new AVK_spr("",323,316,9,9,1);
  1778. this.sprite.addChild(this.l_5_pnt_30.sprite);
  1779. that.EL ="l_5_pnt_31";
  1780. this.l_5_pnt_31 = new AVK_spr("",323,264,9,9,1);
  1781. this.sprite.addChild(this.l_5_pnt_31.sprite);
  1782. that.EL ="l_5_pnt_32";
  1783. this.l_5_pnt_32 = new AVK_spr("",359,218,9,9,1);
  1784. this.sprite.addChild(this.l_5_pnt_32.sprite);
  1785. that.EL ="l_5_pnt_33";
  1786. this.l_5_pnt_33 = new AVK_spr("",586,215,9,9,1);
  1787. this.sprite.addChild(this.l_5_pnt_33.sprite);
  1788. that.EL ="l_6_pnt_0";
  1789. this.l_6_pnt_0 = new AVK_spr("",635,851,9,9,1);
  1790. this.sprite.addChild(this.l_6_pnt_0.sprite);
  1791. that.EL ="l_6_pnt_1";
  1792. this.l_6_pnt_1 = new AVK_spr("",107,849,9,9,1);
  1793. this.sprite.addChild(this.l_6_pnt_1.sprite);
  1794. that.EL ="l_6_pnt_2";
  1795. this.l_6_pnt_2 = new AVK_spr("",42,792,9,9,1);
  1796. this.sprite.addChild(this.l_6_pnt_2.sprite);
  1797. that.EL ="l_6_pnt_3";
  1798. this.l_6_pnt_3 = new AVK_spr("",42,696,9,9,1);
  1799. this.sprite.addChild(this.l_6_pnt_3.sprite);
  1800. that.EL ="l_6_pnt_4";
  1801. this.l_6_pnt_4 = new AVK_spr("",112,643,9,9,1);
  1802. this.sprite.addChild(this.l_6_pnt_4.sprite);
  1803. that.EL ="l_6_pnt_5";
  1804. this.l_6_pnt_5 = new AVK_spr("",459,643,9,9,1);
  1805. this.sprite.addChild(this.l_6_pnt_5.sprite);
  1806. that.EL ="l_6_pnt_6";
  1807. this.l_6_pnt_6 = new AVK_spr("",553,553,9,9,1);
  1808. this.sprite.addChild(this.l_6_pnt_6.sprite);
  1809. that.EL ="l_6_pnt_7";
  1810. this.l_6_pnt_7 = new AVK_spr("",553,297,9,9,1);
  1811. this.sprite.addChild(this.l_6_pnt_7.sprite);
  1812. that.EL ="l_6_pnt_8";
  1813. this.l_6_pnt_8 = new AVK_spr("",468,215,9,9,1);
  1814. this.sprite.addChild(this.l_6_pnt_8.sprite);
  1815. that.EL ="l_6_pnt_9";
  1816. this.l_6_pnt_9 = new AVK_spr("",388,210,9,9,1);
  1817. this.sprite.addChild(this.l_6_pnt_9.sprite);
  1818. that.EL ="l_6_pnt_10";
  1819. this.l_6_pnt_10 = new AVK_spr("",327,215,9,9,1);
  1820. this.sprite.addChild(this.l_6_pnt_10.sprite);
  1821. that.EL ="l_6_pnt_11";
  1822. this.l_6_pnt_11 = new AVK_spr("",37,215,9,9,1);
  1823. this.sprite.addChild(this.l_6_pnt_11.sprite);
  1824. that.EL ="l_6_pnt_12";
  1825. this.l_6_pnt_12 = new AVK_spr("",37,359,9,9,1);
  1826. this.sprite.addChild(this.l_6_pnt_12.sprite);
  1827. that.EL ="l_6_pnt_13";
  1828. this.l_6_pnt_13 = new AVK_spr("",249,359,9,9,1);
  1829. this.sprite.addChild(this.l_6_pnt_13.sprite);
  1830. that.EL ="l_6_pnt_14";
  1831. this.l_6_pnt_14 = new AVK_spr("",309,359,9,9,1);
  1832. this.sprite.addChild(this.l_6_pnt_14.sprite);
  1833. that.EL ="l_6_pnt_15";
  1834. this.l_6_pnt_15 = new AVK_spr("",397,364,9,9,1);
  1835. this.sprite.addChild(this.l_6_pnt_15.sprite);
  1836. that.EL ="l_6_pnt_16";
  1837. this.l_6_pnt_16 = new AVK_spr("",449,406,9,9,1);
  1838. this.sprite.addChild(this.l_6_pnt_16.sprite);
  1839. that.EL ="l_6_pnt_17";
  1840. this.l_6_pnt_17 = new AVK_spr("",449,467,9,9,1);
  1841. this.sprite.addChild(this.l_6_pnt_17.sprite);
  1842. that.EL ="l_6_pnt_18";
  1843. this.l_6_pnt_18 = new AVK_spr("",407,519,9,9,1);
  1844. this.sprite.addChild(this.l_6_pnt_18.sprite);
  1845. that.EL ="l_6_pnt_19";
  1846. this.l_6_pnt_19 = new AVK_spr("",43,514,9,9,1);
  1847. this.sprite.addChild(this.l_6_pnt_19.sprite);
  1848. that.EL ="l_7_pnt_0";
  1849. this.l_7_pnt_0 = new AVK_spr("",93,936,9,9,1);
  1850. this.sprite.addChild(this.l_7_pnt_0.sprite);
  1851. that.EL ="l_7_pnt_1";
  1852. this.l_7_pnt_1 = new AVK_spr("",192,796,9,9,1);
  1853. this.sprite.addChild(this.l_7_pnt_1.sprite);
  1854. that.EL ="l_7_pnt_2";
  1855. this.l_7_pnt_2 = new AVK_spr("",197,764,9,9,1);
  1856. this.sprite.addChild(this.l_7_pnt_2.sprite);
  1857. that.EL ="l_7_pnt_3";
  1858. this.l_7_pnt_3 = new AVK_spr("",152,664,9,9,1);
  1859. this.sprite.addChild(this.l_7_pnt_3.sprite);
  1860. that.EL ="l_7_pnt_4";
  1861. this.l_7_pnt_4 = new AVK_spr("",112,572,9,9,1);
  1862. this.sprite.addChild(this.l_7_pnt_4.sprite);
  1863. that.EL ="l_7_pnt_5";
  1864. this.l_7_pnt_5 = new AVK_spr("",101,547,9,9,1);
  1865. this.sprite.addChild(this.l_7_pnt_5.sprite);
  1866. that.EL ="l_7_pnt_6";
  1867. this.l_7_pnt_6 = new AVK_spr("",86,515,9,9,1);
  1868. this.sprite.addChild(this.l_7_pnt_6.sprite);
  1869. that.EL ="l_7_pnt_7";
  1870. this.l_7_pnt_7 = new AVK_spr("",77,486,9,9,1);
  1871. this.sprite.addChild(this.l_7_pnt_7.sprite);
  1872. that.EL ="l_7_pnt_8";
  1873. this.l_7_pnt_8 = new AVK_spr("",76,454,9,9,1);
  1874. this.sprite.addChild(this.l_7_pnt_8.sprite);
  1875. that.EL ="l_7_pnt_9";
  1876. this.l_7_pnt_9 = new AVK_spr("",135,423,9,9,1);
  1877. this.sprite.addChild(this.l_7_pnt_9.sprite);
  1878. that.EL ="l_7_pnt_10";
  1879. this.l_7_pnt_10 = new AVK_spr("",174,433,9,9,1);
  1880. this.sprite.addChild(this.l_7_pnt_10.sprite);
  1881. that.EL ="l_7_pnt_11";
  1882. this.l_7_pnt_11 = new AVK_spr("",183,454,9,9,1);
  1883. this.sprite.addChild(this.l_7_pnt_11.sprite);
  1884. that.EL ="l_7_pnt_12";
  1885. this.l_7_pnt_12 = new AVK_spr("",300,713,9,9,1);
  1886. this.sprite.addChild(this.l_7_pnt_12.sprite);
  1887. that.EL ="l_7_pnt_13";
  1888. this.l_7_pnt_13 = new AVK_spr("",309,723,9,9,1);
  1889. this.sprite.addChild(this.l_7_pnt_13.sprite);
  1890. that.EL ="l_7_pnt_14";
  1891. this.l_7_pnt_14 = new AVK_spr("",344,733,9,9,1);
  1892. this.sprite.addChild(this.l_7_pnt_14.sprite);
  1893. that.EL ="l_7_pnt_15";
  1894. this.l_7_pnt_15 = new AVK_spr("",395,713,9,9,1);
  1895. this.sprite.addChild(this.l_7_pnt_15.sprite);
  1896. that.EL ="l_7_pnt_16";
  1897. this.l_7_pnt_16 = new AVK_spr("",405,666,9,9,1);
  1898. this.sprite.addChild(this.l_7_pnt_16.sprite);
  1899. that.EL ="l_7_pnt_17";
  1900. this.l_7_pnt_17 = new AVK_spr("",395,648,9,9,1);
  1901. this.sprite.addChild(this.l_7_pnt_17.sprite);
  1902. that.EL ="l_7_pnt_18";
  1903. this.l_7_pnt_18 = new AVK_spr("",295,414,9,9,1);
  1904. this.sprite.addChild(this.l_7_pnt_18.sprite);
  1905. that.EL ="l_7_pnt_19";
  1906. this.l_7_pnt_19 = new AVK_spr("",290,394,9,9,1);
  1907. this.sprite.addChild(this.l_7_pnt_19.sprite);
  1908. that.EL ="l_7_pnt_20";
  1909. this.l_7_pnt_20 = new AVK_spr("",290,370,9,9,1);
  1910. this.sprite.addChild(this.l_7_pnt_20.sprite);
  1911. that.EL ="l_7_pnt_21";
  1912. this.l_7_pnt_21 = new AVK_spr("",304,346,9,9,1);
  1913. this.sprite.addChild(this.l_7_pnt_21.sprite);
  1914. that.EL ="l_7_pnt_22";
  1915. this.l_7_pnt_22 = new AVK_spr("",430,341,9,9,1);
  1916. this.sprite.addChild(this.l_7_pnt_22.sprite);
  1917. that.EL ="l_7_pnt_23";
  1918. this.l_7_pnt_23 = new AVK_spr("",501,370,9,9,1);
  1919. this.sprite.addChild(this.l_7_pnt_23.sprite);
  1920. that.EL ="l_7_pnt_24";
  1921. this.l_7_pnt_24 = new AVK_spr("",560,467,9,9,1);
  1922. this.sprite.addChild(this.l_7_pnt_24.sprite);
  1923. that.EL ="l_7_pnt_25";
  1924. this.l_7_pnt_25 = new AVK_spr("",511,543,9,9,1);
  1925. this.sprite.addChild(this.l_7_pnt_25.sprite);
  1926. that.EL ="l_7_pnt_26";
  1927. this.l_7_pnt_26 = new AVK_spr("",451,568,9,9,1);
  1928. this.sprite.addChild(this.l_7_pnt_26.sprite);
  1929. that.EL ="l_7_pnt_27";
  1930. this.l_7_pnt_27 = new AVK_spr("",389,568,9,9,1);
  1931. this.sprite.addChild(this.l_7_pnt_27.sprite);
  1932. that.EL ="l_7_pnt_28";
  1933. this.l_7_pnt_28 = new AVK_spr("",280,573,9,9,1);
  1934. this.sprite.addChild(this.l_7_pnt_28.sprite);
  1935. that.EL ="l_7_pnt_29";
  1936. this.l_7_pnt_29 = new AVK_spr("",96,573,9,9,1);
  1937. this.sprite.addChild(this.l_7_pnt_29.sprite);
  1938. that.EL ="l_7_pnt_30";
  1939. this.l_7_pnt_30 = new AVK_spr("",66,573,9,9,1);
  1940. this.sprite.addChild(this.l_7_pnt_30.sprite);
  1941. that.EL ="l_7_pnt_31";
  1942. this.l_7_pnt_31 = new AVK_spr("",26,533,9,9,1);
  1943. this.sprite.addChild(this.l_7_pnt_31.sprite);
  1944. that.EL ="l_7_pnt_32";
  1945. this.l_7_pnt_32 = new AVK_spr("",26,510,9,9,1);
  1946. this.sprite.addChild(this.l_7_pnt_32.sprite);
  1947. that.EL ="l_7_pnt_33";
  1948. this.l_7_pnt_33 = new AVK_spr("",26,282,9,9,1);
  1949. this.sprite.addChild(this.l_7_pnt_33.sprite);
  1950. that.EL ="l_7_pnt_34";
  1951. this.l_7_pnt_34 = new AVK_spr("",26,260,9,9,1);
  1952. this.sprite.addChild(this.l_7_pnt_34.sprite);
  1953. that.EL ="l_7_pnt_35";
  1954. this.l_7_pnt_35 = new AVK_spr("",62,225,9,9,1);
  1955. this.sprite.addChild(this.l_7_pnt_35.sprite);
  1956. that.EL ="l_7_pnt_36";
  1957. this.l_7_pnt_36 = new AVK_spr("",81,225,9,9,1);
  1958. this.sprite.addChild(this.l_7_pnt_36.sprite);
  1959. that.EL ="l_7_pnt_37";
  1960. this.l_7_pnt_37 = new AVK_spr("",592,225,9,9,1);
  1961. this.sprite.addChild(this.l_7_pnt_37.sprite);
  1962. that.EL ="l_8_pnt_0";
  1963. this.l_8_pnt_0 = new AVK_spr("",-51,771,9,9,1);
  1964. this.sprite.addChild(this.l_8_pnt_0.sprite);
  1965. that.EL ="l_8_pnt_1";
  1966. this.l_8_pnt_1 = new AVK_spr("",-9,701,9,9,1);
  1967. this.sprite.addChild(this.l_8_pnt_1.sprite);
  1968. that.EL ="l_8_pnt_2";
  1969. this.l_8_pnt_2 = new AVK_spr("",18,637,9,9,1);
  1970. this.sprite.addChild(this.l_8_pnt_2.sprite);
  1971. that.EL ="l_8_pnt_3";
  1972. this.l_8_pnt_3 = new AVK_spr("",103,642,9,9,1);
  1973. this.sprite.addChild(this.l_8_pnt_3.sprite);
  1974. that.EL ="l_8_pnt_4";
  1975. this.l_8_pnt_4 = new AVK_spr("",145,808,9,9,1);
  1976. this.sprite.addChild(this.l_8_pnt_4.sprite);
  1977. that.EL ="l_8_pnt_5";
  1978. this.l_8_pnt_5 = new AVK_spr("",229,813,9,9,1);
  1979. this.sprite.addChild(this.l_8_pnt_5.sprite);
  1980. that.EL ="l_8_pnt_6";
  1981. this.l_8_pnt_6 = new AVK_spr("",254,647,9,9,1);
  1982. this.sprite.addChild(this.l_8_pnt_6.sprite);
  1983. that.EL ="l_8_pnt_7";
  1984. this.l_8_pnt_7 = new AVK_spr("",337,652,9,9,1);
  1985. this.sprite.addChild(this.l_8_pnt_7.sprite);
  1986. that.EL ="l_8_pnt_8";
  1987. this.l_8_pnt_8 = new AVK_spr("",378,808,9,9,1);
  1988. this.sprite.addChild(this.l_8_pnt_8.sprite);
  1989. that.EL ="l_8_pnt_9";
  1990. this.l_8_pnt_9 = new AVK_spr("",487,796,9,9,1);
  1991. this.sprite.addChild(this.l_8_pnt_9.sprite);
  1992. that.EL ="l_8_pnt_10";
  1993. this.l_8_pnt_10 = new AVK_spr("",579,372,9,9,1);
  1994. this.sprite.addChild(this.l_8_pnt_10.sprite);
  1995. that.EL ="l_8_pnt_11";
  1996. this.l_8_pnt_11 = new AVK_spr("",487,348,9,9,1);
  1997. this.sprite.addChild(this.l_8_pnt_11.sprite);
  1998. that.EL ="l_8_pnt_12";
  1999. this.l_8_pnt_12 = new AVK_spr("",430,552,9,9,1);
  2000. this.sprite.addChild(this.l_8_pnt_12.sprite);
  2001. that.EL ="l_8_pnt_13";
  2002. this.l_8_pnt_13 = new AVK_spr("",337,532,9,9,1);
  2003. this.sprite.addChild(this.l_8_pnt_13.sprite);
  2004. that.EL ="l_8_pnt_14";
  2005. this.l_8_pnt_14 = new AVK_spr("",309,214,9,9,1);
  2006. this.sprite.addChild(this.l_8_pnt_14.sprite);
  2007. that.EL ="l_8_pnt_15";
  2008. this.l_8_pnt_15 = new AVK_spr("",239,209,9,9,1);
  2009. this.sprite.addChild(this.l_8_pnt_15.sprite);
  2010. that.EL ="l_8_pnt_16";
  2011. this.l_8_pnt_16 = new AVK_spr("",205,408,9,9,1);
  2012. this.sprite.addChild(this.l_8_pnt_16.sprite);
  2013. that.EL ="l_8_pnt_17";
  2014. this.l_8_pnt_17 = new AVK_spr("",196,567,9,9,1);
  2015. this.sprite.addChild(this.l_8_pnt_17.sprite);
  2016. that.EL ="l_8_pnt_18";
  2017. this.l_8_pnt_18 = new AVK_spr("",135,610,9,9,1);
  2018. this.sprite.addChild(this.l_8_pnt_18.sprite);
  2019. that.EL ="l_8_pnt_19";
  2020. this.l_8_pnt_19 = new AVK_spr("",57,588,9,9,1);
  2021. this.sprite.addChild(this.l_8_pnt_19.sprite);
  2022. that.EL ="l_8_pnt_20";
  2023. this.l_8_pnt_20 = new AVK_spr("",13,439,9,9,1);
  2024. this.sprite.addChild(this.l_8_pnt_20.sprite);
  2025. that.EL ="l_8_pnt_21";
  2026. this.l_8_pnt_21 = new AVK_spr("",23,287,9,9,1);
  2027. this.sprite.addChild(this.l_8_pnt_21.sprite);
  2028. that.EL ="l_8_pnt_22";
  2029. this.l_8_pnt_22 = new AVK_spr("",93,234,9,9,1);
  2030. this.sprite.addChild(this.l_8_pnt_22.sprite);
  2031. that.EL ="l_8_pnt_23";
  2032. this.l_8_pnt_23 = new AVK_spr("",139,279,9,9,1);
  2033. this.sprite.addChild(this.l_8_pnt_23.sprite);
  2034. that.EL ="l_8_pnt_24";
  2035. this.l_8_pnt_24 = new AVK_spr("",206,348,9,9,1);
  2036. this.sprite.addChild(this.l_8_pnt_24.sprite);
  2037. that.EL ="l_8_pnt_25";
  2038. this.l_8_pnt_25 = new AVK_spr("",273,403,9,9,1);
  2039. this.sprite.addChild(this.l_8_pnt_25.sprite);
  2040. that.EL ="l_8_pnt_26";
  2041. this.l_8_pnt_26 = new AVK_spr("",337,352,9,9,1);
  2042. this.sprite.addChild(this.l_8_pnt_26.sprite);
  2043. that.EL ="l_8_pnt_27";
  2044. this.l_8_pnt_27 = new AVK_spr("",394,268,9,9,1);
  2045. this.sprite.addChild(this.l_8_pnt_27.sprite);
  2046. that.EL ="l_8_pnt_28";
  2047. this.l_8_pnt_28 = new AVK_spr("",430,214,9,9,1);
  2048. this.sprite.addChild(this.l_8_pnt_28.sprite);
  2049. that.EL ="l_8_pnt_29";
  2050. this.l_8_pnt_29 = new AVK_spr("",492,177,9,9,1);
  2051. this.sprite.addChild(this.l_8_pnt_29.sprite);
  2052. that.EL ="l_8_pnt_30";
  2053. this.l_8_pnt_30 = new AVK_spr("",595,173,9,9,1);
  2054. this.sprite.addChild(this.l_8_pnt_30.sprite);
  2055. that.EL ="l_9_pnt_0";
  2056. this.l_9_pnt_0 = new AVK_spr("",639,819,9,9,1);
  2057. this.sprite.addChild(this.l_9_pnt_0.sprite);
  2058. that.EL ="l_9_pnt_1";
  2059. this.l_9_pnt_1 = new AVK_spr("",425,806,9,9,1);
  2060. this.sprite.addChild(this.l_9_pnt_1.sprite);
  2061. that.EL ="l_9_pnt_2";
  2062. this.l_9_pnt_2 = new AVK_spr("",264,738,9,9,1);
  2063. this.sprite.addChild(this.l_9_pnt_2.sprite);
  2064. that.EL ="l_9_pnt_3";
  2065. this.l_9_pnt_3 = new AVK_spr("",138,577,9,9,1);
  2066. this.sprite.addChild(this.l_9_pnt_3.sprite);
  2067. that.EL ="l_9_pnt_4";
  2068. this.l_9_pnt_4 = new AVK_spr("",177,394,9,9,1);
  2069. this.sprite.addChild(this.l_9_pnt_4.sprite);
  2070. that.EL ="l_9_pnt_5";
  2071. this.l_9_pnt_5 = new AVK_spr("",253,394,9,9,1);
  2072. this.sprite.addChild(this.l_9_pnt_5.sprite);
  2073. that.EL ="l_9_pnt_6";
  2074. this.l_9_pnt_6 = new AVK_spr("",289,556,9,9,1);
  2075. this.sprite.addChild(this.l_9_pnt_6.sprite);
  2076. that.EL ="l_9_pnt_7";
  2077. this.l_9_pnt_7 = new AVK_spr("",274,615,9,9,1);
  2078. this.sprite.addChild(this.l_9_pnt_7.sprite);
  2079. that.EL ="l_9_pnt_8";
  2080. this.l_9_pnt_8 = new AVK_spr("",240,685,9,9,1);
  2081. this.sprite.addChild(this.l_9_pnt_8.sprite);
  2082. that.EL ="l_9_pnt_9";
  2083. this.l_9_pnt_9 = new AVK_spr("",234,698,9,9,1);
  2084. this.sprite.addChild(this.l_9_pnt_9.sprite);
  2085. that.EL ="l_9_pnt_10";
  2086. this.l_9_pnt_10 = new AVK_spr("",172,757,9,9,1);
  2087. this.sprite.addChild(this.l_9_pnt_10.sprite);
  2088. that.EL ="l_9_pnt_11";
  2089. this.l_9_pnt_11 = new AVK_spr("",18,619,9,9,1);
  2090. this.sprite.addChild(this.l_9_pnt_11.sprite);
  2091. that.EL ="l_9_pnt_12";
  2092. this.l_9_pnt_12 = new AVK_spr("",58,337,9,9,1);
  2093. this.sprite.addChild(this.l_9_pnt_12.sprite);
  2094. that.EL ="l_9_pnt_13";
  2095. this.l_9_pnt_13 = new AVK_spr("",244,292,9,9,1);
  2096. this.sprite.addChild(this.l_9_pnt_13.sprite);
  2097. that.EL ="l_9_pnt_14";
  2098. this.l_9_pnt_14 = new AVK_spr("",551,421,9,9,1);
  2099. this.sprite.addChild(this.l_9_pnt_14.sprite);
  2100. that.EL ="l_9_pnt_15";
  2101. this.l_9_pnt_15 = new AVK_spr("",556,670,9,9,1);
  2102. this.sprite.addChild(this.l_9_pnt_15.sprite);
  2103. that.EL ="l_9_pnt_16";
  2104. this.l_9_pnt_16 = new AVK_spr("",454,721,9,9,1);
  2105. this.sprite.addChild(this.l_9_pnt_16.sprite);
  2106. that.EL ="l_9_pnt_17";
  2107. this.l_9_pnt_17 = new AVK_spr("",341,612,9,9,1);
  2108. this.sprite.addChild(this.l_9_pnt_17.sprite);
  2109. that.EL ="l_9_pnt_18";
  2110. this.l_9_pnt_18 = new AVK_spr("",333,438,9,9,1);
  2111. this.sprite.addChild(this.l_9_pnt_18.sprite);
  2112. that.EL ="l_9_pnt_19";
  2113. this.l_9_pnt_19 = new AVK_spr("",372,334,9,9,1);
  2114. this.sprite.addChild(this.l_9_pnt_19.sprite);
  2115. that.EL ="l_9_pnt_20";
  2116. this.l_9_pnt_20 = new AVK_spr("",404,268,9,9,1);
  2117. this.sprite.addChild(this.l_9_pnt_20.sprite);
  2118. that.EL ="l_9_pnt_21";
  2119. this.l_9_pnt_21 = new AVK_spr("",520,118,9,9,1);
  2120. this.sprite.addChild(this.l_9_pnt_21.sprite);
  2121. that.EL ="shadow";
  2122. this.shadow = new AVK_spr("game_shadow",4,5,24,36,1);
  2123. this.sprite.addChild(this.shadow.sprite);
  2124. that.EL ="bullet_place";
  2125. this.bullet_place = new AVK_spr("",0,0,0,0,1);
  2126. this.sprite.addChild(this.bullet_place.sprite);
  2127. that.EL ="wrays";
  2128. this.wrays = new AVK_spr("game_wrays",245,379,106,106,1);
  2129. this.sprite.addChild(this.wrays.sprite);
  2130. that.EL ="brays";
  2131. this.brays = new AVK_spr("game_brays",245,379,106,106,1);
  2132. this.sprite.addChild(this.brays.sprite);
  2133. that.EL ="win_wnd";
  2134. this.win_wnd = new AVK_spr("game_win_wnd",72,265,452,358,1);
  2135. this.sprite.addChild(this.win_wnd.sprite);
  2136. that.EL ="win_wnd_back";
  2137. this.win_wnd_back = new AVK_spr("game_win_wnd_back",136,339,326,93,1);
  2138. this.sprite.addChild(this.win_wnd_back.sprite);
  2139. that.EL ="star_0";
  2140. this.star_0 = new AVK_spr("game_star_0",138,361,79,71,1);
  2141. this.sprite.addChild(this.star_0.sprite);
  2142. that.EL ="star_1";
  2143. this.star_1 = new AVK_spr("game_star_1",240,346,94,84,1);
  2144. this.sprite.addChild(this.star_1.sprite);
  2145. that.EL ="star_2";
  2146. this.star_2 = new AVK_spr("game_star_2",356,331,113,100,1);
  2147. this.sprite.addChild(this.star_2.sprite);
  2148. that.EL ="btn_menu_win";
  2149. this.btn_menu_win = new AVK_btn("game_btn_menu_win",115,452,98,98,1);
  2150. this.sprite.addChild(this.btn_menu_win.sprite);
  2151. that.EL ="btn_refresh_win";
  2152. this.btn_refresh_win = new AVK_btn("game_btn_refresh_win",240,424,104,100,1);
  2153. this.sprite.addChild(this.btn_refresh_win.sprite);
  2154. that.EL ="btn_next";
  2155. this.btn_next = new AVK_btn("game_btn_next",379,444,105,96,1);
  2156. this.sprite.addChild(this.btn_next.sprite);
  2157. /*that.EL ="btn_more";//more
  2158. this.btn_more = new AVK_btn("game_btn_more",254,524,78,75,1);
  2159. this.sprite.addChild(this.btn_more.sprite);*/
  2160. that.EL ="loose_wnd";
  2161. this.loose_wnd = new AVK_spr("game_loose_wnd",68,259,463,370,1);
  2162. this.sprite.addChild(this.loose_wnd.sprite);
  2163. that.EL ="pbtn_menu";
  2164. this.pbtn_menu = new AVK_spr("",152,378,98,98,1);
  2165. this.sprite.addChild(this.pbtn_menu.sprite);
  2166. that.EL ="pbtn_refresh";
  2167. this.pbtn_refresh = new AVK_spr("",339,371,104,100,1);
  2168. this.sprite.addChild(this.pbtn_refresh.sprite);
  2169. /*that.EL ="pbtn_more";//more
  2170. this.pbtn_more = new AVK_spr("",258,421,78,75,1);
  2171. this.sprite.addChild(this.pbtn_more.sprite);*/
  2172. that.EL ="part_place";
  2173. this.part_place = new AVK_spr("",0,0,0,0,1);
  2174. this.sprite.addChild(this.part_place.sprite);
  2175. that.EL ="tutor";
  2176. this.tutor = new AVK_spr("",0,0,0,0,1);
  2177. this.sprite.addChild(this.tutor.sprite);
  2178. that.EL ="hand_center";
  2179. this.hand_center = new AVK_spr("",48,711,4,4,1);
  2180. this.sprite.addChild(this.hand_center.sprite);
  2181. that.EL ="hand";
  2182. this.hand = new AVK_spr("game_hand",42,705,81,141,1);
  2183. this.sprite.addChild(this.hand.sprite);
  2184. this.res_9.set_parent(this.back);
  2185. this.res_8.set_parent(this.back);
  2186. this.res_7.set_parent(this.back);
  2187. this.res_6.set_parent(this.back);
  2188. this.res_5.set_parent(this.back);
  2189. this.res_4.set_parent(this.back);
  2190. this.res_3.set_parent(this.back);
  2191. this.res_2.set_parent(this.back);
  2192. this.res_1.set_parent(this.back);
  2193. this.res_0.set_parent(this.back);
  2194. this.ready_0.set_parent(this.uppper);
  2195. this.ready_1.set_parent(this.uppper);
  2196. this.up_b.set_parent(this.uppper);
  2197. this.btn_no_snd.set_parent(this.gui_bar);
  2198. this.btn_snd.set_parent(this.gui_bar);
  2199. this.btn_close.set_parent(this.gui_bar);
  2200. this.l_0_pnt_0.set_parent(this.level_0);
  2201. this.l_0_pnt_1.set_parent(this.level_0);
  2202. this.l_0_pnt_2.set_parent(this.level_0);
  2203. this.l_0_pnt_3.set_parent(this.level_0);
  2204. this.l_0_pnt_4.set_parent(this.level_0);
  2205. this.l_0_pnt_5.set_parent(this.level_0);
  2206. this.l_0_pnt_6.set_parent(this.level_0);
  2207. this.l_0_pnt_7.set_parent(this.level_0);
  2208. this.l_0_pnt_8.set_parent(this.level_0);
  2209. this.l_0_pnt_9.set_parent(this.level_0);
  2210. this.l_0_pnt_10.set_parent(this.level_0);
  2211. this.l_0_pnt_11.set_parent(this.level_0);
  2212. this.l_0_pnt_12.set_parent(this.level_0);
  2213. this.l_0_pnt_13.set_parent(this.level_0);
  2214. this.l_0_pnt_14.set_parent(this.level_0);
  2215. this.l_0_pnt_15.set_parent(this.level_0);
  2216. this.l_0_pnt_16.set_parent(this.level_0);
  2217. this.l_0_pnt_17.set_parent(this.level_0);
  2218. this.l_0_pnt_18.set_parent(this.level_0);
  2219. this.l_1_pnt_0.set_parent(this.level_1);
  2220. this.l_1_pnt_1.set_parent(this.level_1);
  2221. this.l_1_pnt_2.set_parent(this.level_1);
  2222. this.l_1_pnt_3.set_parent(this.level_1);
  2223. this.l_1_pnt_4.set_parent(this.level_1);
  2224. this.l_1_pnt_5.set_parent(this.level_1);
  2225. this.l_1_pnt_6.set_parent(this.level_1);
  2226. this.l_1_pnt_7.set_parent(this.level_1);
  2227. this.l_1_pnt_8.set_parent(this.level_1);
  2228. this.l_1_pnt_9.set_parent(this.level_1);
  2229. this.l_1_pnt_10.set_parent(this.level_1);
  2230. this.l_1_pnt_11.set_parent(this.level_1);
  2231. this.l_1_pnt_12.set_parent(this.level_1);
  2232. this.l_1_pnt_13.set_parent(this.level_1);
  2233. this.l_1_pnt_14.set_parent(this.level_1);
  2234. this.l_1_pnt_15.set_parent(this.level_1);
  2235. this.l_1_pnt_16.set_parent(this.level_1);
  2236. this.l_1_pnt_17.set_parent(this.level_1);
  2237. this.l_2_pnt_0.set_parent(this.level_2);
  2238. this.l_2_pnt_1.set_parent(this.level_2);
  2239. this.l_2_pnt_2.set_parent(this.level_2);
  2240. this.l_2_pnt_3.set_parent(this.level_2);
  2241. this.l_2_pnt_4.set_parent(this.level_2);
  2242. this.l_2_pnt_5.set_parent(this.level_2);
  2243. this.l_2_pnt_6.set_parent(this.level_2);
  2244. this.l_2_pnt_7.set_parent(this.level_2);
  2245. this.l_2_pnt_8.set_parent(this.level_2);
  2246. this.l_2_pnt_9.set_parent(this.level_2);
  2247. this.l_2_pnt_10.set_parent(this.level_2);
  2248. this.l_2_pnt_11.set_parent(this.level_2);
  2249. this.l_2_pnt_12.set_parent(this.level_2);
  2250. this.l_2_pnt_13.set_parent(this.level_2);
  2251. this.l_2_pnt_14.set_parent(this.level_2);
  2252. this.l_2_pnt_15.set_parent(this.level_2);
  2253. this.l_2_pnt_16.set_parent(this.level_2);
  2254. this.l_2_pnt_17.set_parent(this.level_2);
  2255. this.l_2_pnt_18.set_parent(this.level_2);
  2256. this.l_2_pnt_19.set_parent(this.level_2);
  2257. this.l_2_pnt_20.set_parent(this.level_2);
  2258. this.l_2_pnt_21.set_parent(this.level_2);
  2259. this.l_2_pnt_22.set_parent(this.level_2);
  2260. this.l_2_pnt_23.set_parent(this.level_2);
  2261. this.l_2_pnt_24.set_parent(this.level_2);
  2262. this.l_2_pnt_25.set_parent(this.level_2);
  2263. this.l_2_pnt_26.set_parent(this.level_2);
  2264. this.l_2_pnt_27.set_parent(this.level_2);
  2265. this.l_2_pnt_28.set_parent(this.level_2);
  2266. this.l_2_pnt_29.set_parent(this.level_2);
  2267. this.l_2_pnt_30.set_parent(this.level_2);
  2268. this.l_2_pnt_31.set_parent(this.level_2);
  2269. this.l_2_pnt_32.set_parent(this.level_2);
  2270. this.l_2_pnt_33.set_parent(this.level_2);
  2271. this.l_2_pnt_34.set_parent(this.level_2);
  2272. this.l_2_pnt_35.set_parent(this.level_2);
  2273. this.l_3_pnt_0.set_parent(this.level_3);
  2274. this.l_3_pnt_1.set_parent(this.level_3);
  2275. this.l_3_pnt_2.set_parent(this.level_3);
  2276. this.l_3_pnt_3.set_parent(this.level_3);
  2277. this.l_3_pnt_4.set_parent(this.level_3);
  2278. this.l_3_pnt_5.set_parent(this.level_3);
  2279. this.l_3_pnt_6.set_parent(this.level_3);
  2280. this.l_3_pnt_7.set_parent(this.level_3);
  2281. this.l_3_pnt_8.set_parent(this.level_3);
  2282. this.l_3_pnt_9.set_parent(this.level_3);
  2283. this.l_3_pnt_10.set_parent(this.level_3);
  2284. this.l_3_pnt_11.set_parent(this.level_3);
  2285. this.l_3_pnt_12.set_parent(this.level_3);
  2286. this.l_3_pnt_13.set_parent(this.level_3);
  2287. this.l_3_pnt_14.set_parent(this.level_3);
  2288. this.l_3_pnt_15.set_parent(this.level_3);
  2289. this.l_3_pnt_16.set_parent(this.level_3);
  2290. this.l_3_pnt_17.set_parent(this.level_3);
  2291. this.l_3_pnt_18.set_parent(this.level_3);
  2292. this.l_3_pnt_19.set_parent(this.level_3);
  2293. this.l_3_pnt_20.set_parent(this.level_3);
  2294. this.l_3_pnt_21.set_parent(this.level_3);
  2295. this.l_3_pnt_22.set_parent(this.level_3);
  2296. this.l_3_pnt_23.set_parent(this.level_3);
  2297. this.l_3_pnt_24.set_parent(this.level_3);
  2298. this.l_3_pnt_25.set_parent(this.level_3);
  2299. this.l_3_pnt_26.set_parent(this.level_3);
  2300. this.l_3_pnt_27.set_parent(this.level_3);
  2301. this.l_3_pnt_28.set_parent(this.level_3);
  2302. this.l_3_pnt_29.set_parent(this.level_3);
  2303. this.l_3_pnt_30.set_parent(this.level_3);
  2304. this.l_3_pnt_31.set_parent(this.level_3);
  2305. this.l_3_pnt_32.set_parent(this.level_3);
  2306. this.l_3_pnt_33.set_parent(this.level_3);
  2307. this.l_3_pnt_34.set_parent(this.level_3);
  2308. this.l_3_pnt_35.set_parent(this.level_3);
  2309. this.l_3_pnt_36.set_parent(this.level_3);
  2310. this.l_3_pnt_37.set_parent(this.level_3);
  2311. this.l_3_pnt_38.set_parent(this.level_3);
  2312. this.l_4_pnt_0.set_parent(this.level_4);
  2313. this.l_4_pnt_1.set_parent(this.level_4);
  2314. this.l_4_pnt_2.set_parent(this.level_4);
  2315. this.l_4_pnt_3.set_parent(this.level_4);
  2316. this.l_4_pnt_4.set_parent(this.level_4);
  2317. this.l_4_pnt_5.set_parent(this.level_4);
  2318. this.l_4_pnt_6.set_parent(this.level_4);
  2319. this.l_4_pnt_7.set_parent(this.level_4);
  2320. this.l_4_pnt_8.set_parent(this.level_4);
  2321. this.l_4_pnt_9.set_parent(this.level_4);
  2322. this.l_4_pnt_10.set_parent(this.level_4);
  2323. this.l_4_pnt_11.set_parent(this.level_4);
  2324. this.l_4_pnt_12.set_parent(this.level_4);
  2325. this.l_4_pnt_13.set_parent(this.level_4);
  2326. this.l_4_pnt_14.set_parent(this.level_4);
  2327. this.l_4_pnt_15.set_parent(this.level_4);
  2328. this.l_4_pnt_16.set_parent(this.level_4);
  2329. this.l_4_pnt_17.set_parent(this.level_4);
  2330. this.l_4_pnt_18.set_parent(this.level_4);
  2331. this.l_4_pnt_19.set_parent(this.level_4);
  2332. this.l_4_pnt_20.set_parent(this.level_4);
  2333. this.l_4_pnt_21.set_parent(this.level_4);
  2334. this.l_4_pnt_22.set_parent(this.level_4);
  2335. this.l_4_pnt_23.set_parent(this.level_4);
  2336. this.l_4_pnt_24.set_parent(this.level_4);
  2337. this.l_4_pnt_25.set_parent(this.level_4);
  2338. this.l_4_pnt_26.set_parent(this.level_4);
  2339. this.l_4_pnt_27.set_parent(this.level_4);
  2340. this.l_4_pnt_28.set_parent(this.level_4);
  2341. this.l_4_pnt_29.set_parent(this.level_4);
  2342. this.l_4_pnt_30.set_parent(this.level_4);
  2343. this.l_4_pnt_31.set_parent(this.level_4);
  2344. this.l_4_pnt_32.set_parent(this.level_4);
  2345. this.l_4_pnt_33.set_parent(this.level_4);
  2346. this.l_4_pnt_34.set_parent(this.level_4);
  2347. this.l_4_pnt_35.set_parent(this.level_4);
  2348. this.l_4_pnt_36.set_parent(this.level_4);
  2349. this.l_4_pnt_37.set_parent(this.level_4);
  2350. this.l_4_pnt_38.set_parent(this.level_4);
  2351. this.l_4_pnt_39.set_parent(this.level_4);
  2352. this.l_4_pnt_40.set_parent(this.level_4);
  2353. this.l_4_pnt_41.set_parent(this.level_4);
  2354. this.l_4_pnt_42.set_parent(this.level_4);
  2355. this.l_5_pnt_0.set_parent(this.level_5);
  2356. this.l_5_pnt_1.set_parent(this.level_5);
  2357. this.l_5_pnt_2.set_parent(this.level_5);
  2358. this.l_5_pnt_3.set_parent(this.level_5);
  2359. this.l_5_pnt_4.set_parent(this.level_5);
  2360. this.l_5_pnt_5.set_parent(this.level_5);
  2361. this.l_5_pnt_6.set_parent(this.level_5);
  2362. this.l_5_pnt_7.set_parent(this.level_5);
  2363. this.l_5_pnt_8.set_parent(this.level_5);
  2364. this.l_5_pnt_9.set_parent(this.level_5);
  2365. this.l_5_pnt_10.set_parent(this.level_5);
  2366. this.l_5_pnt_11.set_parent(this.level_5);
  2367. this.l_5_pnt_12.set_parent(this.level_5);
  2368. this.l_5_pnt_13.set_parent(this.level_5);
  2369. this.l_5_pnt_14.set_parent(this.level_5);
  2370. this.l_5_pnt_15.set_parent(this.level_5);
  2371. this.l_5_pnt_16.set_parent(this.level_5);
  2372. this.l_5_pnt_17.set_parent(this.level_5);
  2373. this.l_5_pnt_18.set_parent(this.level_5);
  2374. this.l_5_pnt_19.set_parent(this.level_5);
  2375. this.l_5_pnt_20.set_parent(this.level_5);
  2376. this.l_5_pnt_21.set_parent(this.level_5);
  2377. this.l_5_pnt_22.set_parent(this.level_5);
  2378. this.l_5_pnt_23.set_parent(this.level_5);
  2379. this.l_5_pnt_24.set_parent(this.level_5);
  2380. this.l_5_pnt_25.set_parent(this.level_5);
  2381. this.l_5_pnt_26.set_parent(this.level_5);
  2382. this.l_5_pnt_27.set_parent(this.level_5);
  2383. this.l_5_pnt_28.set_parent(this.level_5);
  2384. this.l_5_pnt_29.set_parent(this.level_5);
  2385. this.l_5_pnt_30.set_parent(this.level_5);
  2386. this.l_5_pnt_31.set_parent(this.level_5);
  2387. this.l_5_pnt_32.set_parent(this.level_5);
  2388. this.l_5_pnt_33.set_parent(this.level_5);
  2389. this.l_6_pnt_0.set_parent(this.level_6);
  2390. this.l_6_pnt_1.set_parent(this.level_6);
  2391. this.l_6_pnt_2.set_parent(this.level_6);
  2392. this.l_6_pnt_3.set_parent(this.level_6);
  2393. this.l_6_pnt_4.set_parent(this.level_6);
  2394. this.l_6_pnt_5.set_parent(this.level_6);
  2395. this.l_6_pnt_6.set_parent(this.level_6);
  2396. this.l_6_pnt_7.set_parent(this.level_6);
  2397. this.l_6_pnt_8.set_parent(this.level_6);
  2398. this.l_6_pnt_9.set_parent(this.level_6);
  2399. this.l_6_pnt_10.set_parent(this.level_6);
  2400. this.l_6_pnt_11.set_parent(this.level_6);
  2401. this.l_6_pnt_12.set_parent(this.level_6);
  2402. this.l_6_pnt_13.set_parent(this.level_6);
  2403. this.l_6_pnt_14.set_parent(this.level_6);
  2404. this.l_6_pnt_15.set_parent(this.level_6);
  2405. this.l_6_pnt_16.set_parent(this.level_6);
  2406. this.l_6_pnt_17.set_parent(this.level_6);
  2407. this.l_6_pnt_18.set_parent(this.level_6);
  2408. this.l_6_pnt_19.set_parent(this.level_6);
  2409. this.l_7_pnt_0.set_parent(this.level_7);
  2410. this.l_7_pnt_1.set_parent(this.level_7);
  2411. this.l_7_pnt_2.set_parent(this.level_7);
  2412. this.l_7_pnt_3.set_parent(this.level_7);
  2413. this.l_7_pnt_4.set_parent(this.level_7);
  2414. this.l_7_pnt_5.set_parent(this.level_7);
  2415. this.l_7_pnt_6.set_parent(this.level_7);
  2416. this.l_7_pnt_7.set_parent(this.level_7);
  2417. this.l_7_pnt_8.set_parent(this.level_7);
  2418. this.l_7_pnt_9.set_parent(this.level_7);
  2419. this.l_7_pnt_10.set_parent(this.level_7);
  2420. this.l_7_pnt_11.set_parent(this.level_7);
  2421. this.l_7_pnt_12.set_parent(this.level_7);
  2422. this.l_7_pnt_13.set_parent(this.level_7);
  2423. this.l_7_pnt_14.set_parent(this.level_7);
  2424. this.l_7_pnt_15.set_parent(this.level_7);
  2425. this.l_7_pnt_16.set_parent(this.level_7);
  2426. this.l_7_pnt_17.set_parent(this.level_7);
  2427. this.l_7_pnt_18.set_parent(this.level_7);
  2428. this.l_7_pnt_19.set_parent(this.level_7);
  2429. this.l_7_pnt_20.set_parent(this.level_7);
  2430. this.l_7_pnt_21.set_parent(this.level_7);
  2431. this.l_7_pnt_22.set_parent(this.level_7);
  2432. this.l_7_pnt_23.set_parent(this.level_7);
  2433. this.l_7_pnt_24.set_parent(this.level_7);
  2434. this.l_7_pnt_25.set_parent(this.level_7);
  2435. this.l_7_pnt_26.set_parent(this.level_7);
  2436. this.l_7_pnt_27.set_parent(this.level_7);
  2437. this.l_7_pnt_28.set_parent(this.level_7);
  2438. this.l_7_pnt_29.set_parent(this.level_7);
  2439. this.l_7_pnt_30.set_parent(this.level_7);
  2440. this.l_7_pnt_31.set_parent(this.level_7);
  2441. this.l_7_pnt_32.set_parent(this.level_7);
  2442. this.l_7_pnt_33.set_parent(this.level_7);
  2443. this.l_7_pnt_34.set_parent(this.level_7);
  2444. this.l_7_pnt_35.set_parent(this.level_7);
  2445. this.l_7_pnt_36.set_parent(this.level_7);
  2446. this.l_7_pnt_37.set_parent(this.level_7);
  2447. this.l_8_pnt_0.set_parent(this.level_8);
  2448. this.l_8_pnt_1.set_parent(this.level_8);
  2449. this.l_8_pnt_2.set_parent(this.level_8);
  2450. this.l_8_pnt_3.set_parent(this.level_8);
  2451. this.l_8_pnt_4.set_parent(this.level_8);
  2452. this.l_8_pnt_5.set_parent(this.level_8);
  2453. this.l_8_pnt_6.set_parent(this.level_8);
  2454. this.l_8_pnt_7.set_parent(this.level_8);
  2455. this.l_8_pnt_8.set_parent(this.level_8);
  2456. this.l_8_pnt_9.set_parent(this.level_8);
  2457. this.l_8_pnt_10.set_parent(this.level_8);
  2458. this.l_8_pnt_11.set_parent(this.level_8);
  2459. this.l_8_pnt_12.set_parent(this.level_8);
  2460. this.l_8_pnt_13.set_parent(this.level_8);
  2461. this.l_8_pnt_14.set_parent(this.level_8);
  2462. this.l_8_pnt_15.set_parent(this.level_8);
  2463. this.l_8_pnt_16.set_parent(this.level_8);
  2464. this.l_8_pnt_17.set_parent(this.level_8);
  2465. this.l_8_pnt_18.set_parent(this.level_8);
  2466. this.l_8_pnt_19.set_parent(this.level_8);
  2467. this.l_8_pnt_20.set_parent(this.level_8);
  2468. this.l_8_pnt_21.set_parent(this.level_8);
  2469. this.l_8_pnt_22.set_parent(this.level_8);
  2470. this.l_8_pnt_23.set_parent(this.level_8);
  2471. this.l_8_pnt_24.set_parent(this.level_8);
  2472. this.l_8_pnt_25.set_parent(this.level_8);
  2473. this.l_8_pnt_26.set_parent(this.level_8);
  2474. this.l_8_pnt_27.set_parent(this.level_8);
  2475. this.l_8_pnt_28.set_parent(this.level_8);
  2476. this.l_8_pnt_29.set_parent(this.level_8);
  2477. this.l_8_pnt_30.set_parent(this.level_8);
  2478. this.l_9_pnt_0.set_parent(this.level_9);
  2479. this.l_9_pnt_1.set_parent(this.level_9);
  2480. this.l_9_pnt_2.set_parent(this.level_9);
  2481. this.l_9_pnt_3.set_parent(this.level_9);
  2482. this.l_9_pnt_4.set_parent(this.level_9);
  2483. this.l_9_pnt_5.set_parent(this.level_9);
  2484. this.l_9_pnt_6.set_parent(this.level_9);
  2485. this.l_9_pnt_7.set_parent(this.level_9);
  2486. this.l_9_pnt_8.set_parent(this.level_9);
  2487. this.l_9_pnt_9.set_parent(this.level_9);
  2488. this.l_9_pnt_10.set_parent(this.level_9);
  2489. this.l_9_pnt_11.set_parent(this.level_9);
  2490. this.l_9_pnt_12.set_parent(this.level_9);
  2491. this.l_9_pnt_13.set_parent(this.level_9);
  2492. this.l_9_pnt_14.set_parent(this.level_9);
  2493. this.l_9_pnt_15.set_parent(this.level_9);
  2494. this.l_9_pnt_16.set_parent(this.level_9);
  2495. this.l_9_pnt_17.set_parent(this.level_9);
  2496. this.l_9_pnt_18.set_parent(this.level_9);
  2497. this.l_9_pnt_19.set_parent(this.level_9);
  2498. this.l_9_pnt_20.set_parent(this.level_9);
  2499. this.l_9_pnt_21.set_parent(this.level_9);
  2500. this.win_wnd_back.set_parent(this.win_wnd);
  2501. this.star_0.set_parent(this.win_wnd);
  2502. this.star_1.set_parent(this.win_wnd);
  2503. this.star_2.set_parent(this.win_wnd);
  2504. this.btn_menu_win.set_parent(this.win_wnd);
  2505. this.btn_refresh_win.set_parent(this.win_wnd);
  2506. this.btn_next.set_parent(this.win_wnd);
  2507. //this.btn_more.set_parent(this.win_wnd );
  2508. this.pbtn_menu.set_parent(this.loose_wnd);
  2509. this.pbtn_refresh.set_parent(this.loose_wnd);
  2510. //this.pbtn_more.set_parent(this.loose_wnd);
  2511. this.hand_center.set_parent(this.tutor);
  2512. this.hand.set_parent(this.hand_center);
  2513. }
  2514. this.AVK_GAME=AVK_GAME;
  2515. function AVK_BALLS()
  2516. {
  2517. this.sprite = new PIXI.DisplayObjectContainer();
  2518. this.add=function(el)
  2519. {
  2520. this.sprite.addChild(el.sprite);
  2521. }
  2522. that.GUI.addChild(this.sprite);
  2523. this.sprite.visible = false;
  2524. that.EL ="b_4";
  2525. this.b_4 = new AVK_spr("balls_b_4",0,0,36,36,120);
  2526. this.sprite.addChild(this.b_4.sprite);
  2527. that.EL ="b_3";
  2528. this.b_3 = new AVK_spr("balls_b_3",0,0,36,36,120);
  2529. this.sprite.addChild(this.b_3.sprite);
  2530. that.EL ="b_2";
  2531. this.b_2 = new AVK_spr("balls_b_2",0,0,36,36,120);
  2532. this.sprite.addChild(this.b_2.sprite);
  2533. that.EL ="b_1";
  2534. this.b_1 = new AVK_spr("balls_b_1",0,0,36,36,120);
  2535. this.sprite.addChild(this.b_1.sprite);
  2536. that.EL ="b_0";
  2537. this.b_0 = new AVK_spr("balls_b_0",0,0,36,36,120);
  2538. this.sprite.addChild(this.b_0.sprite);
  2539. that.EL ="l";
  2540. this.l = new AVK_spr("balls_l",0,0,36,36,24);
  2541. this.sprite.addChild(this.l.sprite);
  2542. that.EL ="shadow";
  2543. this.shadow = new AVK_spr("balls_shadow",0,0,36,36,1);
  2544. this.sprite.addChild(this.shadow.sprite);
  2545. that.EL ="star_0";
  2546. this.star_0 = new AVK_spr("balls_star_0",0,0,35,36,1);
  2547. this.sprite.addChild(this.star_0.sprite);
  2548. that.EL ="star_1";
  2549. this.star_1 = new AVK_spr("balls_star_1",0,0,35,36,1);
  2550. this.sprite.addChild(this.star_1.sprite);
  2551. that.EL ="star_2";
  2552. this.star_2 = new AVK_spr("balls_star_2",0,0,35,36,1);
  2553. this.sprite.addChild(this.star_2.sprite);
  2554. that.EL ="star_3";
  2555. this.star_3 = new AVK_spr("balls_star_3",0,0,35,36,1);
  2556. this.sprite.addChild(this.star_3.sprite);
  2557. that.EL ="star_4";
  2558. this.star_4 = new AVK_spr("balls_star_4",0,0,35,36,1);
  2559. this.sprite.addChild(this.star_4.sprite);
  2560. that.EL ="deleted";
  2561. this.deleted = new AVK_spr("balls_deleted",1,1,34,34,1);
  2562. this.sprite.addChild(this.deleted.sprite);
  2563. }
  2564. this.AVK_BALLS=AVK_BALLS;
  2565. function AVK_LIGHT()
  2566. {
  2567. this.sprite = new PIXI.DisplayObjectContainer();
  2568. this.add=function(el)
  2569. {
  2570. this.sprite.addChild(el.sprite);
  2571. }
  2572. that.GUI.addChild(this.sprite);
  2573. this.sprite.visible = false;
  2574. that.EL = "react";
  2575. this.react = new AVK_fi_react("",0,0,19,86,1);
  2576. this.sprite.addChild(this.react.sprite);
  2577. }
  2578. this.AVK_LIGHT=AVK_LIGHT;
  2579. function AVK_fi_react(pic,x,y,w,h,columns)
  2580. {
  2581. this.add=function (el)
  2582. {
  2583. this.sprite.addChild(el.sprite);
  2584. }
  2585. var mem=[pic,x,y,w,h,columns];
  2586. this.make_copy = function()
  2587. {
  2588. that.WND = this.WND;
  2589. that.EL = this.EL;
  2590. that.ID = this.ID+1;
  2591. return new AVK_fi_react(mem[0],mem[1],mem[2],mem[3],mem[4],mem[5]);
  2592. }
  2593. this.uni_width = w;
  2594. this.uni_height = h;
  2595. this.sprite = new PIXI.DisplayObjectContainer();
  2596. that.GUI.addChild(this.sprite);
  2597. this.WND = that.WND;
  2598. this.EL = that.EL;
  2599. this.ID = that.ID;
  2600. that.EL ="reaction";
  2601. this.reaction = new AVK_spr("light_reaction",0,0,20,86,6);
  2602. this.sprite.addChild(this.reaction.sprite);
  2603. this.sprite.position.x = x;
  2604. this.sprite.position.y = y;
  2605. this.set_parent = function(prnt)
  2606. {
  2607. prnt.sprite.addChild(this.sprite);
  2608. var p = this.sprite;
  2609. var x = 0;
  2610. var y = 0;
  2611. while(p = p.parent)
  2612. {
  2613. x += p.position.x;
  2614. y += p.position.y;
  2615. }
  2616. this.sprite.position.x -= x;
  2617. this.sprite.position.y -= y;
  2618. }
  2619. }
  2620. this.AVK_fi_react=AVK_fi_react;
  2621. function SHEET_DATA()
  2622. {
  2623. this.levels=[{id:"0",level:0,waves:10,len:13,colors:4,progress:2500,r_min:3,r_max:3,mul:0.6,t1:500,t2:750,t3:1000},{id:"1",level:1,waves:12,len:14,colors:4,progress:2000,r_min:2,r_max:3,mul:0.65,t1:4000,t2:4500,t3:5000},{id:"2",level:2,waves:12,len:16,colors:4,progress:1500,r_min:2,r_max:2,mul:0.7,t1:250,t2:500,t3:750},{id:"3",level:0,waves:14,len:18,colors:4,progress:1000,r_min:1,r_max:2,mul:0.75,t1:250,t2:500,t3:750},{id:"4",level:3,waves:16,len:20,colors:4,progress:1600,r_min:2,r_max:2,mul:0.8,t1:250,t2:500,t3:750},{id:"5",level:4,waves:16,len:22,colors:4,progress:1800,r_min:2,r_max:3,mul:0.85,t1:250,t2:500,t3:750},{id:"6",level:1,waves:18,len:24,colors:4,progress:2000,r_min:1,r_max:2,mul:0.9,t1:250,t2:500,t3:750},{id:"7",level:5,waves:18,len:26,colors:4,progress:1800,r_min:2,r_max:2,mul:0.95,t1:250,t2:500,t3:750},{id:"8",level:6,waves:18,len:28,colors:4,progress:1600,r_min:2,r_max:4,mul:1,t1:250,t2:500,t3:750},{id:"9",level:2,waves:20,len:30,colors:4,progress:1400,r_min:3,r_max:3,mul:1,t1:250,t2:500,t3:750},{id:"10",level:7,waves:20,len:32,colors:4,progress:1200,r_min:2,r_max:2,mul:1,t1:250,t2:500,t3:750},{id:"11",level:8,waves:20,len:34,colors:4,progress:1000,r_min:2,r_max:2,mul:1,t1:250,t2:500,t3:750},{id:"12",level:3,waves:22,len:36,colors:4,progress:1200,r_min:2,r_max:2,mul:1,t1:250,t2:500,t3:750},{id:"13",level:4,waves:22,len:38,colors:4,progress:1400,r_min:2,r_max:2,mul:1,t1:250,t2:500,t3:750},{id:"14",level:5,waves:22,len:40,colors:4,progress:1600,r_min:2,r_max:2,mul:1,t1:250,t2:500,t3:750},{id:"15",level:6,waves:24,len:42,colors:4,progress:1800,r_min:2,r_max:2,mul:1,t1:250,t2:500,t3:750},{id:"16",level:7,waves:24,len:44,colors:5,progress:2000,r_min:2,r_max:2,mul:1,t1:250,t2:500,t3:750},{id:"17",level:8,waves:24,len:46,colors:5,progress:2200,r_min:1,r_max:1,mul:1,t1:250,t2:500,t3:750},{id:"18",level:9,waves:24,len:48,colors:5,progress:2000,r_min:2,r_max:2,mul:1,t1:250,t2:500,t3:750}];
  2624. this.levels.id = false;
  2625. this.levels.level = false;
  2626. this.levels.waves = false;
  2627. this.levels.len = false;
  2628. this.levels.colors = false;
  2629. this.levels.progress = false;
  2630. this.levels.r_min = false;
  2631. this.levels.r_max = false;
  2632. this.levels.mul = false;
  2633. this.levels.t1 = false;
  2634. this.levels.t2 = false;
  2635. this.levels.t3 = false;
  2636. this.gui=[];
  2637. this.gui.id = false;
  2638. this.gui.element = false;
  2639. this.gui.val = true;
  2640. this.points=[{id:"0",level:0,pnt:0,enabled:1},{id:"1",level:0,pnt:1,enabled:1},{id:"2",level:0,pnt:2,enabled:1},{id:"3",level:0,pnt:3,enabled:1},{id:"4",level:0,pnt:4,enabled:1},{id:"5",level:0,pnt:5,enabled:1},{id:"6",level:0,pnt:6,enabled:1},{id:"7",level:0,pnt:7,enabled:1},{id:"8",level:0,pnt:8,enabled:1},{id:"9",level:0,pnt:9,enabled:1},{id:"10",level:0,pnt:10,enabled:1},{id:"11",level:0,pnt:11,enabled:1},{id:"12",level:0,pnt:12,enabled:1},{id:"13",level:0,pnt:13,enabled:1},{id:"14",level:0,pnt:14,enabled:1},{id:"15",level:0,pnt:15,enabled:1},{id:"16",level:0,pnt:16,enabled:1},{id:"17",level:0,pnt:17,enabled:1},{id:"18",level:0,pnt:18,enabled:1},{id:"19",level:1,pnt:0,enabled:1},{id:"20",level:1,pnt:1,enabled:1},{id:"21",level:1,pnt:2,enabled:1},{id:"22",level:1,pnt:3,enabled:1},{id:"23",level:1,pnt:4,enabled:1},{id:"24",level:1,pnt:5,enabled:1},{id:"25",level:1,pnt:6,enabled:1},{id:"26",level:1,pnt:7,enabled:1},{id:"27",level:1,pnt:8,enabled:1},{id:"28",level:1,pnt:9,enabled:1},{id:"29",level:1,pnt:10,enabled:1},{id:"30",level:1,pnt:11,enabled:1},{id:"31",level:1,pnt:12,enabled:1},{id:"32",level:1,pnt:13,enabled:1},{id:"33",level:1,pnt:14,enabled:1},{id:"34",level:1,pnt:15,enabled:1},{id:"35",level:1,pnt:16,enabled:1},{id:"36",level:1,pnt:17,enabled:1},{id:"37",level:2,pnt:0,enabled:1},{id:"38",level:2,pnt:1,enabled:1},{id:"39",level:2,pnt:2,enabled:1},{id:"40",level:2,pnt:3,enabled:1},{id:"41",level:2,pnt:4,enabled:1},{id:"42",level:2,pnt:5,enabled:1},{id:"43",level:2,pnt:6,enabled:1},{id:"44",level:2,pnt:7,enabled:1},{id:"45",level:2,pnt:8,enabled:1},{id:"46",level:2,pnt:9,enabled:1},{id:"47",level:2,pnt:10,enabled:1},{id:"48",level:2,pnt:11,enabled:1},{id:"49",level:2,pnt:12,enabled:1},{id:"50",level:2,pnt:13,enabled:1},{id:"51",level:2,pnt:14,enabled:1},{id:"52",level:2,pnt:15,enabled:1},{id:"53",level:2,pnt:16,enabled:1},{id:"54",level:2,pnt:17,enabled:1},{id:"55",level:2,pnt:18,enabled:1},{id:"56",level:2,pnt:19,enabled:1},{id:"57",level:2,pnt:20,enabled:1},{id:"58",level:2,pnt:21,enabled:1},{id:"59",level:2,pnt:22,enabled:1},{id:"60",level:2,pnt:23,enabled:1},{id:"61",level:2,pnt:24,enabled:1},{id:"62",level:2,pnt:25,enabled:1},{id:"63",level:2,pnt:26,enabled:1},{id:"64",level:2,pnt:27,enabled:1},{id:"65",level:2,pnt:28,enabled:1},{id:"66",level:2,pnt:29,enabled:1},{id:"67",level:2,pnt:30,enabled:1},{id:"68",level:2,pnt:31,enabled:1},{id:"69",level:2,pnt:32,enabled:1},{id:"70",level:2,pnt:33,enabled:1},{id:"71",level:2,pnt:34,enabled:1},{id:"72",level:2,pnt:35,enabled:1},{id:"73",level:3,pnt:0,enabled:1},{id:"74",level:3,pnt:1,enabled:1},{id:"75",level:3,pnt:2,enabled:0},{id:"76",level:3,pnt:3,enabled:1},{id:"77",level:3,pnt:4,enabled:1},{id:"78",level:3,pnt:5,enabled:1},{id:"79",level:3,pnt:6,enabled:1},{id:"80",level:3,pnt:7,enabled:1},{id:"81",level:3,pnt:8,enabled:1},{id:"82",level:3,pnt:9,enabled:1},{id:"83",level:3,pnt:10,enabled:1},{id:"84",level:3,pnt:11,enabled:1},{id:"85",level:3,pnt:12,enabled:1},{id:"86",level:3,pnt:13,enabled:1},{id:"87",level:3,pnt:14,enabled:0},{id:"88",level:3,pnt:15,enabled:1},{id:"89",level:3,pnt:16,enabled:1},{id:"90",level:3,pnt:17,enabled:1},{id:"91",level:3,pnt:18,enabled:1},{id:"92",level:3,pnt:19,enabled:1},{id:"93",level:3,pnt:20,enabled:1},{id:"94",level:3,pnt:21,enabled:1},{id:"95",level:3,pnt:22,enabled:1},{id:"96",level:3,pnt:23,enabled:1},{id:"97",level:3,pnt:24,enabled:1},{id:"98",level:3,pnt:25,enabled:1},{id:"99",level:3,pnt:26,enabled:0},{id:"100",level:3,pnt:27,enabled:1},{id:"101",level:3,pnt:28,enabled:1},{id:"102",level:3,pnt:29,enabled:1},{id:"103",level:3,pnt:30,enabled:1},{id:"104",level:3,pnt:31,enabled:1},{id:"105",level:3,pnt:32,enabled:1},{id:"106",level:3,pnt:33,enabled:1},{id:"107",level:3,pnt:34,enabled:1},{id:"108",level:3,pnt:35,enabled:1},{id:"109",level:3,pnt:36,enabled:1},{id:"110",level:3,pnt:37,enabled:1},{id:"111",level:3,pnt:38,enabled:1},{id:"112",level:4,pnt:0,enabled:1},{id:"113",level:4,pnt:1,enabled:1},{id:"114",level:4,pnt:2,enabled:1},{id:"115",level:4,pnt:3,enabled:1},{id:"116",level:4,pnt:4,enabled:1},{id:"117",level:4,pnt:5,enabled:1},{id:"118",level:4,pnt:6,enabled:1},{id:"119",level:4,pnt:7,enabled:1},{id:"120",level:4,pnt:8,enabled:1},{id:"121",level:4,pnt:9,enabled:1},{id:"122",level:4,pnt:10,enabled:1},{id:"123",level:4,pnt:11,enabled:1},{id:"124",level:4,pnt:12,enabled:1},{id:"125",level:4,pnt:13,enabled:1},{id:"126",level:4,pnt:14,enabled:1},{id:"127",level:4,pnt:15,enabled:1},{id:"128",level:4,pnt:16,enabled:1},{id:"129",level:4,pnt:17,enabled:1},{id:"130",level:4,pnt:18,enabled:1},{id:"131",level:4,pnt:19,enabled:1},{id:"132",level:4,pnt:20,enabled:1},{id:"133",level:4,pnt:21,enabled:1},{id:"134",level:4,pnt:22,enabled:1},{id:"135",level:4,pnt:23,enabled:1},{id:"136",level:4,pnt:24,enabled:1},{id:"137",level:4,pnt:25,enabled:1},{id:"138",level:4,pnt:26,enabled:1},{id:"139",level:4,pnt:27,enabled:1},{id:"140",level:4,pnt:28,enabled:1},{id:"141",level:4,pnt:29,enabled:1},{id:"142",level:4,pnt:30,enabled:1},{id:"143",level:4,pnt:31,enabled:1},{id:"144",level:4,pnt:32,enabled:1},{id:"145",level:4,pnt:33,enabled:1},{id:"146",level:4,pnt:34,enabled:1},{id:"147",level:4,pnt:35,enabled:1},{id:"148",level:4,pnt:36,enabled:1},{id:"149",level:4,pnt:37,enabled:1},{id:"150",level:4,pnt:38,enabled:1},{id:"151",level:4,pnt:39,enabled:1},{id:"152",level:4,pnt:40,enabled:1},{id:"153",level:4,pnt:41,enabled:1},{id:"154",level:4,pnt:42,enabled:1},{id:"155",level:5,pnt:0,enabled:1},{id:"156",level:5,pnt:1,enabled:1},{id:"157",level:5,pnt:2,enabled:1},{id:"158",level:5,pnt:3,enabled:1},{id:"159",level:5,pnt:4,enabled:1},{id:"160",level:5,pnt:5,enabled:1},{id:"161",level:5,pnt:6,enabled:1},{id:"162",level:5,pnt:7,enabled:1},{id:"163",level:5,pnt:8,enabled:1},{id:"164",level:5,pnt:9,enabled:1},{id:"165",level:5,pnt:10,enabled:1},{id:"166",level:5,pnt:11,enabled:1},{id:"167",level:5,pnt:12,enabled:1},{id:"168",level:5,pnt:13,enabled:1},{id:"169",level:5,pnt:14,enabled:1},{id:"170",level:5,pnt:15,enabled:1},{id:"171",level:5,pnt:16,enabled:1},{id:"172",level:5,pnt:17,enabled:1},{id:"173",level:5,pnt:18,enabled:1},{id:"174",level:5,pnt:19,enabled:1},{id:"175",level:5,pnt:20,enabled:1},{id:"176",level:5,pnt:21,enabled:1},{id:"177",level:5,pnt:22,enabled:1},{id:"178",level:5,pnt:23,enabled:1},{id:"179",level:5,pnt:24,enabled:1},{id:"180",level:5,pnt:25,enabled:1},{id:"181",level:5,pnt:26,enabled:1},{id:"182",level:5,pnt:27,enabled:1},{id:"183",level:5,pnt:28,enabled:1},{id:"184",level:5,pnt:29,enabled:1},{id:"185",level:5,pnt:30,enabled:1},{id:"186",level:5,pnt:31,enabled:1},{id:"187",level:5,pnt:32,enabled:1},{id:"188",level:5,pnt:33,enabled:1},{id:"189",level:6,pnt:0,enabled:1},{id:"190",level:6,pnt:1,enabled:1},{id:"191",level:6,pnt:2,enabled:1},{id:"192",level:6,pnt:3,enabled:1},{id:"193",level:6,pnt:4,enabled:1},{id:"194",level:6,pnt:5,enabled:1},{id:"195",level:6,pnt:6,enabled:1},{id:"196",level:6,pnt:7,enabled:1},{id:"197",level:6,pnt:8,enabled:1},{id:"198",level:6,pnt:9,enabled:1},{id:"199",level:6,pnt:10,enabled:0},{id:"200",level:6,pnt:11,enabled:0},{id:"201",level:6,pnt:12,enabled:0},{id:"202",level:6,pnt:13,enabled:0},{id:"203",level:6,pnt:14,enabled:0},{id:"204",level:6,pnt:15,enabled:1},{id:"205",level:6,pnt:16,enabled:1},{id:"206",level:6,pnt:17,enabled:1},{id:"207",level:6,pnt:18,enabled:1},{id:"208",level:6,pnt:19,enabled:1},{id:"209",level:7,pnt:0,enabled:1},{id:"210",level:7,pnt:1,enabled:1},{id:"211",level:7,pnt:2,enabled:1},{id:"212",level:7,pnt:3,enabled:1},{id:"213",level:7,pnt:4,enabled:0},{id:"214",level:7,pnt:5,enabled:0},{id:"215",level:7,pnt:6,enabled:1},{id:"216",level:7,pnt:7,enabled:1},{id:"217",level:7,pnt:8,enabled:1},{id:"218",level:7,pnt:9,enabled:1},{id:"219",level:7,pnt:10,enabled:1},{id:"220",level:7,pnt:11,enabled:1},{id:"221",level:7,pnt:12,enabled:1},{id:"222",level:7,pnt:13,enabled:1},{id:"223",level:7,pnt:14,enabled:1},{id:"224",level:7,pnt:15,enabled:1},{id:"225",level:7,pnt:16,enabled:1},{id:"226",level:7,pnt:17,enabled:1},{id:"227",level:7,pnt:18,enabled:1},{id:"228",level:7,pnt:19,enabled:1},{id:"229",level:7,pnt:20,enabled:1},{id:"230",level:7,pnt:21,enabled:1},{id:"231",level:7,pnt:22,enabled:1},{id:"232",level:7,pnt:23,enabled:1},{id:"233",level:7,pnt:24,enabled:1},{id:"234",level:7,pnt:25,enabled:1},{id:"235",level:7,pnt:26,enabled:1},{id:"236",level:7,pnt:27,enabled:0},{id:"237",level:7,pnt:28,enabled:0},{id:"238",level:7,pnt:29,enabled:1},{id:"239",level:7,pnt:30,enabled:1},{id:"240",level:7,pnt:31,enabled:1},{id:"241",level:7,pnt:32,enabled:1},{id:"242",level:7,pnt:33,enabled:1},{id:"243",level:7,pnt:34,enabled:1},{id:"244",level:7,pnt:35,enabled:1},{id:"245",level:7,pnt:36,enabled:1},{id:"246",level:7,pnt:37,enabled:1},{id:"247",level:8,pnt:0,enabled:1},{id:"248",level:8,pnt:1,enabled:1},{id:"249",level:8,pnt:2,enabled:1},{id:"250",level:8,pnt:3,enabled:1},{id:"251",level:8,pnt:4,enabled:1},{id:"252",level:8,pnt:5,enabled:1},{id:"253",level:8,pnt:6,enabled:1},{id:"254",level:8,pnt:7,enabled:1},{id:"255",level:8,pnt:8,enabled:1},{id:"256",level:8,pnt:9,enabled:1},{id:"257",level:8,pnt:10,enabled:1},{id:"258",level:8,pnt:11,enabled:1},{id:"259",level:8,pnt:12,enabled:1},{id:"260",level:8,pnt:13,enabled:1},{id:"261",level:8,pnt:14,enabled:1},{id:"262",level:8,pnt:15,enabled:1},{id:"263",level:8,pnt:16,enabled:1},{id:"264",level:8,pnt:17,enabled:1},{id:"265",level:8,pnt:18,enabled:1},{id:"266",level:8,pnt:19,enabled:1},{id:"267",level:8,pnt:20,enabled:1},{id:"268",level:8,pnt:21,enabled:1},{id:"269",level:8,pnt:22,enabled:1},{id:"270",level:8,pnt:23,enabled:1},{id:"271",level:8,pnt:24,enabled:0},{id:"272",level:8,pnt:25,enabled:0},{id:"273",level:8,pnt:26,enabled:0},{id:"274",level:8,pnt:27,enabled:1},{id:"275",level:8,pnt:28,enabled:1},{id:"276",level:8,pnt:29,enabled:1},{id:"277",level:8,pnt:30,enabled:1},{id:"278",level:9,pnt:0,enabled:1},{id:"279",level:9,pnt:1,enabled:1},{id:"280",level:9,pnt:2,enabled:1},{id:"281",level:9,pnt:3,enabled:1},{id:"282",level:9,pnt:4,enabled:1},{id:"283",level:9,pnt:5,enabled:1},{id:"284",level:9,pnt:6,enabled:1},{id:"285",level:9,pnt:7,enabled:1},{id:"286",level:9,pnt:8,enabled:0},{id:"287",level:9,pnt:9,enabled:0},{id:"288",level:9,pnt:10,enabled:1},{id:"289",level:9,pnt:11,enabled:1},{id:"290",level:9,pnt:12,enabled:1},{id:"291",level:9,pnt:13,enabled:1},{id:"292",level:9,pnt:14,enabled:1},{id:"293",level:9,pnt:15,enabled:1},{id:"294",level:9,pnt:16,enabled:1},{id:"295",level:9,pnt:17,enabled:1},{id:"296",level:9,pnt:18,enabled:1},{id:"297",level:9,pnt:19,enabled:0},{id:"298",level:9,pnt:20,enabled:1},{id:"299",level:9,pnt:21,enabled:1}];
  2641. this.points.id = false;
  2642. this.points.level = false;
  2643. this.points.pnt = false;
  2644. this.points.enabled = false;
  2645. this.str=[];
  2646. this.str.id = false;
  2647. this.str.txt = true;
  2648. this.relations=[];
  2649. this.relations.id = false;
  2650. this.relations.rel_id = false;
  2651. }
  2652. this.DATA=new SHEET_DATA();
  2653. this.LOCAL={};
  2654. this.get = function(tbl,clmn,ind)
  2655. {
  2656. if (that.DATA[tbl][clmn])
  2657. {
  2658. return that.LOCAL[that.DATA[tbl][ind][clmn]][that.LANGUAGE];
  2659. }else
  2660. {
  2661. return that.DATA[tbl][ind][clmn];
  2662. }
  2663. }
  2664. this.filtered = function(tbl,clmn,ind,fclmn,f)
  2665. {
  2666. var cnt=0;
  2667. for (var i=0; i<that.DATA[tbl].length;i++)
  2668. {
  2669. if (that.DATA[tbl][i][fclmn]==f)
  2670. {
  2671. if (cnt==ind)
  2672. return that.get(tbl,clmn,i);
  2673. else cnt++;
  2674. }
  2675. }
  2676. return null;
  2677. }
  2678. this.find = function(tbl,clmn,f)
  2679. {
  2680. for (var i=0; i<that.DATA[tbl].length;i++)
  2681. {
  2682. if (that.DATA[tbl][i][clmn]==f)
  2683. {
  2684. return i;
  2685. }
  2686. }
  2687. return -1;
  2688. }
  2689. function AVK_ACT()
  2690. {
  2691. var act;
  2692. var work=[];
  2693. this.lin = function(b,e,p)
  2694. {
  2695. return b+(e-b)*p;
  2696. }
  2697. this.sqrt = function(b,e,p)
  2698. {
  2699. return this.lin(b,e,Math.sqrt(p));
  2700. }
  2701. this.sin_plus = function(b,e,p)
  2702. {
  2703. return 1+0.05*Math.sin(this.lin(b,e,p));
  2704. }
  2705. this.sin = function(b,e,p)
  2706. {
  2707. return Math.sin(this.lin(b,e,p));
  2708. }
  2709. this.n2 = function(b,e,p)
  2710. {
  2711. return this.lin(b, e, Math.pow(p, 2));
  2712. }
  2713. this.simple = function(b,e,p)
  2714. {
  2715. return e;
  2716. }
  2717. this.simple_min = function(b,e,p)
  2718. {
  2719. if (p>0.5)
  2720. return e;
  2721. else
  2722. return b;
  2723. }
  2724. this.simple_end = function(b,e,p)
  2725. {
  2726. if (p==1)
  2727. return e;
  2728. else
  2729. return b;
  2730. }
  2731. this.init = function(a)
  2732. {
  2733. act = a;
  2734. }
  2735. this.start = function(a,el,fin)
  2736. {
  2737. if ((!act) || (!act[a]))
  2738. {
  2739. alert ("Can't find "+a);
  2740. return;
  2741. }
  2742. var c=-1;
  2743. for (var i=0;i<work.length54;i++)
  2744. {
  2745. if (work[i*5+3]<=0)
  2746. {
  2747. c=i*5;
  2748. break;
  2749. }
  2750. }
  2751. if (c<0)
  2752. {
  2753. c=work.length;
  2754. work.push(0);
  2755. work.push(0);
  2756. work.push(0);
  2757. work.push(0);
  2758. work.push(0);
  2759. }
  2760. work[c]=a;
  2761. work[c+1]=el;
  2762. work[c+2]=act[a].pause;
  2763. work[c+3]=act[a].time;
  2764. work[c+4]=fin;
  2765. }
  2766. this.change = function(el,prop,val)
  2767. {
  2768. switch (prop)
  2769. {
  2770. case "prop":
  2771. el.set_property(val);
  2772. break;
  2773. case "x":
  2774. el.sprite.position.x=val;
  2775. break;
  2776. case "y":
  2777. el.sprite.position.y=val;
  2778. break;
  2779. case "global_x":
  2780. el.sprite.position.x=val*that.SCREEN_WIDTH;
  2781. break;
  2782. case "global_y":
  2783. el.sprite.position.y=val*that.SCREEN_HEIGHT;
  2784. break;
  2785. case "scale":
  2786. el.sprite.position.x=el.x-el.uni_width*(val-1)/2;
  2787. el.sprite.position.y=el.y-el.uni_height*(val-1)/2;
  2788. el.sprite.scale.x=val;
  2789. el.sprite.scale.y=val;
  2790. break;
  2791. default:
  2792. el.sprite[prop]=val;
  2793. break;
  2794. }
  2795. }
  2796. this.update = function(tk)
  2797. {
  2798. for (var i=0;i<work.length/5;i++)
  2799. {
  2800. if (work[i*5+3]>0)
  2801. {
  2802. if (work[i*5+2]>0)
  2803. {
  2804. work[i*5+2]-=tk;
  2805. if (work[i*5+2]<=0)
  2806. {
  2807. work[i*5+3]+=work[i*5+2];
  2808. work[i*5+2]=0;
  2809. }
  2810. }else
  2811. {
  2812. work[i*5+3]-=tk;
  2813. if (work[i*5+3]<=0)
  2814. work[i*5+3]=0;
  2815. var prog=(act[work[i*5]].time-work[i*5+3])/act[work[i*5]].time;
  2816. for (var key in act[work[i*5]].changes)
  2817. {
  2818. var v=act[work[i*5]].changes[key];
  2819. this.change(work[i*5+1],key,this[v.trans](v.beg,v.end,prog));
  2820. }
  2821. if ((work[i*5+3]==0)&&(work[i*5+4]))
  2822. work[i*5+4](work[i*5+1]);
  2823. }
  2824. }
  2825. }
  2826. }
  2827. }
  2828. this.ACT = new AVK_ACT();
  2829. loader.load();
  2830. }