Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
翁阳
babycare_xiaoxiao
Commits
178aa111
Commit
178aa111
authored
Sep 29, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
节日红包
parent
a7e896df
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
172 additions
and
364 deletions
+172
-364
workspace.xml
.idea/workspace.xml
+34
-129
fesRedBombSta1.png
resource/festival/fesRedBombSta1.png
+0
-0
fesRedDown.png
resource/festival/fesRedDown.png
+0
-0
xingxingbi.png
resource/festival/xingxingbi.png
+0
-0
res.json
resource/res.json
+2
-2
ResJson.ts
src/ResJson.ts
+2
-2
PlayScene.ts
src/scene/PlayScene.ts
+29
-19
FesRedBombShowAni.ts
src/something/anisCall/FesRedBombShowAni.ts
+1
-6
FesRedShootAni.ts
src/something/anisCall/FesRedShootAni.ts
+16
-8
FestivalEle.ts
src/something/class/FestivalEle.ts
+69
-180
AiControl.ts
src/something/logic/AiControl.ts
+19
-18
No files found.
.idea/workspace.xml
View file @
178aa111
This diff is collapsed.
Click to expand it.
resource/festival/fesRedBombSta1.png
View replaced file @
a7e896df
View file @
178aa111
41.4 KB
|
W:
|
H:
43 KB
|
W:
|
H:
2-up
Swipe
Onion skin
resource/festival/fesRedDown.png
View replaced file @
a7e896df
View file @
178aa111
1.54 KB
|
W:
|
H:
54.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
resource/festival/xingxingbi.png
deleted
100644 → 0
View file @
a7e896df
34.8 KB
resource/res.json
View file @
178aa111
...
...
@@ -53,7 +53,7 @@
"name"
:
"common"
},
{
"keys"
:
"fesEleSmallDis1.png,fesEleSmallDis10.png,fesEleSmallDis2.png,fesEleSmallDis3.png,fesEleSmallDis4.png,fesEleSmallDis5.png,fesEleSmallDis6.png,fesEleSmallDis7.png,fesEleSmallDis8.png,fesEleSmallDis9.png,fesRedBigLight.png,fesRedBombSta1.png,fesRed
Cap.png,fesRedDown.png,fesRedSmallLight.png,fesRedUp.png,festivalTargetBg.png,lineLight1.png,lineLight10.png,lineLight11.png,lineLight12.png,lineLight13.png,lineLight2.png,lineLight3.png,lineLight4.png,lineLight5.png,lineLight6.png,lineLight7.png,lineLight8.png,lineLight9.png,xingxingbi
.png"
,
"keys"
:
"fesEleSmallDis1.png,fesEleSmallDis10.png,fesEleSmallDis2.png,fesEleSmallDis3.png,fesEleSmallDis4.png,fesEleSmallDis5.png,fesEleSmallDis6.png,fesEleSmallDis7.png,fesEleSmallDis8.png,fesEleSmallDis9.png,fesRedBigLight.png,fesRedBombSta1.png,fesRed
BombSta2.png,fesRedBombSta3_0.png,fesRedBombSta3_1.png,fesRedBombSta3_10.png,fesRedBombSta3_11.png,fesRedBombSta3_12.png,fesRedBombSta3_13.png,fesRedBombSta3_2.png,fesRedBombSta3_3.png,fesRedBombSta3_4.png,fesRedBombSta3_5.png,fesRedBombSta3_6.png,fesRedBombSta3_7.png,fesRedBombSta3_8.png,fesRedBombSta3_9.png,fesRedBombSta4_0.png,fesRedBombSta4_1.png,fesRedBombSta4_10.png,fesRedBombSta4_11.png,fesRedBombSta4_12.png,fesRedBombSta4_13.png,fesRedBombSta4_14.png,fesRedBombSta4_15.png,fesRedBombSta4_16.png,fesRedBombSta4_17.png,fesRedBombSta4_2.png,fesRedBombSta4_3.png,fesRedBombSta4_4.png,fesRedBombSta4_5.png,fesRedBombSta4_6.png,fesRedBombSta4_7.png,fesRedBombSta4_8.png,fesRedBombSta4_9.png,fesRedCap.png,fesRedDown.png,fesRedSmallLight.png,fesRedUp.png,festivalTargetBg.png,lineLight1.png,lineLight10.png,lineLight11.png,lineLight12.png,lineLight13.png,lineLight2.png,lineLight3.png,lineLight4.png,lineLight5.png,lineLight6.png,lineLight7.png,lineLight8.png,lineLight9.png,xingxingbi1
.png"
,
"name"
:
"festival"
},
{
...
...
@@ -73,7 +73,7 @@
"name"
:
"map"
},
{
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,
fesRedBombSta1.png,fesRedBombSta2.png,fesRedCap.png,fesRedDown.png,fesRedUp.png,festivalTargetBg.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lineLight1.png,lineLight10.png,lineLight11.png,lineLight12.png,lineLight13.png,lineLight2.png,lineLight3.png,lineLight4.png,lineLight5.png,lineLight6.png,lineLight7.png,lineLight8.png,lineLight9.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,xingxingbi
.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,
gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar
.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"name"
:
"playScene"
},
{
...
...
src/ResJson.ts
View file @
178aa111
...
...
@@ -53,7 +53,7 @@ export const ResJson = {
"name"
:
"common"
},
{
"keys"
:
"fesEleSmallDis1.png,fesEleSmallDis10.png,fesEleSmallDis2.png,fesEleSmallDis3.png,fesEleSmallDis4.png,fesEleSmallDis5.png,fesEleSmallDis6.png,fesEleSmallDis7.png,fesEleSmallDis8.png,fesEleSmallDis9.png,fesRedBigLight.png,fesRedBombSta1.png,fesRed
Cap.png,fesRedDown.png,fesRedSmallLight.png,fesRedUp.png,festivalTargetBg.png,lineLight1.png,lineLight10.png,lineLight11.png,lineLight12.png,lineLight13.png,lineLight2.png,lineLight3.png,lineLight4.png,lineLight5.png,lineLight6.png,lineLight7.png,lineLight8.png,lineLight9.png,xingxingbi
.png"
,
"keys"
:
"fesEleSmallDis1.png,fesEleSmallDis10.png,fesEleSmallDis2.png,fesEleSmallDis3.png,fesEleSmallDis4.png,fesEleSmallDis5.png,fesEleSmallDis6.png,fesEleSmallDis7.png,fesEleSmallDis8.png,fesEleSmallDis9.png,fesRedBigLight.png,fesRedBombSta1.png,fesRed
BombSta2.png,fesRedBombSta3_0.png,fesRedBombSta3_1.png,fesRedBombSta3_10.png,fesRedBombSta3_11.png,fesRedBombSta3_12.png,fesRedBombSta3_13.png,fesRedBombSta3_2.png,fesRedBombSta3_3.png,fesRedBombSta3_4.png,fesRedBombSta3_5.png,fesRedBombSta3_6.png,fesRedBombSta3_7.png,fesRedBombSta3_8.png,fesRedBombSta3_9.png,fesRedBombSta4_0.png,fesRedBombSta4_1.png,fesRedBombSta4_10.png,fesRedBombSta4_11.png,fesRedBombSta4_12.png,fesRedBombSta4_13.png,fesRedBombSta4_14.png,fesRedBombSta4_15.png,fesRedBombSta4_16.png,fesRedBombSta4_17.png,fesRedBombSta4_2.png,fesRedBombSta4_3.png,fesRedBombSta4_4.png,fesRedBombSta4_5.png,fesRedBombSta4_6.png,fesRedBombSta4_7.png,fesRedBombSta4_8.png,fesRedBombSta4_9.png,fesRedCap.png,fesRedDown.png,fesRedSmallLight.png,fesRedUp.png,festivalTargetBg.png,lineLight1.png,lineLight10.png,lineLight11.png,lineLight12.png,lineLight13.png,lineLight2.png,lineLight3.png,lineLight4.png,lineLight5.png,lineLight6.png,lineLight7.png,lineLight8.png,lineLight9.png,xingxingbi1
.png"
,
"name"
:
"festival"
},
{
...
...
@@ -73,7 +73,7 @@ export const ResJson = {
"name"
:
"map"
},
{
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,
fesRedBombSta1.png,fesRedBombSta2.png,fesRedCap.png,fesRedDown.png,fesRedUp.png,festivalTargetBg.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lineLight1.png,lineLight10.png,lineLight11.png,lineLight12.png,lineLight13.png,lineLight2.png,lineLight3.png,lineLight4.png,lineLight5.png,lineLight6.png,lineLight7.png,lineLight8.png,lineLight9.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,xingxingbi
.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,
gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar
.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"name"
:
"playScene"
},
{
...
...
src/scene/PlayScene.ts
View file @
178aa111
...
...
@@ -66,6 +66,9 @@ import { G_EVENT } from '../common/G_EVENT';
import
Tween
=
FYGE
.
Tween
;
import
{
BitmapRecycle
}
from
"../something/class/BitmapRecycle"
;
import
{
FesRedPrizePanel
}
from
"../panels/FesRedPrizePanel"
;
import
FrameAni
=
FYGE
.
FrameAni
;
import
Texture
=
FYGE
.
Texture
;
import
Container
=
FYGE
.
Container
;
const
aniClass
=
{
"BoomAni"
:
BoomAni
,
...
...
@@ -123,7 +126,7 @@ const festivalIndex: number = 40
export
class
PlayScene
extends
Scene
{
get
groupNames
()
{
return
[
"playScene"
,
"fiveVerHorDis"
]
return
[
"playScene"
,
"fiveVerHorDis"
,
'festival'
]
}
//关卡数据
...
...
@@ -1961,7 +1964,6 @@ export class PlayScene extends Scene {
this
.
addChild
(
this
.
gameGuide
)
this
.
gameGuide
.
show
()
}
;
//允许移动
this
.
enableMouseEvt
(
true
);
//检查是否有红包炸弹弹框;有就弹出;然后置空
...
...
@@ -2903,23 +2905,31 @@ export class PlayScene extends Scene {
//红包炸弹动效
redBombLightAni
(
index
:
number
,
callback
:
Function
)
{
//如果有
// if (movieClips["redBombLight"]) {
// var p = Tool.getPositionByIndex(index);
// movieClips["redBombLight"].x = p[0] - 358;
// movieClips["redBombLight"].y = p[1] - 137;
// this.addChild(movieClips["redBombLight"])
// movieClips["redBombLight"].gotoAndPlay(1, true);
// setTimeout(() => {
// if (movieClips["redBombLight"].parent) {
// movieClips["redBombLight"].parent.removeChild(movieClips["redBombLight"])
// }
// }, 56 / 60 * 1000)
// }
//时间再调
// setTimeout(() => {
callback
();
// }, 80)
const
node
=
new
Container
();
const
down
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
"fesRedDown.png"
));
down
.
anchorTexture
.
set
(
0.5
,
0.5
);
down
.
scale
.
set
(
0.31
,
0.31
);
node
.
addChild
(
down
);
const
ani2Texture
:
Texture
[]
=
[];
for
(
let
i
=
0
;
i
<
18
;
i
++
)
{
ani2Texture
.
push
(
RES
.
getRes
(
`fesRedBombSta4_
${
i
}
.png`
));
}
const
ani2
=
node
.
addChild
(
new
FrameAni
(
ani2Texture
));
const
p
=
Tool
.
getPositionByIndex
(
index
);
this
.
addChild
(
node
);
node
.
x
=
p
[
0
];
node
.
y
=
p
[
1
];
ani2
.
play
(
1
,
()
=>
{
setTimeout
(()
=>
{
callback
(
node
);
},
80
)
});
}
}
...
...
src/something/anisCall/FesRedBombShowAni.ts
View file @
178aa111
...
...
@@ -12,11 +12,6 @@ export class FesRedBombShowAni extends FYGE.Container {
down
.
x
=
-
textureDown
.
width
/
2
;
down
.
y
=
-
textureDown
.
height
/
2
;
this
.
addChild
(
down
);
var
textureUp
:
FYGE
.
Texture
=
RES
.
getRes
(
"xingxingbi.png"
);
var
up
=
new
FYGE
.
Sprite
(
textureUp
);
up
.
x
=
-
textureUp
.
width
/
2
;
//-89
up
.
y
=
-
100
;
this
.
addChild
(
up
);
}
play
(
position
:
number
[],
callback
:
Function
)
{
this
.
scaleX
=
this
.
scaleY
=
0.29
;
...
...
@@ -34,4 +29,4 @@ export class FesRedBombShowAni extends FYGE.Container {
callback
()
})
}
}
\ No newline at end of file
}
src/something/anisCall/FesRedShootAni.ts
View file @
178aa111
import
{
Pool
}
from
"../Pool"
;
import
{
RecoverName
}
from
"../enum/RecoverName"
;
...
...
@@ -7,6 +6,7 @@ import { Tool } from "../Tool";
import
{
ElementType
}
from
"../enum/ElementType"
;
import
{
RES
}
from
"../../../module/RES"
;
import
Texture
=
FYGE
.
Texture
;
import
FrameAni
=
FYGE
.
FrameAni
;
/**
* 需要回调的
...
...
@@ -16,8 +16,10 @@ export class FesRedShootAni extends FYGE.Container {
light
:
LightingAni
;
imageAni
:
FYGE
.
FrameAni
;
imageAniCon
:
FYGE
.
Container
constructor
()
{
super
()
super
();
this
.
light
=
new
LightingAni
();
this
.
addChild
(
this
.
light
);
var
arr
=
[]
...
...
@@ -28,8 +30,10 @@ export class FesRedShootAni extends FYGE.Container {
this
.
imageAni
=
new
FYGE
.
FrameAni
(
arr
);
this
.
imageAniCon
.
addChild
(
this
.
imageAni
);
this
.
addChild
(
this
.
imageAniCon
);
this
.
imageAni
.
visible
=
false
this
.
imageAni
.
visible
=
false
;
}
reset
()
{
this
.
light
.
visible
=
true
;
this
.
imageAni
.
visible
=
false
;
...
...
@@ -38,6 +42,8 @@ export class FesRedShootAni extends FYGE.Container {
play
(
startP
:
number
[],
ele
:
Element
,
callback
:
Function
)
{
this
.
reset
()
this
.
light
.
visible
=
true
;
//算角度
var
r
=
Tool
.
getForwardRotation
(
startP
,
[
ele
.
x
,
ele
.
y
])
this
.
light
.
rotation
=
r
*
180
/
Math
.
PI
;
...
...
@@ -52,12 +58,12 @@ export class FesRedShootAni extends FYGE.Container {
)
var
scaleX
=
dis
/
247
;
FYGE
.
Tween
.
get
(
this
.
light
)
.
to
({
scaleX
:
scaleX
,
},
400
)
.
to
({
scaleX
:
scaleX
,
},
400
)
.
call
(()
=>
{
ele
.
reset
(
ElementType
.
FESTIVALELE_SMALL
);
ele
.
scaleX
=
ele
.
scaleY
=
0.1
FYGE
.
Tween
.
get
(
ele
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
500
,
FYGE
.
Ease
.
backOut
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
500
,
FYGE
.
Ease
.
backOut
)
//回调
callback
();
...
...
@@ -66,19 +72,19 @@ export class FesRedShootAni extends FYGE.Container {
this
.
imageAni
.
play
(
1
,
()
=>
{
if
(
this
.
parent
)
{
this
.
parent
.
removeChild
(
this
)
};
}
;
Pool
.
recover
(
RecoverName
.
FESREDSHOOT_ANI
,
this
)
})
setTimeout
(()
=>
{
this
.
light
.
visible
=
false
;
},
200
)
})
})
;
}
}
class
LightingAni
extends
FYGE
.
Sprite
{
sourceAll
:
Texture
[];
currentFrame
:
number
;
...
...
@@ -90,6 +96,7 @@ class LightingAni extends FYGE.Sprite {
* 所有时间,帧数按每秒30
*/
allTime
:
number
/**
* 播放完的回调
*/
...
...
@@ -112,6 +119,7 @@ class LightingAni extends FYGE.Sprite {
this
.
allTime
=
this
.
sourceAll
.
length
/
30
*
1000
;
}
onEnterFrame
()
{
if
(
!
this
.
stage
)
return
var
dataNow
=
Date
.
now
();
...
...
src/something/class/FestivalEle.ts
View file @
178aa111
import
{
ElementType
}
from
"../enum/ElementType"
;
import
{
RES
}
from
"../../../module/RES"
;
import
{
Tools
}
from
"../../Tools"
;
import
Tween
=
FYGE
.
Tween
;
import
Ease
=
FYGE
.
Ease
;
import
Texture
=
FYGE
.
Texture
;
import
FrameAni
=
FYGE
.
FrameAni
;
import
{
Tool
}
from
"../Tool"
;
/**
* 节日元素
...
...
@@ -18,6 +24,7 @@ export class FestivalEle extends FYGE.Container {
get
statusNum
()
{
return
this
.
_statusNum
}
set
statusNum
(
value
:
number
)
{
if
(
value
>=
0
)
{
//播放原来的动画
...
...
@@ -30,6 +37,9 @@ export class FestivalEle extends FYGE.Container {
}
else
{
//不用动画
this
.
_statusNum
=
0
;
let
child
=
this
.
children
[
this
.
_statusNum
];
child
[
"play"
](()
=>
{
})
this
.
isActive
=
true
;
}
}
...
...
@@ -49,8 +59,6 @@ export class FestivalEle extends FYGE.Container {
}
reset
(
n
:
number
=
2
)
{
this
.
toggleStatus
(
n
);
this
.
isActive
=
false
;
...
...
@@ -73,223 +81,104 @@ export class FestivalEle extends FYGE.Container {
//第一种状态
class
Status1
extends
FYGE
.
Container
{
upImage
:
FYGE
.
Sprite
;
constructor
()
{
super
();
var
textureDown
:
FYGE
.
Texture
=
RES
.
getRes
(
"fesRedBombSta1.png"
)
var
down
=
new
FYGE
.
Sprite
(
textureDown
);
const
textureDown
:
FYGE
.
Texture
=
RES
.
getRes
(
"fesRedBombSta1.png"
)
const
down
=
new
FYGE
.
Sprite
(
textureDown
);
down
.
x
=
-
textureDown
.
width
/
2
;
down
.
y
=
-
textureDown
.
height
/
2
;
this
.
addChild
(
down
);
var
textureUp
:
FYGE
.
Texture
=
RES
.
getRes
(
"xingxingbi.png"
);
var
up
=
new
FYGE
.
Sprite
(
textureUp
);
up
.
anchorTexture
.
set
(
0.5
,
0.5
);
// up.anchorOffsetX = textureUp.textureWidth / 2;
// up.anchorOffsetY = textureUp.textureHeight / 2;
up
.
y
=
textureUp
.
height
/
2
-
100
;
this
.
addChild
(
up
);
this
.
upImage
=
up
;
this
.
scaleX
=
this
.
scaleY
=
0.29
;
this
.
scaleX
=
this
.
scaleY
=
0.31
;
}
reset
()
{
this
.
upImage
.
scaleX
=
this
.
upImage
.
scaleY
=
1
;
}
play
(
callback
:
Function
)
{
FYGE
.
Tween
.
get
(
this
.
upImage
)
.
to
({
scaleX
:
1.8
,
scaleY
:
1.8
},
240
)
FYGE
.
Tween
.
get
(
this
)
.
to
({
scaleX
:
0
,
scaleY
:
0
},
240
)
.
call
(()
=>
{
callback
();
})
})
;
}
}
const
status2Cfg
=
[
{
"name"
:
"fesRedCap"
,
"x"
:
-
7
,
"y"
:
-
6
,
"width"
:
251
,
"height"
:
104
},
{
"name"
:
"fesRedSmallLight"
,
"x"
:
-
7
,
"y"
:
-
14
,
"width"
:
249
,
"height"
:
159
},
{
"name"
:
"fesRedUp"
,
"x"
:
-
2
,
"y"
:
52
,
"width"
:
237
,
"height"
:
185
},
{
"name"
:
"fesRedDown"
,
"x"
:
-
2
,
"y"
:
0
,
"width"
:
237
,
"height"
:
237
}
]
//第二种状态
class
Status2
extends
FYGE
.
Container
{
light
:
FYGE
.
Sprite
;
fesRedCap
:
FYGE
.
Sprite
constructor
()
{
super
();
this
.
scaleX
=
this
.
scaleY
=
0.29
for
(
var
i
=
status2Cfg
.
length
-
1
;
i
>=
0
;
i
--
)
{
var
bitmap
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
status2Cfg
[
i
].
name
+
".png"
)
);
bitmap
.
x
=
status2Cfg
[
i
].
x
-
237
/
2
;
bitmap
.
y
=
status2Cfg
[
i
].
y
-
237
/
2
;
this
.
addChild
(
bitmap
);
if
(
status2Cfg
[
i
].
name
==
"fesRedSmallLight"
)
{
this
.
light
=
bitmap
}
else
if
(
status2Cfg
[
i
].
name
==
"fesRedCap"
)
{
this
.
fesRedCap
=
bitmap
;
}
}
const
down
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
"fesRedDown.png"
));
down
.
anchorTexture
.
set
(
0.5
,
0.5
);
down
.
scale
.
set
(
0.31
,
0.31
)
;
this
.
addChild
(
down
)
;
const
up
=
this
.
addChild
(
Tools
.
getSprite
(
'fesRedBombSta2.png'
));
up
.
anchorTexture
.
set
(
0.5
,
0.5
);
up
.
scale
.
set
(
0.92
,
0.92
);
this
.
scale
.
set
(
0
,
0
);
}
reset
()
{
this
.
fesRedCap
.
scaleY
=
1
;
this
.
light
.
alpha
=
1
;
FYGE
.
Tween
.
get
(
this
.
light
,
{
loop
:
true
})
.
to
({
alpha
:
0
},
450
)
.
to
({
alpha
:
1
},
450
)
reset
()
{
Tween
.
get
(
this
)
.
set
({
scaleX
:
0
,
scaleY
:
0
})
.
to
({
scaleX
:
1
,
scaleY
:
1
},
270
,
Ease
.
backOut
);
}
play
(
callback
:
Function
)
{
this
.
light
.
alpha
=
0
;
FYGE
.
Tween
.
removeTweens
(
this
.
light
);
this
.
fesRedCap
.
scaleY
=
1
;
FYGE
.
Tween
.
get
(
this
.
fesRedCap
)
.
to
({
scaleY
:
0.1
},
180
)
Tween
.
get
(
this
)
.
to
({
scaleX
:
0
,
scaleY
:
0
},
270
,
Ease
.
backOut
)
.
call
(()
=>
{
callback
();
})
})
;
}
}
const
status3Cfg
=
[
{
"name"
:
"fesRedUp"
,
"x"
:
0
,
"y"
:
52
,
"width"
:
237
,
"height"
:
185
},
{
"name"
:
"tinyRedMid"
,
"x"
:
86
,
"y"
:
60
,
"width"
:
74
,
"height"
:
90
},
{
"name"
:
"tinyRedLeft"
,
"x"
:
22
,
"y"
:
5
,
"width"
:
116
,
"height"
:
132
},
{
"name"
:
"tinyRedRight"
,
"x"
:
123
,
"y"
:
14
,
"width"
:
89
,
"height"
:
106
},
{
"name"
:
"fesRedDown"
,
"x"
:
0
,
"y"
:
0
,
"width"
:
237
,
"height"
:
237
}
]
class
Status3
extends
FYGE
.
Container
{
midRed
:
FYGE
.
Sprite
;
leftRed
:
FYGE
.
Sprite
;
rightRed
:
FYGE
.
Sprite
;
private
ani1
:
FrameAni
;
private
timeOut
=
null
;
constructor
()
{
super
();
this
.
scaleX
=
this
.
scaleY
=
0.29
for
(
var
i
=
status3Cfg
.
length
-
1
;
i
>=
0
;
i
--
)
{
var
config
=
status3Cfg
[
i
];
var
bitmap
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
config
.
name
+
".png"
));
bitmap
.
x
=
config
.
x
-
237
/
2
;
bitmap
.
y
=
config
.
y
-
237
/
2
;
this
.
addChild
(
bitmap
);
if
(
config
.
name
==
"tinyRedMid"
)
{
this
.
midRed
=
bitmap
;
}
else
if
(
config
.
name
==
"tinyRedLeft"
)
{
this
.
leftRed
=
bitmap
;
}
else
if
(
config
.
name
==
"tinyRedRight"
)
{
this
.
rightRed
=
bitmap
;
}
const
down
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
"fesRedDown.png"
));
down
.
anchorTexture
.
set
(
0.5
,
0.5
);
down
.
scale
.
set
(
0.31
,
0.31
);
this
.
addChild
(
down
);
const
ani1Texture
:
Texture
[]
=
[];
for
(
let
i
=
0
;
i
<
14
;
i
++
)
{
ani1Texture
.
push
(
RES
.
getRes
(
`fesRedBombSta3_
${
i
}
.png`
));
}
this
.
ani1
=
this
.
addChild
(
new
FrameAni
(
ani1Texture
));
this
.
scale
.
set
(
0
,
0
);
}
reset
()
{
FYGE
.
Tween
.
removeTweens
(
this
.
leftRed
);
FYGE
.
Tween
.
removeTweens
(
this
.
rightRed
);
FYGE
.
Tween
.
removeTweens
(
this
.
midRed
);
var
offset
=
237
/
2
//动画出来,然后循环
this
.
leftRed
.
x
=
22
+
40
-
offset
;
this
.
leftRed
.
y
=
5
+
100
-
offset
;
FYGE
.
Tween
.
get
(
this
.
leftRed
)
.
to
({
x
:
22
-
3
-
offset
,
y
:
5
-
8
-
offset
},
150
)
.
to
({
x
:
22
-
offset
,
y
:
5
-
offset
},
50
)
this
.
rightRed
.
x
=
123
-
7
-
offset
;
this
.
rightRed
.
y
=
14
+
100
-
offset
;
FYGE
.
Tween
.
get
(
this
.
rightRed
)
.
to
({
x
:
123
+
3
-
offset
,
y
:
14
-
8
-
offset
},
150
)
.
to
({
x
:
123
-
offset
,
y
:
14
-
offset
},
50
)
playCall
()
{
this
.
timeOut
=
setTimeout
(()
=>
{
this
.
ani1
.
play
(
1
,
()
=>
{
this
.
playCall
();
});
},
1200
);
}
this
.
midRed
.
x
=
86
-
7
-
offset
;
this
.
midRed
.
y
=
60
+
80
-
offset
;
FYGE
.
Tween
.
get
(
this
.
midRed
)
.
to
({
x
:
86
+
3
-
offset
,
y
:
60
-
8
-
offset
},
150
)
.
to
({
x
:
86
-
offset
,
y
:
60
-
offset
},
50
)
reset
()
{
Tween
.
get
(
this
)
.
set
({
scaleX
:
0
,
scaleY
:
0
})
.
to
({
scaleX
:
1
,
scaleY
:
1
},
270
,
Ease
.
backOut
)
.
call
(()
=>
{
//循环动画
this
.
leftRed
.
x
=
22
-
offset
;
this
.
leftRed
.
y
=
5
-
offset
;
FYGE
.
Tween
.
get
(
this
.
leftRed
,
{
loop
:
true
})
.
to
({
x
:
22
+
2
-
offset
,
y
:
5
+
5
-
offset
},
150
)
.
to
({
x
:
22
-
6
-
offset
,
y
:
5
-
14
-
offset
},
150
)
.
to
({
x
:
22
-
offset
,
y
:
5
-
offset
},
100
)
.
wait
(
500
);
this
.
rightRed
.
x
=
123
-
offset
;
this
.
rightRed
.
y
=
14
-
offset
;
FYGE
.
Tween
.
get
(
this
.
rightRed
,
{
loop
:
true
})
.
to
({
x
:
123
-
2
-
offset
,
y
:
14
+
5
-
offset
},
150
)
.
to
({
x
:
123
+
6
-
offset
,
y
:
14
-
14
-
offset
},
150
)
.
to
({
x
:
123
-
offset
,
y
:
14
-
offset
},
100
)
.
wait
(
500
);
this
.
midRed
.
x
=
86
-
offset
;
this
.
midRed
.
y
=
60
-
offset
;
FYGE
.
Tween
.
get
(
this
.
midRed
,
{
loop
:
true
})
.
to
({
x
:
86
-
2
-
offset
,
y
:
60
+
5
-
offset
},
150
)
.
to
({
x
:
86
+
6
-
offset
,
y
:
60
-
14
-
offset
},
150
)
.
to
({
x
:
86
-
offset
,
y
:
60
-
offset
},
100
)
.
wait
(
500
);
})
this
.
playCall
();
});
}
play
(
callback
:
Function
)
{
play
(
callback
:
Function
)
{
}
}
src/something/logic/AiControl.ts
View file @
178aa111
...
...
@@ -72,7 +72,7 @@ export class AiControl {
* 是否有毛球,
* 是否有变色气泡,
* 必须在初始化元素后执行,每关进入游戏都会初始化
* @param lattices
* @param lattices
*/
init
(
lattices
:
Lattice
[])
{
this
.
hasJelly
=
judgeJellyExist
(
lattices
);
...
...
@@ -247,7 +247,7 @@ export class AiControl {
//还原为索引
for
(
var
i
=
0
;
i
<
six
.
length
;
i
++
)
six
[
i
]
=
six
[
i
].
index
;
//动画
thisObj
.
redBombLightAni
(
index
,
()
=>
{
thisObj
.
redBombLightAni
(
index
,
(
node
)
=>
{
let
count
=
0
;
let
countAll
=
six
.
length
;
for
(
let
a
=
0
;
a
<
six
.
length
;
a
++
)
{
...
...
@@ -266,6 +266,7 @@ export class AiControl {
thisObj
.
fall
(()
=>
{
thisObj
.
fallCallback
();
});
thisObj
.
removeChild
(
node
);
// callback();
}
})
...
...
@@ -352,8 +353,8 @@ export class AiControl {
/**
* 鸡蛋得孵化逻辑
* 与果冻不同,需要执行一次threeMatch,如无再执行callback,否则执行eleminate
* @param thisObj
* @param callback
* @param thisObj
* @param callback
*/
eggMotion
(
thisObj
:
PlayScene
,
callback
:
Function
)
{
//无蛋,直接回调
...
...
@@ -439,9 +440,9 @@ export class AiControl {
/**
* 变色气泡
*
* @param thisObj
* @param callback
*
* @param thisObj
* @param callback
*/
bubbleMotion
(
thisObj
:
PlayScene
,
callback
:
Function
)
{
//无气泡,直接回调,气泡能生成,不能直接判断
...
...
@@ -505,8 +506,8 @@ export class AiControl {
/**
* 跳动,以及褐色毛球的分裂
* 黑色毛球眩晕不执行跳动,不过结束后要重置为不眩晕状态,和callback同步执行
* @param thisObj
* @param callback
* @param thisObj
* @param callback
*/
hairballMotion
(
thisObj
:
PlayScene
,
callback
:
Function
)
{
//没有毛球。直接回调
...
...
@@ -698,7 +699,7 @@ export class AiControl {
/**
* 判断果冻是否存在
* @param lattices
* @param lattices
* @return false表示不存在,true表示存在
*/
function
judgeJellyExist
(
lattices
:
Lattice
[])
{
...
...
@@ -712,7 +713,7 @@ function judgeJellyExist(lattices: Lattice[]) {
}
/**
* 判断毛球是否存在,甭管什么毛球
* @param lattices
* @param lattices
*/
function
judgeHairballExist
(
lattices
:
Lattice
[])
{
for
(
var
i
=
0
;
i
<
lattices
.
length
;
i
++
)
{
...
...
@@ -741,7 +742,7 @@ function judgeFesEleBigExist(lattices: Lattice[]) {
/**
* 判断气泡是否存在,废弃了,气泡会再生,提前判断无意义
* @param lattices
* @param lattices
*/
function
judgeBubbleExist
(
lattices
:
Lattice
[])
{
for
(
var
i
=
0
;
i
<
lattices
.
length
;
i
++
)
{
...
...
@@ -753,8 +754,8 @@ function judgeBubbleExist(lattices: Lattice[]) {
}
/**
* 获取所有鸡蛋的索引
* @param lattices
* @return
* @param lattices
* @return
*/
function
getEggs
(
lattices
:
Lattice
[])
{
var
arr
=
[];
...
...
@@ -771,8 +772,8 @@ function getEggs(lattices: Lattice[]) {
}
/**
* 获取所有石门的索引
* @param lattices
* @return
* @param lattices
* @return
*/
function
getDoors
(
lattices
:
Lattice
[]):
number
[]
{
var
arr
:
number
[]
=
[];
...
...
@@ -791,10 +792,10 @@ function getDoors(lattices: Lattice[]): number[] {
* 判断可蔓延的方向,并返回蔓延终点的格子索引
* 判断可分裂的方向,并返回分裂终点的格子索引
* 判断可跳动的方向,并返回跳动终点的格子索引
*
*
* 4个方向随机,
* 得是基础元素,且无任何状态,可以有特效,且石门非关闭
* @param index
* @param index
* @return 没有返回null,注意判断时可能有0
*/
function
judgeActionIndex
(
index
:
number
,
lattices
:
Lattice
[]):
number
{
...
...
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