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
9ad2908b
Commit
9ad2908b
authored
May 22, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
食物关卡兼容
parent
96e59e0f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
MainScene.ts
egret/src/mainScene/MainScene.ts
+22
-20
No files found.
egret/src/mainScene/MainScene.ts
View file @
9ad2908b
...
@@ -1185,6 +1185,7 @@ export default class MainScene extends Scene {
...
@@ -1185,6 +1185,7 @@ export default class MainScene extends Scene {
//食物
//食物
initFoods
(){
initFoods
(){
var
foodsdata
=
this
.
chapterData
.
map
.
foodsdata
;
var
foodsdata
=
this
.
chapterData
.
map
.
foodsdata
;
if
(
foodsdata
){
for
(
var
i
=
0
;
i
<
foodsdata
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
foodsdata
.
length
;
i
++
){
var
ifood
=
foodsdata
[
i
];
var
ifood
=
foodsdata
[
i
];
var
ifoodtype
=
ifood
.
type
;
var
ifoodtype
=
ifood
.
type
;
...
@@ -1208,6 +1209,7 @@ export default class MainScene extends Scene {
...
@@ -1208,6 +1209,7 @@ export default class MainScene extends Scene {
// console.log("食物处理",ifoodtype);
// console.log("食物处理",ifoodtype);
}
}
}
}
}
//初始化地图格子数据,包括生成口,联通口,次数,新加入reCoverAllLattice----LATTICE回收
//初始化地图格子数据,包括生成口,联通口,次数,新加入reCoverAllLattice----LATTICE回收
initLattices
()
{
initLattices
()
{
...
...
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