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
11597950
Commit
11597950
authored
Sep 14, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整游戏实现0914暂存
parent
608d2d6c
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
181 additions
and
142 deletions
+181
-142
sceneCtrl.ts
egret/libs/new_wx/ctrls/sceneCtrl.ts
+5
-5
gamePool.ts
egret/src/configData/gamePool.ts
+35
-0
MainScene.ts
egret/src/mainScene/MainScene.ts
+141
-137
No files found.
egret/libs/new_wx/ctrls/sceneCtrl.ts
View file @
11597950
...
...
@@ -29,10 +29,10 @@ export default class SceneCtrl {
// console.log("sceneCtrl------change",type,data,onComplete);
if
(
type
==
ModuleTypes
.
MAIN_SCENE
){
//游戏页
// console.log("游戏界面单例处理");
if
(
this
.
mainscene
){
// console.log("使用已存在mainscene");
this
.
showAfterLoadAtlas
(
this
.
mainscene
,
data
,
onComplete
);
}
else
{
//
if(this.mainscene){
//
// console.log("使用已存在mainscene");
//
this.showAfterLoadAtlas(this.mainscene,data,onComplete);
//
}else{
// console.log("第一次创建mainscene");
this
.
mainscene
=
new
MainScene
();
if
(
!
window
[
'development'
])
{
...
...
@@ -46,7 +46,7 @@ export default class SceneCtrl {
}
else
{
this
.
showAfterLoadAtlas
(
this
.
mainscene
,
data
,
onComplete
);
}
}
//
}
}
else
if
(
type
==
ModuleTypes
.
MAP_SCENE
){
//mapscene
if
(
this
.
mapscene
){
...
...
egret/src/configData/gamePool.ts
0 → 100644
View file @
11597950
import
getResPath
from
"../../libs/new_tc/getResPath"
;
export
const
baseScore
=
20
;
export
default
class
gamePool
{
//加载器
static
svgaParser
=
new
window
[
"SVGA"
].
Parser
();
//三个toast和bonusTime
static
movieClips
:
any
=
{};
static
cannoblockdata
:
any
=
null
;
static
cannomvdata
:
any
=
null
;
static
cannofire1mvdata
:
any
=
null
;
static
cannolightmvdata
:
any
=
null
;
static
cannoparticlemvdata
:
any
=
null
;
static
pongomvdata
:
any
=
null
;
static
pongolfootdata
:
any
=
null
;
static
pongorfootdata
:
any
=
null
;
static
pongojiodata
:
any
=
null
;
static
pongojioArr
:
Array
<
any
>
=
[];
static
wormlightdata
:
any
=
null
;
static
wormlightArr
:
Array
<
any
>
=
[];
//草坪的特效
static
lawndata
:
any
=
null
;
static
lawnArr
:
Array
<
any
>
=
[];
static
dangaodata
:
any
=
null
;
static
regoudata
:
any
=
null
;
static
tiantianquandata
:
any
=
null
;
static
xugaodata
:
any
=
null
;
//樱花
static
cherryAniData
:
any
=
{};
static
cherryAniArr
:
any
=
{};
}
\ No newline at end of file
egret/src/mainScene/MainScene.ts
View file @
11597950
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