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
5ae0921d
Commit
5ae0921d
authored
Oct 29, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
d2fe0438
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
197 additions
and
2 deletions
+197
-2
index.html
egret/index.html
+1
-1
HairballBrownDivideAni.ts
egret/src/something/anis/HairballBrownDivideAni.ts
+63
-0
Chapter6.ts
egret/src/something/chapters/Chapter6.ts
+133
-1
No files found.
egret/index.html
View file @
5ae0921d
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<script
src=
"libs/zepto.min.js"
></script>
<script
src=
"libs/zepto.min.js"
></script>
<script
src=
"libs/security.js"
></script>
<script
src=
"libs/security.js"
></script>
<script
src=
"libs/downloadApp.js"
></script>
<script
src=
"libs/downloadApp.js"
></script>
<script
src=
"libs/svga.egret.min.js"
></script>
<script
src=
"libs/svga.egret.min
2
.js"
></script>
<script
src=
"libs/aes.js"
></script>
<script
src=
"libs/aes.js"
></script>
<script
src=
"libs/pad-zeropadding.js"
></script>
<script
src=
"libs/pad-zeropadding.js"
></script>
<!-- //线上不需要 -->
<!-- //线上不需要 -->
...
...
egret/src/something/anis/HairballBrownDivideAni.ts
0 → 100644
View file @
5ae0921d
import
{
ImageAni
}
from
"../class/ImageAni"
;
import
{
Pool
}
from
"../Pool"
;
import
{
RecoverName
}
from
"../enum/RecoverName"
;
import
{
playSound
,
SoundType
}
from
"../../soundCtrl"
;
import
{
Tool
}
from
"../Tool"
;
import
{
ElementType
}
from
"../enum/ElementType"
;
import
{
Element
}
from
"../class/Element"
;
import
{
StateType
}
from
"../enum/StateType"
;
/**
* 分裂的动画,待写
*/
export
class
HairballBrownDivideAni
extends
egret
.
DisplayObjectContainer
{
constructor
()
{
super
()
}
play
(
type
:
StateType
,
startP
:
number
[],
endP
:
number
[],
callback
:
Function
)
{
var
source
:
string
;
switch
(
type
)
{
case
StateType
.
HAIRBALLBLACK
:
source
=
"ele"
+
ElementType
.
HAIRBALLBLACK
+
"_png"
;
break
;
case
StateType
.
HAIRBALLGREY
:
source
=
"ele"
+
ElementType
.
HAIRBALLGREY
+
"_png"
;
break
;
case
StateType
.
HAIRBALLBROWN
:
source
=
"ele"
+
ElementType
.
HAIRBALLBROWN
+
"_png"
;
break
;
default
:
source
=
"ele"
+
ElementType
.
HAIRBALLGREY
+
"_png"
;
break
}
var
texture
:
egret
.
Texture
=
RES
.
getRes
(
source
)
this
.
anchorOffsetX
=
texture
.
textureWidth
/
2
;
this
.
anchorOffsetY
=
texture
.
textureHeight
;
this
.
x
=
startP
[
0
];
this
.
y
=
startP
[
1
]
+
texture
.
textureHeight
/
2
;
egret
.
Tween
.
get
(
this
)
.
to
({
scaleX
:
1.2
,
scaleY
:
0.8
},
50
)
.
to
({
scaleX
:
0.8
,
scaleY
:
1.2
},
50
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
50
)
.
to
({
scaleX
:
1.2
,
scaleY
:
0.8
},
50
)
.
to
({
scaleX
:
0.8
,
scaleY
:
1.2
},
50
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
50
)
.
call
(()
=>
{
//回收元素
if
(
this
.
parent
)
this
.
parent
.
removeChild
(
this
);
Pool
.
recover
(
RecoverName
.
HAIRBALLJUMP_ANI
,
this
)
//回调
callback
();
})
egret
.
Tween
.
get
(
this
)
.
to
({
x
:
endP
[
0
],
y
:
endP
[
1
]
+
texture
.
textureHeight
/
2
},
300
,
egret
.
Ease
.
sineInOut
)
}
}
egret/src/something/chapters/Chapter6.ts
View file @
5ae0921d
...
@@ -61,5 +61,137 @@ export const Chapters6: ChapterData[] = [
...
@@ -61,5 +61,137 @@ export const Chapters6: ChapterData[] = [
{
index
:
44
,
type
:
null
}
{
index
:
44
,
type
:
null
}
]
]
}
}
}
},
//102
{
baseElementTypes
:
[
0
,
1
,
2
,
3
],
bubbleProbability
:
0
,
stepCount
:
30
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
10
,
count
:
6
},
{
type
:
5
,
count
:
40
}]
},
starScores
:
[
6000
,
11000
,
21000
],
map
:
{
lattices
:
[
0
,
0
,
1
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
0
,
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
,
0
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
],
connectedLats
:
[],
elements
:
[
1
,
1
,
8
,
1
,
1
,
1
,
8
,
1
,
1
,
1
,
1
,
1
,
2
,
1
,
2
,
1
,
1
,
1
,
1
,
2
,
8
,
1
,
1
,
1
,
8
,
2
,
1
,
2
,
8
,
2
,
2
,
1
,
2
,
2
,
8
,
2
,
8
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
8
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
2
,
1
,
2
,
2
,
2
,
1
,
2
,
2
,
1
,
0
,
1
,
2
,
2
,
1
,
],
baseElements
:
[
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
,
0
,
0
,
0
,
22
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
30
,
40
,
30
,
0
,
0
,
0
,
0
,
0
,
0
,
40
,
30
,
40
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
22
,
0
,
22
,
0
,
0
,
0
],
recycles
:
[],
generateLats
:
[{
index
:
2
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
19
,
type
:
null
},
{
index
:
25
,
type
:
null
},
{
index
:
27
,
type
:
null
},
{
index
:
30
,
type
:
null
},
{
index
:
31
,
type
:
null
},
{
index
:
32
,
type
:
null
},
{
index
:
35
,
type
:
null
}]
}
},
//103
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
28
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
5
,
count
:
12
},
{
type
:
9
,
count
:
17
}]
},
starScores
:
[
5000
,
12000
,
21000
],
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
3
,
1
,
1
,
0
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
],
connectedLats
:
[],
elements
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
5
,
1
,
1
,
1
,
5
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
2
,
5
,
2
,
5
,
2
,
5
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
],
baseElements
:
[
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
,
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
,
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
],
recycles
:
[],
generateLats
:
[{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
8
,
type
:
null
}]
}
},
//104
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
24
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
10
,
count
:
15
}]
},
starScores
:
[
5000
,
12000
,
21000
],
map
:
{
lattices
:
[
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
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index
:
5
,
type
:
null
},
{
index
:
36
,
type
:
null
},
{
index
:
37
,
type
:
null
},
{
index
:
38
,
type
:
null
},
{
index
:
42
,
type
:
null
},
{
index
:
43
,
type
:
null
},
{
index
:
44
,
type
:
null
}]
}
},
//105
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
30
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
10
,
count
:
18
},
{
type
:
5
,
count
:
25
}]
},
starScores
:
[
5000
,
11000
,
21000
],
map
:
{
lattices
:
[
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
,
1
,
0
,
0
,
0
,
0
,
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
,
1
,
1
],
connectedLats
:
[],
elements
:
[
1
,
1
,
8
,
1
,
8
,
8
,
8
,
8
,
8
,
1
,
1
,
8
,
1
,
8
,
8
,
8
,
8
,
8
,
1
,
1
,
8
,
1
,
8
,
8
,
8
,
8
,
8
,
1
,
1
,
1
,
1
,
4
,
4
,
4
,
4
,
4
,
2
,
2
,
2
,
4
,
1
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
4
,
1
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
4
,
1
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
4
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
4
,
2
,
2
,
2
,
2
,
2
],
baseElements
:
[
10
,
20
,
42
,
0
,
0
,
0
,
0
,
0
,
0
,
20
,
10
,
33
,
0
,
0
,
0
,
0
,
0
,
0
,
10
,
20
,
41
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
20
,
10
,
20
,
10
,
20
,
0
,
0
,
0
,
20
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
10
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
20
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
10
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
20
,
0
,
0
,
0
,
0
,
0
],
recycles
:
[],
generateLats
:
[{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
8
,
type
:
null
},
{
index
:
36
,
type
:
null
},
{
index
:
37
,
type
:
null
},
{
index
:
38
,
type
:
null
},
{
index
:
39
,
type
:
null
}]
}
},
//106
{
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
30
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
38
},
{
type
:
10
,
count
:
18
}]
},
starScores
:
[
6000
,
11000
,
19000
],
map
:
{
lattices
:
[
2
,
2
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
2
,
1
,
1
,
0
,
0
,
2
,
1
,
1
,
1
,
2
,
0
,
0
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
2
,
1
,
1
],
connectedLats
:
[],
elements
:
[
1
,
1
,
1
,
4
,
4
,
4
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
8
,
8
,
1
,
1
,
1
,
1
,
1
,
8
,
8
,
8
,
8
,
1
,
8
,
8
,
8
,
1
,
8
,
8
,
8
,
8
,
1
,
8
,
8
,
8
,
1
,
8
,
8
,
1
,
1
,
1
,
4
,
4
,
4
,
1
,
1
,
1
,
4
,
4
,
1
,
1
,
1
,
1
,
1
,
4
,
4
,
4
,
4
,
1
,
1
,
1
,
1
,
1
,
4
,
4
,
4
,
4
,
1
,
1
,
1
,
1
,
1
,
4
,
4
],
baseElements
:
[
0
,
0
,
0
,
30
,
40
,
20
,
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
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
20
,
20
,
0
,
0
,
0
,
0
,
0
,
20
,
20
,
33
,
31
,
0
,
22
,
23
,
22
,
0
,
31
,
33
,
20
,
20
,
0
,
0
,
0
,
0
,
0
,
20
,
20
],
recycles
:
[],
generateLats
:
[{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
8
,
type
:
null
},
{
index
:
47
,
type
:
null
},
{
index
:
48
,
type
:
null
},
{
index
:
49
,
type
:
null
},
{
index
:
50
,
type
:
null
},
{
index
:
51
,
type
:
null
},
{
index
:
54
,
type
:
null
},
{
index
:
55
,
type
:
null
},
{
index
:
61
,
type
:
null
},
{
index
:
62
,
type
:
null
}]
}
},
]
]
\ No newline at end of file
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