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
1987981c
Commit
1987981c
authored
Oct 02, 2020
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified: src/Main.ts
parent
c5f6827b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
8 deletions
+12
-8
output.js
project/src/canvas/game/output.js
+1
-1
output.js.map
project/src/canvas/game/output.js.map
+1
-1
output.js
project/src/canvas/game/released/output.js
+1
-1
copyJs.js
project/src/canvas/game/scripts/copyJs.js
+2
-2
Main.ts
project/src/canvas/game/src/Main.ts
+2
-2
XxlScene.ts
project/src/canvas/game/src/xiaoxiaole/XxlScene.ts
+5
-1
No files found.
project/src/canvas/game/output.js
View file @
1987981c
...
...
@@ -1925,7 +1925,7 @@ var Main = (function () {
return
[
4
,
this
.
loadImageTexturesCsd02
(
resCanvasList
)];
case
2
:
_a
.
sent
();
ctrls_1
.
changeScene
(
XxlScene_1
.
XxlScene
);
ctrls_1
.
changeScene
(
MainScene_2
.
OpenAni
);
return
[
2
];
}
});
...
...
project/src/canvas/game/output.js.map
View file @
1987981c
This diff is collapsed.
Click to expand it.
project/src/canvas/game/released/output.js
View file @
1987981c
...
...
@@ -1927,7 +1927,7 @@ var Main = (function () {
return
[
4
,
this
.
loadImageTexturesCsd02
(
resCanvasList
)];
case
2
:
_a
.
sent
();
ctrls_1
.
changeScene
(
XxlScene_1
.
XxlScene
);
ctrls_1
.
changeScene
(
MainScene_2
.
OpenAni
);
return
[
2
];
}
});
...
...
project/src/canvas/game/scripts/copyJs.js
View file @
1987981c
...
...
@@ -6,8 +6,8 @@ var fs = require("fs");
// fs.readFileSync("./output.js")
// )
// var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/';
// var endPath = "C:/Users/Duiba/Desktop/work/雅顿/new_taobao/taobao_mini/client/pages/pagecanvas
"
var
endPath
=
'/Applications/DUIBA-TAOBAO/YD/new_taobao/taobao_mini/client/pages/pagecanvas/'
;
var
endPath
=
"C:/Users/Duiba/Desktop/work/雅顿/new_taobao/taobao_mini/client/pages/pagecanvas/
"
//
var endPath = '/Applications/DUIBA-TAOBAO/YD/new_taobao/taobao_mini/client/pages/pagecanvas/';
var
version
=
Math
.
round
(
new
Date
().
getTime
()
/
1000
);
...
...
project/src/canvas/game/src/Main.ts
View file @
1987981c
...
...
@@ -157,9 +157,9 @@ export class Main {
await
this
.
loadImageTexturesCsd01
(
resCanvasList
)
await
this
.
loadImageTexturesCsd02
(
resCanvasList
)
//
changeScene(OpenAni)
changeScene
(
OpenAni
)
// changeScene(CsdScene)
changeScene
(
XxlScene
)
//
changeScene(XxlScene)
})
await
InitLottie
.
initLottieList
(
resLottieList
);
...
...
project/src/canvas/game/src/xiaoxiaole/XxlScene.ts
View file @
1987981c
...
...
@@ -682,6 +682,7 @@ export class XxlScene extends Scene {
async
gameOver
()
{
if
(
!
this
.
isGameEnd
)
{
this
.
isGameEnd
=
true
this
.
updateFakeScore
(
this
.
robot
.
getScore
(
this
.
userScore
,
this
.
timeNum
))
const
prizeInfo
=
await
sendTbNet
(
TbNetName
.
getPrizeInfo
)
if
(
this
.
userInfo
.
win
)
{
//胜利
...
...
@@ -707,6 +708,10 @@ export class XxlScene extends Scene {
}
updateFakeScore
(
userGetScore
:
number
)
{
if
(
this
.
isGameEnd
||
!
this
.
isGameStart
)
{
//游戏未开始或者游戏已结束
return
}
if
(
this
.
robotScore
==
userGetScore
)
{
return
}
...
...
@@ -1104,7 +1109,6 @@ export class XxlScene extends Scene {
return
}
if
(
this
.
isGameEnd
)
{
this
.
updateFakeScore
(
this
.
robot
.
getScore
(
this
.
userScore
,
this
.
timeNum
))
this
.
gameOver
()
// console.log("游戏结束")
return
...
...
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