Commit bc650908 authored by zjz1994's avatar zjz1994

新元素动画

parent 34b7e815
...@@ -322,6 +322,10 @@ export default class MainBase extends eui.UILayer { ...@@ -322,6 +322,10 @@ export default class MainBase extends eui.UILayer {
RES.getResAsync("ele43_png"); RES.getResAsync("ele43_png");
RES.getResAsync("ele44_png"); RES.getResAsync("ele44_png");
RES.getResAsync("ele45_png"); RES.getResAsync("ele45_png");
RES.getResAsync("ele42fn_png");
RES.getResAsync("ele43fn_png");
RES.getResAsync("ele44fn_png");
RES.getResAsync("ele45fn_png");
for (var i = 1; i <= 27; i++) { for (var i = 1; i <= 27; i++) {
RES.getResAsync("bonusFra" + i + "_png") RES.getResAsync("bonusFra" + i + "_png")
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
"name": "h5" "name": "h5"
}, },
{ {
"keys": "bonusFra1_png,bonusFra10_png,bonusFra11_png,bonusFra12_png,bonusFra13_png,bonusFra14_png,bonusFra15_png,bonusFra16_png,bonusFra17_png,bonusFra18_png,bonusFra19_png,bonusFra2_png,bonusFra20_png,bonusFra21_png,bonusFra22_png,bonusFra23_png,bonusFra24_png,bonusFra25_png,bonusFra26_png,bonusFra27_png,bonusFra3_png,bonusFra4_png,bonusFra5_png,bonusFra6_png,bonusFra7_png,bonusFra8_png,bonusFra9_png,bonusShoot_png,bonusTime_png,boom1_png,boom10_png,boom11_png,boom12_png,boom13_png,boom14_png,boom15_png,boom16_png,boom17_png,boom2_png,boom3_png,boom4_png,boom5_png,boom6_png,boom7_png,boom8_png,boom9_png,boomBtn_png,chooseRect_png,dangqianfenshu_png,eggPiece1_png,eggPiece2_png,eggPiece3_png,eggPiece4_png,eggPiece5_png,eggStatus0_png,eggStatus1_png,eggStatus2_png,ele0_png,ele0Exp_png,ele0Line_png,ele1_png,ele1Exp_png,ele1Line_png,ele2_png,ele2Exp_png,ele2Line_png,ele3_png,ele3Exp_png,ele3Line_png,ele4_png,ele4Exp_png,ele4Line_png,ele5_png,ele6_png,ele7_png,ele8_png,ele9_png,eleDis1_png,eleDis10_png,eleDis11_png,eleDis12_png,eleDis13_png,eleDis14_png,eleDis15_png,eleDis16_png,eleDis17_png,eleDis18_png,eleDis19_png,eleDis2_png,eleDis3_png,eleDis4_png,eleDis5_png,eleDis6_png,eleDis7_png,eleDis8_png,eleDis9_png,exLighting1_png,exLighting11_png,exLighting14_png,exLighting16_png,exLighting18_png,exLighting19_png,exLighting21_png,exLighting23_png,exLighting25_png,exLighting27_png,exLighting29_png,exLighting3_png,exLighting32_png,exLighting34_png,exLighting5_png,exLighting7_png,exLighting9_png,greenCircleDown_png,greenCircleUp_png,guidePropBoom_png,guidePropCow_png,guidePropHammer_png,guidePropHand_png,guidePropMsgPanel_png,guidePropShoe_png,hammerBtn_png,ice2_png,ice3_png,ice4_png,ice5_png,ice6_png,jellyArrow_png,leftArrow_png,lightedStar_png,lineLight_png,lockVine_png,magicLion_png,magicLionBg_png,mainMusicBtnOff_png,mainMusicBtnOn_png,mainQuestionBtn_png,mainQuitBtn_png,mainSettingBg_png,mainSoundBtnOff_png,mainSoundBtnOn_png,main_mapbottom_png,playSceneBg_jpg,progressDown_png,propNum0_png,propNum1_png,propNum2_png,propNum3_png,propNum4_png,propNum5_png,propNum6_png,propNum7_png,propNum8_png,propNum9_png,propNumBg_png,rectLat_png,rightArrow_png,rightMark_png,rock2_png,rock3_png,rock4_png,rock5_png,rock6_png,scoreNumber0_png,scoreNumber1_png,scoreNumber2_png,scoreNumber3_png,scoreNumber4_png,scoreNumber5_png,scoreNumber6_png,scoreNumber7_png,scoreNumber8_png,scoreNumber9_png,setting_png,starProgress_png,stepAni1_png,stepAni10_png,stepAni11_png,stepAni2_png,stepAni3_png,stepAni4_png,stepAni5_png,stepAni6_png,stepAni7_png,stepAni8_png,stepAni9_png,stepBtn_png,stepNumber0_png,stepNumber1_png,stepNumber2_png,stepNumber3_png,stepNumber4_png,stepNumber5_png,stepNumber6_png,stepNumber7_png,stepNumber8_png,stepNumber9_png,stepsBoard_png,targetBoard_png,targetNumber0_png,targetNumber1_png,targetNumber2_png,targetNumber3_png,targetNumber4_png,targetNumber5_png,targetNumber6_png,targetNumber7_png,targetNumber8_png,targetNumber9_png,unlightedStar_png,yellowCircleDown_png,yellowCircleUp_png,yezi1_png,bubbleStar19_png,bubleEle0_png,bubleEle1_png,bubleEle2_png,bubleEle3_png,bubleEle4_png,bubbleStar1_png,bubbleStar2_png,bubbleStar3_png,bubbleStar4_png,bubbleStar5_png,bubbleStar6_png,bubbleStar7_png,bubbleStar8_png,bubbleStar9_png,bubbleStar10_png,bubbleStar11_png,bubbleStar12_png,bubbleStar13_png,bubbleStar14_png,bubbleStar15_png,bubbleStar16_png,bubbleStar17_png,bubbleStar18_png,ele11_png,ele10_png,brownBallFace_png,eyeDownLeft_png,eyeSingle_png,greyBallFace_png,eyeDownRight_png,hairballPiece9_png,hairballPiece8_png,hairballPiece7_png,hairballPiece6_png,hairballPiece5_png,hairballPiece4_png,hairballPiece3_png,hairballPiece2_png,hairballPiece11_png,hairballPiece10_png,hairballPiece1_png,hairballDisBg_png,curScoreNum9_png,curScoreNum8_png,curScoreNum7_png,curScoreNum6_png,curScoreNum5_png,curScoreNum4_png,curScoreNum3_png,curScoreNum2_png,curScoreNum1_png,curScoreNum0_png,festivalTargetBg_png,lineLight9_png,lineLight8_png,lineLight7_png,lineLight6_png,lineLight5_png,lineLight4_png,lineLight3_png,lineLight2_png,lineLight13_png,lineLight12_png,lineLight11_png,lineLight10_png,lineLight1_png,fesRedUp_png,fesRedSmallLight_png,fesRedDown_png,fesRedCap_png,fesRedBombSta1_png,fesRedBigLight_png,fesEleSmallDis9_png,fesEleSmallDis8_png,fesEleSmallDis7_png,fesEleSmallDis6_png,fesEleSmallDis5_png,fesEleSmallDis4_png,fesEleSmallDis3_png,fesEleSmallDis2_png,fesEleSmallDis10_png,fesEleSmallDis1_png,ele12_png,ele13_png,xingxingbi_png,tinyRedMid_png,tinyRedLeft_png,tinyRedRight_png,rectLatWhite_png,fesRedBombSta2_png,ele14_png,redBombYStar_png,redBombBStar_png,redBombBSnow_png,线条尾部炸开_00000_png,线条尾部炸开_00001_png,线条尾部炸开_00002_png,线条尾部炸开_00003_png,线条尾部炸开_00004_png,线条尾部炸开_00005_png,线条尾部炸开_00006_png,线条尾部炸开_00007_png,线条尾部炸开_00008_png,ele15_png,ele16_png,ele17_png,ele18_png,ele19_png,ele20_png,empty_png,ele23_png,ele25_png,ele27_png,ele26_png,ele24_png,ele22_png,chocolateMark3_png,chocolateMark1_png,chocolateFour_png,chocolateMark0_png,chocolateMark2_png,redbombParticle_png,monster_shoot_png,ele33_1_png,ele33_0_png,ele34_png,honey_png,ele36_png,lef_png,propBg_png,check0_png,check1_png,check2_png,check3_png,check4_png,check7_png,check8_png,check9_png,check关_png,check第_png,check6_png,check5_png,ele38_png,ele39_png,gameGuide_png,ele41_png,ele42_png,ele43_png,ele44_png,ele45_png", "keys": "bonusFra1_png,bonusFra10_png,bonusFra11_png,bonusFra12_png,bonusFra13_png,bonusFra14_png,bonusFra15_png,bonusFra16_png,bonusFra17_png,bonusFra18_png,bonusFra19_png,bonusFra2_png,bonusFra20_png,bonusFra21_png,bonusFra22_png,bonusFra23_png,bonusFra24_png,bonusFra25_png,bonusFra26_png,bonusFra27_png,bonusFra3_png,bonusFra4_png,bonusFra5_png,bonusFra6_png,bonusFra7_png,bonusFra8_png,bonusFra9_png,bonusShoot_png,bonusTime_png,boom1_png,boom10_png,boom11_png,boom12_png,boom13_png,boom14_png,boom15_png,boom16_png,boom17_png,boom2_png,boom3_png,boom4_png,boom5_png,boom6_png,boom7_png,boom8_png,boom9_png,boomBtn_png,chooseRect_png,dangqianfenshu_png,eggPiece1_png,eggPiece2_png,eggPiece3_png,eggPiece4_png,eggPiece5_png,eggStatus0_png,eggStatus1_png,eggStatus2_png,ele0_png,ele0Exp_png,ele0Line_png,ele1_png,ele1Exp_png,ele1Line_png,ele2_png,ele2Exp_png,ele2Line_png,ele3_png,ele3Exp_png,ele3Line_png,ele4_png,ele4Exp_png,ele4Line_png,ele5_png,ele6_png,ele7_png,ele8_png,ele9_png,eleDis1_png,eleDis10_png,eleDis11_png,eleDis12_png,eleDis13_png,eleDis14_png,eleDis15_png,eleDis16_png,eleDis17_png,eleDis18_png,eleDis19_png,eleDis2_png,eleDis3_png,eleDis4_png,eleDis5_png,eleDis6_png,eleDis7_png,eleDis8_png,eleDis9_png,exLighting1_png,exLighting11_png,exLighting14_png,exLighting16_png,exLighting18_png,exLighting19_png,exLighting21_png,exLighting23_png,exLighting25_png,exLighting27_png,exLighting29_png,exLighting3_png,exLighting32_png,exLighting34_png,exLighting5_png,exLighting7_png,exLighting9_png,greenCircleDown_png,greenCircleUp_png,guidePropBoom_png,guidePropCow_png,guidePropHammer_png,guidePropHand_png,guidePropMsgPanel_png,guidePropShoe_png,hammerBtn_png,ice2_png,ice3_png,ice4_png,ice5_png,ice6_png,jellyArrow_png,leftArrow_png,lightedStar_png,lineLight_png,lockVine_png,magicLion_png,magicLionBg_png,mainMusicBtnOff_png,mainMusicBtnOn_png,mainQuestionBtn_png,mainQuitBtn_png,mainSettingBg_png,mainSoundBtnOff_png,mainSoundBtnOn_png,main_mapbottom_png,playSceneBg_jpg,progressDown_png,propNum0_png,propNum1_png,propNum2_png,propNum3_png,propNum4_png,propNum5_png,propNum6_png,propNum7_png,propNum8_png,propNum9_png,propNumBg_png,rectLat_png,rightArrow_png,rightMark_png,rock2_png,rock3_png,rock4_png,rock5_png,rock6_png,scoreNumber0_png,scoreNumber1_png,scoreNumber2_png,scoreNumber3_png,scoreNumber4_png,scoreNumber5_png,scoreNumber6_png,scoreNumber7_png,scoreNumber8_png,scoreNumber9_png,setting_png,starProgress_png,stepAni1_png,stepAni10_png,stepAni11_png,stepAni2_png,stepAni3_png,stepAni4_png,stepAni5_png,stepAni6_png,stepAni7_png,stepAni8_png,stepAni9_png,stepBtn_png,stepNumber0_png,stepNumber1_png,stepNumber2_png,stepNumber3_png,stepNumber4_png,stepNumber5_png,stepNumber6_png,stepNumber7_png,stepNumber8_png,stepNumber9_png,stepsBoard_png,targetBoard_png,targetNumber0_png,targetNumber1_png,targetNumber2_png,targetNumber3_png,targetNumber4_png,targetNumber5_png,targetNumber6_png,targetNumber7_png,targetNumber8_png,targetNumber9_png,unlightedStar_png,yellowCircleDown_png,yellowCircleUp_png,yezi1_png,bubbleStar19_png,bubleEle0_png,bubleEle1_png,bubleEle2_png,bubleEle3_png,bubleEle4_png,bubbleStar1_png,bubbleStar2_png,bubbleStar3_png,bubbleStar4_png,bubbleStar5_png,bubbleStar6_png,bubbleStar7_png,bubbleStar8_png,bubbleStar9_png,bubbleStar10_png,bubbleStar11_png,bubbleStar12_png,bubbleStar13_png,bubbleStar14_png,bubbleStar15_png,bubbleStar16_png,bubbleStar17_png,bubbleStar18_png,ele11_png,ele10_png,brownBallFace_png,eyeDownLeft_png,eyeSingle_png,greyBallFace_png,eyeDownRight_png,hairballPiece9_png,hairballPiece8_png,hairballPiece7_png,hairballPiece6_png,hairballPiece5_png,hairballPiece4_png,hairballPiece3_png,hairballPiece2_png,hairballPiece11_png,hairballPiece10_png,hairballPiece1_png,hairballDisBg_png,curScoreNum9_png,curScoreNum8_png,curScoreNum7_png,curScoreNum6_png,curScoreNum5_png,curScoreNum4_png,curScoreNum3_png,curScoreNum2_png,curScoreNum1_png,curScoreNum0_png,festivalTargetBg_png,lineLight9_png,lineLight8_png,lineLight7_png,lineLight6_png,lineLight5_png,lineLight4_png,lineLight3_png,lineLight2_png,lineLight13_png,lineLight12_png,lineLight11_png,lineLight10_png,lineLight1_png,fesRedUp_png,fesRedSmallLight_png,fesRedDown_png,fesRedCap_png,fesRedBombSta1_png,fesRedBigLight_png,fesEleSmallDis9_png,fesEleSmallDis8_png,fesEleSmallDis7_png,fesEleSmallDis6_png,fesEleSmallDis5_png,fesEleSmallDis4_png,fesEleSmallDis3_png,fesEleSmallDis2_png,fesEleSmallDis10_png,fesEleSmallDis1_png,ele12_png,ele13_png,xingxingbi_png,tinyRedMid_png,tinyRedLeft_png,tinyRedRight_png,rectLatWhite_png,fesRedBombSta2_png,ele14_png,redBombYStar_png,redBombBStar_png,redBombBSnow_png,线条尾部炸开_00000_png,线条尾部炸开_00001_png,线条尾部炸开_00002_png,线条尾部炸开_00003_png,线条尾部炸开_00004_png,线条尾部炸开_00005_png,线条尾部炸开_00006_png,线条尾部炸开_00007_png,线条尾部炸开_00008_png,ele15_png,ele16_png,ele17_png,ele18_png,ele19_png,ele20_png,empty_png,ele23_png,ele25_png,ele27_png,ele26_png,ele24_png,ele22_png,chocolateMark3_png,chocolateMark1_png,chocolateFour_png,chocolateMark0_png,chocolateMark2_png,redbombParticle_png,monster_shoot_png,ele33_1_png,ele33_0_png,ele34_png,honey_png,ele36_png,lef_png,propBg_png,check0_png,check1_png,check2_png,check3_png,check4_png,check7_png,check8_png,check9_png,check关_png,check第_png,check6_png,check5_png,ele38_png,ele39_png,gameGuide_png,ele41_png,ele42_png,ele43_png,ele44_png,ele45_png,ele42fn_png,ele43fn_png,ele44fn_png,ele45fn_png",
"name": "main2" "name": "main2"
}, },
{ {
...@@ -5478,24 +5478,24 @@ ...@@ -5478,24 +5478,24 @@
"name": "ele45_png" "name": "ele45_png"
}, },
{ {
"name": "ele42fn_png", "url": "assets/mainScene/ele42fn.png",
"type": "image", "type": "image",
"url": "assets/mainScene/ele42fn.png" "name": "ele42fn_png"
}, },
{ {
"name": "ele43fn_png", "url": "assets/mainScene/ele43fn.png",
"type": "image", "type": "image",
"url": "assets/mainScene/ele43fn.png" "name": "ele43fn_png"
}, },
{ {
"name": "ele44fn_png", "url": "assets/mainScene/ele44fn.png",
"type": "image", "type": "image",
"url": "assets/mainScene/ele44fn.png" "name": "ele44fn_png"
}, },
{ {
"name": "ele45fn_png", "url": "assets/mainScene/ele45fn.png",
"type": "image", "type": "image",
"url": "assets/mainScene/ele45fn.png" "name": "ele45fn_png"
} }
] ]
} }
\ No newline at end of file
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
<e:Image id="icon34" width="70" height="70" source="startpanel_ele34_png"/> <e:Image id="icon34" width="70" height="70" source="startpanel_ele34_png"/>
<e:Image id="icon36" width="70" height="70" source="startpanel_ele36_png"/> <e:Image id="icon36" width="70" height="70" source="startpanel_ele36_png"/>
<e:Image id="icon41" width="70" height="70" source="ele41_png"/> <e:Image id="icon41" width="70" height="70" source="ele41_png"/>
<e:Image id="icon42" source="ele42_png" scaleX="0.5" scaleY="0.5" y="-3" x="21"/> <e:Image id="icon42" scaleX="0.45" scaleY="0.45" y="-4" x="25" source="ele42fn_png"/>
<e:Image id="icon42_f" source="ele42_png" scaleX="0.5" scaleY="0.5" y="-3" x="21"/>
<e:Image id="icon43" source="ele43_png" scaleX="0.3" scaleY="0.3" x="1" y="1"/> <e:Image id="icon43" scaleX="0.3" scaleY="0.3" x="-3" y="-4" source="ele43fn_png"/>
<e:Image id="icon43_f" source="ele43_png" scaleX="0.3" scaleY="0.3" x="1" y="1"/>
<e:Image id="icon44" source="ele44_png" scaleX="0.4" scaleY="0.4" x="5" y="1"/> <e:Image id="icon44" scaleX="0.4" scaleY="0.4" x="2" y="1" source="ele44fn_png"/>
<e:Image id="icon44_f" source="ele44_png" scaleX="0.4" scaleY="0.4" x="5" y="1"/>
<e:Image id="icon45" source="ele45_png" scaleX="0.3" scaleY="0.3" y="13" x="0"/> <e:Image id="icon45" scaleX="0.3" scaleY="0.3" y="13" x="-1" source="ele45fn_png"/>
<e:Image id="icon45_f" source="ele45_png" scaleX="0.3" scaleY="0.3" y="13"/>
<e:BitmapLabel id="txt" text="0" font="nums4_fnt" verticalCenter="20.5" x="73.2" scaleX="0.85" scaleY="0.85"/> <e:BitmapLabel id="txt" text="0" font="nums4_fnt" verticalCenter="20.5" x="73.2" scaleX="0.85" scaleY="0.85"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -7237,29 +7237,29 @@ export default class MainScene extends Scene { ...@@ -7237,29 +7237,29 @@ export default class MainScene extends Scene {
var sizew:number; var sizew:number;
var sizeh:number; var sizeh:number;
if(type==ElementType.food1){ if(type==ElementType.food1){
tscale = 0.5; tscale = 0.45;
addx = 21; addx = 25;
addy = -3; addy = -4;
sizew = 93; sizew = 95;
sizeh = 159; sizeh = 177;
}else if(type==ElementType.food2){ }else if(type==ElementType.food2){
tscale = 0.3; tscale = 0.3;
addx = 1; addx = -3;
addy = 1; addy = -4;
sizew = 249; sizew = 249;
sizeh = 226; sizeh = 255;
}else if(type==ElementType.food3){ }else if(type==ElementType.food3){
tscale = 0.4; tscale = 0.4;
addx = 5; addx = 2;
addy = 1; addy = 1;
sizew = 170; sizew = 170;
sizeh = 169; sizeh = 169;
}else if(type==ElementType.food4){ }else if(type==ElementType.food4){
tscale = 0.3; tscale = 0.3;
addx = 0; addx = -1;
addy = 13; addy = 13;
sizew = 248; sizew = 248;
sizeh = 168; sizeh = 170;
} }
var foodsize = mainscene.getFoodeSize(type); var foodsize = mainscene.getFoodeSize(type);
var foodwid = foodsize[0]*tscale;//sizew*tscale; var foodwid = foodsize[0]*tscale;//sizew*tscale;
......
...@@ -12,10 +12,10 @@ export default class TargetItemRenderer extends eui.ItemRenderer { ...@@ -12,10 +12,10 @@ export default class TargetItemRenderer extends eui.ItemRenderer {
this['icon' + i].visible = false; this['icon' + i].visible = false;
} }
//食物特殊处理 //食物特殊处理
this['icon42_f'].visible = false; // this['icon42_f'].visible = false;
this['icon43_f'].visible = false; // this['icon43_f'].visible = false;
this['icon44_f'].visible = false; // this['icon44_f'].visible = false;
this['icon45_f'].visible = false; // this['icon45_f'].visible = false;
this['icon' + this.data.type].visible = true; this['icon' + this.data.type].visible = true;
......
...@@ -100,31 +100,31 @@ var a = { ...@@ -100,31 +100,31 @@ var a = {
}; };
// 取数据格式用,一般情况注释 // 取数据格式用,一般情况注释
// (function exportFile(chapters: ChapterData[]) { (function exportFile(chapters: ChapterData[]) {
// var obj = [] var obj = []
// for (var i = 1; i < chapters.length; i++) { for (var i = 1; i < chapters.length; i++) {
// var chapter: ChapterData = chapters[i] var chapter: ChapterData = chapters[i]
// var target: PassTargetData = chapter.passTarget var target: PassTargetData = chapter.passTarget
// var a: any = {}; var a: any = {};
// a["lev"] = i; a["lev"] = i;
// a["tar"] = []; a["tar"] = [];
// if (target.type == PassType.SCORE_TARGET) { if (target.type == PassType.SCORE_TARGET) {
// a["tar"].push({ "type": 1, "num": target.score }) a["tar"].push({ "type": 1, "num": target.score })
// } else { } else {
// for (var j = 0; j < target.elements.length; j++) { for (var j = 0; j < target.elements.length; j++) {
// var element = target.elements[j]; var element = target.elements[j];
// a["tar"].push({ "type": submitTran[element.type], "num": element.count }) a["tar"].push({ "type": submitTran[element.type], "num": element.count })
// } }
// } }
// if(!chapter.starScores || chapter.starScores.length <=0) if(!chapter.starScores || chapter.starScores.length <=0)
// throw new Error('starScores未配置'+i) throw new Error('starScores未配置'+i)
// a["one"] = chapter.starScores[0]; a["one"] = chapter.starScores[0];
// a["two"] = chapter.starScores[1]; a["two"] = chapter.starScores[1];
// a["three"] = chapter.starScores[2]; a["three"] = chapter.starScores[2];
// obj.push(a) obj.push(a)
// } }
// var file = new File([JSON.stringify(obj)], "cfg.json", { type: "text/plain;charset=utf-8" }); var file = new File([JSON.stringify(obj)], "cfg.json", { type: "text/plain;charset=utf-8" });
// window["saveAs"](file); window["saveAs"](file);
// })(chapters) })(chapters)
...@@ -73,45 +73,45 @@ export class ElementTarget extends egret.DisplayObjectContainer { ...@@ -73,45 +73,45 @@ export class ElementTarget extends egret.DisplayObjectContainer {
var imgx:number; var imgx:number;
var imgy:number; var imgy:number;
if(type==ElementType.food1){ if(type==ElementType.food1){
texture = RES.getRes("ele" + type + "_png"); texture = RES.getRes("ele" + type + "fn_png");
showImage = new egret.Bitmap(texture); showImage = new egret.Bitmap(texture);
imgwid = 93; imgwid = 95;
imghei = 159; imghei = 177;
imgscale = 0.5; imgscale = 0.45;
imgx = 21; imgx = 25;
imgy = -3; imgy = -4;
this.setflyimg(texture,imgwid,imghei,imgscale,imgx,imgy); this.setflyimg(texture,imgwid,imghei,imgscale,imgx,imgy);
}else if(type==ElementType.food2){ }else if(type==ElementType.food2){
texture = RES.getRes("ele" + type + "_png"); texture = RES.getRes("ele" + type + "fn_png");
showImage = new egret.Bitmap(texture); showImage = new egret.Bitmap(texture);
imgwid = 249; imgwid = 249;
imghei = 226; imghei = 255;
imgscale = 0.3; imgscale = 0.3;
imgx = 1; imgx = -3;
imgy = 1; imgy = -4;
this.setflyimg(texture,imgwid,imghei,imgscale,imgx,imgy); this.setflyimg(texture,imgwid,imghei,imgscale,imgx,imgy);
}else if(type==ElementType.food3){ }else if(type==ElementType.food3){
texture = RES.getRes("ele" + type + "_png"); texture = RES.getRes("ele" + type + "fn_png");
showImage = new egret.Bitmap(texture); showImage = new egret.Bitmap(texture);
imgwid = 170; imgwid = 170;
imghei = 169; imghei = 169;
imgscale = 0.4; imgscale = 0.4;
imgx = 5; imgx = 2;
imgy = 1; imgy = 1;
this.setflyimg(texture,imgwid,imghei,imgscale,imgx,imgy); this.setflyimg(texture,imgwid,imghei,imgscale,imgx,imgy);
}else if(type==ElementType.food4){ }else if(type==ElementType.food4){
texture = RES.getRes("ele" + type + "_png"); texture = RES.getRes("ele" + type + "fn_png");
showImage = new egret.Bitmap(texture); showImage = new egret.Bitmap(texture);
imgwid = 248; imgwid = 248;
imghei = 168; imghei = 170;
imgscale = 0.3; imgscale = 0.3;
imgx = 0; imgx = -1;
imgy = 13; imgy = 13;
this.setflyimg(texture,imgwid,imghei,imgscale,imgx,imgy); this.setflyimg(texture,imgwid,imghei,imgscale,imgx,imgy);
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment