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
21b3fade
Commit
21b3fade
authored
May 25, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
冰下食物元素
parent
a85b70cd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
412 additions
and
111 deletions
+412
-111
MainScene.ts
egret/src/mainScene/MainScene.ts
+1
-1
Chapter30.ts
egret/src/something/chapters/Chapter30.ts
+385
-106
Element.ts
egret/src/something/class/Element.ts
+3
-3
GameGuide.ts
egret/src/something/uis/GameGuide.ts
+23
-1
No files found.
egret/src/mainScene/MainScene.ts
View file @
21b3fade
...
@@ -1655,7 +1655,7 @@ export default class MainScene extends Scene {
...
@@ -1655,7 +1655,7 @@ export default class MainScene extends Scene {
//初始化引导,游戏和道具
//初始化引导,游戏和道具
initGuide
()
{
initGuide
()
{
//游戏引导
//游戏引导
const
gameGuideChapterNum
=
[
1
,
2
,
3
,
5
,
8
,
9
,
10
,
12
,
17
,
25
,
41
,
61
,
101
,
121
,
226
,
301
,
331
,
377
,
406
,
426
,
453
,
501
,
556
,
601
,
661
,
703
];
const
gameGuideChapterNum
=
[
1
,
2
,
3
,
5
,
8
,
9
,
10
,
12
,
17
,
25
,
41
,
61
,
101
,
121
,
226
,
301
,
331
,
377
,
406
,
426
,
453
,
501
,
556
,
601
,
661
,
703
,
752
];
if
(
gameGuideChapterNum
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
)
{
if
(
gameGuideChapterNum
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
)
{
if
(
!
readCache
(
getCacheKey
()
+
this
.
chapter
))
{
if
(
!
readCache
(
getCacheKey
()
+
this
.
chapter
))
{
this
.
gameGuide
=
new
GameGuide
(
this
);
this
.
gameGuide
=
new
GameGuide
(
this
);
...
...
egret/src/something/chapters/Chapter30.ts
View file @
21b3fade
This diff is collapsed.
Click to expand it.
egret/src/something/class/Element.ts
View file @
21b3fade
...
@@ -716,7 +716,7 @@ export class Element extends eui.Component {
...
@@ -716,7 +716,7 @@ export class Element extends eui.Component {
}
}
playCandySubAni
()
{
playCandySubAni
()
{
console
.
log
(
"candy动画1111"
);
//
console.log("candy动画1111");
return
new
Promise
((
r
)
=>
{
return
new
Promise
((
r
)
=>
{
egret
.
Tween
.
removeTweens
(
this
.
showImage
);
egret
.
Tween
.
removeTweens
(
this
.
showImage
);
egret
.
Tween
.
get
(
this
.
showImage
).
to
({
scaleX
:
0
,
scaleY
:
0
},
200
)
egret
.
Tween
.
get
(
this
.
showImage
).
to
({
scaleX
:
0
,
scaleY
:
0
},
200
)
...
@@ -730,7 +730,7 @@ export class Element extends eui.Component {
...
@@ -730,7 +730,7 @@ export class Element extends eui.Component {
}
}
addCandyStandbyAni
()
{
addCandyStandbyAni
()
{
console
.
log
(
"candy动画2222"
);
//
console.log("candy动画2222");
egret
.
Tween
.
removeTweens
(
this
.
showImage
);
egret
.
Tween
.
removeTweens
(
this
.
showImage
);
egret
.
Tween
.
get
(
this
.
showImage
,
{
loop
:
true
})
egret
.
Tween
.
get
(
this
.
showImage
,
{
loop
:
true
})
.
to
({
scaleX
:
1.1
,
scaleY
:
0.9
},
500
).
to
({
scaleX
:
0.9
,
scaleY
:
1.1
},
200
).
to
({
scaleX
:
1
,
scaleY
:
1
},
200
).
wait
(
1000
);
.
to
({
scaleX
:
1.1
,
scaleY
:
0.9
},
500
).
to
({
scaleX
:
0.9
,
scaleY
:
1.1
},
200
).
to
({
scaleX
:
1
,
scaleY
:
1
},
200
).
wait
(
1000
);
...
@@ -764,7 +764,7 @@ export class Element extends eui.Component {
...
@@ -764,7 +764,7 @@ export class Element extends eui.Component {
set
effectType
(
value
:
EffectType
)
{
set
effectType
(
value
:
EffectType
)
{
//糖果被直接设置成特效元素
//糖果被直接设置成特效元素
if
(
this
.
candy
&&
this
.
candy
.
step
){
if
(
this
.
candy
&&
this
.
candy
.
step
){
console
.
log
(
"清除candy动画"
)
//
console.log("清除candy动画")
this
.
playCandyDieAni
();
this
.
playCandyDieAni
();
if
(
this
.
candy
&&
this
.
candy
.
parent
){
if
(
this
.
candy
&&
this
.
candy
.
parent
){
this
.
candy
.
parent
.
removeChild
(
this
.
candy
);
this
.
candy
.
parent
.
removeChild
(
this
.
candy
);
...
...
egret/src/something/uis/GameGuide.ts
View file @
21b3fade
...
@@ -123,6 +123,9 @@ export class GameGuide extends egret.DisplayObjectContainer {
...
@@ -123,6 +123,9 @@ export class GameGuide extends egret.DisplayObjectContainer {
if
(
this
.
thisObj
.
chapter
==
501
)
{
if
(
this
.
thisObj
.
chapter
==
501
)
{
this
.
boxGroup
.
y
-=
100
;
this
.
boxGroup
.
y
-=
100
;
}
}
if
(
this
.
thisObj
.
chapter
==
752
){
this
.
boxGroup
.
y
+=
100
;
}
this
.
stepCount
--
;
this
.
stepCount
--
;
}
}
...
@@ -654,7 +657,26 @@ const chapterFuns = {
...
@@ -654,7 +657,26 @@ const chapterFuns = {
"移动元素消除,
\n
给地图铺上草坪"
,
"移动元素消除,
\n
给地图铺上草坪"
,
"必须在有草坪的元素上进行
\n
消除,才能铺上草坪哦~"
"必须在有草坪的元素上进行
\n
消除,才能铺上草坪哦~"
]
]
}
},
752
:{
stepCount
:
2
,
showIndexs
:
[
[
5
,
6
,
14
,
15
,
23
,
24
],
[
5
,
6
,
14
,
15
,
23
,
24
]
],
hideIndexs
:
[
[
14
,
15
,
23
,
24
],
[
14
,
15
,
23
,
24
]
],
handIndexs
:
[
[
6
,
5
],
[
5
,
6
]
],
msg
:
[
"冰下食物消除1"
,
"冰下食物消除2"
]
},
};
};
/**
/**
...
...
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