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
986a796d
Commit
986a796d
authored
May 07, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通关目标暂存
parent
7d3afc3f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
7 deletions
+22
-7
TargetItemSkin.exml
egret/resource/skins/TargetItemSkin.exml
+1
-0
MainScene.ts
egret/src/mainScene/MainScene.ts
+15
-1
doConveyorAI.ts
egret/src/mainScene/doConveyorAI.ts
+5
-5
Chapter28.ts
egret/src/something/chapters/Chapter28.ts
+1
-1
No files found.
egret/resource/skins/TargetItemSkin.exml
View file @
986a796d
...
@@ -19,5 +19,6 @@
...
@@ -19,5 +19,6 @@
<e:Image
id=
"icon26"
width=
"70"
height=
"70"
source=
"startpanel_ele26_png"
/>
<e:Image
id=
"icon26"
width=
"70"
height=
"70"
source=
"startpanel_ele26_png"
/>
<e:Image
id=
"icon34"
width=
"70"
height=
"70"
source=
"startpanel_ele34_png"
/>
<e:Image
id=
"icon34"
width=
"70"
height=
"70"
source=
"startpanel_ele34_png"
/>
<e:Image
id=
"icon36"
width=
"70"
height=
"70"
source=
"startpanel_ele36_png"
/>
<e:Image
id=
"icon36"
width=
"70"
height=
"70"
source=
"startpanel_ele36_png"
/>
<e:Image
id=
"icon41"
width=
"70"
height=
"70"
source=
"ele41_png"
/>
<e:BitmapLabel
id=
"txt"
text=
"0"
font=
"nums4_fnt"
verticalCenter=
"20.5"
x=
"73.2"
scaleX=
"0.85"
scaleY=
"0.85"
/>
<e:BitmapLabel
id=
"txt"
text=
"0"
font=
"nums4_fnt"
verticalCenter=
"20.5"
x=
"73.2"
scaleX=
"0.85"
scaleY=
"0.85"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/mainScene/MainScene.ts
View file @
986a796d
...
@@ -3215,6 +3215,7 @@ export default class MainScene extends Scene {
...
@@ -3215,6 +3215,7 @@ export default class MainScene extends Scene {
}
}
//如果只有步数转化的,不能再进结算,
//如果只有步数转化的,不能再进结算,
else
{
else
{
return
;
//通关了
//通关了
//提交分数等
//提交分数等
// console.log("结算检测---------------------弹窗检测4");
// console.log("结算检测---------------------弹窗检测4");
...
@@ -4288,6 +4289,7 @@ export default class MainScene extends Scene {
...
@@ -4288,6 +4289,7 @@ export default class MainScene extends Scene {
if
(
!
ele
)
continue
;
if
(
!
ele
)
continue
;
var
p
=
Tool
.
getPositionByIndex
(
index
);
var
p
=
Tool
.
getPositionByIndex
(
index
);
var
canturgrass
=
this
.
judgeTurfing
(
index
);
var
canturgrass
=
this
.
judgeTurfing
(
index
);
console
.
log
(
"特效传播草坪"
,
canturgrass
);
var
grassArr
=
new
Array
();
var
grassArr
=
new
Array
();
var
turfCp
=
new
Array
();
var
turfCp
=
new
Array
();
switch
(
ele
.
effectType
)
{
switch
(
ele
.
effectType
)
{
...
@@ -4513,9 +4515,11 @@ export default class MainScene extends Scene {
...
@@ -4513,9 +4515,11 @@ export default class MainScene extends Scene {
break
;
break
;
}
}
if
(
grassArr
.
length
>
0
){
if
(
grassArr
.
length
>
0
){
console
.
log
(
"特效传播草坪"
,
JSON
.
stringify
(
grassArr
));
this
.
changeGroGrass
(
grassArr
);
this
.
changeGroGrass
(
grassArr
);
}
}
if
(
turfCp
.
length
>
0
){
if
(
turfCp
.
length
>
0
){
console
.
log
(
"炮台猩猩草坪"
,
JSON
.
stringify
(
turfCp
))
this
.
changeGroGrassCp
(
turfCp
);
this
.
changeGroGrassCp
(
turfCp
);
}
}
}
}
...
@@ -4565,7 +4569,7 @@ export default class MainScene extends Scene {
...
@@ -4565,7 +4569,7 @@ export default class MainScene extends Scene {
}
}
//如果特效有,消除特效
//如果特效有,消除特效
if
(
effectElements
.
length
)
{
if
(
effectElements
.
length
)
{
//
console.log("结算检测---------------------有需要特效消除",JSON.stringify(effectElements));
console
.
log
(
"结算检测---------------------有需要特效消除"
,
JSON
.
stringify
(
effectElements
));
Array
.
prototype
.
push
.
apply
(
this
.
eliminatedElements
,
effectElements
);
Array
.
prototype
.
push
.
apply
(
this
.
eliminatedElements
,
effectElements
);
this
.
eliminate
();
this
.
eliminate
();
}
else
{
}
else
{
...
@@ -5669,12 +5673,18 @@ export default class MainScene extends Scene {
...
@@ -5669,12 +5673,18 @@ export default class MainScene extends Scene {
Pool
.
recover
(
RecoverName
.
ICE_BLOCK
,
block
);
Pool
.
recover
(
RecoverName
.
ICE_BLOCK
,
block
);
}
else
if
(
lat
.
block
.
blocktype
==
LatticeType
.
BLOCK_AND_DARK_ICE
){
}
else
if
(
lat
.
block
.
blocktype
==
LatticeType
.
BLOCK_AND_DARK_ICE
){
Pool
.
recover
(
RecoverName
.
DARK_ICE_BLOCK
,
block
);
Pool
.
recover
(
RecoverName
.
DARK_ICE_BLOCK
,
block
);
}
else
if
(
lat
.
block
.
blocktype
==
LatticeType
.
BLOCK_AND_GRASS
){
Pool
.
recover
(
RecoverName
.
GRASS_BLOCK
,
block
);
}
}
}
else
if
(
lat
.
sand
&&
lat
.
sand
.
parent
){
}
else
if
(
lat
.
sand
&&
lat
.
sand
.
parent
){
let
sand
=
lat
.
sand
;
let
sand
=
lat
.
sand
;
sand
.
parent
.
removeChild
(
sand
);
sand
.
parent
.
removeChild
(
sand
);
Pool
.
recover
(
RecoverName
.
SAND
,
sand
);
Pool
.
recover
(
RecoverName
.
SAND
,
sand
);
}
else
if
(
lat
.
grass
&&
lat
.
grass
.
parent
){
let
grass
=
lat
.
grass
;
grass
.
parent
.
removeChild
(
grass
);
Pool
.
recover
(
RecoverName
.
GRASS
,
grass
);
}
}
}
}
recoverEleast
(
lat
:
Lattice
){
recoverEleast
(
lat
:
Lattice
){
...
@@ -6077,15 +6087,19 @@ export default class MainScene extends Scene {
...
@@ -6077,15 +6087,19 @@ export default class MainScene extends Scene {
grassDisplay
=
new
Grass
();
grassDisplay
=
new
Grass
();
}
}
lat
.
grass
=
grassDisplay
;
lat
.
grass
=
grassDisplay
;
var
passpos
:
Array
<
number
>
=
[];
if
(
lat
.
block
){
if
(
lat
.
block
){
lat
.
block
.
grass
=
grassDisplay
;
lat
.
block
.
grass
=
grassDisplay
;
lat
.
block
.
addChild
(
grassDisplay
);
lat
.
block
.
addChild
(
grassDisplay
);
passpos
=
[
lat
.
block
.
x
,
lat
.
block
.
y
];
}
else
{
}
else
{
this
.
mapupContainer
.
addChild
(
grassDisplay
);
this
.
mapupContainer
.
addChild
(
grassDisplay
);
var
grasspos
=
Tool
.
getPositionByIndex
(
index
);
var
grasspos
=
Tool
.
getPositionByIndex
(
index
);
grassDisplay
.
x
=
grasspos
[
0
];
grassDisplay
.
x
=
grasspos
[
0
];
grassDisplay
.
y
=
grasspos
[
1
];
grassDisplay
.
y
=
grasspos
[
1
];
passpos
=
[
lat
.
grass
.
x
,
lat
.
grass
.
y
];
}
}
this
.
goElementTarget
(
ElementType
.
Grass
,
passpos
);
// }
// }
}
}
}
}
...
...
egret/src/mainScene/doConveyorAI.ts
View file @
986a796d
...
@@ -155,22 +155,22 @@ export default async (thisObj: MainScene) => {
...
@@ -155,22 +155,22 @@ export default async (thisObj: MainScene) => {
}
}
return
mapcf
;
return
mapcf
;
});
});
console
.
log
(
"1传送带检查"
,
list
,
targetIndexs
);
//
console.log("1传送带检查",list,targetIndexs);
console
.
log
(
"传送带新增地图元素"
,
mapments
);
//
console.log("传送带新增地图元素",mapments);
const
elements
=
list
.
map
(
index
=>
const
elements
=
list
.
map
(
index
=>
thisObj
.
lattices
[
index
].
element
thisObj
.
lattices
[
index
].
element
);
//当前传送带元素
);
//当前传送带元素
const
lattices
=
list
.
map
(
index
=>
thisObj
.
lattices
[
index
]);
//当前的lattices
const
lattices
=
list
.
map
(
index
=>
thisObj
.
lattices
[
index
]);
//当前的lattices
const
targetLattices
=
targetIndexs
.
map
(
index
=>
thisObj
.
lattices
[
index
]);
const
targetLattices
=
targetIndexs
.
map
(
index
=>
thisObj
.
lattices
[
index
]);
console
.
log
(
"2传送带检查"
,
elements
,
lattices
,
targetLattices
);
//
console.log("2传送带检查",elements,lattices,targetLattices);
mapmentsList
.
push
(
mapments
);
mapmentsList
.
push
(
mapments
);
elementsList
.
push
(
elements
);
elementsList
.
push
(
elements
);
targetLatticesList
.
push
(
targetLattices
);
targetLatticesList
.
push
(
targetLattices
);
latticesList
.
push
(
lattices
);
latticesList
.
push
(
lattices
);
targetIndexsList
.
push
(
targetIndexs
);
targetIndexsList
.
push
(
targetIndexs
);
console
.
log
(
"3传送带检查"
,
elementsList
,
targetLatticesList
,
latticesList
,
targetIndexsList
);
//
console.log("3传送带检查",elementsList,targetLatticesList,latticesList,targetIndexsList);
}
}
console
.
log
(
"4传送带检查"
,
listItems
);
//
console.log("4传送带检查",listItems);
listItems
.
forEach
(
item
=>
thisObj
.
conveyorMap
[
item
]
=
null
);
listItems
.
forEach
(
item
=>
thisObj
.
conveyorMap
[
item
]
=
null
);
latticesList
.
forEach
(
lattices
=>
{
latticesList
.
forEach
(
lattices
=>
{
lattices
.
forEach
(
lat
=>
lat
.
element
=
null
);
lattices
.
forEach
(
lat
=>
lat
.
element
=
null
);
...
...
egret/src/something/chapters/Chapter28.ts
View file @
986a796d
...
@@ -42,7 +42,7 @@ export const Chapters28: ChapterData[] = [
...
@@ -42,7 +42,7 @@ export const Chapters28: ChapterData[] = [
//702
//702
{
baseElementTypes
:
[
0
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
21
,
{
baseElementTypes
:
[
0
,
2
,
3
,
4
],
bubbleProbability
:
0
,
stepCount
:
21
,
passTarget
:
{
type
:
1
,
elements
:
[
{
type
:
9
,
count
:
56
}
]
},
starScores
:
[
15000
,
20000
,
25000
],
map
:
{
passTarget
:
{
type
:
1
,
elements
:
[
{
type
:
41
,
count
:
10
}
]
},
starScores
:
[
15000
,
20000
,
25000
],
map
:
{
lattices
:
[
lattices
:
[
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
...
...
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