Commit 57302a00 authored by wildfirecode's avatar wildfirecode

1

parent 3cf6e5ef
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</script> </script>
<script src="output.js"></script> <script src="output.js"></script>
<!-- <div id="debugCanvas" style="position:absolute;opacity: .3;pointer-events: none"></div> --> <div id="debugCanvas" style="position:absolute;opacity: .9;pointer-events: none"></div>
</body> </body>
</html> </html>
\ No newline at end of file
{ {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"start","version":5,"files":["../assets/startScene/ruleBtn.png","../assets/startScene/recordbtn.png","../assets/startScene/rankBtn.png","../assets/startScene/optionBtn.png","../assets/startScene/btnRight.png","../assets/startScene/btnLeft.png","../assets/startScene/bg3.png","../assets/startScene/arrow.png","../assets/startScene/转盘前景.png","../assets/startScene/小丑+转盘.png","../assets/startScene/碗后盖.png","../assets/startScene/甜筒-已获得.png","../assets/startScene/甜筒-未获得.png","../assets/startScene/甜甜圈-已获得.png","../assets/startScene/甜甜圈-未获得.png","../assets/startScene/糖果-已获得.png","../assets/startScene/糖果-未获得.png","../assets/startScene/前景.png","../assets/startScene/礼盒-已获得.png","../assets/startScene/礼盒-未获得.png","../assets/startScene/垃圾桶后盖.png","../assets/startScene/进度条-已显示.png","../assets/startScene/金蛋-已获得.png","../assets/startScene/金蛋-未获得.png","../assets/startScene/奖品.png","../assets/startScene/红包.png","../assets/startScene/灯2.png","../assets/startScene/灯1.png"]}
"projectName": "start", \ No newline at end of file
"version": 5,
"files": [
"./../assets/startScene/ruleBtn.png",
"./../assets/startScene/recordbtn.png",
"./../assets/startScene/rankBtn.png",
"./../assets/startScene/optionBtn.png",
"./../assets/startScene/btnRight.png",
"./../assets/startScene/btnLeft.png",
"./../assets/startScene/bg3.png",
"./../assets/startScene/arrow.png",
"./../assets/startScene/转盘前景.png",
"./../assets/startScene/小丑+转盘.png",
"./../assets/startScene/碗后盖.png",
"./../assets/startScene/甜筒-已获得.png",
"./../assets/startScene/甜筒-未获得.png",
"./../assets/startScene/甜甜圈-已获得.png",
"./../assets/startScene/甜甜圈-未获得.png",
"./../assets/startScene/糖果-已获得.png",
"./../assets/startScene/糖果-未获得.png",
"./../assets/startScene/前景.png",
"./../assets/startScene/礼盒-已获得.png",
"./../assets/startScene/礼盒-未获得.png",
"./../assets/startScene/垃圾桶后盖.png",
"./../assets/startScene/进度条-已显示.png",
"./../assets/startScene/金蛋-已获得.png",
"./../assets/startScene/金蛋-未获得.png",
"./../assets/startScene/奖品.png",
"./../assets/startScene/红包.png",
"./../assets/startScene/灯2.png",
"./../assets/startScene/灯1.png"
],
"options": {
"sizeMode": "free",
"useExtension": 0,
"layoutGap": 1,
"extend": 0,
"layoutMath": "3"
}
}
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"name": "rule" "name": "rule"
}, },
{ {
"keys": "startscenebg_jpg,start_btn_png,start_btn_gray_png,ruleBtn_png,recordbtn_png,rankBtn_png,optionBtn_png,btnRight_png,btnLeft_png,bg3_png,arrow_png,转盘前景_png,小丑+转盘_png,碗后盖_png,甜筒-已获得_png,甜筒-未获得_png,甜甜圈-已获得_png,甜甜圈-未获得_png,糖果-已获得_png,糖果-未获得_png,前景_png,礼盒-已获得_png,礼盒-未获得_png,垃圾桶后盖_png,进度条-已显示_png,金蛋-已获得_png,金蛋-未获得_png,奖品_png,红包_png,灯2_png,灯1_png", "keys": "startscenebg_jpg,ruleBtn_png,recordbtn_png,rankBtn_png,optionBtn_png,btnRight_png,btnLeft_png,bg3_png,arrow_png,转盘前景_png,小丑+转盘_png,碗后盖_png,甜筒-已获得_png,甜筒-未获得_png,甜甜圈-已获得_png,甜甜圈-未获得_png,糖果-已获得_png,糖果-未获得_png,前景_png,礼盒-已获得_png,礼盒-未获得_png,垃圾桶后盖_png,进度条-已显示_png,金蛋-已获得_png,金蛋-未获得_png,奖品_png,红包_png,灯2_png,灯1_png",
"name": "start" "name": "start"
} }
], ],
...@@ -105,16 +105,6 @@ ...@@ -105,16 +105,6 @@
"type": "image", "type": "image",
"name": "bg3_png" "name": "bg3_png"
}, },
{
"url": "assets/startScene/start_btn.png",
"type": "image",
"name": "start_btn_png"
},
{
"url": "assets/startScene/start_btn_gray.png",
"type": "image",
"name": "start_btn_gray_png"
},
{ {
"url": "assets/startScene/红包.png", "url": "assets/startScene/红包.png",
"type": "image", "type": "image",
......
...@@ -2,17 +2,20 @@ ...@@ -2,17 +2,20 @@
<e:Skin class="StartSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="StartSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<w:Config id="16705cb4eec"/> <w:Config id="16705cb4eec"/>
<e:Group id="group" x="0" y="0"> <e:Group id="group" x="0" y="0">
<e:Image id="bg" source="startscenebg_jpg" x="0" y="0"/> <e:Image id="bg" source="startscenebg_jpg" x="0" y="0" locked="true"/>
<e:Group id="lights" x="-3.04" y="700.53"> <e:Group id="lights" x="-3.04" y="700.53" locked="true">
<e:Image id="lights1" source="灯1_png" y="0" x="0"/> <e:Image id="lights1" source="灯1_png" y="0" x="0"/>
<e:Image id="lights2" source="灯2_png" x="0" y="0"/> <e:Image id="lights2" source="灯2_png" x="0" y="0"/>
</e:Group> </e:Group>
<e:Group id="group_joker" y="684" width="609" horizontalCenter="0" height="804"> <e:Group id="group_joker" y="684" width="609" horizontalCenter="0" height="804" locked="true">
<e:Image id="joker" source="小丑+转盘_png" y="500" anchorOffsetX="304.5" anchorOffsetY="500" rotation="0" x="304.5"/> <e:Image id="joker" source="小丑+转盘_png" y="500" anchorOffsetX="304.5" anchorOffsetY="500" rotation="0" x="304.5"/>
<e:Image source="转盘前景_png" y="500" horizontalCenter="0" anchorOffsetX="253.5" anchorOffsetY="261.5"/> <e:Image source="转盘前景_png" y="500" horizontalCenter="0" anchorOffsetX="253.5" anchorOffsetY="261.5"/>
</e:Group> </e:Group>
<e:Image id="rightbasket" source="碗后盖_png" x="537.35" y="1325.1" scaleX="1" scaleY="1"/>
<e:Image id="leftbasket" source="垃圾桶后盖_png" x="44.2" y="1329"/>
<e:Image id="arrow" source="arrow_png" y="1173" anchorOffsetX="275" anchorOffsetY="279" rotation="0" horizontalCenter="-2"/> <e:Image id="arrow" source="arrow_png" y="1173" anchorOffsetX="275" anchorOffsetY="279" rotation="0" horizontalCenter="-2"/>
<e:Image id="pipeline" source="bg3_png" y="0" horizontalCenter="0"/> <e:Image id="pipeline" source="bg3_png" y="0" horizontalCenter="0"/>
<e:Image source="前景_png" bottom="0" horizontalCenter="0" locked="true"/>
</e:Group> </e:Group>
<e:Button id="leftBtn" label="" y="1292.3" scaleX="1" scaleY="1" left="43" alpha="1" visible="false"> <e:Button id="leftBtn" label="" y="1292.3" scaleX="1" scaleY="1" left="43" alpha="1" visible="false">
<e:skinName> <e:skinName>
......
...@@ -16,6 +16,7 @@ export class MyExmlPlugin extends ExmlPlugin2 implements plugins.Command { ...@@ -16,6 +16,7 @@ export class MyExmlPlugin extends ExmlPlugin2 implements plugins.Command {
'candy.png', 'candy.png',
'candy2.png', 'candy2.png',
'donut.png', 'donut.png',
'egg.png',
'icecream.png', 'icecream.png',
'success.png', 'success.png',
'fail.png', 'fail.png',
......
...@@ -35,7 +35,7 @@ export default class StartScene extends StartSceneBase { ...@@ -35,7 +35,7 @@ export default class StartScene extends StartSceneBase {
this.egretRenderContainer = new egret.Sprite(); this.egretRenderContainer = new egret.Sprite();
this._egretRender = new EgretRender(this.egretRenderContainer, this._engine); this._egretRender = new EgretRender(this.egretRenderContainer, this._engine);
this.once(egret.Event.ADDED_TO_STAGE, () => { this['group'].y = this.stage.stageHeight - 1624; }, this); this.once(egret.Event.ADDED_TO_STAGE, () => { this['group'].y = this.stage.stageHeight - 1624; }, this);
this['group'].addChildAt(this.egretRenderContainer, 3); this['group'].addChildAt(this.egretRenderContainer, 5);
// [this['basket_bottom'], this['basket_top'], this['glass']].forEach(item => // [this['basket_bottom'], this['basket_top'], this['glass']].forEach(item =>
// egret.Tween.get(item).set({ alpha: 0 }).to({ alpha: 1 }, 500)); // egret.Tween.get(item).set({ alpha: 0 }).to({ alpha: 1 }, 500));
......
...@@ -2,9 +2,9 @@ import { wall, wallMask, basket, basketMask } from "./collisionConfig"; ...@@ -2,9 +2,9 @@ import { wall, wallMask, basket, basketMask } from "./collisionConfig";
import StartScene from "./StartScene"; import StartScene from "./StartScene";
const createBox = (_this: StartScene) => { const createBox = (_this: StartScene) => {
_this._egretRender.rectangle(750 / 2, 1500, 750, 60, null, { isStatic: true, collisionFilter: { group: wall, category: wall, mask: wallMask } }); _this._egretRender.rectangle(750 / 2, 1624, 750, 10, null, { isStatic: true, collisionFilter: { group: wall, category: wall, mask: wallMask } });
_this._egretRender.rectangle(0, 1624 / 2, 60, 1624, null, { isStatic: true, collisionFilter: { group: wall, category: wall, mask: wallMask } }); _this._egretRender.rectangle(0, 1624 / 2, 10, 1624, null, { isStatic: true, collisionFilter: { group: wall, category: wall, mask: wallMask } });
_this._egretRender.rectangle(750, 1624 / 2, 60, 1624, null, { isStatic: true, collisionFilter: { group: wall, category: wall, mask: wallMask } }); _this._egretRender.rectangle(750, 1624 / 2, 10, 1624, null, { isStatic: true, collisionFilter: { group: wall, category: wall, mask: wallMask } });
const seesaw = _this._egretRender.rectangle(373, 1173, 503, 70, _this['arrow'], { const seesaw = _this._egretRender.rectangle(373, 1173, 503, 70, _this['arrow'], {
......
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