Layaair Engine--(11)

Source: Internet
Author: User
Tags addchild

var c = new Array (), var d = new Array (), var e = new Array (), var f = new Array (), var g = new Array (), var zzjmcursor = 0;fun    Ction Zzjminit () {zzjminitname ();    Zzjminitrectchoose ();    Zzjminitrectchoosepic ();    Zzjmsetvisible (0);    Zzjminitzhongzushuoming ();    Zzjminitability ();        Zzjmsetintro (0); Laya.stage.on (Laya.events.event.key_down,this,zzjmonkeydown);}    function Zzjminitname () {var C1 = new Laya.display.Text ();    C1.text = "Yale scholar";    c1.x = 50;    C1.Y = 50;    C1.color = "Red";    C1.fontsize = 20;    Laya.stage.addChild (C1);    var C2 = new Laya.display.Text ();    C2.text = "Avodana person";    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 = "Goblin";    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 = "Hill man";    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 = "Chewie";    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 = "Alleya person";    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 = "snail";    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 = "Lich";    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 = "Goblin";    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 = "Magic image";    c10.x = 50;    C10.Y = 50 + 30 * 9;    C10.color = "Red"; C10.fontSize = 20;     Laya.stage.addChild (C10);    var C11 = new Laya.display.Text ();    C11.text = "Mutant Person";    c11.x = 50;    C11.Y = 50 + 30 * 10;    C11.color = "Red";    C11.fontsize = 20; Laya.stage.addChild (C11);        }function Zzjminitrectchoose () {for (var i = 0; i <; i++) {C[i] = new Laya.display.Sprite ();        if (i = = 0 | | i = = 4 | | i = = 5) {C[i].graphics.drawrect (+ + + * I, 4 * + 5 +, +, "white");        } if (i = = 1) {C[i].graphics.drawrect (+), 5 * + 5 + ten, "white");  } if (i = = 2 | | i = = 6 | | i== 7 | | i = = 8 | | i = = 9) {C[i].graphics.drawrect (+ + * I, 2 * 20 +        5 + ten, "white");        } if (i = = 3 | | i = =) {C[i].graphics.drawrect (3 * + 5 +), "white");        } C[i].alpha = 0.25;        C[i].visible = true;    Laya.stage.addChild (C[i]); }}function Zzjminitrectchoosepic () {for (var i = 0; i< 11;        i++) {D[i] = new Laya.display.Sprite ();         if (i = = 0 | | i = = 4 | | i = = 5) {d[i].loadimage ("rectchoosepic.png", + 4 * + 5, + + + * i + 5, 10, 10);        } if (i = = 1) {d[i].loadimage ("rectchoosepic.png", + 5 * + 5, + + * i + 5, 10, 10); } if (i = = 2 | | i = = 6 | | i== 7 | | i = 8 | | i = = 9) {d[i].loadimage ("rectchoosepic.png", 50 + 2        * + 5, + + * i + 5, 10, 10);         } if (i = = 3 | | i = =) {d[i].loadimage ("rectchoosepic.png", + 3 * + 5, + + * i + 5, 10, 10);        } d[i].visible = true;    Laya.stage.addChild (D[i]);                }}function Zzjmonkeydown (e) {switch (e.keycode) {case 38:{if ((zzjmCursor-1) <= 0) {            zzjmcursor = 0;            }else{zzjmcursor--;        } break;   } Case 40:{if ((Zzjmcursor + 1) >=) {zzjmcursor = 10;         }else{zzjmcursor++;        } break;    }} zzjmsetvisible (Zzjmcursor); Zzjmsetintro (zzjmcursor);} function Zzjmsetvisible (index) {for (var i = 0; i <; i++) {if (index = = i) {c[i].visible = tr            Ue        D[i].visible = true;            }else{c[i].visible = false;        D[i].visible = false;    }}}function zzjminitzhongzushuoming () {e[0] = new Laya.display.Text (); E[0].text = "There is a Sierre Terre in the West that is telling the rising Renaissance kingdom that he is Yerus." "+" Yale scholars advocate Rational thinking, worship Esse Telving, on the other hand, they also do not "+" to exclude things they do not understand, as long as it is a profitable thing, they will be active "+" thinking product Very acceptable. They have a high degree of learning ability, and almost all professions are hard to fail. "+" They are adept at manipulating mechanical arms and are able to gain additional growth points.    ";    e[0].x = 200;    E[0].Y = 50;    E[0].color = "Red";    E[0].fontsize = 20;    E[0].wordwrap = true;    E[0].width = 640;    Laya.stage.addChild (E[0]);    E[1] = new Laya.display.Text (); E[1].text = "One of the oldest countries in Aivodanas, still holds a place in the world today." Aivoda "+" the elite of the people, but also the perfectionist, convinced that he is the dayThe world should be ruled by the "+". They are good at magic and use magic props, suitable for the role of Mage or defender "+". At the same time they have superb chanting techniques and relative magical resistance.    ";    e[1].x = 200;    E[1].Y = 50;    E[1].color = "Red";    E[1].fontsize = 20;    E[1].wordwrap = true;    E[1].width = 640;    Laya.stage.addChild (e[1]);    E[2] = new Laya.display.Text (); E[2].text = "Goblins are fascinating, mysterious but fragile races." For humans, they use magic and the "+" dodge talent more prominent, the speed is also extraordinary. Almost all of their magical anti-"+" sex is outstanding, but they can not equip the weight of more than 1s items, which makes the defensive ability difficult "+" guarantee. Not only that, their physical strength is also very low, in the face of the fight, as long as there is a "+" attack hit, their lives will be in crisis.    ";    e[2].x = 200;    E[2].Y = 50;    E[2].color = "Red";    E[2].fontsize = 20;    E[2].wordwrap = true;    E[2].width = 640;    Laya.stage.addChild (e[2]);    E[3] = new Laya.display.Text (); E[3].text = "Hill people alias dwarves, they are low but very strong, have a higher physique and strength." "+" They are also good at making props, proficient in a variety of production skills. Hilly people have a higher "+" resistance to darkness and poison.    ";    e[3].x = 200;    E[3].Y = 50;    E[3].color = "Red";    E[3].fontsize = 20;    E[3].wordwrap = true;    E[3].width = 640; Laya.stage.addChild (E[3]);    E[4] = new Laya.display.Text (); E[4].text = "The Chewie are uninhibited and free." They disdain the laws of other races, but are willing to learn the "+" techniques and techniques elsewhere. They all have the potential to be great actors. Chewie has a "+" double hands, feeling sensitive, character publicity. Drifting allows them to have better survival adaptability. He "+" can be more thorough digestion of food, not easy to hunger. In just a few minutes, they can spend more time "+" has gained more material. It is a race with good abilities.    ";    e[4].x = 200;    E[4].Y = 50;    E[4].color = "Red";    E[4].fontsize = 20;    E[4].wordwrap = true;    E[4].width = 640;    Laya.stage.addChild (E[4]);    E[5] = new Laya.display.Text (); E[5].text = "Alleya people have witnessed the history of the ancient civilizations of the descendants of the elves, they do not want to contact other races," + ", only wanted to live quietly. Jerus claimed that destroying the Esse Telving was the "+" of them, which caused the Alleya people to be ostracized by other races. Alleya people have powerful magic and "+" resistance to ether disease, but also can reduce the damage of magical bite.    ";    e[5].x = 200;    E[5].Y = 50;    E[5].color = "Red";    E[5].fontsize = 20;    E[5].wordwrap = true;    E[5].width = 640;     Laya.stage.addChild (E[5]);    E[6] = new Laya.display.Text (); E[6].text = "Snails are very dull creatures, they are extremely fragile." At the same time weak and clumsy, learning ability "+" low, touch the salt will melt. Stay away from the cleaners!    ";    e[6].x = 200;    E[6].Y = 50;    E[6].color = "Red";E[6].fontsize = 20;    E[6].wordwrap = true;    E[6].width = 640;     Laya.stage.addChild (E[6]);    E[7] = new Laya.display.Text (); E[7].text = "The Lich is an undead with a high level of intelligence and powerful magic."                They were powerful mages. "+" when life is coming to an end, their desire for survival prompts them to seek the field of the Lich, a few "+" centuries past, and only a handful of those who try to succeed, this long process also captured their big "+ "Part of the memory and just, but they got a new start. The Gift of magic and meditation still "+" accompanies them.    ";    e[7].x = 200;    E[7].Y = 50;    E[7].color = "Red";    E[7].fontsize = 20;    E[7].wordwrap = true;    E[7].width = 640;        Laya.stage.addChild (E[7]);    E[8] = new Laya.display.Text (); E[8].text = "Goblin This race is warlike and ferocious." They have no merit to mention, but at the same time there is no "+" obvious weakness, they are strong and willing to learn, for the dark has a natural resistance. More than that "+", they have excellent self-healing abilities, and can get more "+" material than other races when they are working.    ";    e[8].x = 200;    E[8].Y = 50;    E[8].color = "Red";    E[8].fontsize = 20;    E[8].wordwrap = true;    E[8].width = 640;     Laya.stage.addChild (E[8]);    E[9] = new Laya.display.Text (); E[9].text = "The Golem is a life-giving object." They have more endurance than other races, but the "+" is at the expense of their strength and speed far below the other speciesFamily. The mages made them "+" in order to make them laborers, not scholars. The slower the better, fortunately the magic of the perception of the poor "+" to be unable to get tired of the degree of toil. Furthermore poison is ineffective for the golem, and they will not be aware of the "+" blur.    ";    e[9].x = 200;    E[9].Y = 50;    E[9].color = "Red";    E[9].fontsize = 20;    E[9].wordwrap = true;    E[9].width = 640;     Laya.stage.addChild (e[9]);    E[10] = new Laya.display.Text (); E[10].text = "Mutation is the product of genetic engineering." It may also be due to the exposure of a pregnant woman to a typhoon. "+" most mutants ' lives are short and full of pain. Because of their rapid metabolism, they "+" have a strong ability to heal. They were born like humans, but as they grew up they were "+" out of new places, so the final regulation was unpredictable.    ";    e[10].x = 200;    E[10].Y = 50;    E[10].color = "Red";    E[10].fontsize = 20;    E[10].wordwrap = true;    E[10].width = 640;     Laya.stage.addChild (e[10]); }function Zzjmsetintro (Index) {for (var i = 0; i <; i++) {if (index = = i) {e[i].visible = Tru            E        F[i].visible = true;            }else{e[i].visible = false;        F[i].visible = false; }}}function zzjminitability () {f[0] = new Laya.display.TeXT ();                F[0].text = "Strength: normal physique: higher dexterity: Higher \ n" + "Feeling: higher learning: Highest    Will: Higher \ n "+" Magic: Higher charm: ordinary ";    f[0].x = 200;    F[0].Y = 200;    F[0].color = "Red";    F[0].fontsize = 20;    Laya.stage.addChild (F[0]);    F[1] = new Laya.display.Text ();                F[1].text = "Strength: ordinary physique: ordinary dexterity: Ordinary \ n" + "Feeling: higher learning: Higher    Will: Higher \ n "+" Magic: The highest charm: higher \ n ";    f[1].x = 200;    F[1].Y = 200;    F[1].color = "Red";    F[1].fontsize = 20;    F[1].wordwrap = true;    F[1].width = 640;    Laya.stage.addChild (f[1]);    F[2] = new Laya.display.Text ();                F[2].text = "Strength: Minimum physique: less dexterity: Higher \ n" + "Feeling: higher learning: Higher    Will: Higher \ n "+" Magic: Highest charm: Highest ";    f[2].x = 200;    F[2].Y = 200;    F[2].color = "Red"; F[2].fontsize = 20;    F[2].wordwrap = true;    F[2].width = 640;    Laya.stage.addChild (f[2]);    F[3] = new Laya.display.Text ();                F[3].text = "Strength: Higher physique: higher dexterity: Higher \ n" + "feeling: General Learning: General    Will: ordinary \ \ "+" Magic: Ordinary Charm: ordinary ";    f[3].x = 200;    F[3].Y = 200;    F[3].color = "Red";    F[3].fontsize = 20;    F[3].wordwrap = true;    F[3].width = 640;    Laya.stage.addChild (F[3]);    F[4] = new Laya.display.Text ();                F[4].text = "Strength: normal physique: higher dexterity: Highest \ n" + "Feeling: higher learning: Higher    Will: Higher \ n "+" Magic: Higher charm: Higher ";    f[4].x = 200;    F[4].Y = 200;    F[4].color = "Red";    F[4].fontsize = 20;    F[4].wordwrap = true;    F[4].width = 640;    Laya.stage.addChild (F[4]);    F[5] = new Laya.display.Text (); F[5].text = "Strength: Ordinary physique: General dexterity: higher \ n" + "Feeling: higher learning: Higher                Will: Highest \ n "+" Magic: Highest charm: Higher ";    f[5].x = 200;    F[5].Y = 200;    F[5].color = "Red";    F[5].fontsize = 20;    F[5].wordwrap = true;    F[5].width = 640;    Laya.stage.addChild (F[5]);    F[6] = new Laya.display.Text ();                F[6].text = "Strength: less physical: Less dexterous: at least \ n" + "feeling: General Learning: Minimum    Will: less \ n "+" Magic: least charm: less ";    f[6].x = 200;    F[6].Y = 200;    F[6].color = "Red";    F[6].fontsize = 20;    F[6].wordwrap = true;    F[6].width = 640;    Laya.stage.addChild (F[6]);    F[7] = new Laya.display.Text ();                F[7].text = "Strength: less physique: higher dexterity: Ordinary \ n" + "Feeling: higher learning: Higher    Will: Highest \ n "+" Magic: the Highest charm: less ";    f[7].x = 200;    F[7].Y = 200;    F[7].color = "Red";    F[7].fontsize = 20;    F[7].wordwrap = true;    F[7].width = 640;  Laya.stage.addChild (F[7]);  F[8] = new Laya.display.Text ();                F[8].text = "Strength: Higher physique: higher dexterity: less \ n" + "Feeling: less study: Higher    Will: Ordinary \ n "+" Magic: Ordinary Charm: less ";    f[8].x = 200;    F[8].Y = 200;    F[8].color = "Red";    F[8].fontsize = 20;    F[8].wordwrap = true;    F[8].width = 640;    Laya.stage.addChild (F[8]);    F[9] = new Laya.display.Text ();                F[9].text = "Strength: Higher physique: Highest dexterity: less \ n" + "Feeling: less Study: Less    Will: Higher \ n "+" Magic: Ordinary Charm: least ";    f[9].x = 200;    F[9].Y = 200;    F[9].color = "Red";    F[9].fontsize = 20;    F[9].wordwrap = true;    F[9].width = 640;    Laya.stage.addChild (f[9]);    F[10] = new Laya.display.Text ();                F[10].text = "Strength: Higher physique: less dexterity: less \ n" + "feeling: General Learning: General    Will: Higher \ n "+" Magic: Ordinary Charm: least "; F[10].x = 200;    F[10].Y = 200;    F[10].color = "Red";    F[10].fontsize = 20;    F[10].wordwrap = true;    F[10].width = 640; Laya.stage.addChild (f[10]);}

  

Layaair Engine--(11)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.