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
241e286d
Commit
241e286d
authored
Apr 17, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
黑洞转移前,将本次操作的导致的元素状态变化先变了
parent
7e80f0bf
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
346 additions
and
159 deletions
+346
-159
MainScene.ts
egret/src/mainScene/MainScene.ts
+317
-142
Tool.ts
egret/src/something/Tool.ts
+1
-1
IceAni.ts
egret/src/something/anis/IceAni.ts
+8
-4
RockAni.ts
egret/src/something/anis/RockAni.ts
+8
-4
Chapter25.ts
egret/src/something/chapters/Chapter25.ts
+5
-5
AiControl.ts
egret/src/something/logic/AiControl.ts
+7
-3
No files found.
egret/src/mainScene/MainScene.ts
View file @
241e286d
This diff is collapsed.
Click to expand it.
egret/src/something/Tool.ts
View file @
241e286d
...
...
@@ -1293,7 +1293,7 @@ export class Tool {
for
(
var
j
=
0
;
j
<
iworm
.
length
;
j
++
){
var
iwormidx
=
iworm
[
j
];
if
(
iwormidx
==
idx
){
console
.
log
(
"是在黑洞上"
)
// console.log("是在黑洞上");
_have
=
true
;
return
true
;
}
...
...
egret/src/something/anis/IceAni.ts
View file @
241e286d
...
...
@@ -17,10 +17,14 @@ export class IceAni extends Ani {
play
()
{
//重置图片
this
.
showImage
.
currentFrame
=
0
;
this
.
showImage
.
source
=
this
.
showImage
.
sourceAll
[
0
];
this
.
showImage
.
play
(()
=>
{
this
.
recover
();
var
pro
=
new
Promise
((
resolve
,
reject
)
=>
{
this
.
showImage
.
currentFrame
=
0
;
this
.
showImage
.
source
=
this
.
showImage
.
sourceAll
[
0
];
this
.
showImage
.
play
(()
=>
{
this
.
recover
();
resolve
();
})
})
return
pro
;
}
}
\ No newline at end of file
egret/src/something/anis/RockAni.ts
View file @
241e286d
...
...
@@ -17,10 +17,14 @@ export class RockAni extends Ani {
play
()
{
//重置图片
this
.
showImage
.
currentFrame
=
0
;
this
.
showImage
.
source
=
this
.
showImage
.
sourceAll
[
0
];
this
.
showImage
.
play
(()
=>
{
this
.
recover
();
let
pro
=
new
Promise
((
resolve
,
reject
)
=>
{
this
.
showImage
.
currentFrame
=
0
;
this
.
showImage
.
source
=
this
.
showImage
.
sourceAll
[
0
];
this
.
showImage
.
play
(()
=>
{
this
.
recover
();
resolve
();
})
})
return
pro
;
}
}
\ No newline at end of file
egret/src/something/chapters/Chapter25.ts
View file @
241e286d
...
...
@@ -12,13 +12,13 @@ export const Chapters25: ChapterData[] = [
starScores
:
[
15000
,
20000
,
25000
],
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
6
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
7
,
1
,
7
,
1
,
1
,
1
,
1
,
1
,
1
,
7
,
1
,
7
,
1
,
1
,
1
,
1
,
6
,
1
,
7
,
1
,
7
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
7
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
],
...
...
@@ -52,14 +52,14 @@ export const Chapters25: ChapterData[] = [
// [ 72, 53 ]
// ],
elements
:
[
1
,
14
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
14
,
1
,
1
,
9
,
1
,
14
,
1
,
1
,
16
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
14
,
1
,
1
,
9
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
],
baseElements
:
[
...
...
egret/src/something/logic/AiControl.ts
View file @
241e286d
...
...
@@ -371,10 +371,14 @@ export class AiControl {
pieceToEggAni
=
new
PieceToEggAni
()
}
thisObj
.
addChild
(
pieceToEggAni
);
pieceToEggAni
.
play
(
Tool
.
getPositionByIndex
(
activeEggIndex
),
()
=>
{
activeEgg
.
reset
();
activeEgg
.
visible
=
true
;
let
pro
=
new
Promise
((
resolve
,
reject
)
=>
{
pieceToEggAni
.
play
(
Tool
.
getPositionByIndex
(
activeEggIndex
),
()
=>
{
activeEgg
.
reset
();
activeEgg
.
visible
=
true
;
resolve
();
})
})
thisObj
.
wormHolePromise
.
push
(
pro
);
if
(
++
count
==
countAll
)
{
//做个延时,有节奏感
...
...
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