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
f7652314
Commit
f7652314
authored
Aug 19, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
29d75c03
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
110 additions
and
6 deletions
+110
-6
MainBase.ts
egret/libs/new_wx/MainBase.ts
+51
-4
boom.mp3
egret/resource/assets/sounds/boom.mp3
+0
-0
eliminate.mp3
egret/resource/assets/sounds/eliminate.mp3
+0
-0
fail.mp3
egret/resource/assets/sounds/fail.mp3
+0
-0
fall.mp3
egret/resource/assets/sounds/fall.mp3
+0
-0
line.mp3
egret/resource/assets/sounds/line.mp3
+0
-0
magic.mp3
egret/resource/assets/sounds/magic.mp3
+0
-0
mapBg.mp3
egret/resource/assets/sounds/mapBg.mp3
+0
-0
playBg.mp3
egret/resource/assets/sounds/playBg.mp3
+0
-0
sucess.mp3
egret/resource/assets/sounds/sucess.mp3
+0
-0
toast.mp3
egret/resource/assets/sounds/toast.mp3
+0
-0
default.res.json
egret/resource/default.res.json
+54
-0
default.thm.json
egret/resource/default.thm.json
+3
-1
mainSkin.exml
egret/resource/skins/mainSkin.exml
+2
-1
No files found.
egret/libs/new_wx/MainBase.ts
View file @
f7652314
...
@@ -44,7 +44,7 @@ export default class MainBase extends eui.UILayer {
...
@@ -44,7 +44,7 @@ export default class MainBase extends eui.UILayer {
protected
registerModules
()
{
protected
registerModules
()
{
const
panels
=
[
const
panels
=
[
[
ModuleTypes
.
ALERT_PANEL
,
{
cls
:
Alert
}],
[
ModuleTypes
.
ALERT_PANEL
,
{
cls
:
Alert
}],
[
ModuleTypes
.
RULE_PANEL
,
{
cls
:
RulePanel
}],
[
ModuleTypes
.
RULE_PANEL
,
{
cls
:
RulePanel
}],
[
ModuleTypes
.
PRIZE_PANEL
,
{
cls
:
PrizePanel
}],
[
ModuleTypes
.
PRIZE_PANEL
,
{
cls
:
PrizePanel
}],
[
ModuleTypes
.
NO_PRIZE_PANEL
,
{
cls
:
NoPrizePanel
}],
[
ModuleTypes
.
NO_PRIZE_PANEL
,
{
cls
:
NoPrizePanel
}],
...
@@ -57,14 +57,14 @@ export default class MainBase extends eui.UILayer {
...
@@ -57,14 +57,14 @@ export default class MainBase extends eui.UILayer {
[
'Buy3'
,
{
cls
:
Buy3Panel
}],
[
'Buy3'
,
{
cls
:
Buy3Panel
}],
[
'failed'
,
{
cls
:
FailedPanel
}],
[
'failed'
,
{
cls
:
FailedPanel
}],
[
'quit'
,
{
cls
:
QuitPanel
}],
[
'quit'
,
{
cls
:
QuitPanel
}],
[
'box'
,
{
cls
:
BoxPanel
}],
[
'box'
,
{
cls
:
BoxPanel
}],
];
];
const
scenes
=
[
const
scenes
=
[
[
ModuleTypes
.
START_SCENE
,
{
cls
:
StartScene
}],
[
ModuleTypes
.
START_SCENE
,
{
cls
:
StartScene
}],
[
ModuleTypes
.
MAP_SCENE
,
{
cls
:
MapScene
}],
[
ModuleTypes
.
MAP_SCENE
,
{
cls
:
MapScene
}],
[
ModuleTypes
.
PLAY_SCENE
,
{
cls
:
PlayScene
}],
[
ModuleTypes
.
PLAY_SCENE
,
{
cls
:
PlayScene
}],
[
ModuleTypes
.
MAIN_SCENE
,
{
cls
:
MainScene
}]
[
ModuleTypes
.
MAIN_SCENE
,
{
cls
:
MainScene
}]
];
];
panels
.
forEach
(
item
=>
PanelCtrl
.
instance
.
registerPanel
(
item
[
0
],
item
[
1
]));
panels
.
forEach
(
item
=>
PanelCtrl
.
instance
.
registerPanel
(
item
[
0
],
item
[
1
]));
...
@@ -126,6 +126,53 @@ export default class MainBase extends eui.UILayer {
...
@@ -126,6 +126,53 @@ export default class MainBase extends eui.UILayer {
if
(
!
window
[
'development'
])
if
(
!
window
[
'development'
])
RES
.
getResAsync
(
`common_json`
);
RES
.
getResAsync
(
`common_json`
);
else
{
else
{
for
(
var
i
=
1
;
i
<
19
;
i
++
)
{
RES
.
getResAsync
(
"boom"
+
i
+
"_png"
)
}
for
(
var
i
=
0
;
i
<
5
;
i
++
)
{
RES
.
getResAsync
(
"ele"
+
i
+
"_png"
)
for
(
var
j
=
0
;
j
<
3
;
j
++
)
{
RES
.
getResAsync
(
"ele"
+
i
+
j
+
"_png"
)
}
}
for
(
var
i
=
1
;
i
<=
12
;
i
++
)
{
RES
.
getResAsync
(
"eleDis"
+
i
+
"_png"
)
}
for
(
var
i
=
1
;
i
<=
6
;
i
++
)
{
RES
.
getResAsync
(
"ice"
+
i
+
"_png"
)
}
for
(
var
i
=
1
;
i
<=
6
;
i
++
)
{
RES
.
getResAsync
(
"ice"
+
i
+
"_png"
)
}
for
(
var
i
=
1
;
i
<=
6
;
i
++
)
{
RES
.
getResAsync
(
"rock"
+
i
+
"_png"
)
}
for
(
var
i
=
0
;
i
<=
9
;
i
++
)
{
RES
.
getResAsync
(
"scoreNumber"
+
i
+
"_png"
)
}
for
(
var
i
=
0
;
i
<=
9
;
i
++
)
{
RES
.
getResAsync
(
"stepNumber"
+
i
+
"_png"
)
}
var
arr
=
[
"ele5"
,
"iceEle"
,
"leftArrow"
,
"chooseRect"
,
"lightedStar"
,
"lineLight"
,
"lockDown"
,
"lockUp"
,
"magicLion"
,
"magicLionBg"
,
"rectLat"
,
"rightArrow"
,
"rightMark"
,
"unlightedStar"
]
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
){
RES
.
getResAsync
(
arr
[
i
]
+
"_png"
)
}
}
}
this
.
createGameScene
();
this
.
createGameScene
();
...
@@ -162,7 +209,7 @@ export default class MainBase extends eui.UILayer {
...
@@ -162,7 +209,7 @@ export default class MainBase extends eui.UILayer {
NetManager
.
ins
.
ajaxElement
(
async
()
=>
{
NetManager
.
ins
.
ajaxElement
(
async
()
=>
{
Buried
.
init
();
Buried
.
init
();
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
this
.
svgaList
);
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
this
.
svgaList
);
})
})
}
}
...
...
egret/resource/assets/sounds/boom.mp3
0 → 100644
View file @
f7652314
File added
egret/resource/assets/sounds/eliminate.mp3
0 → 100644
View file @
f7652314
File added
egret/resource/assets/sounds/fail.mp3
0 → 100644
View file @
f7652314
File added
egret/resource/assets/sounds/fall.mp3
0 → 100644
View file @
f7652314
File added
egret/resource/assets/sounds/line.mp3
0 → 100644
View file @
f7652314
File added
egret/resource/assets/sounds/magic.mp3
0 → 100644
View file @
f7652314
File added
egret/resource/assets/sounds/mapBg.mp3
0 → 100644
View file @
f7652314
File added
egret/resource/assets/sounds/playBg.mp3
0 → 100644
View file @
f7652314
File added
egret/resource/assets/sounds/sucess.mp3
0 → 100644
View file @
f7652314
File added
egret/resource/assets/sounds/toast.mp3
0 → 100644
View file @
f7652314
File added
egret/resource/default.res.json
View file @
f7652314
...
@@ -59,6 +59,10 @@
...
@@ -59,6 +59,10 @@
{
{
"keys"
:
"yezi1_png,unlightedStar_png,targetBoard_png,stepsBoard_png,stepNumber9_png,stepNumber8_png,stepNumber7_png,stepNumber6_png,stepNumber5_png,stepNumber4_png,stepNumber3_png,stepNumber2_png,stepNumber1_png,stepNumber0_png,stepBtn_png,starProgress_png,setting_png,scoreNumber9_png,scoreNumber8_png,scoreNumber7_png,scoreNumber6_png,scoreNumber5_png,scoreNumber4_png,scoreNumber3_png,scoreNumber2_png,scoreNumber1_png,scoreNumber0_png,rock6_png,rock5_png,rock4_png,rock3_png,rock2_png,rock1_png,rightMark_png,rightArrow_png,rectLat_png,progressDown_png,playSceneBg_png,magicLionBg_png,magicLion_png,lockUp_png,lockDown_png,lineLight_png,lightedStar_png,leftArrow_png,iceEle_png,ice6_png,ice5_png,ice4_png,ice3_png,ice2_png,ice1_png,hammerBtn_png,eleDis9_png,eleDis8_png,eleDis7_png,eleDis6_png,eleDis5_png,eleDis4_png,eleDis3_png,eleDis2_png,eleDis12_png,eleDis11_png,eleDis10_png,eleDis1_png,ele5_png,ele42_png,ele41_png,ele40_png,ele4_png,ele32_png,ele31_png,ele30_png,ele3_png,ele22_png,ele21_png,ele20_png,ele2_png,ele12_png,ele11_png,ele10_png,ele1_png,ele02_png,ele01_png,ele00_png,ele0_png,dangqianfenshu_png,chooseRect_png,boomBtn_png,boom9_png,boom8_png,boom7_png,boom6_png,boom5_png,boom4_png,boom3_png,boom2_png,boom18_png,boom17_png,boom16_png,boom15_png,boom14_png,boom13_png,boom12_png,boom11_png,boom10_png,boom1_png"
,
"keys"
:
"yezi1_png,unlightedStar_png,targetBoard_png,stepsBoard_png,stepNumber9_png,stepNumber8_png,stepNumber7_png,stepNumber6_png,stepNumber5_png,stepNumber4_png,stepNumber3_png,stepNumber2_png,stepNumber1_png,stepNumber0_png,stepBtn_png,starProgress_png,setting_png,scoreNumber9_png,scoreNumber8_png,scoreNumber7_png,scoreNumber6_png,scoreNumber5_png,scoreNumber4_png,scoreNumber3_png,scoreNumber2_png,scoreNumber1_png,scoreNumber0_png,rock6_png,rock5_png,rock4_png,rock3_png,rock2_png,rock1_png,rightMark_png,rightArrow_png,rectLat_png,progressDown_png,playSceneBg_png,magicLionBg_png,magicLion_png,lockUp_png,lockDown_png,lineLight_png,lightedStar_png,leftArrow_png,iceEle_png,ice6_png,ice5_png,ice4_png,ice3_png,ice2_png,ice1_png,hammerBtn_png,eleDis9_png,eleDis8_png,eleDis7_png,eleDis6_png,eleDis5_png,eleDis4_png,eleDis3_png,eleDis2_png,eleDis12_png,eleDis11_png,eleDis10_png,eleDis1_png,ele5_png,ele42_png,ele41_png,ele40_png,ele4_png,ele32_png,ele31_png,ele30_png,ele3_png,ele22_png,ele21_png,ele20_png,ele2_png,ele12_png,ele11_png,ele10_png,ele1_png,ele02_png,ele01_png,ele00_png,ele0_png,dangqianfenshu_png,chooseRect_png,boomBtn_png,boom9_png,boom8_png,boom7_png,boom6_png,boom5_png,boom4_png,boom3_png,boom2_png,boom18_png,boom17_png,boom16_png,boom15_png,boom14_png,boom13_png,boom12_png,boom11_png,boom10_png,boom1_png"
,
"name"
:
"mainScene"
"name"
:
"mainScene"
},
{
"name"
:
"preload"
,
"keys"
:
"eliminate_mp3,fail_mp3,fall_mp3,line_mp3,sucess_mp3,mapBg_mp3,toast_mp3,playBg_mp3,magic_mp3,boom_mp3"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -1026,6 +1030,56 @@
...
@@ -1026,6 +1030,56 @@
"url"
:
"assets/mainScene/yezi1.png"
,
"url"
:
"assets/mainScene/yezi1.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"yezi1_png"
"name"
:
"yezi1_png"
},
{
"name"
:
"eliminate_mp3"
,
"type"
:
"sound"
,
"url"
:
"assets/sounds/eliminate.mp3"
},
{
"name"
:
"fail_mp3"
,
"type"
:
"sound"
,
"url"
:
"assets/sounds/fail.mp3"
},
{
"name"
:
"fall_mp3"
,
"type"
:
"sound"
,
"url"
:
"assets/sounds/fall.mp3"
},
{
"name"
:
"line_mp3"
,
"type"
:
"sound"
,
"url"
:
"assets/sounds/line.mp3"
},
{
"name"
:
"sucess_mp3"
,
"type"
:
"sound"
,
"url"
:
"assets/sounds/sucess.mp3"
},
{
"name"
:
"mapBg_mp3"
,
"type"
:
"sound"
,
"url"
:
"assets/sounds/mapBg.mp3"
},
{
"name"
:
"toast_mp3"
,
"type"
:
"sound"
,
"url"
:
"assets/sounds/toast.mp3"
},
{
"name"
:
"playBg_mp3"
,
"type"
:
"sound"
,
"url"
:
"assets/sounds/playBg.mp3"
},
{
"name"
:
"magic_mp3"
,
"type"
:
"sound"
,
"url"
:
"assets/sounds/magic.mp3"
},
{
"name"
:
"boom_mp3"
,
"type"
:
"sound"
,
"url"
:
"assets/sounds/boom.mp3"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/default.thm.json
View file @
f7652314
...
@@ -28,7 +28,9 @@
...
@@ -28,7 +28,9 @@
"resource/skins/StarSkin.exml"
,
"resource/skins/StarSkin.exml"
,
"resource/skins/StartPanelSkin.exml"
,
"resource/skins/StartPanelSkin.exml"
,
"resource/skins/StartSkin.exml"
,
"resource/skins/StartSkin.exml"
,
"resource/skins/VScrollBarSkin.exml"
"resource/skins/VScrollBarSkin.exml"
,
"resource/skins/MainSkin.exml"
,
"resource/skins/IconButtonSkin.exml"
],
],
"path"
:
"resource/default.thm.json"
"path"
:
"resource/default.thm.json"
}
}
\ No newline at end of file
egret/resource/skins/mainSkin.exml
View file @
f7652314
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
<e:Image
x=
"162.5"
y=
"74.85"
source=
"yezi1_png"
/>
<e:Image
x=
"162.5"
y=
"74.85"
source=
"yezi1_png"
/>
<e:Image
x=
"54"
y=
"28.85"
source=
"stepsBoard_png"
/>
<e:Image
x=
"54"
y=
"28.85"
source=
"stepsBoard_png"
/>
<e:Image
x=
"226.5"
y=
"88.85"
source=
"dangqianfenshu_png"
/>
<e:Image
x=
"226.5"
y=
"88.85"
source=
"dangqianfenshu_png"
/>
<e:Button
id=
"settingBtn"
label=
""
anchorOffsetX=
"44.5"
anchorOffsetY=
"43.5"
verticalCenter=
"-716.5"
icon=
"setting_png"
skinName=
"ui.IconButtonSkin"
x=
"682.5"
/>
<e:Button
id=
"settingBtn"
label=
""
anchorOffsetX=
"44.5"
anchorOffsetY=
"43.5"
verticalCenter=
"-716.5"
icon=
"setting_png"
x=
"682.5"
skinName=
"ui.IconButtonSkin"
>
</e:Button>
<e:Label
id=
"scoreTxt"
touchEnabled=
"false"
size=
"20"
width=
"194.85"
anchorOffsetY=
"0"
height=
"36"
textAlign=
"left"
bold=
"true"
anchorOffsetX=
"0"
verticalAlign=
"middle"
fontFamily=
"Microsoft YaHei"
text=
"XXXX"
y=
"81.85"
textColor=
"0x00556a"
x=
"320.85"
/>
<e:Label
id=
"scoreTxt"
touchEnabled=
"false"
size=
"20"
width=
"194.85"
anchorOffsetY=
"0"
height=
"36"
textAlign=
"left"
bold=
"true"
anchorOffsetX=
"0"
verticalAlign=
"middle"
fontFamily=
"Microsoft YaHei"
text=
"XXXX"
y=
"81.85"
textColor=
"0x00556a"
x=
"320.85"
/>
<e:Label
touchEnabled=
"false"
size=
"20"
width=
"101.85"
anchorOffsetY=
"0"
height=
"36"
textAlign=
"left"
anchorOffsetX=
"0"
verticalAlign=
"middle"
fontFamily=
"Microsoft YaHei"
text=
"当前分数:"
y=
"63.85"
textColor=
"0x00556A"
x=
"765"
/>
<e:Label
touchEnabled=
"false"
size=
"20"
width=
"101.85"
anchorOffsetY=
"0"
height=
"36"
textAlign=
"left"
anchorOffsetX=
"0"
verticalAlign=
"middle"
fontFamily=
"Microsoft YaHei"
text=
"当前分数:"
y=
"63.85"
textColor=
"0x00556A"
x=
"765"
/>
<e:Label
touchEnabled=
"false"
size=
"19"
width=
"115.18"
anchorOffsetY=
"0"
height=
"36"
textAlign=
"center"
anchorOffsetX=
"0"
verticalAlign=
"middle"
fontFamily=
"Microsoft YaHei"
text=
"剩余步数"
y=
"53.48"
x=
"66.35"
textColor=
"0xffffff"
/>
<e:Label
touchEnabled=
"false"
size=
"19"
width=
"115.18"
anchorOffsetY=
"0"
height=
"36"
textAlign=
"center"
anchorOffsetX=
"0"
verticalAlign=
"middle"
fontFamily=
"Microsoft YaHei"
text=
"剩余步数"
y=
"53.48"
x=
"66.35"
textColor=
"0xffffff"
/>
...
...
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