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
d3d91ccf
Commit
d3d91ccf
authored
Nov 07, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
f8629686
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
Chapter6.ts
egret/src/something/chapters/Chapter6.ts
+1
-1
AiControl.ts
egret/src/something/logic/AiControl.ts
+6
-5
No files found.
egret/src/something/chapters/Chapter6.ts
View file @
d3d91ccf
...
...
@@ -489,7 +489,7 @@ export const Chapters6: ChapterData[] = [
{
baseElementTypes
:
[
2
,
3
,
4
,
0
,
1
],
bubbleProbability
:
0.1
,
stepCount
:
35
,
stepCount
:
40
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
55
}]
},
starScores
:
[
5000
,
12000
,
20000
],
map
:
{
...
...
egret/src/something/logic/AiControl.ts
View file @
d3d91ccf
...
...
@@ -73,7 +73,7 @@ export class AiControl {
}
fesEleMotion
(
thisObj
:
MainScene
,
callback
:
Function
)
{
//无节日大红包,直接回调,
气泡能生成,不能直接判断
//无节日大红包,直接回调,
if
(
!
this
.
hasFesEleBig
)
{
callback
();
return
...
...
@@ -97,6 +97,7 @@ export class AiControl {
callback
();
return
}
//当前就一个红包,如果没激活就回调
if
(
!
thisObj
.
lattices
[
indexs
[
0
]].
element
.
festivalEle
.
isActive
)
{
callback
();
return
...
...
@@ -106,10 +107,9 @@ export class AiControl {
var
redIndexs
:
number
[]
=
[];
for
(
var
a
=
0
;
a
<
thisObj
.
lattices
.
length
;
a
++
)
{
var
lat
=
thisObj
.
lattices
[
a
];
//是基础元素,但是不能有任何状态,
//是基础元素,但是不能有任何状态,
考虑修改小红包属性为可fall,
if
(
Tool
.
judgeBaseEle
(
lat
)
&&
!
lat
.
element
.
hasAnyState
()
&&
!
lat
.
isGenerate
//且格子不是生成口
!
lat
.
element
.
hasAnyState
()
)
{
redIndexs
.
push
(
a
);
}
...
...
@@ -166,9 +166,10 @@ export class AiControl {
thisObj
.
addChild
(
fesRedShootAni
);
fesRedShootAni
.
play
(
p
,
ele
,
()
=>
{
if
(
++
count
==
countAll
)
{
//去掉大红包
thisObj
.
removeOperation
(
index
);
//进行掉落
thisObj
.
fall
(()
=>
{
//掉落停止回调
thisObj
.
fallCallback
();
});
// callback();
...
...
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