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
d39883bb
Commit
d39883bb
authored
May 18, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
食物暂存
parent
cb13ae72
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
34 deletions
+43
-34
MainBase.ts
egret/libs/new_wx/MainBase.ts
+4
-0
default.res.json
egret/resource/default.res.json
+34
-14
Chapter30.ts
egret/src/something/chapters/Chapter30.ts
+3
-18
Food.ts
egret/src/something/class/Food.ts
+2
-2
No files found.
egret/libs/new_wx/MainBase.ts
View file @
d39883bb
...
@@ -318,6 +318,10 @@ export default class MainBase extends eui.UILayer {
...
@@ -318,6 +318,10 @@ export default class MainBase extends eui.UILayer {
RES
.
getResAsync
(
"kuang_png"
);
RES
.
getResAsync
(
"kuang_png"
);
RES
.
getResAsync
(
"wormhole_png"
);
RES
.
getResAsync
(
"wormhole_png"
);
RES
.
getResAsync
(
"ele41_png"
);
RES
.
getResAsync
(
"ele41_png"
);
RES
.
getResAsync
(
"ele42_png"
);
RES
.
getResAsync
(
"ele43_png"
);
RES
.
getResAsync
(
"ele44_png"
);
RES
.
getResAsync
(
"ele45_png"
);
for
(
var
i
=
1
;
i
<=
27
;
i
++
)
{
for
(
var
i
=
1
;
i
<=
27
;
i
++
)
{
RES
.
getResAsync
(
"bonusFra"
+
i
+
"_png"
)
RES
.
getResAsync
(
"bonusFra"
+
i
+
"_png"
)
...
...
egret/resource/default.res.json
View file @
d39883bb
...
@@ -5423,39 +5423,59 @@
...
@@ -5423,39 +5423,59 @@
"name"
:
"ele41_png"
"name"
:
"ele41_png"
},
},
{
{
"
name"
:
"hbchuanguan2_
png"
,
"
url"
:
"assets/redbombalert/hbchuanguan2.
png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"
url"
:
"assets/redbombalert/hbchuanguan2.
png"
"
name"
:
"hbchuanguan2_
png"
},
},
{
{
"
name"
:
"redAlert_btn1_
png"
,
"
url"
:
"assets/redbombalert/redAlert_btn1.
png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"
url"
:
"assets/redbombalert/redAlert_btn1.
png"
"
name"
:
"redAlert_btn1_
png"
},
},
{
{
"
name"
:
"loadingbgfes_
png"
,
"
url"
:
"assets/startScene/loadingbgfes.
png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"
url"
:
"assets/startScene/loadingbgfes.
png"
"
name"
:
"loadingbgfes_
png"
},
},
{
{
"
name"
:
"titimg1_
png"
,
"
url"
:
"assets/redbombalert/titimg1.
png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"
url"
:
"assets/redbombalert/titimg1.
png"
"
name"
:
"titimg1_
png"
},
},
{
{
"
name"
:
"titimg2_
png"
,
"
url"
:
"assets/redbombalert/titimg2.
png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"
url"
:
"assets/redbombalert/titimg2.
png"
"
name"
:
"titimg2_
png"
},
},
{
{
"
name"
:
"titimg3_
png"
,
"
url"
:
"assets/redbombalert/titimg3.
png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"
url"
:
"assets/redbombalert/titimg3.
png"
"
name"
:
"titimg3_
png"
},
},
{
{
"
name"
:
"titimg4_
png"
,
"
url"
:
"assets/redbombalert/titimg4.
png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"url"
:
"assets/redbombalert/titimg4.png"
"name"
:
"titimg4_png"
},
{
"url"
:
"assets/mainScene/ele42.png"
,
"type"
:
"image"
,
"name"
:
"ele42_png"
},
{
"url"
:
"assets/mainScene/ele43.png"
,
"type"
:
"image"
,
"name"
:
"ele43_png"
},
{
"url"
:
"assets/mainScene/ele44.png"
,
"type"
:
"image"
,
"name"
:
"ele44_png"
},
{
"url"
:
"assets/mainScene/ele45.png"
,
"type"
:
"image"
,
"name"
:
"ele45_png"
}
}
]
]
}
}
\ No newline at end of file
egret/src/something/chapters/Chapter30.ts
View file @
d39883bb
...
@@ -25,26 +25,11 @@ export const Chapters30: ChapterData[] = [
...
@@ -25,26 +25,11 @@ export const Chapters30: ChapterData[] = [
],
connectedLats
:
[],
conveyor
:
[],
conveyorConnectedLats
:
[],
],
connectedLats
:
[],
conveyor
:
[],
conveyorConnectedLats
:
[],
WORMHOLE
:
[],
WORMHOLE
:
[],
foodsdata
:[
foodsdata
:[
{
type
:
42
,
luidx
:
23
,
dir
:
"up"
},
{
type
:
43
,
luidx
:
3
,
dir
:
'left'
},
{
{
type
:
44
,
type
:
44
,
luidx
:
56
,
luidx
:
2
,
dir
:
'left'
dir
:
"up"
},
}
{
type
:
45
,
luidx
:
37
,
dir
:
'left'
},
],
],
elements
:
[
elements
:
[
4
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
4
,
4
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
4
,
...
...
egret/src/something/class/Food.ts
View file @
d39883bb
...
@@ -45,8 +45,8 @@ export default class Food extends eui.Component{
...
@@ -45,8 +45,8 @@ export default class Food extends eui.Component{
this
.
showImage
.
rotation
=
roa
;
this
.
showImage
.
rotation
=
roa
;
var
onelength
=
78
;
var
onelength
=
78
;
var
posx
=
Tool
.
getPositionByIndex
(
luidx
)[
0
]
+
irow
*
onelength
/
2
;
var
posx
=
Tool
.
getPositionByIndex
(
luidx
)[
0
]
+
irow
*
onelength
/
2
-
onelength
/
2
;
var
posy
=
Tool
.
getPositionByIndex
(
luidx
)[
1
]
+
icol
*
onelength
/
2
;
var
posy
=
Tool
.
getPositionByIndex
(
luidx
)[
1
]
+
icol
*
onelength
/
2
-
onelength
/
2
;
return
[
posx
,
posy
];
return
[
posx
,
posy
];
}
}
}
}
\ No newline at end of file
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