Commit f63d2887 authored by wildfirecode's avatar wildfirecode

1

parent 7d469bcf
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
background-color: #000; background-color: #000;
background-size: 100%; background-size: 100%;
background-position:top; background-position:top;
background-image: url("https://yun.duiba.com.cn/db_games/activity/game/1565600901/resource/assets/startScene/startscenebg.jpg"); background-image: url("https://yun.duiba.com.cn/db_games/activity/game/0207/startscenebg.jpg");
/* background-image: url("https://yun.duiba.com.cn/db_games/activity/game/1565600901/resource/assets/startScene/startscenebg.jpg"); */
padding: 0; padding: 0;
border: 0; border: 0;
margin: 0; margin: 0;
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
<e:Label id="FZY3JW" text=" " y="1048" textColor="0x244B00" fontFamily="FZY3JW" horizontalCenter="0" visible="false"/> <e:Label id="FZY3JW" text=" " y="1048" textColor="0x244B00" fontFamily="FZY3JW" horizontalCenter="0" visible="false"/>
<e:Label id="FZY4JW" text=" " y="1048" textColor="0x244B00" fontFamily="FZY4JW" horizontalCenter="0" visible="false"/> <e:Label id="FZY4JW" text=" " y="1048" textColor="0x244B00" fontFamily="FZY4JW" horizontalCenter="0" visible="false"/>
<e:Component id="bg" width="750" height="1624" verticalCenter="0" visible="false"/> <e:Component id="bg" width="750" height="1624" verticalCenter="0" visible="false"/>
<e:Component id="container2" x="0" width="750" height="1624" y="0"/> <e:Component id="container2" x="0" width="750" height="1624" y="0" visible="false"/>
<e:Component id="container1" x="0" width="750" height="1624"/> <e:Component id="container1" x="0" width="750" height="1624" visible="false"/>
<e:Group width="750" x="0" y="995"> <e:Group width="750" x="0" y="1013.18">
<e:Group y="30.94" x="140"> <e:Group y="30.94" x="140">
<e:Image source="loadingbg_png" y="0" x="0"/> <e:Image source="loadingbg_png" y="0" x="0"/>
<e:Group id="maskwrapper" x="14.56" y="7.14"> <e:Group id="maskwrapper" x="14.56" y="7.14">
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
</e:Group> </e:Group>
<e:Image id="progressmask2" y="9.14" x="16" source="mask2_png" width="444" height="60" scaleX="1"/> <e:Image id="progressmask2" y="9.14" x="16" source="mask2_png" width="444" height="60" scaleX="1"/>
</e:Group> </e:Group>
<e:Label id="tips" text="正在加载中,请稍后" y="0" size="24" horizontalCenter="0" textColor="0x244b00"/> <e:Label id="tips" text="正在加载中,请稍后" y="0" size="26" horizontalCenter="0" textColor="0x3c2107" bold="true"/>
<e:Label id="percentTxt" text="63%" y="117" horizontalCenter="0" textColor="0x244b00"/> <e:Label id="percentTxt" text="63%" y="117" horizontalCenter="0" textColor="0x3c2107" bold="true"/>
</e:Group> </e:Group>
<e:Image source="头顶树丛_png" x="0" y="0"/> <e:Image source="头顶树丛_png" x="0" y="0" visible="false"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -6,7 +6,21 @@ import { loadSvga } from "../loadSvga"; ...@@ -6,7 +6,21 @@ import { loadSvga } from "../loadSvga";
import MapBottomPart from "../mapScene/MapBottomPart"; import MapBottomPart from "../mapScene/MapBottomPart";
import MapRpeatPart from "../mapScene/MapRpeatPart"; import MapRpeatPart from "../mapScene/MapRpeatPart";
import MapTopPart from "../mapScene/MapTopPart"; import MapTopPart from "../mapScene/MapTopPart";
import setGlow from "../setGlow";
const setGlow = (img: egret.DisplayObject, color: number,alpha:number) => {
// const color = 0x33CCFF; /// 光晕的颜色,十六进制,不包含透明度
// const alpha = 0.8; /// 光晕的颜色透明度,是对 color 参数的透明度设定。有效值为 0.0 到 1.0。例如,0.8 设置透明度值为 80%。
const blurX = 6; /// 水平模糊量。有效值为 0 到 255.0(浮点)
const blurY = 6; /// 垂直模糊量。有效值为 0 到 255.0(浮点)
const strength = 10; /// 压印的强度,值越大,压印的颜色越深,而且发光与背景之间的对比度也越强。有效值为 0 到 255。暂未实现
const quality: number = egret.BitmapFilterQuality.HIGH; /// 应用滤镜的次数,建议用 BitmapFilterQuality 类的常量来体现
const inner = false; /// 指定发光是否为内侧发光,暂未实现
const knockout = false; /// 指定对象是否具有挖空效果,暂未实现
const glowFilter: egret.GlowFilter = new egret.GlowFilter(color, alpha, blurX, blurY,
strength, quality, inner, knockout);
img.filters = [glowFilter];
}
const list = [ const list = [
'小提示:凑齐5个萌狮连消,可以开启大招哦!', '小提示:凑齐5个萌狮连消,可以开启大招哦!',
'小提示:连续爆炸,得分会成倍增加~', '小提示:连续爆炸,得分会成倍增加~',
...@@ -24,7 +38,7 @@ export default class StartScene extends Scene { ...@@ -24,7 +38,7 @@ export default class StartScene extends Scene {
async start(data?) { async start(data?) {
super.start(); super.start();
this.height=this.stage.stageHeight; this.height = this.stage.stageHeight;
if (data) if (data)
this.level = data.level; this.level = data.level;
this['container1'].x = 20; this['container1'].x = 20;
...@@ -35,6 +49,11 @@ export default class StartScene extends Scene { ...@@ -35,6 +49,11 @@ export default class StartScene extends Scene {
this['percentTxt'].text = `0%`; this['percentTxt'].text = `0%`;
const index = Math.floor(Math.random() * list.length); const index = Math.floor(Math.random() * list.length);
this['tips'].text = list[index]; this['tips'].text = list[index];
setGlow(this['tips'], 0xffffff, 1);
setGlow(this['percentTxt'], 0xffffff, 1);
console.log(data); console.log(data);
if (data && Array.isArray(data)) { if (data && Array.isArray(data)) {
this['container3'].addChild(data[0]); this['container3'].addChild(data[0]);
......
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