var k = new Array (), var L = new Array (), var m = new Array (), var zhiyecurosr = 0;function Zyinit () {zyinitname (); Zyinitrectchoose (); Zyinitrectchoosepic (); Zyinitzhiyeintro (); Zysetvisible (0); Laya.stage.on (Laya.events.event.key_down,this,zyonkeydown);} function Zyinitname () {var C1 = new Laya.display.Text (); C1.text = "Warrior"; c1.x = 50; C1.Y = 50; C1.color = "Red"; C1.fontsize = 20; Laya.stage.addChild (C1); var C2 = new Laya.display.Text (); C2.text = "Tomb Raider"; c2.x = 50; C2.Y = 50 + 30 * 1; C2.color = "Red"; C2.fontsize = 20; Laya.stage.addChild (C2); var C3 = new Laya.display.Text (); C3.text = "Magician"; c3.x = 50; C3.Y = 50 + 30 * 2; C3.color = "Red"; C3.fontsize = 20; Laya.stage.addChild (C3); var C4 = new Laya.display.Text (); C4.text = "Agricultural name"; c4.x = 50; C4.Y = 50 + 30 * 3; C4.color = "Red"; C4.fontsize = 20; Laya.stage.addChild (C4); var c5 = new Laya.display.Text (); C5.text = "Hunter"; c5.x = 50; C5.Y = 50 + 30 * 4; C5.color = "Red"; C5.fontsize = 20; Laya.stage.addChild (C5); var c6 = new Laya.display.Text (); C6.text = "Magical Warrior"; c6.x = 50; C6.Y = 50 + 30 * 5; C6.color = "Red"; C6.fontsize = 20; Laya.stage.addChild (C6); var c7 = new Laya.display.Text (); C7.text = "Tourist"; c7.x = 50; C7.Y = 50 + 30 * 6; C7.color = "Red"; C7.fontsize = 20; Laya.stage.addChild (C7); var c8 = new Laya.display.Text (); C8.text = "Piano Teacher"; c8.x = 50; C8.Y = 50 + 30 * 7; C8.color = "Red"; C8.fontsize = 20; Laya.stage.addChild (C8); var C9 = new Laya.display.Text (); C9.text = "Divine officer"; c9.x = 50; C9.Y = 50 + 30 * 8; C9.color = "Red"; C9.fontsize = 20; Laya.stage.addChild (C9); var C10 = new Laya.display.Text (); C10.text = "Big Sword"; c10.x = 50; C10.Y = 50 + 30 * 9; C10.color = "Red"; C10.fontsize = 20; Laya.stage.addChild (C10); }function Zyinitrectchoose () {for (var i = 0; i < 10; i++) {K[i] = new Laya.display.Sprite (); if (i = = 5) {K[i].graphics.drawrect (+), 4 * + 5 + ten, "white"); } if (i = = 0 | | i = = 3 | | i== 4 | | i = = 8 | | i = = 9) {K[i].graphics.drawrect (+ + * I, 2 * 20 + 5 + ten, "white"); } if (i = = 1 | | i = = 2 | | i = = 6 | | i = = 7) {K[i].graphics.drawrect (+) + * I, 3 * 20 + 5 + 10, 2 0, "white"); } K[i].alpha = 0.25; K[i].visible = true; Laya.stage.addChild (K[i]); }}function Zyinitrectchoosepic () {for (var i = 0; i <; i++) {L[i] = new Laya.display.Sprite (); if (i = = 5) {l[i].loadimage ("Rectchoosepic.png", 4 * + 5, + + * i + 5, 10, 10); } if (i = = 0 | | i = = 3 | | i== 4 | | i = 8 | | i = = 9) {l[i].loadimage ("rectchoosepic.png", 50 + 2 * 20 + 5, + + * i + 5, 10, 10); } if (i = = 1 | | i = = 2 | | i = = 6 | | i = = 7) { L[i].loadimage ("Rectchoosepic.png", + 3 * + 5, + + * i + 5, 10, 10); } l[i].visible = true; Laya.stage.addChild (L[i]); }}function zysetvisible (index) {for (var i = 0; i <; i++) {if (index = = i) {k[i].visible = true; L[i].visible = true; M[i].visible = true; }else{k[i].visible = false; L[i].visible = false; M[i].visible = false; }}}function Zyonkeydown (e) {switch (e.keycode) {case 38:{if ((zhiyeCurosr-1) <= 0) { ZHIYECUROSR = 0; }else{zhiyecurosr--; } break; } Case 40:{if ((ZHIYECUROSR + 1) >= 9) {ZHIYECUROSR = 9; }else{zhiyecurosr++; } break; }} zysetvisible (ZHIYECUROSR);} function Zyinitzhiyeintro () {m[0] = new Laya.display.Text (); M[0].text = "The Warrior is a weapon of his own flesh, leveling off any obstacle to their advancement." Warriors are not "+" to use magic, but they only have the ability to fight with a high enough to make people stare tongue. "; m[0].x = 200; M[0].Y = 50; M[0].color = "Red"; M[0].fontsize = 20; M[0].wordwrap = true; M[0].width = 640; Laya.stage.addChild (M[0]); M[1] = new Laya.display.Text (); M[1].text = "Tomb robbers mainly rely on stealing tombs and relics of precious goods for a living." They are capable of fighting mediocre "+" but are very good at bargaining with businessmen. "; m[1].x = 200; M[1].Y = 50; M[1].color = "Red"; M[1].fontsize = 20; M[1].wordwrap = true; M[1].width = 640; Laya.stage.addChild (m[1]); M[2] = new Laya.display.Text (); M[2].text = "As its name, the magician is adept at using magic knowledge of the profession." The Magician's life and death depends on the "+" on the magician's acquisition and management. "; m[2].x = 200; M[2].Y = 50; M[2].color = "Red"; M[2].fontsize = 20; M[2].wordwrap = true; M[2].width = 640; Laya.stage.addChild (m[2]); M[3] = new Laya.display.Text (); M[3].text = "Farmers are good at producing jobs." They are hard-working, have a certain intensity of physical quality. "; m[3].x = 200; M[3].Y = 50; M[3].color = "Red"; M[3].fontsize = 20; M[3].wordwrap = true; M[3].width= 640; Laya.stage.addChild (M[3]); M[4] = new Laya.display.Text (); M[4].text = "Hunter is an expert on ranged attacks." Their melee abilities are considerable, but most enemies "+" will be knocked down before they reach them "; m[4].x = 200; M[4].Y = 50; M[4].color = "Red"; M[4].fontsize = 20; M[4].wordwrap = true; M[4].width = 640; Laya.stage.addChild (M[4]); M[5] = new Laya.display.Text (); M[5].text = "The Magical Warrior possesses both the characteristics of the warrior and the Magician." More prone to melee in combat. For "+" to better master the Magic, the Magic Warrior needs a precise growth plan "; m[5].x = 200; M[5].Y = 50; M[5].color = "Red"; M[5].fontsize = 20; M[5].wordwrap = true; M[5].width = 640; Laya.stage.addChild (M[5]); M[6] = new Laya.display.Text (); M[6].text = "Tourists are the most traditional profession in the world, as weak as expected." "; m[6].x = 200; M[6].Y = 50; M[6].color = "Red"; M[6].fontsize = 20; M[6].wordwrap = true; M[6].width = 640; Laya.stage.addChild (M[6]); M[7] = new Laya.display.Text (); M[7].text = "The Pianist is a pride occupation that plays for a living." They take the piano back to the "+" after they go there, so they have the weight-bearing capacity "; m[7].x = 200; M[7].Y = 50; M[7].color = "Red"; M[7].fontsize = 20; M[7].wordwrap = true; M[7].width = 640; Laya.stage.addChild (M[7]); M[8] = new Laya.display.Text (); M[8].text = "The Divine Officer has excellent magical abilities and a certain melee ability." They are able to derive maximum grace from the spirit of God "+" that they believe in. "; m[8].x = 200; M[8].Y = 50; M[8].color = "Red"; M[8].fontsize = 20; M[8].wordwrap = true; M[8].width = 640; Laya.stage.addChild (M[8]); M[9] = new Laya.display.Text (); M[9].text = "The Sword is an agile swordsman with half-human and half-demon blood." People are awed by the "+" killing of their silver eyes, and all of them can make a great sword that is nearly as long as the height of a man. Although the "+" but their physique is low, but the light body and sharp eyesight can make them easy to avoid the enemy "+" attack. "; m[9].x = 200; M[9].Y = 50; M[9].color = "Red"; M[9].fontsize = 20; M[9].wordwrap = true; M[9].width = 640; Laya.stage.addChild (m[9]); }
Layaair Engine--(10)