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
adfb0cde
Commit
adfb0cde
authored
Apr 26, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整深冰块显示
parent
72ec9d5e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
6 deletions
+58
-6
BaseBlock.ts
egret/src/something/block/BaseBlock.ts
+18
-4
genBlockDisplay.ts
egret/src/something/block/genBlockDisplay.ts
+17
-2
Chapter26.ts
egret/src/something/chapters/Chapter26.ts
+23
-0
No files found.
egret/src/something/block/BaseBlock.ts
View file @
adfb0cde
...
...
@@ -177,10 +177,24 @@ export default class BaseBlock extends egret.DisplayObjectContainer {
this
.
addAni
(
this
.
_blockBgBlue
);
break
;
case
3
:
//翻转了
await
this
.
playToFrontAni
();
this
.
updateElementState
();
this
.
_block
.
visible
=
false
;
this
.
_block
.
scaleX
=
1
;
if
(
!
first
){
await
this
.
playToFrontAni
();
this
.
updateElementState
();
this
.
_block
.
visible
=
false
;
this
.
_block
.
scaleX
=
1
;
}
else
{
if
(
this
.
ice
){
this
.
ice
.
visible
=
true
;
this
.
ice
.
scaleX
=
1
;
}
if
(
this
.
_element
){
this
.
_element
.
visible
=
true
;
this
.
_element
.
scaleX
=
1
;
}
this
.
_blockBgFront
.
visible
=
true
;
this
.
_inited
=
true
;
}
this
.
_blockBgRed
.
visible
=
true
;
this
.
addAni
(
this
.
_blockBgRed
);
this
.
dispatchEvent
(
new
egret
.
Event
(
'onAniOver'
));
...
...
egret/src/something/block/genBlockDisplay.ts
View file @
adfb0cde
...
...
@@ -22,6 +22,7 @@ export default (type: LatticeType) => {
}
else
{
block
.
_state
=
_state
;
block
.
nextState
(
true
);
}
return
block
;
case
LatticeType
.
BLOCK_AND_ICE
:
...
...
@@ -31,8 +32,14 @@ export default (type: LatticeType) => {
}
else
{
iceblock
.
_state
=
_state
;
iceblock
.
ice
.
alpha
=
0.6
;
iceblock
.
ice
.
visible
=
false
;
iceblock
.
iceCountNum
=
1
;
iceblock
.
nextState
(
true
);
}
if
(
iceblock
.
_state
==
0
||
iceblock
.
_state
==
1
||
iceblock
.
_state
==
2
){
iceblock
.
ice
.
visible
=
false
;
}
else
{
iceblock
.
ice
.
visible
=
true
;
}
return
iceblock
;
case
LatticeType
.
BLOCK_AND_DARK_ICE
:
...
...
@@ -42,8 +49,16 @@ export default (type: LatticeType) => {
}
else
{
darkiceblock
.
_state
=
_state
;
darkiceblock
.
ice
.
alpha
=
1
;
darkiceblock
.
ice
.
visible
=
false
;
darkiceblock
.
iceCountNum
=
2
;
darkiceblock
.
nextState
(
true
);
}
if
(
darkiceblock
.
_state
==
0
||
darkiceblock
.
_state
==
1
||
darkiceblock
.
_state
==
2
){
darkiceblock
.
ice
.
visible
=
false
;
}
else
{
darkiceblock
.
ice
.
visible
=
true
;
}
return
darkiceblock
;
default
:
...
...
egret/src/something/chapters/Chapter26.ts
View file @
adfb0cde
...
...
@@ -87,4 +87,27 @@ export const Chapters26: ChapterData[] = [
]
}
},
{
baseElementTypes
:
[
0
,
1
,
2
,
3
],
bubbleProbability
:
0
,
stepCount
:
28
,
passTarget
:
{
type
:
1
,
elements
:
[
{
type
:
9
,
count
:
63
},
{
type
:
0
,
count
:
102
}
]
},
starScores
:
[],
map
:
{
lattices
:
[
3
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
3
,
3
,
6
,
0
,
0
,
0
,
0
,
0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
:
null
},
{
index
:
10
,
type
:
null
},
{
index
:
16
,
type
:
null
},
{
index
:
20
,
type
:
null
},
{
index
:
24
,
type
:
null
},
{
index
:
30
,
type
:
null
},
{
index
:
32
,
type
:
null
},
{
index
:
40
,
type
:
null
}
]
}
},
]
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