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
a6011d93
Commit
a6011d93
authored
Oct 13, 2020
by
AU-Pro-mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed game bugs
parent
45bb3d75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
output.js
taobao_mini/client/pages/pagecanvas/output.js
+9
-9
No files found.
taobao_mini/client/pages/pagecanvas/output.js
View file @
a6011d93
...
...
@@ -2971,7 +2971,7 @@ var GoodsContainer = (function (_super) {
_this
.
goodsArr
=
[];
_this
.
createGoodTimeOut
=
false
;
_this
.
intoGoods
=
[];
_this
.
gameEndFlag
=
false
;
_this
.
gameEndFlag
=
0
;
_this
.
speed
=
2.5
;
_this
.
acceleratedSpeed
=
0.01
;
_this
.
lt
=
0
;
...
...
@@ -3060,7 +3060,13 @@ var GoodsContainer = (function (_super) {
g
.
turnDirection
(
direction
);
if
(
g
.
dir
!==
direction
)
{
if
(
g
.
wrong
===
'endGame'
)
{
g
.
turnDirection
(
direction
,
'gameOver'
);
this
.
gameEndFlag
+=
1
;
if
(
this
.
gameEndFlag
>
1
)
{
g
.
turnDirection
(
direction
);
}
else
{
g
.
turnDirection
(
direction
,
'gameOver'
);
}
}
else
{
this
.
_root
.
gameScoreChange
(
g
.
wrong
);
...
...
@@ -3112,7 +3118,7 @@ var GoodsContainer = (function (_super) {
this
.
goodsContainer
=
null
;
};
GoodsContainer
.
prototype
.
startGoods
=
function
()
{
this
.
gameEndFlag
=
false
;
this
.
gameEndFlag
=
0
;
this
.
createGoodTimeOut
=
true
;
};
GoodsContainer
.
prototype
.
createGoods
=
function
()
{
...
...
@@ -3158,9 +3164,6 @@ var GoodsContainer = (function (_super) {
},
750
)
.
call
(
function
()
{
if
(
cb
===
'gameOver'
)
{
if
(
_this
.
gameEndFlag
)
return
;
_this
.
gameEndFlag
=
true
;
_this
.
removeAllGoods
();
_this
.
_root
.
gameOver
();
}
...
...
@@ -3182,9 +3185,6 @@ var GoodsContainer = (function (_super) {
},
750
)
.
call
(
function
()
{
if
(
cb
===
'gameOver'
)
{
if
(
_this
.
gameEndFlag
)
return
;
_this
.
gameEndFlag
=
true
;
_this
.
removeAllGoods
();
_this
.
_root
.
gameOver
();
}
...
...
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