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
b3dfe265
Commit
b3dfe265
authored
May 11, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
红包炸弹暂存
parent
93e9c6fb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
12 deletions
+6
-12
index.html
egret/index.html
+2
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+2
-0
AiControl.ts
egret/src/something/logic/AiControl.ts
+1
-0
baseinfo.json
mock/happyclear/baseinfo.json
+1
-1
home.json
mock/happyclear/home.json
+0
-10
No files found.
egret/index.html
View file @
b3dfe265
...
...
@@ -115,7 +115,8 @@
}
</script>
<script>
window
[
'fresp'
]
=
10
;
// window['fresp'] = 10;
window
[
'fresp'
]
=
0.4
;
window
[
'signconfigs'
]
=
[
{
nums
:
'10元宝'
,
type
:
'money'
},
{
nums
:
'*1'
,
type
:
'hammer'
},
...
...
egret/src/mainScene/MainScene.ts
View file @
b3dfe265
...
...
@@ -1547,6 +1547,7 @@ export default class MainScene extends Scene {
//初始化节日元素
async
initFestivalEle
()
{
//添加节日元素,条件可能会变
console
.
log
(
"节日元素判定"
,
fesChapterData
,
this
.
chapter
,
getRedBombTimes
(),
window
[
'fresp'
],
this
.
lattices
[
festivalIndex
]);
if
(
fesChapterData
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
&&
getRedBombTimes
()
&&
...
...
@@ -1554,6 +1555,7 @@ export default class MainScene extends Scene {
this
.
lattices
[
festivalIndex
]
&&
//格子必须有
(
Tool
.
judgeSetFesEle
(
this
.
lattices
[
festivalIndex
])
||
!
this
.
lattices
[
festivalIndex
].
element
)
//没有元素也行
)
{
console
.
log
(
"节日元素loading"
);
this
[
'redrainbg'
].
visible
=
true
;
await
this
.
startPlayLoadingAni
();
this
[
'redrainbg'
].
visible
=
false
;
...
...
egret/src/something/logic/AiControl.ts
View file @
b3dfe265
...
...
@@ -129,6 +129,7 @@ export class AiControl {
//打乱索引
redIndexs
.
sort
(
function
()
{
return
(
0.5
-
Math
.
random
());
});
let
six
:
any
[]
=
redIndexs
.
splice
(
0
,
fesELeSmallNum
);
console
.
log
(
"发红包"
,
six
,
fesELeSmallNum
);
//如果不足6个,就修改thisObj里的
if
(
six
.
length
<
fesELeSmallNum
)
{
thisObj
.
festivalTargetNum
=
fesELeSmallNum
;
...
...
mock/happyclear/baseinfo.json
View file @
b3dfe265
...
...
@@ -5,6 +5,6 @@
"redBombSwitchTime"
:
"77798963487234"
},
"desc"
:
"OK"
,
"success"
:
fals
e
,
"success"
:
tru
e
,
"timestamp"
:
1572923489898
}
\ No newline at end of file
mock/happyclear/home.json
View file @
b3dfe265
...
...
@@ -3503,16 +3503,6 @@
"levelNum"
:
698
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
699
,
"maxScore"
:
47440
,
"stars"
:
1
},
{
"levelNum"
:
700
,
"maxScore"
:
47440
,
"stars"
:
1
}
],
"remainProp"
:
[
...
...
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