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
7ad61ecd
Commit
7ad61ecd
authored
Apr 13, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整猩猩
parent
b517119c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
12 deletions
+61
-12
MainScene.ts
egret/src/mainScene/MainScene.ts
+56
-5
Chapter24.ts
egret/src/something/chapters/Chapter24.ts
+3
-3
getChapter.ts
egret/src/something/chapters/getChapter.ts
+2
-2
Element.ts
egret/src/something/class/Element.ts
+0
-2
No files found.
egret/src/mainScene/MainScene.ts
View file @
7ad61ecd
...
...
@@ -1190,14 +1190,16 @@ export default class MainScene extends Scene {
pongorfootdata
=
videoItem
;
}
}
var
iscreate
=
this
.
waitDataCreatePongo
(
pongo
);
var
pongoidx
=
pongo
.
index
;
if
(
iscreate
){
var
createidx
=
this
.
havecreate
.
indexOf
(
pongoidx
);
if
(
createidx
==-
1
){
var
createidx
=
this
.
havecreate
.
indexOf
(
pongoidx
);
if
(
createidx
==-
1
){
var
iscreate
=
this
.
waitDataCreatePongo
(
pongo
);
if
(
iscreate
){
this
.
havecreate
.
push
(
pongoidx
);
}
}
})
}
...
...
@@ -3298,6 +3300,53 @@ export default class MainScene extends Scene {
npdata
.
addnum
=
1
;
}
}
//特效消除猩猩
var
pongor
=
[
{
row
:
lat1
.
row
-
1
,
col
:
lat1
.
column
},
{
row
:
lat1
.
row
,
col
:
lat1
.
column
},
{
row
:
lat1
.
row
+
1
,
col
:
lat1
.
column
}
];
var
pongoc
=
[
{
row
:
lat1
.
row
,
col
:
lat1
.
column
-
1
},
{
row
:
lat1
.
row
,
col
:
lat1
.
column
},
{
row
:
lat1
.
row
,
col
:
lat1
.
column
+
1
}
];
for
(
var
pr1
=
0
;
pr1
<
pongor
.
length
;
pr1
++
){
var
prcdata
=
pongor
[
pr1
];
var
prcrow
=
prcdata
.
row
;
var
prccol
=
prcdata
.
col
;
if
(
prcrow
>=
0
&&
prcrow
<
Tool
.
rowNum
&&
prccol
>=
0
&&
prccol
<
Tool
.
colNum
){
this
.
checkPongoHVEle
(
prcrow
,
prccol
,
"hor"
);
}
}
for
(
var
pc1
=
0
;
pc1
<
pongoc
.
length
;
pc1
++
){
var
prcdata
=
pongoc
[
pc1
];
var
prcrow
=
prcdata
.
row
;
var
prccol
=
prcdata
.
col
;
if
(
prcrow
>=
0
&&
prcrow
<
Tool
.
rowNum
&&
prccol
>=
0
&&
prccol
<
Tool
.
colNum
){
this
.
checkPongoHVEle
(
prcrow
,
prccol
,
"vir"
);
}
}
//回收
this
.
recoverEle
(
one
)
this
.
recoverEle
(
two
)
...
...
@@ -3316,6 +3365,8 @@ export default class MainScene extends Scene {
}
}
}
}
//如果两个爆炸
else
if
(
ele1
.
effectType
==
EffectType
.
EXPLOSIVE
&&
ele2
.
effectType
==
EffectType
.
EXPLOSIVE
)
{
...
...
egret/src/something/chapters/Chapter24.ts
View file @
7ad61ecd
...
...
@@ -46,7 +46,7 @@ export const Chapters24: ChapterData[] = [
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
1
,
1
,
1
,
4
,
4
,
1
,
1
,
2
,
2
,
2
,
1
,
1
,
4
,
4
,
1
,
1
,
2
,
1
,
2
,
1
,
23
,
23
,
23
,
23
,
1
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
23
,
1
,
23
,
23
,
23
,
23
],
baseElements
:
[
...
...
@@ -55,8 +55,8 @@ export const Chapters24: ChapterData[] = [
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
4
,
12
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
3
,
11
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
12
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
recycles
:
[],
generateLats
:
[
{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
8
,
type
:
null
}
]
}
},
...
...
egret/src/something/chapters/getChapter.ts
View file @
7ad61ecd
...
...
@@ -73,8 +73,8 @@ chapters.forEach((chapter,index) => {
*/
export
function
getChapterData
(
index
:
number
):
ChapterData
{
//没有数据就返回第一关数据
return
chapters
[
604
];
return
chapters
[
index
]
||
chapters
[
604
];
//
return chapters[604];
return
chapters
[
index
]
||
chapters
[
1
];
}
var
a
=
{
...
...
egret/src/something/class/Element.ts
View file @
7ad61ecd
...
...
@@ -272,7 +272,6 @@ export class Element extends eui.Component {
this
.
addChild
(
this
.
states
[
state
]);
}
createPongo
(
pongomvdata
:
any
,
pongolfootdata
:
any
,
pongorfootdata
:
any
,){
console
.
log
(
"开始创建猩猩"
);
if
(
this
.
pongoMoveClip
){
if
(
this
.
pongoMoveClip
.
parent
){
this
.
pongoMoveClip
.
parent
.
removeChild
(
this
.
pongoMoveClip
);
...
...
@@ -304,7 +303,6 @@ export class Element extends eui.Component {
}
}
initPongoMoveClip
(){
console
.
log
(
"创建了一个猩猩"
,
this
.
pongoMoveClip
);
var
boxwidth
=
80
;
var
boxheight
=
80
;
var
mvwidth
=
161
;
...
...
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