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
f1dde60f
Commit
f1dde60f
authored
Jan 19, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a244e702
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
177 deletions
+4
-177
jellyMonsterAI.ts
egret/src/mainScene/jellyMonsterAI.ts
+4
-2
home.json
mock/happyclear/home.json
+0
-175
No files found.
egret/src/mainScene/jellyMonsterAI.ts
View file @
f1dde60f
...
...
@@ -5,6 +5,7 @@ import { AiControl } from "../something/logic/AiControl";
import
{
Tool
}
from
"../something/Tool"
;
import
MainScene
from
"./MainScene"
;
import
jellyMonsterAni
from
"./jellyMonsterAni"
;
import
{
StateType
}
from
"../something/enum/StateType"
;
export
default
async
(
thisObj
:
MainScene
)
=>
{
//找到所有的怪物
...
...
@@ -14,6 +15,7 @@ export default async (thisObj: MainScene) => {
for
(
var
i
=
0
;
i
<
thisObj
.
lattices
.
length
;
i
++
)
{
var
lattice
=
thisObj
.
lattices
[
i
]
if
(
lattice
&&
lattice
.
element
&&
lattice
.
element
.
type
==
ElementType
.
JELLY_MONSTER
)
{
if
(
!
lattice
.
element
.
hasState
(
StateType
.
BLOCK_LOCK
))
indexs
.
push
(
i
);
}
}
...
...
@@ -39,7 +41,7 @@ export default async (thisObj: MainScene) => {
const
fromEle
:
Element
=
thisObj
.
lattices
[
fromIndex
].
element
;
//起始元素
const
endEle
:
Element
=
thisObj
.
lattices
[
toIndex
].
element
;
//终点元素
await
fromEle
.
toAction
();
//准备开始吹
await
jellyMonsterAni
(
thisObj
,
[
fromEle
.
x
,
fromEle
.
y
],[
endEle
.
x
,
endEle
.
y
]);
await
jellyMonsterAni
(
thisObj
,
[
fromEle
.
x
,
fromEle
.
y
],
[
endEle
.
x
,
endEle
.
y
]);
endEle
.
reset
(
ElementType
.
JELLY
);
endEle
.
isMonsterJelly
=
true
;
}
...
...
mock/happyclear/home.json
View file @
f1dde60f
...
...
@@ -1712,181 +1712,6 @@
"levelNum"
:
340
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
341
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
342
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
343
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
344
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
345
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
346
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
347
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
348
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
349
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
350
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
351
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
352
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
353
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
354
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
355
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
356
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
357
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
358
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
359
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
360
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
361
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
362
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
363
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
364
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
365
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
366
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
367
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
368
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
369
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
370
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
371
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
372
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
373
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
374
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
375
,
"maxScore"
:
47440
,
"stars"
:
1
}
],
"remainProp"
:
[
...
...
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