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
f7f676e6
Commit
f7f676e6
authored
Oct 30, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
28ad3527
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
Chapter4.ts
egret/src/something/chapters/Chapter4.ts
+10
-3
ChickenEgg.ts
egret/src/something/class/ChickenEgg.ts
+5
-5
No files found.
egret/src/something/chapters/Chapter4.ts
View file @
f7f676e6
...
...
@@ -155,10 +155,10 @@ export const Chapters4: ChapterData[] = [
]
}
},
//67
待调整通关目标,目标不存在现在
//67
{
baseElementTypes
:
[
0
,
1
,
3
,
2
,
4
],
bubbleProbability
:
20
,
bubbleProbability
:
0.2
,
stepCount
:
32
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
28
}]
},
starScores
:
[
6000
,
12000
,
24000
],
...
...
@@ -251,7 +251,14 @@ export const Chapters4: ChapterData[] = [
},
//70
{
baseElementTypes
:
[
1
,
0
,
2
,
3
],
bubbleProbability
:
80
,
stepCount
:
20
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
1
,
count
:
72
}]
},
starScores
:
[
5000
,
11000
,
20000
],
map
:
{
lattices
:
[
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,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},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
11
,
type
:
null
},
{
index
:
12
,
type
:
null
},
{
index
:
13
,
type
:
null
},
{
index
:
14
,
type
:
null
},
{
index
:
15
,
type
:
null
}]
}
baseElementTypes
:
[
1
,
0
,
2
,
3
],
bubbleProbability
:
0
,
stepCount
:
20
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
1
,
count
:
60
}]
},
starScores
:
[
5000
,
11000
,
20000
],
map
:
{
lattices
:
[
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
connectedLats
:
[[
11
,
29
],
[
12
,
30
],
[
13
,
31
],
[
14
,
32
],
[
15
,
33
]],
elements
:
[
0
,
0
,
2
,
2
,
2
,
2
,
2
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
7
,
7
,
7
,
7
,
7
,
0
,
0
,
0
,
6
,
7
,
7
,
7
,
7
,
7
,
6
,
0
,
0
,
6
,
7
,
7
,
7
,
7
,
7
,
6
,
0
,
0
,
2
,
7
,
7
,
7
,
7
,
7
,
2
,
0
,
0
,
0
,
2
,
6
,
2
,
6
,
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
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
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
11
,
type
:
null
},
{
index
:
12
,
type
:
null
},
{
index
:
13
,
type
:
null
},
{
index
:
14
,
type
:
null
},
{
index
:
15
,
type
:
null
}]
}
},
//71
{
...
...
egret/src/something/class/ChickenEgg.ts
View file @
f7f676e6
...
...
@@ -2,8 +2,8 @@ import { ElementType } from "../enum/ElementType";
//四种状态的图片
const
images
=
{
3
:
"ele"
+
ElementType
.
CHICKEN_EGG
+
"_png"
,
2
:
"eggStatus2_png"
,
2
:
"ele"
+
ElementType
.
CHICKEN_EGG
+
"_png"
,
//
2: "eggStatus2_png",
1
:
"eggStatus1_png"
,
0
:
"eggStatus0_png"
}
...
...
@@ -18,7 +18,7 @@ export class ChickenEgg extends eui.Component {
*/
isActive
:
boolean
;
/**
* 鸡蛋状态变化
3
2 1 0 再往后,可孵鸡
* 鸡蛋状态变化 2 1 0 再往后,可孵鸡
*/
private
_statusNum
:
number
;
get
statusNum
()
{
...
...
@@ -37,7 +37,7 @@ export class ChickenEgg extends eui.Component {
}
}
constructor
(
n
:
number
=
3
)
{
constructor
(
n
:
number
=
2
)
{
super
()
this
.
showImage
=
new
eui
.
Image
();
this
.
addChild
(
this
.
showImage
)
...
...
@@ -64,7 +64,7 @@ export class ChickenEgg extends eui.Component {
}
reset
(
n
:
number
=
3
)
{
reset
(
n
:
number
=
2
)
{
this
.
changeSource
(
images
[
n
]);
this
.
isActive
=
false
;
this
.
_statusNum
=
n
;
...
...
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