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
22eb0f4b
Commit
22eb0f4b
authored
Dec 22, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
75fb7df5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
61 additions
and
32 deletions
+61
-32
index.html
egret/index.html
+1
-0
alert_yb.png
egret/resource/assets/redbombalert/alert_yb.png
+0
-0
redbomb_prize.svga
egret/resource/assets/svgas/redbomb_prize.svga
+0
-0
MainScene.ts
egret/src/mainScene/MainScene.ts
+3
-3
Chapter12.ts
egret/src/something/chapters/Chapter12.ts
+18
-5
getChapter.ts
egret/src/something/chapters/getChapter.ts
+24
-24
GameGuide.ts
egret/src/something/uis/GameGuide.ts
+15
-0
No files found.
egret/index.html
View file @
22eb0f4b
...
...
@@ -60,6 +60,7 @@
<script
src=
"libs/fileSave.js"
></script>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
window
.
fresp
=
0.00001
;
// localStorage.clear();
window
[
'testUrl'
]
=
'http://cuxiaoprexg.m.cnsuning.com/scms/cx521.html?activityId=SL446689024459878400&subactivityId=SUB446689681678090240&businessid=cx521'
;
window
[
'hbRainTime'
]
=
30
;
// 红包雨倒计时
...
...
egret/resource/assets/redbombalert/alert_yb.png
View replaced file @
75fb7df5
View file @
22eb0f4b
19.9 KB
|
W:
|
H:
26.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/svgas/redbomb_prize.svga
View file @
22eb0f4b
No preview for this file type
egret/src/mainScene/MainScene.ts
View file @
22eb0f4b
...
...
@@ -122,7 +122,7 @@ const redBombPanelName = "RedBombAlert";
const
fesChapterData
:
number
[]
=
[];
for
(
let
i
=
1
;
i
<
999
;
i
++
)
{
/// TODO 测试
if
(
i
==
25
||
i
==
44
)
continue
;
if
(
i
==
25
||
i
==
44
||
i
==
226
)
continue
;
fesChapterData
.
push
(
i
);
}
...
...
@@ -749,7 +749,7 @@ export default class MainScene extends Scene {
//初始化引导,游戏和道具
initGuide
()
{
//游戏引导
const
gameGuideChapterNum
=
[
1
,
2
,
3
,
5
,
8
,
9
,
10
,
12
,
17
,
25
,
41
,
61
,
101
,
121
]
const
gameGuideChapterNum
=
[
1
,
2
,
3
,
5
,
8
,
9
,
10
,
12
,
17
,
25
,
41
,
61
,
101
,
121
,
226
]
if
(
gameGuideChapterNum
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
)
{
if
(
!
readCache
(
getCacheKey
()
+
this
.
chapter
))
{
this
.
gameGuide
=
new
GameGuide
(
this
);
...
...
@@ -775,7 +775,7 @@ export default class MainScene extends Scene {
if
(
fesChapterData
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
&&
getRedBombTimes
()
&&
// Math.random() > 0.4
&&
Math
.
random
()
>
(
window
[
'fresp'
]
||
0.4
)
&&
this
.
lattices
[
festivalIndex
]
&&
//格子必须有
(
Tool
.
judgeSetFesEle
(
this
.
lattices
[
festivalIndex
])
||
!
this
.
lattices
[
festivalIndex
].
element
)
//没有元素也行
)
{
...
...
egret/src/something/chapters/Chapter12.ts
View file @
22eb0f4b
...
...
@@ -282,7 +282,20 @@ export const Chapters12: ChapterData[] = [
2
,
1
,
1
,
3
,
3
,
3
,
1
,
1
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
],
connectedLats
:
[[
18
,
54
],
[
28
,
46
],
[
13
,
31
],
[
49
,
67
],
[
34
,
52
],
[
26
,
62
]],
elements
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
recycles
:
[],
generateLats
:
[{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
8
,
type
:
null
}]
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
],
connectedLats
:
[[
18
,
54
],
[
28
,
46
],
[
13
,
31
],
[
49
,
67
],
[
34
,
52
],
[
26
,
62
]],
elements
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
],
baseElements
:
[
10
,
10
,
20
,
20
,
30
,
30
,
40
,
40
,
50
,
50
,
50
,
40
,
40
,
30
,
30
,
20
,
20
,
10
,
30
,
10
,
20
,
20
,
10
,
10
,
50
,
50
,
40
,
40
,
40
,
30
,
30
,
20
,
30
,
50
,
40
,
10
,
20
,
20
,
50
,
50
,
40
,
40
,
30
,
20
,
50
,
10
,
10
,
20
,
20
,
30
,
30
,
40
,
40
,
50
,
50
,
50
,
40
,
40
,
30
,
30
,
20
,
20
,
10
,
30
,
10
,
20
,
20
,
10
,
10
,
50
,
50
,
40
,
40
,
40
,
30
,
30
,
20
,
30
,
50
,
40
,
10
],
recycles
:
[],
generateLats
:
[{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
8
,
type
:
null
}]
}
},
//227
...
...
@@ -551,8 +564,8 @@ export const Chapters12: ChapterData[] = [
3
,
3
,
3
,
3
,
0
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
1
,
3
,
3
,
3
,
3
],
connectedLats
:
[],
elements
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
4
,
5
,
4
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
4
,
5
,
4
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
4
,
5
,
4
,
1
,
1
,
1
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
recycles
:
[],
generateLats
:
[{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
14
,
type
:
null
},
{
index
:
15
,
type
:
null
},
{
index
:
16
,
type
:
null
},
{
index
:
17
,
type
:
null
}]
3
,
3
,
3
,
3
,
1
,
3
,
3
,
3
,
3
],
connectedLats
:
[],
elements
:
[
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
4
,
5
,
4
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
4
,
5
,
4
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
1
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
4
,
5
,
4
,
1
,
1
,
1
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
recycles
:
[],
generateLats
:
[{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
14
,
type
:
null
},
{
index
:
15
,
type
:
null
},
{
index
:
16
,
type
:
null
},
{
index
:
17
,
type
:
null
}]
}
},
//238
...
...
@@ -589,8 +602,8 @@ export const Chapters12: ChapterData[] = [
2
,
2
,
2
,
2
,
2
,
1
,
2
,
1
,
1
,
1
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
1
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
21
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
11
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
31
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
recycles
:
[],
generateLats
:
[
{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
}
,
{
index
:
76
,
type
:
null
},
{
index
:
77
,
type
:
null
},
{
index
:
78
,
type
:
null
}]
recycles
:
[],
generateLats
:
[
{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
76
,
type
:
null
},
{
index
:
77
,
type
:
null
},
{
index
:
78
,
type
:
null
}]
}
},
//239
...
...
egret/src/something/chapters/getChapter.ts
View file @
22eb0f4b
...
...
@@ -53,29 +53,29 @@ var a = {
};
// 取数据格式用,一般情况注释
(
function
exportFile
(
chapters
:
ChapterData
[])
{
var
obj
=
[]
for
(
var
i
=
1
;
i
<
chapters
.
length
;
i
++
)
{
var
chapter
:
ChapterData
=
chapters
[
i
]
var
target
:
PassTargetData
=
chapter
.
passTarget
var
a
:
any
=
{};
a
[
"lev"
]
=
i
;
a
[
"tar"
]
=
[];
if
(
target
.
type
==
PassType
.
SCORE_TARGET
)
{
a
[
"tar"
].
push
({
"type"
:
1
,
"num"
:
target
.
score
})
}
else
{
for
(
var
j
=
0
;
j
<
target
.
elements
.
length
;
j
++
)
{
var
element
=
target
.
elements
[
j
];
a
[
"tar"
].
push
({
"type"
:
submitTran
[
element
.
type
],
"num"
:
element
.
count
})
}
}
//
(function exportFile(chapters: ChapterData[]) {
//
var obj = []
//
for (var i = 1; i < chapters.length; i++) {
//
var chapter: ChapterData = chapters[i]
//
var target: PassTargetData = chapter.passTarget
//
var a: any = {};
//
a["lev"] = i;
//
a["tar"] = [];
//
if (target.type == PassType.SCORE_TARGET) {
//
a["tar"].push({ "type": 1, "num": target.score })
//
} else {
//
for (var j = 0; j < target.elements.length; j++) {
//
var element = target.elements[j];
//
a["tar"].push({ "type": submitTran[element.type], "num": element.count })
//
}
//
}
a
[
"one"
]
=
chapter
.
starScores
[
0
];
a
[
"two"
]
=
chapter
.
starScores
[
1
];
a
[
"three"
]
=
chapter
.
starScores
[
2
];
//
a["one"] = chapter.starScores[0];
//
a["two"] = chapter.starScores[1];
//
a["three"] = chapter.starScores[2];
obj
.
push
(
a
)
}
var
file
=
new
File
([
JSON
.
stringify
(
obj
)],
"cfg.json"
,
{
type
:
"text/plain;charset=utf-8"
});
window
[
"saveAs"
](
file
);
})(
chapters
)
\ No newline at end of file
// obj.push(a)
// }
// var file = new File([JSON.stringify(obj)], "cfg.json", { type: "text/plain;charset=utf-8" });
// window["saveAs"](file);
// })(chapters)
\ No newline at end of file
egret/src/something/uis/GameGuide.ts
View file @
22eb0f4b
...
...
@@ -367,6 +367,21 @@ const chapterFuns = {
msg
:
[
"需用特效将褐色毛球分裂成
\n
两个灰色毛球,才能将它消除"
]
},
226
:{
stepCount
:
1
,
showIndexs
:
[
[
29
,
30
,
31
,
32
],
],
hideIndexs
:
[
[
29
,
30
],
],
handIndexs
:
[
[
31
,
32
],
],
msg
:
[
"每走三步都会翻转的石门!
\n
在石门开启的时候赶快消除吧~"
]
}
}
...
...
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