Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
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
new_taobao
Commits
27528222
Commit
27528222
authored
Sep 23, 2020
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified: project/src/canvas/game/src/scenes/LoadingScene.ts
parent
68527009
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
3 deletions
+52
-3
StartScene.ts
project/src/canvas/game/src/chuansongdai/StartScene.ts
+24
-0
LoadingScene.ts
project/src/canvas/game/src/scenes/LoadingScene.ts
+4
-3
StartScene.ts
project/src/canvas/game/src/xiaoxiaole/StartScene.ts
+24
-0
No files found.
project/src/canvas/game/src/chuansongdai/StartScene.ts
0 → 100644
View file @
27528222
import
{
Scene
}
from
"../../module/views/Scene"
;
import
{
RES
}
from
"../../module/RES"
;
// import res from "../../test/output.json"
import
resCanvasList
from
"../../../game/resCanvasList"
import
{
Ins
}
from
"../Ins"
;
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
SelectCatPanel
}
from
"../panels/selectcatpanel/SelectCatPanel"
;
export
class
CsdScene
extends
Scene
{
initUi
()
{
super
.
initUi
();
var
sceneBg
=
Ins
.
initSprite
(
"b3c8c187-e5c9-4968-9a00-a118d18ab2fc"
);
this
.
addChild
(
sceneBg
);
this
.
x
=
(
Ins
.
stageW
-
750
)
>>
1
;
this
.
y
=
(
Ins
.
stageH
-
1624
)
>>
1
;
showPanel
(
SelectCatPanel
);
// this.addChild(new MainScene());
}
start
()
{
this
.
initUi
()
}
}
project/src/canvas/game/src/scenes/LoadingScene.ts
View file @
27528222
...
@@ -2,9 +2,10 @@ import { RES } from "../../module/RES";
...
@@ -2,9 +2,10 @@ import { RES } from "../../module/RES";
import
{
Scene
}
from
"../../module/views/Scene"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
{
Ins
}
from
"../Ins"
;
import
{
Ins
}
from
"../Ins"
;
import
resloadingList
from
"../../../game/resloadingList"
;
import
resloadingList
from
"../../../game/resloadingList"
;
import
{
truncateSync
}
from
"fs"
;
import
{
changeScene
}
from
"../../module/ctrls"
;
import
{
changeScene
}
from
"../../module/ctrls"
;
import
{
StartScene
}
from
"./StartScene"
;
import
{
StartScene
}
from
"./StartScene"
;
import
{
XxlScene
}
from
"../xiaoxiaole/StartScene"
;
import
{
CsdScene
}
from
"../chuansongdai/StartScene"
;
export
class
LoadingScene
extends
Scene
{
export
class
LoadingScene
extends
Scene
{
...
@@ -74,14 +75,14 @@ export class LoadingScene extends Scene{
...
@@ -74,14 +75,14 @@ export class LoadingScene extends Scene{
FYGE
.
Tween
.
get
(
this
.
loading
,{
onChange
:()
=>
{
that
.
zhuazi
.
x
=
(
that
.
loading
.
x
+
that
.
loading
.
width
-
30
)},
onChangeObj
:
that
}).
to
({
x
:
-
80
},
200
).
call
(()
=>
{
FYGE
.
Tween
.
get
(
this
.
loading
,{
onChange
:()
=>
{
that
.
zhuazi
.
x
=
(
that
.
loading
.
x
+
that
.
loading
.
width
-
30
)},
onChangeObj
:
that
}).
to
({
x
:
-
80
},
200
).
call
(()
=>
{
that
.
tweenEnd
=
true
;
that
.
tweenEnd
=
true
;
if
(
that
.
isEnd
){
if
(
that
.
isEnd
){
FYGE
.
Tween
.
get
(
that
.
loading
,{
onChange
:()
=>
{
that
.
zhuazi
.
x
=
(
that
.
loading
.
x
+
that
.
loading
.
width
-
30
)},
onChangeObj
:
that
}).
to
({
x
:
9
},
600
).
call
(()
=>
{
changeScene
(
Start
Scene
)});
FYGE
.
Tween
.
get
(
that
.
loading
,{
onChange
:()
=>
{
that
.
zhuazi
.
x
=
(
that
.
loading
.
x
+
that
.
loading
.
width
-
30
)},
onChangeObj
:
that
}).
to
({
x
:
9
},
600
).
call
(()
=>
{
changeScene
(
Xxl
Scene
)});
}
}
})
})
FYGE
.
GDispatcher
.
addEventListener
(
"loadEnd"
,()
=>
{
FYGE
.
GDispatcher
.
addEventListener
(
"loadEnd"
,()
=>
{
that
.
isEnd
=
true
;
that
.
isEnd
=
true
;
if
(
that
.
tweenEnd
){
if
(
that
.
tweenEnd
){
FYGE
.
Tween
.
get
(
that
.
loading
,{
onChange
:()
=>
{
that
.
zhuazi
.
x
=
(
that
.
loading
.
x
+
that
.
loading
.
width
-
30
)},
onChangeObj
:
that
}).
to
({
x
:
9
},
600
).
call
(()
=>
{
changeScene
(
Start
Scene
)});
FYGE
.
Tween
.
get
(
that
.
loading
,{
onChange
:()
=>
{
that
.
zhuazi
.
x
=
(
that
.
loading
.
x
+
that
.
loading
.
width
-
30
)},
onChangeObj
:
that
}).
to
({
x
:
9
},
600
).
call
(()
=>
{
changeScene
(
Csd
Scene
)});
}
}
},
that
)
},
that
)
}
}
...
...
project/src/canvas/game/src/xiaoxiaole/StartScene.ts
0 → 100644
View file @
27528222
import
{
Scene
}
from
"../../module/views/Scene"
;
import
{
RES
}
from
"../../module/RES"
;
// import res from "../../test/output.json"
import
resCanvasList
from
"../../../game/resCanvasList"
import
{
Ins
}
from
"../Ins"
;
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
SelectCatPanel
}
from
"../panels/selectcatpanel/SelectCatPanel"
;
export
class
XxlScene
extends
Scene
{
initUi
()
{
super
.
initUi
();
var
sceneBg
=
Ins
.
initSprite
(
"b3c8c187-e5c9-4968-9a00-a118d18ab2fc"
);
this
.
addChild
(
sceneBg
);
this
.
x
=
(
Ins
.
stageW
-
750
)
>>
1
;
this
.
y
=
(
Ins
.
stageH
-
1624
)
>>
1
;
showPanel
(
SelectCatPanel
);
// this.addChild(new MainScene());
}
start
()
{
this
.
initUi
()
}
}
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