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
62894aa3
Commit
62894aa3
authored
Mar 31, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole
parents
e312e733
af59f284
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
25 deletions
+31
-25
MainScene.ts
egret/src/mainScene/MainScene.ts
+31
-25
No files found.
egret/src/mainScene/MainScene.ts
View file @
62894aa3
...
@@ -2438,23 +2438,23 @@ export default class MainScene extends Scene {
...
@@ -2438,23 +2438,23 @@ export default class MainScene extends Scene {
}
}
//炮台充能发射
//炮台充能发射
//
var emitcanno:Element;
var
emitcanno
:
Element
;
if
(
this
.
readyCannoArr
.
length
>
0
){
if
(
this
.
readyCannoArr
.
length
>
0
){
//
var readyCannoIdx = this.readyCannoArr[0];
var
readyCannoIdx
=
this
.
readyCannoArr
[
0
];
//
emitcanno = this.cannoArr[readyCannoIdx].ele;
emitcanno
=
this
.
cannoArr
[
readyCannoIdx
].
ele
;
for
(
var
p
=
0
;
p
<
this
.
readyCannoArr
.
length
;
p
++
){
//
for(var p=0;p<this.readyCannoArr.length;p++){
var
preadyCannoIdx
=
this
.
readyCannoArr
[
p
];
//
var preadyCannoIdx = this.readyCannoArr[p];
var
pemitcanno
=
this
.
cannoArr
[
preadyCannoIdx
].
ele
;
//
var pemitcanno = this.cannoArr[preadyCannoIdx].ele;
this
.
fireCanno
(
pemitcanno
);
//
this.fireCanno(pemitcanno);
}
//
}
return
;
//
return;
}
}
//
if(emitcanno){
if
(
emitcanno
){
//
this.fireCanno(emitcanno);
this
.
fireCanno
(
emitcanno
);
//
return;
return
;
//
}
}
if
(
this
.
_converyorTag
)
{
if
(
this
.
_converyorTag
)
{
...
@@ -2662,18 +2662,24 @@ export default class MainScene extends Scene {
...
@@ -2662,18 +2662,24 @@ export default class MainScene extends Scene {
* 炮台发射完毕,开始炮台消除
* 炮台发射完毕,开始炮台消除
*/
*/
callBackFireCanno
(
canno
:
Element
){
callBackFireCanno
(
canno
:
Element
){
if
(
this
.
readyCannoArr
.
length
==
1
){
this
.
eliminate
();
this
.
eliminate
();
this
.
readyCannoArr
.
shift
();
}
var
cannoidx
=
canno
.
index
;
for
(
var
i
=
0
;
i
<
this
.
readyCannoArr
.
length
;
i
++
){
var
ireadycannoidx
=
this
.
cannoArr
[
this
.
readyCannoArr
[
i
]].
idx
;
if
(
ireadycannoidx
==
cannoidx
){
this
.
readyCannoArr
.
splice
(
i
,
1
);
break
;
}
}
canno
.
resetCannoStat
();
canno
.
resetCannoStat
();
// if(this.readyCannoArr.length==1){
// this.eliminate();
// }
// let cannoidx = canno.index;
// // setTimeout(()=>{
// for(let i=0;i<this.readyCannoArr.length;i++){
// let ireadycannoidx = this.cannoArr[this.readyCannoArr[i]].idx;
// if(ireadycannoidx==cannoidx){
// this.readyCannoArr.splice(i,1);
// break;
// }
// }
// canno.resetCannoStat();
// // },150)
}
}
checkAllBlock
()
{
checkAllBlock
()
{
// this.lattices.filter(item => item.block).forEach((item) => {
// this.lattices.filter(item => item.block).forEach((item) => {
...
@@ -3396,7 +3402,7 @@ export default class MainScene extends Scene {
...
@@ -3396,7 +3402,7 @@ export default class MainScene extends Scene {
//新大炮充能
//新大炮充能
for
(
var
np
=
0
;
np
<
pcannostatArr
.
length
;
np
++
){
for
(
var
np
=
0
;
np
<
pcannostatArr
.
length
;
np
++
){
var
npdata
=
pcannostatArr
[
np
];
var
npdata
=
pcannostatArr
[
np
];
var
canaddver
=
this
.
addCannoStatBy
Ho
r
(
np
,
lat
.
row
,
col
);
var
canaddver
=
this
.
addCannoStatBy
Ve
r
(
np
,
lat
.
row
,
col
);
if
(
canaddver
){
if
(
canaddver
){
npdata
.
ineffect
=
true
;
npdata
.
ineffect
=
true
;
}
}
...
...
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