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
123fdc42
Commit
123fdc42
authored
Dec 26, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4197dd3c
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
25 deletions
+31
-25
MainBase.ts
egret/libs/new_wx/MainBase.ts
+6
-3
loading.jpg
egret/resource/assets/loading.jpg
+0
-0
share2.jpg
egret/resource/assets/share2.jpg
+0
-0
share3.jpg
egret/resource/assets/share3.jpg
+0
-0
loading_animals.svga
egret/resource/assets/svgas/loading_animals.svga
+0
-0
default.res.json
egret/resource/default.res.json
+5
-0
StartSkin.exml
egret/resource/skins/StartSkin.exml
+5
-4
QuitPanel.ts
egret/src/panels/QuitPanel.ts
+0
-6
shareCtrl.ts
egret/src/shareCtrl.ts
+1
-1
StartScene.ts
egret/src/startScene/StartScene.ts
+14
-11
No files found.
egret/libs/new_wx/MainBase.ts
View file @
123fdc42
...
...
@@ -338,9 +338,9 @@ export default class MainBase extends eui.UILayer {
RES
.
getResAsync
(
"线条尾部炸开_0000"
+
i
+
"_png"
);
}
var
arr
=
[
"alert_blood"
,
"alert_prop1"
,
"alert_prop2"
,
"alert_prop3"
,
"alert_yb"
,
"alert_blood"
,
"alert_prop1"
,
"alert_prop2"
,
"alert_prop3"
,
"alert_yb"
,
"rectLatWhite"
,
"redBombBStar"
,
"redBombYStar"
,
"redBombBSnow"
,
"redBombBStar"
,
"redBombYStar"
,
"redBombBSnow"
,
"fesRedBigLight"
,
"fesRedBombSta1"
,
"fesRedBombSta2"
,
"fesRedCap"
,
"fesRedDown"
,
"fesRedSmallLight"
,
"fesRedUp"
,
"xingxingbi"
,
"tinyRedLeft"
,
"tinyRedMid"
,
"tinyRedRight"
,
"festivalTargetBg"
,
...
...
@@ -422,7 +422,10 @@ export default class MainBase extends eui.UILayer {
loadSvga
(
getResPath
()
+
'resource/assets/svgas/loading_progress.svga'
),
loadSvga
(
getResPath
()
+
'resource/assets/svgas/loading_animals.svga'
),
loadSvga
(
getResPath
()
+
'resource/assets/svgas/loading_title.svga'
),
loadSvga
(
getResPath
()
+
'resource/assets/svgas/拖尾结束.svga'
)
loadSvga
(
getResPath
()
+
'resource/assets/svgas/拖尾结束.svga'
),
new
Promise
((
r
)
=>
{
RES
.
getResAsync
(
'loading_jpg'
,
(
t
)
=>
{
r
(
t
)
},
this
)
})
]);
loadSvga
(
getResPath
()
+
'resource/assets/svgas/box.svga'
);
loadSvga
(
getResPath
()
+
'resource/assets/svgas/invite.svga'
);
...
...
egret/resource/assets/loading.jpg
0 → 100644
View file @
123fdc42
89.2 KB
egret/resource/assets/share2.jpg
View replaced file @
4197dd3c
View file @
123fdc42
This diff is collapsed.
Click to expand it.
egret/resource/assets/share3.jpg
View replaced file @
4197dd3c
View file @
123fdc42
400 KB
|
W:
|
H:
462 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/svgas/loading_animals.svga
View file @
123fdc42
No preview for this file type
egret/resource/default.res.json
View file @
123fdc42
...
...
@@ -3971,6 +3971,11 @@
"url"
:
"assets/common/common_block.png"
,
"type"
:
"image"
,
"name"
:
"common_block_png"
},
{
"url"
:
"assets/loading.jpg"
,
"type"
:
"image"
,
"name"
:
"loading_jpg"
}
]
}
\ No newline at end of file
egret/resource/skins/StartSkin.exml
View file @
123fdc42
...
...
@@ -3,9 +3,10 @@
<w:Config
id=
"16705cb4eec"
/>
<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:Component
id=
"bg"
width=
"750"
height=
"1624"
/>
<e:Component
id=
"container2"
width=
"20"
height=
"20"
x=
"0"
y=
"0"
/>
<e:Component
id=
"container1"
width=
"20"
height=
"20"
x=
"0"
y=
"0"
/>
<e:Group
x=
"140"
y=
"10
23.94
"
>
<e:Component
id=
"container1"
width=
"20"
height=
"20"
x=
"0"
y=
"
23
0"
/>
<e:Group
x=
"140"
y=
"10
96.67
"
>
<e:Image
source=
"loadingbg_png"
y=
"0"
x=
"0"
/>
<e:Group
id=
"maskwrapper"
x=
"14.56"
y=
"7.14"
locked=
"true"
>
<e:Group
id=
"container4"
x=
"0"
y=
"0"
>
...
...
@@ -17,6 +18,6 @@
<e:Image
id=
"progressmask2"
y=
"9.14"
x=
"16"
source=
"mask2_png"
width=
"444"
height=
"60"
scaleX=
"1"
/>
</e:Group>
<e:Image
source=
"头顶树丛_png"
x=
"0"
y=
"0"
visible=
"false"
/>
<e:Label
id=
"tips"
text=
"正在加载中,请稍后"
y=
"
993"
textColor=
"0x244b00"
horizontalCenter=
"0"
size=
"24
"
/>
<e:Label
id=
"percentTxt"
text=
"63%"
y=
"11
10"
textColor=
"0x244B00"
horizontalCenter=
"0.5
"
/>
<e:Label
id=
"tips"
text=
"正在加载中,请稍后"
y=
"
1065.73"
horizontalCenter=
"0"
size=
"24"
textColor=
"0x000000
"
/>
<e:Label
id=
"percentTxt"
text=
"63%"
y=
"11
82.73"
horizontalCenter=
"0.5"
textColor=
"0x000000
"
/>
</e:Skin>
\ No newline at end of file
egret/src/panels/QuitPanel.ts
View file @
123fdc42
...
...
@@ -11,13 +11,7 @@ export default class QuitPanel extends Panel {
super
.
start
();
if
(
data
)
this
.
_level
=
data
.
level
;
// this['resumeBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
// if (this._level)
// SceneCtrl.instance.change(ModuleTypes.START_SCENE, { level: this._level });
// else
// SceneCtrl.instance.change(ModuleTypes.START_SCENE);
// }, this);
this
[
'quitBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
18
));
...
...
egret/src/shareCtrl.ts
View file @
123fdc42
...
...
@@ -64,7 +64,7 @@ class Share2 extends ComponentBase {
// img.src = base64;
// img.src = data.data;
if
(
this
.
type
==
1
)
callShareApi
(
'https://yun.duiba.com.cn/db_games/xxshareshare
5
.jpg'
,
channel
);
callShareApi
(
'https://yun.duiba.com.cn/db_games/xxshareshare
6
.jpg'
,
channel
);
// callShareApi('https://yun.duiba.com.cn/db_games/xxshareshare3.jpg', channel);
else
callShareApi
(
'https://yun.duiba.com.cn/db_games/xxlshare.jpg'
,
channel
);
...
...
egret/src/startScene/StartScene.ts
View file @
123fdc42
...
...
@@ -21,6 +21,7 @@ export default class StartScene extends Scene {
private
_current
=
0
;
private
_timer
;
level
;
async
start
(
data
?)
{
super
.
start
();
if
(
data
)
...
...
@@ -34,16 +35,18 @@ export default class StartScene extends Scene {
const
index
=
Math
.
floor
(
Math
.
random
()
*
list
.
length
);
this
[
'tips'
].
text
=
list
[
index
];
// setGlow(this['tips'], 0xffffff, 1);
console
.
log
(
data
);
if
(
data
&&
Array
.
isArray
(
data
))
{
this
[
'container3'
].
addChild
(
data
[
0
]);
this
[
'container2'
].
addChild
(
data
[
1
]);
this
[
'container1'
].
addChild
(
data
[
2
]);
this
[
'bg'
].
addChild
(
new
egret
.
Bitmap
(
data
[
4
]));
}
else
{
await
Promise
.
all
([
loadSvga
(
getResPath
()
+
'resource/assets/svgas/loading_progress.svga'
,
this
[
'container3'
]),
loadSvga
(
getResPath
()
+
'resource/assets/svgas/loading_animals.svga'
,
this
[
'container2'
]),
loadSvga
(
getResPath
()
+
'resource/assets/svgas/loading_title.svga'
,
this
[
'container1'
])
loadSvga
(
getResPath
()
+
'resource/assets/svgas/loading_title.svga'
,
this
[
'container1'
])
,
]);
}
...
...
@@ -96,7 +99,7 @@ export default class StartScene extends Scene {
});
this
[
'percentTxt'
].
text
=
`100%`
clearInterval
(
this
.
_timer
);
},
200
+
1700
+
10000
);
},
200
+
1700
);
}
get
skinKey
()
{
return
'Start'
}
...
...
@@ -111,11 +114,11 @@ export const changeMapScene = (p?) => {
let
_startSceneData
;
export
const
createData
=
()
=>
{
if
(
_startSceneData
)
return
_startSceneData
;
if
(
_startSceneData
)
return
_startSceneData
;
const
startSceneData
:
any
=
{};
_startSceneData
=
startSceneData
;
const
repeatCount
=
getRepeatCount
();
const
repeatCount
=
getRepeatCount
();
const
list
=
[];
startSceneData
.
list
=
list
;
...
...
@@ -123,7 +126,7 @@ export const createData = () => {
startSceneData
.
top
.
loadSkin
();
startSceneData
.
top
.
start
();
for
(
let
i
=
0
;
i
<
repeatCount
;
i
++
)
{
const
repeat
=
new
MapRpeatPart
(
i
,
startSceneData
.
top
.
height
);
const
repeat
=
new
MapRpeatPart
(
i
,
startSceneData
.
top
.
height
);
repeat
.
loadSkin
();
repeat
.
start
();
list
.
push
(
repeat
);
}
...
...
@@ -131,15 +134,15 @@ export const createData = () => {
startSceneData
.
bottom
=
new
MapBottomPart
();
startSceneData
.
bottom
.
loadSkin
();
startSceneData
.
bottom
.
start
({
repeatHeight
:
list
[
0
].
height
,
topHeight
:
startSceneData
.
top
.
height
repeatHeight
:
list
[
0
].
height
,
topHeight
:
startSceneData
.
top
.
height
});
return
startSceneData
}
export
const
getRepeatCount
=
()
=>
{
export
const
getRepeatCount
=
()
=>
{
/// TODO 14 = MapTopPart.LEVEL_NUMS + MapBottomPart.LEVEL_NUMS
/// TODO 13 = MapRpeatPart.LEVEL_NUMS
return
(
window
[
'total_level'
]
-
MapTopPart
.
LEVEL_NUMS
-
MapBottomPart
.
LEVEL_NUMS
)
/
(
MapRpeatPart
.
LEVEL_NUMS
);
return
(
window
[
'total_level'
]
-
MapTopPart
.
LEVEL_NUMS
-
MapBottomPart
.
LEVEL_NUMS
)
/
(
MapRpeatPart
.
LEVEL_NUMS
);
}
\ No newline at end of file
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