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
b517119c
Commit
b517119c
authored
Apr 13, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
猩猩动画暂存
parent
604ab515
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
547 additions
and
238 deletions
+547
-238
kuang.png
egret/resource/assets/mainScene/kuang.png
+0
-0
leftxingxing.svga
egret/resource/assets/svgas/leftxingxing.svga
+0
-0
rightxingxing.svga
egret/resource/assets/svgas/rightxingxing.svga
+0
-0
MainScene.ts
egret/src/mainScene/MainScene.ts
+268
-66
Chapter24.ts
egret/src/something/chapters/Chapter24.ts
+97
-146
getChapter.ts
egret/src/something/chapters/getChapter.ts
+4
-1
Element.ts
egret/src/something/class/Element.ts
+178
-25
No files found.
egret/resource/assets/mainScene/kuang.png
View replaced file @
604ab515
View file @
b517119c
20.2 KB
|
W:
|
H:
23.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/svgas/leftxingxing.svga
0 → 100644
View file @
b517119c
File added
egret/resource/assets/svgas/rightxingxing.svga
0 → 100644
View file @
b517119c
File added
egret/src/mainScene/MainScene.ts
View file @
b517119c
This diff is collapsed.
Click to expand it.
egret/src/something/chapters/Chapter24.ts
View file @
b517119c
This diff is collapsed.
Click to expand it.
egret/src/something/chapters/getChapter.ts
View file @
b517119c
...
@@ -25,6 +25,7 @@ import { Chapters20 } from "./Chapter20";
...
@@ -25,6 +25,7 @@ import { Chapters20 } from "./Chapter20";
import
{
Chapters21
}
from
"./Chapter21"
;
import
{
Chapters21
}
from
"./Chapter21"
;
import
{
Chapters22
}
from
"./Chapter22"
;
import
{
Chapters22
}
from
"./Chapter22"
;
import
{
Chapters23
}
from
"./Chapter23"
;
import
{
Chapters23
}
from
"./Chapter23"
;
import
{
Chapters24
}
from
"./Chapter24"
;
//所有的关卡
//所有的关卡
const
chapters
:
ChapterData
[]
=
[].
concat
(
const
chapters
:
ChapterData
[]
=
[].
concat
(
...
@@ -51,6 +52,7 @@ const chapters: ChapterData[] = [].concat(
...
@@ -51,6 +52,7 @@ const chapters: ChapterData[] = [].concat(
Chapters21
,
Chapters21
,
Chapters22
,
Chapters22
,
Chapters23
,
Chapters23
,
Chapters24
,
)
)
// console.log(chapters)
// console.log(chapters)
chapters
.
forEach
((
chapter
,
index
)
=>
{
chapters
.
forEach
((
chapter
,
index
)
=>
{
...
@@ -71,7 +73,8 @@ chapters.forEach((chapter,index) => {
...
@@ -71,7 +73,8 @@ chapters.forEach((chapter,index) => {
*/
*/
export
function
getChapterData
(
index
:
number
):
ChapterData
{
export
function
getChapterData
(
index
:
number
):
ChapterData
{
//没有数据就返回第一关数据
//没有数据就返回第一关数据
return
chapters
[
index
]
||
chapters
[
601
];
return
chapters
[
604
];
return
chapters
[
index
]
||
chapters
[
604
];
}
}
var
a
=
{
var
a
=
{
...
...
egret/src/something/class/Element.ts
View file @
b517119c
This diff is collapsed.
Click to expand it.
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