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
7dab2ecc
Commit
7dab2ecc
authored
Aug 24, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
0ac3fc86
fb460a48
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
131 additions
and
14 deletions
+131
-14
index.html
egret/index.html
+2
-0
aes.js
egret/libs/aes.js
+35
-0
pad-zeropadding.js
egret/libs/pad-zeropadding.js
+31
-0
MainScene.ts
egret/src/mainScene/MainScene.ts
+24
-9
Chapters.ts
egret/src/something/Chapters.ts
+39
-5
No files found.
egret/index.html
View file @
7dab2ecc
...
...
@@ -44,6 +44,8 @@
<script
src=
"libs/security.js"
></script>
<script
src=
"libs/downloadApp.js"
></script>
<script
src=
"libs/svga.egret.min.js"
></script>
<script
src=
"libs/aes.js"
></script>
<script
src=
"libs/pad-zeropadding.js"
></script>
<script>
window
[
'price1'
]
=
1
;
window
[
'price2'
]
=
2
;
...
...
egret/libs/aes.js
0 → 100644
View file @
7dab2ecc
This diff is collapsed.
Click to expand it.
egret/libs/pad-zeropadding.js
0 → 100644
View file @
7dab2ecc
/*
CryptoJS v3.1.2
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
/**
* Zero padding strategy.
*/
CryptoJS
.
pad
.
ZeroPadding
=
{
pad
:
function
(
data
,
blockSize
)
{
// Shortcut
var
blockSizeBytes
=
blockSize
*
4
;
// Pad
data
.
clamp
();
data
.
sigBytes
+=
blockSizeBytes
-
((
data
.
sigBytes
%
blockSizeBytes
)
||
blockSizeBytes
);
},
unpad
:
function
(
data
)
{
// Shortcut
var
dataWords
=
data
.
words
;
// Unpad
var
i
=
data
.
sigBytes
-
1
;
while
(
!
((
dataWords
[
i
>>>
2
]
>>>
(
24
-
(
i
%
4
)
*
8
))
&
0xff
))
{
i
--
;
}
data
.
sigBytes
=
i
+
1
;
}
};
egret/src/mainScene/MainScene.ts
View file @
7dab2ecc
...
...
@@ -199,10 +199,10 @@ export default class MainScene extends Scene {
Tool
.
init
();
//第几关
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
// this.chapter =
20
;
// this.chapter =
33
;
this
.
chapterTxt
.
text
=
"第"
+
this
.
chapter
+
"关"
;
//关卡数据
this
.
chapterData
=
Chapters
[
this
.
chapter
];
//关卡数据
,1期定制,70,后面35关地图一致,步数减少
this
.
chapterData
=
Chapters
[
this
.
chapter
%
35
||
35
];
this
.
initUi
();
this
.
initSvgas
();
//先禁掉事件
...
...
@@ -212,8 +212,16 @@ export default class MainScene extends Scene {
NetManager
.
ins
.
showLog
(
getlogItem
(
10
))
NetManager
.
ins
.
showLog
(
getlogItem
(
13
))
//步数初始化
this
.
steps
=
this
.
chapterData
.
stepCount
;
//步数初始化,1期定制,
if
(
this
.
chapter
>
56
)
{
this
.
steps
=
this
.
chapterData
.
stepCount
-
7
;
}
else
if
(
this
.
chapter
>
35
)
{
this
.
steps
=
this
.
chapterData
.
stepCount
-
4
;
}
else
{
this
.
steps
=
this
.
chapterData
.
stepCount
;
}
//分数置0
this
.
score
=
0
;
//通关目标,如果通关目标是元素时,赋值this.passElements,否则
...
...
@@ -253,7 +261,7 @@ export default class MainScene extends Scene {
// } else {
// }
//开启事件,具体不应该放在这里,到时看
this
.
enableMouseEvt
(
true
);
//
this.enableMouseEvt(true);
//测试代码
var
fail
=
new
eui
.
Image
(
RES
.
getRes
(
"guideKnowBtn_png"
));
fail
.
x
=
10
;
...
...
@@ -477,9 +485,16 @@ export default class MainScene extends Scene {
//替换顺序
this
.
upsetElement
();
}
// else {
// this.enableMouseEvt(true);
// }
else
{
this
.
enableMouseEvt
(
true
);
}
//第35和70,要枷锁元素,定制,2期去掉
if
(
this
.
chapter
==
35
||
this
.
chapter
==
70
)
{
var
locks
=
[
4
,
13
,
22
,
31
,
40
,
49
,
57
,
58
,
59
,
66
,
67
,
68
,
75
,
76
,
77
,
63
,
64
,
72
,
73
,
70
,
71
,
79
,
80
];
for
(
var
aaa
=
0
;
aaa
<
locks
.
length
;
aaa
++
)
{
this
.
lattices
[
locks
[
aaa
]].
element
.
isLock
=
true
;
}
}
}
/**
...
...
egret/src/something/Chapters.ts
View file @
7dab2ecc
...
...
@@ -6,7 +6,7 @@ import { ElementType } from "./enum/ElementType";
// const CipherJS = require('cipherjs');
// const Vigenere = CipherJS.Vigenere;
// Vigenere.encrypt('MY SECRET MESSAGE', 'MY SECRET KEY')
...
...
@@ -986,7 +986,7 @@ export const Chapters: ChapterData[] = [
{
map
:
{
lattices
:
[
1
,
1
,
4
,
1
,
1
,
1
,
1
,
1
,
4
,
4
,
1
,
4
,
1
,
1
,
1
,
4
,
1
,
4
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
0
,
0
,
1
,
0
,
0
,
1
,
1
,
1
,
1
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
...
...
@@ -996,11 +996,11 @@ export const Chapters: ChapterData[] = [
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
],
generateLats
:
[
0
,
1
,
2
,
3
,
5
,
6
,
7
,
8
],
generateLats
:
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
baseElementTypes
:
[
0
,
1
,
2
,
3
],
effectInitProbability
:
0.1
,
stepCount
:
3
0
,
stepCount
:
4
0
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
...
...
@@ -1050,4 +1050,38 @@ export const Chapters: ChapterData[] = [
150000
]
},
//第三十五关
{
map
:
{
lattices
:
[
1
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
3
,
1
,
1
,
1
,
1
,
5
,
5
,
5
,
3
,
3
,
3
,
5
,
5
,
5
,
3
,
3
,
5
,
3
,
3
,
3
,
5
,
3
,
3
,
3
,
3
,
5
,
3
,
3
,
3
,
5
,
3
,
3
,
],
generateLats
:
[
0
,
1
,
2
,
3
,
5
,
6
,
7
,
8
],
},
baseElementTypes
:
[
0
,
1
,
2
,
3
,
4
],
effectInitProbability
:
0.05
,
stepCount
:
40
,
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
{
type
:
ElementType
.
ICE
,
count
:
23
}
],
},
starScores
:
[
30000
,
40000
,
60000
]
},
]
\ 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