Commit d39883bb authored by zjz1994's avatar zjz1994

食物暂存

parent cb13ae72
......@@ -318,6 +318,10 @@ export default class MainBase extends eui.UILayer {
RES.getResAsync("kuang_png");
RES.getResAsync("wormhole_png");
RES.getResAsync("ele41_png");
RES.getResAsync("ele42_png");
RES.getResAsync("ele43_png");
RES.getResAsync("ele44_png");
RES.getResAsync("ele45_png");
for (var i = 1; i <= 27; i++) {
RES.getResAsync("bonusFra" + i + "_png")
......
......@@ -5423,39 +5423,59 @@
"name": "ele41_png"
},
{
"name": "hbchuanguan2_png",
"url": "assets/redbombalert/hbchuanguan2.png",
"type": "image",
"url": "assets/redbombalert/hbchuanguan2.png"
"name": "hbchuanguan2_png"
},
{
"name": "redAlert_btn1_png",
"url": "assets/redbombalert/redAlert_btn1.png",
"type": "image",
"url": "assets/redbombalert/redAlert_btn1.png"
"name": "redAlert_btn1_png"
},
{
"name": "loadingbgfes_png",
"url": "assets/startScene/loadingbgfes.png",
"type": "image",
"url": "assets/startScene/loadingbgfes.png"
"name": "loadingbgfes_png"
},
{
"name": "titimg1_png",
"url": "assets/redbombalert/titimg1.png",
"type": "image",
"url": "assets/redbombalert/titimg1.png"
"name": "titimg1_png"
},
{
"name": "titimg2_png",
"url": "assets/redbombalert/titimg2.png",
"type": "image",
"url": "assets/redbombalert/titimg2.png"
"name": "titimg2_png"
},
{
"name": "titimg3_png",
"url": "assets/redbombalert/titimg3.png",
"type": "image",
"url": "assets/redbombalert/titimg3.png"
"name": "titimg3_png"
},
{
"name": "titimg4_png",
"url": "assets/redbombalert/titimg4.png",
"type": "image",
"url": "assets/redbombalert/titimg4.png"
"name": "titimg4_png"
},
{
"url": "assets/mainScene/ele42.png",
"type": "image",
"name": "ele42_png"
},
{
"url": "assets/mainScene/ele43.png",
"type": "image",
"name": "ele43_png"
},
{
"url": "assets/mainScene/ele44.png",
"type": "image",
"name": "ele44_png"
},
{
"url": "assets/mainScene/ele45.png",
"type": "image",
"name": "ele45_png"
}
]
}
\ No newline at end of file
......@@ -25,26 +25,11 @@ export const Chapters30: ChapterData[] = [
], connectedLats: [], conveyor: [], conveyorConnectedLats: [],
WORMHOLE: [],
foodsdata:[
{
type:42,
luidx:23,
dir:"up"
},
{
type:43,
luidx:3,
dir:'left'
},
{
type:44,
luidx:56,
dir:'left'
},
{
type:45,
luidx:37,
dir:'left'
},
luidx:2,
dir:"up"
}
],
elements: [
4, 1, 1, 1, 1, 1, 1, 1, 4,
......
......@@ -45,8 +45,8 @@ export default class Food extends eui.Component{
this.showImage.rotation = roa;
var onelength = 78;
var posx = Tool.getPositionByIndex(luidx)[0]+irow*onelength/2;
var posy = Tool.getPositionByIndex(luidx)[1]+icol*onelength/2;
var posx = Tool.getPositionByIndex(luidx)[0]+irow*onelength/2-onelength/2;
var posy = Tool.getPositionByIndex(luidx)[1]+icol*onelength/2-onelength/2;
return [posx,posy];
}
}
\ No newline at end of file
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