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
ba1f5b1e
Commit
ba1f5b1e
authored
Jan 15, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
263a5af9
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
25 deletions
+55
-25
MainScene.ts
egret/src/mainScene/MainScene.ts
+24
-2
Chapter14.ts
egret/src/something/chapters/Chapter14.ts
+24
-23
ElementType.ts
egret/src/something/enum/ElementType.ts
+7
-0
No files found.
egret/src/mainScene/MainScene.ts
View file @
ba1f5b1e
...
...
@@ -2425,8 +2425,9 @@ export default class MainScene extends Scene {
//算个数
this
.
goElementTarget
(
ele
.
type
,
[
ele
.
x
,
ele
.
y
]);
}
// else if (ele.type == ElementType.MONSTER_JELLY) {
// this.removeMonsterJelly(index);
// //烟花
// else if (ele.type == ElementType.FIREWORKS_SHOOTER) {
// //没有处理
// }
//鸡蛋
else
if
(
ele
.
type
==
ElementType
.
CHICKEN_EGG
)
{
...
...
@@ -2985,6 +2986,27 @@ export default class MainScene extends Scene {
}
}
checkFireworksNebEle
(
lat
:
Lattice
)
{
var
indexMy
=
lat
.
index
;
var
indexs
=
[
indexMy
-
Tool
.
colNum
,
indexMy
+
Tool
.
colNum
,
]
if
(
lat
.
column
>
0
)
{
indexs
.
push
(
indexMy
-
1
)
}
if
(
lat
.
column
<
Tool
.
colNum
-
1
)
{
indexs
.
push
(
indexMy
+
1
)
}
for
(
let
i
=
0
;
i
<
indexs
.
length
;
i
++
)
{
let
index
=
indexs
[
i
];
let
lat
=
this
.
lattices
[
index
];
if
(
lat
.
element
&&
lat
.
element
.
type
==
ElementType
.
FIREWORKS_SHOOTER
)
{
}
}
}
//检查附近所有元素
checkNebAll
(
latttice
:
Lattice
)
{
//如果格子有冰
...
...
egret/src/something/chapters/Chapter14.ts
View file @
ba1f5b1e
This diff is collapsed.
Click to expand it.
egret/src/something/enum/ElementType.ts
View file @
ba1f5b1e
...
...
@@ -38,6 +38,13 @@ export enum ElementType {
MONSTER_JELLY1
,
JELLY_MONSTER
,
FIREWORKS_SHOOTER
,
//烟花
FIREWORKS_RABBIT
,
//烟花目标元素,下同
FIREWORKS_CHICKEN
,
FIREWORKS_CATTLE
,
FIREWORKS_LION
,
FIREWORKS_PIG
,
}
export
enum
CandyBaseElementType
{
...
...
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