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
9f4aa579
Commit
9f4aa579
authored
Oct 12, 2020
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified: src/xiaoxiaole/XxlScene.ts
parent
d88643fc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
12 deletions
+21
-12
output.js
project/src/canvas/game/output.js
+4
-3
output.js.map
project/src/canvas/game/output.js.map
+1
-1
output.js
project/src/canvas/game/released/output.js
+4
-3
XxlScene.ts
project/src/canvas/game/src/xiaoxiaole/XxlScene.ts
+12
-5
No files found.
project/src/canvas/game/output.js
View file @
9f4aa579
...
...
@@ -15104,7 +15104,7 @@ exports.config = {
first
:
1000
,
second
:
2000
,
third
:
3000
,
score
:
[
10
00
,
10
,
10
,
10
,
10
],
score
:
[
10
,
10
,
10
,
10
,
10
],
difficulty
:
3
,
circleRes
:
[
'2a747211-0210-4215-86a2-a6955b37c45b'
,
'7d1ec658-9371-4d52-b4d7-e75d04037daf'
,
'6a1345f6-969c-4969-8bfb-f4de637df34d'
,
'2e12a9ec-46be-487f-a9cd-550dd0af3746'
,
'b022fbdd-8607-435a-a205-19fc3b5123eb'
]
};
...
...
@@ -15280,7 +15280,7 @@ var XxlScene = (function (_super) {
this
.
addChild
(
this
.
bg
);
this
.
x
=
(
Ins_1
.
Ins
.
stageW
-
750
)
>>
1
;
this
.
y
=
(
Ins_1
.
Ins
.
stageH
-
1624
)
>>
1
;
this
.
backBtn
=
Tools_1
.
Tools
.
getSprite
(
resCanvasList_1
.
default
[
'334aff33-1a9e-4277-aafe-3d9f22eab3d5'
].
url
,
0
,
4
0
+
1624
/
2
-
this
.
stage
.
viewRect
.
height
/
2
);
this
.
backBtn
=
Tools_1
.
Tools
.
getSprite
(
resCanvasList_1
.
default
[
'334aff33-1a9e-4277-aafe-3d9f22eab3d5'
].
url
,
0
,
2
0
+
1624
/
2
-
this
.
stage
.
viewRect
.
height
/
2
);
this
.
backBtn
.
mouseEnable
=
true
;
this
.
backBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_DOWN
,
function
()
{
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
backToPage
,
{},
function
(
s
,
res
)
{
console
.
log
(
'backToPage'
);
});
...
...
@@ -15999,7 +15999,6 @@ var XxlScene = (function (_super) {
switch
(
_a
.
label
)
{
case
0
:
this
.
selectItems
.
splice
(
0
);
this
.
refresh
();
this
.
isGameEnd
=
false
;
this
.
isGameStart
=
false
;
this
.
userScore
=
0
;
...
...
@@ -16014,6 +16013,8 @@ var XxlScene = (function (_super) {
this
.
star3
.
dark
();
this
.
timeNum
=
XxlConfig_1
.
config
.
time
;
this
.
time
.
text
=
this
.
timeNum
+
""
;
this
.
difficulty
=
XxlConfig_1
.
config
.
difficulty
;
this
.
refresh
();
if
(
XxlConfig_1
.
config
.
time
>=
100
)
{
this
.
time
.
textWidth
=
80
;
}
...
...
project/src/canvas/game/output.js.map
View file @
9f4aa579
This source diff could not be displayed because it is too large. You can
view the blob
instead.
project/src/canvas/game/released/output.js
View file @
9f4aa579
...
...
@@ -15106,7 +15106,7 @@ exports.config = {
first
:
1000
,
second
:
2000
,
third
:
3000
,
score
:
[
10
00
,
10
,
10
,
10
,
10
],
score
:
[
10
,
10
,
10
,
10
,
10
],
difficulty
:
3
,
circleRes
:
[
'2a747211-0210-4215-86a2-a6955b37c45b'
,
'7d1ec658-9371-4d52-b4d7-e75d04037daf'
,
'6a1345f6-969c-4969-8bfb-f4de637df34d'
,
'2e12a9ec-46be-487f-a9cd-550dd0af3746'
,
'b022fbdd-8607-435a-a205-19fc3b5123eb'
]
};
...
...
@@ -15282,7 +15282,7 @@ var XxlScene = (function (_super) {
this
.
addChild
(
this
.
bg
);
this
.
x
=
(
Ins_1
.
Ins
.
stageW
-
750
)
>>
1
;
this
.
y
=
(
Ins_1
.
Ins
.
stageH
-
1624
)
>>
1
;
this
.
backBtn
=
Tools_1
.
Tools
.
getSprite
(
resCanvasList_1
.
default
[
'334aff33-1a9e-4277-aafe-3d9f22eab3d5'
].
url
,
0
,
4
0
+
1624
/
2
-
this
.
stage
.
viewRect
.
height
/
2
);
this
.
backBtn
=
Tools_1
.
Tools
.
getSprite
(
resCanvasList_1
.
default
[
'334aff33-1a9e-4277-aafe-3d9f22eab3d5'
].
url
,
0
,
2
0
+
1624
/
2
-
this
.
stage
.
viewRect
.
height
/
2
);
this
.
backBtn
.
mouseEnable
=
true
;
this
.
backBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
MOUSE_DOWN
,
function
()
{
TaoBaoNet_1
.
sendTbNet
(
TaoBaoNet_1
.
TbNetName
.
backToPage
,
{},
function
(
s
,
res
)
{
console
.
log
(
'backToPage'
);
});
...
...
@@ -16001,7 +16001,6 @@ var XxlScene = (function (_super) {
switch
(
_a
.
label
)
{
case
0
:
this
.
selectItems
.
splice
(
0
);
this
.
refresh
();
this
.
isGameEnd
=
false
;
this
.
isGameStart
=
false
;
this
.
userScore
=
0
;
...
...
@@ -16016,6 +16015,8 @@ var XxlScene = (function (_super) {
this
.
star3
.
dark
();
this
.
timeNum
=
XxlConfig_1
.
config
.
time
;
this
.
time
.
text
=
this
.
timeNum
+
""
;
this
.
difficulty
=
XxlConfig_1
.
config
.
difficulty
;
this
.
refresh
();
if
(
XxlConfig_1
.
config
.
time
>=
100
)
{
this
.
time
.
textWidth
=
80
;
}
...
...
project/src/canvas/game/src/xiaoxiaole/XxlScene.ts
View file @
9f4aa579
...
...
@@ -118,7 +118,9 @@ export class XxlScene extends Scene {
//机器人用户
robot
:
Robot
=
null
//机器人用户分数
robotScore
:
number
=
0
robotScore
:
number
=
0
.
//当前用户游戏关卡
rlevel
:
number
=
0
/**
* 右移偶数行
...
...
@@ -738,9 +740,11 @@ export class XxlScene extends Scene {
if
(
this
.
robotScore
==
userGetScore
)
{
return
}
if
(
this
.
level
<
2
&&
userGetScore
>=
1000
&&
userGetScore
<
2000
)
{
if
(
this
.
rlevel
<
2
&&
userGetScore
>=
1000
&&
userGetScore
<
2000
)
{
this
.
rlevel
=
2
this
.
rlevelText
.
text
=
"第"
+
2
+
"关"
}
else
if
(
this
.
level
<
3
&&
userGetScore
>=
2000
&&
userGetScore
<
3000
)
{
}
else
if
(
this
.
rlevel
<
3
&&
userGetScore
>=
2000
&&
userGetScore
<
3000
)
{
this
.
rlevel
=
3
this
.
rlevelText
.
text
=
"第"
+
3
+
"关"
}
else
if
(
userGetScore
>=
3000
)
{
this
.
gameOver
()
...
...
@@ -1136,12 +1140,15 @@ export class XxlScene extends Scene {
this
.
isGameEnd
=
false
this
.
isGameStart
=
false
this
.
userScore
=
0
this
.
robotScore
=
0
//先隐藏
this
.
rightUserContainer
.
visible
=
false
this
.
lscore
.
text
=
"0"
this
.
rscore
.
text
=
"0"
this
.
llevelText
.
text
=
"第一关"
this
.
rlevelText
.
text
=
"第一关"
this
.
llevelText
.
text
=
"第1关"
this
.
rlevelText
.
text
=
"第1关"
this
.
level
=
0
this
.
rlevel
=
0
//进度条归0
this
.
rect
.
x
=
this
.
rectX
this
.
star1
.
dark
()
...
...
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