Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
ebca6a9a
Commit
ebca6a9a
authored
Mar 27, 2020
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d97d6936
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
2918 deletions
+32
-2918
MainBase.ts
egret/libs/new_wx/MainBase.ts
+5
-3
guide5.png
egret/resource/assets/map/guide5.png
+0
-0
default.res.json
egret/resource/default.res.json
+6
-1
GuideCon.ts
egret/src/mapScene/GuideCon.ts
+20
-30
home.json
mock/happyclear/home.json
+1
-2884
No files found.
egret/libs/new_wx/MainBase.ts
View file @
ebca6a9a
...
@@ -255,7 +255,7 @@ export default class MainBase extends eui.UILayer {
...
@@ -255,7 +255,7 @@ export default class MainBase extends eui.UILayer {
RES
.
getResAsync
(
`candynums_fnt`
);
RES
.
getResAsync
(
`candynums_fnt`
);
//新加的5种基础消除特效
//新加的5种基础消除特效
RES
.
loadGroup
(
"eleDisNew"
)
RES
.
loadGroup
(
"eleDisNew"
)
;
if
(
!
window
[
'development'
])
{
if
(
!
window
[
'development'
])
{
RES
.
getResAsync
(
`common_json`
);
RES
.
getResAsync
(
`common_json`
);
...
@@ -289,8 +289,8 @@ export default class MainBase extends eui.UILayer {
...
@@ -289,8 +289,8 @@ export default class MainBase extends eui.UILayer {
RES
.
getResAsync
(
"boom"
+
i
+
"_png"
)
RES
.
getResAsync
(
"boom"
+
i
+
"_png"
)
}
}
for
(
var
i
=
0
;
i
<
5
;
i
++
)
{
for
(
var
i
=
0
;
i
<
5
;
i
++
)
{
RES
.
getResAsync
(
"ele"
+
i
+
"_png"
)
RES
.
getResAsync
(
"ele"
+
i
+
"_png"
)
;
RES
.
getResAsync
(
"ele"
+
i
+
"Line"
+
"_png"
)
RES
.
getResAsync
(
"ele"
+
i
+
"Line"
+
"_png"
)
;
RES
.
getResAsync
(
"ele"
+
i
+
"Exp"
+
"_png"
)
RES
.
getResAsync
(
"ele"
+
i
+
"Exp"
+
"_png"
)
}
}
for
(
var
i
=
0
;
i
<
21
;
i
++
)
{
for
(
var
i
=
0
;
i
<
21
;
i
++
)
{
...
@@ -339,6 +339,8 @@ export default class MainBase extends eui.UILayer {
...
@@ -339,6 +339,8 @@ export default class MainBase extends eui.UILayer {
RES
.
getResAsync
(
"propBg_png"
);
// 道具栏背景
RES
.
getResAsync
(
"propBg_png"
);
// 道具栏背景
RES
.
getResAsync
(
"guide5_png"
);
// for (var i = 1; i <= 5; i++) {
// for (var i = 1; i <= 5; i++) {
// RES.getResAsync("guideTxt" + i + "_png")
// RES.getResAsync("guideTxt" + i + "_png")
// }
// }
...
...
egret/resource/assets/map/guide5.png
0 → 100644
View file @
ebca6a9a
14.2 KB
egret/resource/default.res.json
View file @
ebca6a9a
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
"name"
:
"buy3"
"name"
:
"buy3"
},
},
{
{
"keys"
:
"宝箱_png,宝箱1_png,宝箱2_png,宝箱3_png,宝箱bg_png,宝箱btn_png,道具_png,关闭 拷贝_png,光 副本 4_png,设置_png,设置bg_png,声音_png,声音关闭_png,狮子_png,退出_png,问题_png,无星星_png,星星_png,星星bg_png,音乐_png,音乐关闭_png,有星星_png,有星星2_png,有星星3_png,元宝bg_png,ad_icon_png,animal1_png,avatar_png,friend_avatar_png,guideBox_png,guideLevel_png,guideLove_png,guideMoney_png,guideOver_png,icon_png,iconbg_png,icongray_png,invite_icon_png,invite_txtbg_png,lionMsgBg_png,map_signicon_png,map1_jpg,map2_jpg,map2+_png,map2+bg_png,map2红包大作战_png,map2热门引导_png,map2周一红包雨_png,map3_jpg,map大转盘_png,map刮现金红包_png,map今日可领_png,map明日可领_png,maphot_png,msgTri_png,namebg_png,progress1_png,progress2_png,recordbtn_png,taskicon_png,map2+bg2_png,mapredbagicom_png,maplight2_png,taskBtn_png,txtbg_blue_png,txtbg_orange_png,txtbg_purple_png,mapredbagicom2_png,iconnow_png,arrow_png"
,
"keys"
:
"宝箱_png,宝箱1_png,宝箱2_png,宝箱3_png,宝箱bg_png,宝箱btn_png,道具_png,关闭 拷贝_png,光 副本 4_png,设置_png,设置bg_png,声音_png,声音关闭_png,狮子_png,退出_png,问题_png,无星星_png,星星_png,星星bg_png,音乐_png,音乐关闭_png,有星星_png,有星星2_png,有星星3_png,元宝bg_png,ad_icon_png,animal1_png,avatar_png,friend_avatar_png,guideBox_png,guideLevel_png,guideLove_png,guideMoney_png,guideOver_png,icon_png,iconbg_png,icongray_png,invite_icon_png,invite_txtbg_png,lionMsgBg_png,map_signicon_png,map1_jpg,map2_jpg,map2+_png,map2+bg_png,map2红包大作战_png,map2热门引导_png,map2周一红包雨_png,map3_jpg,map大转盘_png,map刮现金红包_png,map今日可领_png,map明日可领_png,maphot_png,msgTri_png,namebg_png,progress1_png,progress2_png,recordbtn_png,taskicon_png,map2+bg2_png,mapredbagicom_png,maplight2_png,taskBtn_png,txtbg_blue_png,txtbg_orange_png,txtbg_purple_png,mapredbagicom2_png,iconnow_png,arrow_png
,guide5_png
"
,
"name"
:
"map"
"name"
:
"map"
},
},
{
{
...
@@ -5332,6 +5332,11 @@
...
@@ -5332,6 +5332,11 @@
"url"
:
"assets/common/nums4.fnt"
,
"url"
:
"assets/common/nums4.fnt"
,
"type"
:
"font"
,
"type"
:
"font"
,
"name"
:
"nums4_fnt"
"name"
:
"nums4_fnt"
},
{
"url"
:
"assets/map/guide5.png"
,
"type"
:
"image"
,
"name"
:
"guide5_png"
}
}
]
]
}
}
\ No newline at end of file
egret/src/mapScene/GuideCon.ts
View file @
ebca6a9a
...
@@ -6,7 +6,7 @@ let cacheKey = "happyClear" + window["CFG"].consumerId;
...
@@ -6,7 +6,7 @@ let cacheKey = "happyClear" + window["CFG"].consumerId;
export
const
getCacheKey
=
()
=>
{
export
const
getCacheKey
=
()
=>
{
return
cacheKey
return
cacheKey
}
}
;
/**
/**
* 读取缓存
* 读取缓存
...
@@ -44,7 +44,7 @@ let arrow: eui.Group;
...
@@ -44,7 +44,7 @@ let arrow: eui.Group;
* \n
* \n
*/
*/
export
class
GuideCon
extends
egret
.
DisplayObjectContainer
{
export
class
GuideCon
extends
egret
.
DisplayObjectContainer
{
private
steps
:
number
=
4
;
private
steps
:
number
=
5
;
private
curStep
:
number
=
1
;
private
curStep
:
number
=
1
;
groups
:
any
[];
groups
:
any
[];
couldOver
:
boolean
=
false
;
couldOver
:
boolean
=
false
;
...
@@ -64,7 +64,7 @@ export class GuideCon extends egret.DisplayObjectContainer {
...
@@ -64,7 +64,7 @@ export class GuideCon extends egret.DisplayObjectContainer {
bg
.
touchEnabled
=
true
;
bg
.
touchEnabled
=
true
;
this
.
addChild
(
bg
);
this
.
addChild
(
bg
);
var
board
=
new
egret
.
Bitmap
(
RES
.
getRes
(
"lionMsgBg_png"
))
var
board
=
new
egret
.
Bitmap
(
RES
.
getRes
(
"lionMsgBg_png"
))
;
board
.
x
=
143
;
board
.
x
=
143
;
board
.
y
=
737
;
board
.
y
=
737
;
board
.
touchEnabled
=
true
;
board
.
touchEnabled
=
true
;
...
@@ -114,15 +114,18 @@ export class GuideCon extends egret.DisplayObjectContainer {
...
@@ -114,15 +114,18 @@ export class GuideCon extends egret.DisplayObjectContainer {
this
.
groups
.
push
(
box
);
this
.
groups
.
push
(
box
);
//两个图标,道具商城和我的奖励
//两个图标,道具商城和我的奖励
var
gg
=
new
egret
.
DisplayObjectContainer
();
var
gg
=
new
egret
.
DisplayObjectContainer
();
gg
.
addChild
(
new
egret
.
Bitmap
(
RES
.
getRes
(
"道具_png"
)));
gg
.
addChild
(
new
egret
.
Bitmap
(
RES
.
getRes
(
"guide5_png"
)));
var
recordBtn
=
new
egret
.
Bitmap
(
RES
.
getRes
(
"recordbtn_png"
));
// gg.addChild(new egret.Bitmap(RES.getRes("道具_png")));
recordBtn
.
x
=
620.14
-
615.08
;
gg
.
x
=
16.5
;
recordBtn
.
y
=
255.91
-
128.01
;
gg
.
y
=
30.5
;
gg
.
addChild
(
recordBtn
);
// var recordBtn = new egret.Bitmap(RES.getRes("recordbtn_png"));
// recordBtn.x = 620.14 - 615.08;
// recordBtn.y = 255.91 - 128.01;
// gg.addChild(recordBtn);
this
.
addChild
(
gg
);
this
.
addChild
(
gg
);
this
.
groups
.
push
(
gg
);
this
.
groups
.
push
(
gg
);
gg
.
x
=
615.08
;
gg
.
y
=
128.01
;
//跳过提示
//跳过提示
var
guideOver
=
new
egret
.
Bitmap
(
RES
.
getRes
(
"guideOver_png"
));
var
guideOver
=
new
egret
.
Bitmap
(
RES
.
getRes
(
"guideOver_png"
));
...
@@ -134,7 +137,7 @@ export class GuideCon extends egret.DisplayObjectContainer {
...
@@ -134,7 +137,7 @@ export class GuideCon extends egret.DisplayObjectContainer {
clearTimeout
(
this
.
timeoutId
);
clearTimeout
(
this
.
timeoutId
);
writeCache
();
writeCache
();
if
(
this
.
callback
)
this
.
callback
();
if
(
this
.
callback
)
this
.
callback
();
},
this
)
},
this
)
;
this
.
addChild
(
guideOver
);
this
.
addChild
(
guideOver
);
//箭头
//箭头
...
@@ -163,7 +166,6 @@ export class GuideCon extends egret.DisplayObjectContainer {
...
@@ -163,7 +166,6 @@ export class GuideCon extends egret.DisplayObjectContainer {
.
to
({
x
:
0
,
y
:
-
40
},
350
,
egret
.
Ease
.
quadInOut
)
.
to
({
x
:
0
,
y
:
-
40
},
350
,
egret
.
Ease
.
quadInOut
)
.
to
({
x
:
0
,
y
:
0
},
350
,
egret
.
Ease
.
quadInOut
);
.
to
({
x
:
0
,
y
:
0
},
350
,
egret
.
Ease
.
quadInOut
);
// this.groups.push(arrowImg);
}
}
...
@@ -173,23 +175,15 @@ export class GuideCon extends egret.DisplayObjectContainer {
...
@@ -173,23 +175,15 @@ export class GuideCon extends egret.DisplayObjectContainer {
}
}
}
}
// positions: number[][] = [
// [338, 310, 180],
// [530, 310, 180],
// [369, 380, 0],
// [743, 310, 180],
// [440, 350, -90],
// ];
positions
:
number
[][]
=
[
positions
:
number
[][]
=
[
[
28
3
,
190
,
180
],
[
28
5
,
190
,
180
],
[
47
3
,
190
,
180
],
[
47
5
,
190
,
180
],
[
445
,
500
,
0
],
[
445
,
500
,
0
],
[
67
5
,
190
,
180
],
[
67
2
,
190
,
180
],
[
440
,
350
,
-
9
0
],
[
100
,
210
,
18
0
],
];
];
words
:
string
[]
=
[
words
:
string
[]
=
[
"这里是体力值,闯关失败会
\n
扣除1体力值,闯关成功不
扣
\n
除哦~"
,
"这里是体力值,闯关失败会
\n
扣除1体力值,闯关成功不
\n
扣
除哦~"
,
"这里是元宝,闯关成功后可
\n
随机获得大量元宝,元宝可
\n
用于兑换体力值和游戏道具"
,
"这里是元宝,闯关成功后可
\n
随机获得大量元宝,元宝可
\n
用于兑换体力值和游戏道具"
,
"在这里选择查看关卡,闯关
\n
成功后还有机会赢得丰厚奖
\n
励哟!"
,
"在这里选择查看关卡,闯关
\n
成功后还有机会赢得丰厚奖
\n
励哟!"
,
"每个关卡收集的星星可用于
\n
开启宝箱,宝箱里还有更多
\n
无敌券、品牌券在等你!"
,
"每个关卡收集的星星可用于
\n
开启宝箱,宝箱里还有更多
\n
无敌券、品牌券在等你!"
,
...
@@ -228,11 +222,7 @@ export class GuideCon extends egret.DisplayObjectContainer {
...
@@ -228,11 +222,7 @@ export class GuideCon extends egret.DisplayObjectContainer {
private
toggleVisible
(
step
:
number
)
{
private
toggleVisible
(
step
:
number
)
{
for
(
var
i
=
0
;
i
<
this
.
groups
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
groups
.
length
;
i
++
)
{
if
(
i
+
1
==
step
)
{
this
.
groups
[
i
].
visible
=
i
+
1
==
step
;
this
.
groups
[
i
].
visible
=
true
;
}
else
{
this
.
groups
[
i
].
visible
=
false
}
}
}
}
}
...
...
mock/happyclear/home.json
View file @
ebca6a9a
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment