Commit 4f01bfbb authored by wildfirecode's avatar wildfirecode

1

parent 816df48c
...@@ -136,7 +136,8 @@ ...@@ -136,7 +136,8 @@
]; ];
// localStorage.clear(); // localStorage.clear();
window['imgver'] = '11112'; window['imgver'] = '11112';
window['total_level'] = 10 + 10 * 37; /// TODO 14 不能变 总数必须大于总的关卡数 //top 7 ,repeat 13 , bottom 12
window['total_level'] = 19 + 13 * 28;
window['last_level'] = 375;//必须大于等于total_level ///TODO 标记最后一关,等于最后一关即可 window['last_level'] = 375;//必须大于等于total_level ///TODO 标记最后一关,等于最后一关即可
......
egret/resource/assets/map/icon.png

8.34 KB | W: | H:

egret/resource/assets/map/icon.png

9.52 KB | W: | H:

egret/resource/assets/map/icon.png
egret/resource/assets/map/icon.png
egret/resource/assets/map/icon.png
egret/resource/assets/map/icon.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="MapBottomSkin" width="750" height="815" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="MapBottomSkin" width="750" height="1530" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image source="map3_jpg" x="0" y="0"/> <e:Image source="map3_jpg" x="0" y="0"/>
<e:Group x="154.19" y="88.24" id="icon0"> <e:Group x="389" y="44" id="icon0">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt0" width="76" x="10" y="13" text="60" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt0" width="76" x="12" y="18.69" text="60" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group id="icon1" x="185.3" y="227.23"> <e:Group id="icon1" x="541.97" y="148.44">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt1" width="76" x="10" y="13" text="61" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt1" width="76" x="12" y="18.69" text="61" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="246.57" y="351.64" id="icon2"> <e:Group x="524" y="331" id="icon2">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt2" width="76" x="8" y="13" text="62" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt2" width="76" x="12" y="18.69" text="62" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="368.33" y="502.21" id="icon3"> <e:Group x="329.94" y="403" id="icon3">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt3" width="76" x="10" y="13" text="63" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt3" width="76" x="12" y="18.69" text="63" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="483" y="592" id="icon4" visible="false"> <e:Group x="83" y="513" id="icon4">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt4" width="76" x="10" y="13" text="64" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt4" width="76" x="12" y="18.69" text="64" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="562" y="746" id="icon5" visible="false"> <e:Group x="304" y="660" id="icon5">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt5" width="76" x="10" y="13" text="65" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt5" width="76" x="12" y="18.69" text="65" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="442.01" y="902.69" id="icon6" visible="false"> <e:Group x="297.01" y="829.69" id="icon6">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt6" width="76" x="10" y="13" text="66" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt6" width="76" x="12" y="18.69" text="66" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="453.01" y="892.69" id="icon7" visible="false"> <e:Group x="149.01" y="949.69" id="icon7">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt7" width="76" x="10" y="13" text="67" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt7" width="76" x="12" y="18.69" text="67" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="309.01" y="1052.69" id="icon8" visible="false"> <e:Group x="317.01" y="1052.69" id="icon8">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt8" width="76" x="10" y="13" text="68" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt8" width="76" x="12" y="18.69" text="68" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="95.01" y="1145.69" id="icon9" visible="false"> <e:Group x="507.01" y="1148.69" id="icon9">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt9" width="76" x="10" y="13" text="69" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt9" width="76" x="12" y="18.69" text="69" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="202.01" y="1255.69" id="icon10" visible="false"> <e:Group x="377.01" y="1209.69" id="icon10">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt10" width="76" x="10" y="13" text="70" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt10" width="76" x="12" y="18.69" text="70" font="nums_fnt" textAlign="center"/>
</e:Group>
<e:Group x="252.01" y="1282.69" id="icon11">
<e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt11" width="76" x="12" y="18.69" text="71" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="MapRepeatPartSkin" width="750" height="1299" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="MapRepeatPartSkin" width="750" height="1477" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image source="map2_jpg"/> <e:Image source="map2_jpg"/>
<e:Group x="168.09" y="42.07" id="icon0"> <e:Group x="351" y="26" id="icon0">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt0" width="76" x="10" y="13" text="1" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt0" width="76" x="12" y="18.69" text="1" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="177.34" y="184.34" id="icon1"> <e:Group x="196" y="158" id="icon1">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt1" width="76" x="10" y="13" text="2" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt1" width="76" x="12" y="18.69" text="2" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="251.33" y="321.19" id="icon2"> <e:Group x="143" y="302" id="icon2">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt2" width="76" x="10" y="12" text="3" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt2" width="76" x="12" y="18.69" text="3" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="398.49" y="419.24" id="icon3"> <e:Group x="235" y="435" id="icon3">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt3" width="76" x="10" y="12" text="4" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt3" width="76" x="12" y="18.69" text="4" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="521.94" y="553.06" id="icon4"> <e:Group x="348" y="547" id="icon4">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt4" width="76" x="10" y="12" text="5" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt4" width="76" x="12" y="18.69" text="5" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="421.13" y="702.39" id="icon5"> <e:Group x="499" y="674" id="icon5">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt5" width="76" x="10" y="12" text="6" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt5" width="76" x="12" y="18.69" text="6" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="267.73" y="784.91" id="icon6"> <e:Group x="390" y="821" id="icon6">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt6" width="76" x="10" y="12" text="7" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt6" width="76" x="12" y="18.69" text="7" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="399.66" y="915.3" id="icon7"> <e:Group x="218" y="897" id="icon7">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt7" width="76" x="10" y="12" text="8" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt7" width="76" x="12" y="18.69" text="8" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="447.61" y="1032.6" id="icon8"> <e:Group x="28" y="969" id="icon8">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt8" width="76" x="10" y="12" text="9" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt8" width="76" x="12" y="18.69" text="9" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="326.36" y="1136.27" id="icon9"> <e:Group x="237" y="1072" id="icon9">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel id="txt9" width="76" x="10" y="12" text="10" font="nums_fnt" textAlign="center"/> <e:BitmapLabel id="txt9" width="76" x="12" y="18.69" text="10" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="408" y="1249.12" id="icon10" visible="false"> <e:Group x="377" y="1137" id="icon10">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="10" y="12" text="11" font="nums_fnt" textAlign="center" id="txt10"/> <e:BitmapLabel width="76" x="12" y="18.69" text="11" font="nums_fnt" textAlign="center" id="txt10"/>
</e:Group> </e:Group>
<e:Group x="348" y="1379.76" id="icon11" visible="false"> <e:Group x="508" y="1254" id="icon11">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="10" y="12" text="12" font="nums_fnt" textAlign="center" id="txt11"/> <e:BitmapLabel width="76" x="12" y="18.69" text="12" font="nums_fnt" textAlign="center" id="txt11"/>
</e:Group> </e:Group>
<e:Group x="324" y="1527.61" id="icon12" visible="false"> <e:Group x="359" y="1367" id="icon12">
<e:Image source="icon_png" x="-1" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="10" y="13" text="13" font="nums_fnt" textAlign="center" id="txt12"/> <e:BitmapLabel width="76" x="12" y="18.69" text="13" font="nums_fnt" textAlign="center" id="txt12"/>
</e:Group> </e:Group>
<e:Image id="animal1" source="狮子_png" x="201.68" y="651.02" anchorOffsetX="0" width="152.81" anchorOffsetY="0" height="132.72" visible="false"/> <e:Image id="animal1" source="狮子_png" x="188" y="607" visible="false"/>
<e:Image id="animal2" source="animal1_png" x="232" y="567.5" visible="false"/> <e:Image id="animal2" source="animal1_png" x="232" y="567.5" visible="false"/>
</e:Skin> </e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="MapTop" width="750" height="1267" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="MapTop" width="750" height="1240" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image source="map1_jpg" x="0" y="0"/> <e:Image source="map1_jpg" x="0" y="0"/>
<e:Group x="390.43" y="586.94" id="icon0"> <e:Group x="315" y="492" id="icon0">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="10" y="12" text="1" font="nums_fnt" textAlign="center"/> <e:BitmapLabel width="76" x="12" y="18.69" text="1" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group id="icon1" x="502.12" y="649.24"> <e:Group id="icon1" x="196" y="550.35">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="10" y="12" text="2" font="nums_fnt" textAlign="center"/> <e:BitmapLabel width="76" x="12" y="18.69" text="2" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="491.24" y="763.82" id="icon2"> <e:Group x="142" y="744" id="icon2">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="10" y="12" text="3" font="nums_fnt" textAlign="center"/> <e:BitmapLabel width="76" x="12" y="18.69" text="3" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="374.1" y="927.34" id="icon3"> <e:Group x="360" y="803" id="icon3">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="10" y="12" text="4" font="nums_fnt" textAlign="center"/> <e:BitmapLabel width="76" x="12" y="18.69" text="4" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="346.32" y="1032.28" id="icon4"> <e:Group x="551" y="810" id="icon4">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="10" y="12" text="5" font="nums_fnt" textAlign="center"/> <e:BitmapLabel width="76" x="12" y="18.69" text="5" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
<e:Group x="271.76" y="1168.39" id="icon5"> <e:Group x="440" y="975" id="icon5">
<e:Image source="icon_png" x="0" y="0"/> <e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="10" y="12" text="6" font="nums_fnt" textAlign="center"/> <e:BitmapLabel width="76" x="12" y="18.69" text="6" font="nums_fnt" textAlign="center"/>
</e:Group>
<e:Group x="297.01" y="1089.69" id="icon6">
<e:Image source="icon_png" x="0" y="0"/>
<e:BitmapLabel width="76" x="12" y="18.69" text="7" font="nums_fnt" textAlign="center"/>
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -8,7 +8,7 @@ import MapRpeatPart from "./MapRpeatPart"; ...@@ -8,7 +8,7 @@ import MapRpeatPart from "./MapRpeatPart";
import { getRepeatCount } from "../startScene/StartScene"; import { getRepeatCount } from "../startScene/StartScene";
export default class MapBottomPart extends ComponentBase { export default class MapBottomPart extends ComponentBase {
static LEVEL_NUMS = 4; static LEVEL_NUMS = 12;
getTxt(i): eui.BitmapLabel { return this[`txt${i}`]; } getTxt(i): eui.BitmapLabel { return this[`txt${i}`]; }
start({repeatHeight,topHeight}) { start({repeatHeight,topHeight}) {
super.start(); super.start();
......
...@@ -6,7 +6,7 @@ import setGray from "../setGray"; ...@@ -6,7 +6,7 @@ import setGray from "../setGray";
import { showToast } from "../../libs/new_wx/ctrls/toastCtrl"; import { showToast } from "../../libs/new_wx/ctrls/toastCtrl";
export default class MapRpeatPart extends ComponentBase { export default class MapRpeatPart extends ComponentBase {
static LEVEL_NUMS = 10; static LEVEL_NUMS = 13;
private _index; private _index;
private _topHeight; private _topHeight;
constructor(i,topHeight) { constructor(i,topHeight) {
...@@ -46,8 +46,8 @@ export default class MapRpeatPart extends ComponentBase { ...@@ -46,8 +46,8 @@ export default class MapRpeatPart extends ComponentBase {
// console.log(icon['visibleY'] ); // console.log(icon['visibleY'] );
} }
// this['animal1'].visible = this._index % 2; this['animal1'].visible = this._index % 2;
// this['animal2'].visible = !this['animal1'].visible; this['animal2'].visible = !this['animal1'].visible;
} }
getIcon(i) { return this[`icon${i}`]; } getIcon(i) { return this[`icon${i}`]; }
......
...@@ -4,7 +4,7 @@ import MapStarComp from "./MapStarComp"; ...@@ -4,7 +4,7 @@ import MapStarComp from "./MapStarComp";
import { createData } from "../startScene/StartScene"; import { createData } from "../startScene/StartScene";
export default class MapTopPart extends ComponentBase { export default class MapTopPart extends ComponentBase {
static LEVEL_NUMS = 6; static LEVEL_NUMS = 7;
start() { start() {
super.start(); super.start();
for (let i = 0; i < MapTopPart.LEVEL_NUMS; i++) { for (let i = 0; i < MapTopPart.LEVEL_NUMS; i++) {
......
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