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
4ec7aeeb
Commit
4ec7aeeb
authored
Oct 03, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
guide
parent
22c898b0
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
106 additions
and
82 deletions
+106
-82
workspace.xml
.idea/workspace.xml
+41
-33
popmartXXL2c.getActivityBaseInfoById.json
mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json
+1
-1
gameGuideBoard.png
resource/playScene/gameGuideBoard.png
+0
-0
guidePropHand.png
resource/playScene/guidePropHand.png
+0
-0
res.json
resource/res.json
+2
-2
ResJson.ts
src/ResJson.ts
+2
-2
MapScene.ts
src/scene/map/MapScene.ts
+30
-22
FirstPropGift.ts
src/something/uis/FirstPropGift.ts
+15
-9
GameGuide.ts
src/something/uis/GameGuide.ts
+13
-13
PropGuide.ts
src/something/uis/PropGuide.ts
+2
-0
No files found.
.idea/workspace.xml
View file @
4ec7aeeb
This diff is collapsed.
Click to expand it.
mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json
View file @
4ec7aeeb
...
...
@@ -217,7 +217,7 @@
"isReceive"
:
true
}
],
"isFristLogin"
:
fals
e
,
"isFristLogin"
:
tru
e
,
"loginAddPower"
:
false
}
}
resource/playScene/gameGuideBoard.png
View replaced file @
22c898b0
View file @
4ec7aeeb
47.3 KB
|
W:
|
H:
7.52 KB
|
W:
|
H:
2-up
Swipe
Onion skin
resource/playScene/guidePropHand.png
View replaced file @
22c898b0
View file @
4ec7aeeb
8.16 KB
|
W:
|
H:
8.17 KB
|
W:
|
H:
2-up
Swipe
Onion skin
resource/res.json
View file @
4ec7aeeb
...
...
@@ -69,7 +69,7 @@
"name"
:
"lotteryScene"
},
{
"keys"
:
"cur_light_1.png,cur_light_2.png,guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,lightImg.png,map_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_enable.png,map_check_enable_cur.png,map_energyAdd.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_taskBtn_tip.png"
,
"keys"
:
"cur_light_1.png,cur_light_2.png,guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,lightImg.png,map
Guide.png,map
_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_enable.png,map_check_enable_cur.png,map_energyAdd.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_taskBtn_tip.png"
,
"name"
:
"map"
},
{
...
...
@@ -97,7 +97,7 @@
"name"
:
"mapTree"
},
{
"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,ele0Line.png,ele1Exp.png,ele1Line.png,ele2Exp.png,ele2Line.png,ele3Exp.png,ele3Line.png,ele4Exp.png,ele4Line.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,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"
,
"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,ele0Line.png,ele1Exp.png,ele1Line.png,ele2Exp.png,ele2Line.png,ele3Exp.png,ele3Line.png,ele4Exp.png,ele4Line.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,gameGuide
1.png,gameGuide
Board.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,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 @
4ec7aeeb
...
...
@@ -69,7 +69,7 @@ export const ResJson = {
"name"
:
"lotteryScene"
},
{
"keys"
:
"cur_light_1.png,cur_light_2.png,guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,lightImg.png,map_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_enable.png,map_check_enable_cur.png,map_energyAdd.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_taskBtn_tip.png"
,
"keys"
:
"cur_light_1.png,cur_light_2.png,guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,lightImg.png,map
Guide.png,map
_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_enable.png,map_check_enable_cur.png,map_energyAdd.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_taskBtn_tip.png"
,
"name"
:
"map"
},
{
...
...
@@ -97,7 +97,7 @@ export const ResJson = {
"name"
:
"mapTree"
},
{
"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,ele0Line.png,ele1Exp.png,ele1Line.png,ele2Exp.png,ele2Line.png,ele3Exp.png,ele3Line.png,ele4Exp.png,ele4Line.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,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"
,
"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,ele0Line.png,ele1Exp.png,ele1Line.png,ele2Exp.png,ele2Line.png,ele3Exp.png,ele3Line.png,ele4Exp.png,ele4Line.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,gameGuide
1.png,gameGuide
Board.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,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/map/MapScene.ts
View file @
4ec7aeeb
...
...
@@ -82,6 +82,14 @@ export class MapScene extends Scene {
g
.
beginFill
(
0
,
0.6
);
g
.
drawRect
(
0
,
0
,
750
,
1624
);
g
.
endFill
();
const
mapGuide
=
guide
.
addChild
(
Tools
.
getSprite
(
'mapGuide.png'
));
mapGuide
.
anchorTexture
.
set
(
0.5
,
0.5
);
mapGuide
.
position
.
set
(
375
,
650
);
mapGuide
.
mouseEnable
=
false
;
const
guide_check
=
guide
.
addChild
(
new
CheckBtn
({
check
:
1
}));
guide_check
.
enabled
=
true
;
guide_check
.
type
=
CHECK_TYPE
.
CUR
;
...
...
@@ -92,33 +100,33 @@ export class MapScene extends Scene {
guide_hand
.
position
.
set
(
guide_check
.
x
+
90
,
guide_check
.
y
+
40
);
guide_hand
.
mouseEnable
=
guide_hand
.
mouseChildren
=
false
;
const
guide_light
=
guide
.
addChild
(
Tools
.
getSprite
(
'guide_light.png'
));
guide_light
.
anchorTexture
.
set
(
0.5
,
0.5
);
guide_light
.
position
.
set
(
guide_check
.
x
+
95
,
guide_check
.
y
+
45
);
guide_light
.
mouseEnable
=
guide_light
.
mouseChildren
=
false
;
const
guide_fox
=
guide
.
addChild
(
Tools
.
getSprite
(
'guide_fox.png'
));
guide_fox
.
position
.
set
(
45
,
guide_check
.
y
-
200
);
guide_fox
.
alpha
=
0
;
const
guide_tip
=
guide
.
addChild
(
Tools
.
getSprite
(
'guide_tip.png'
));
guide_tip
.
anchorTexture
.
set
(
0
,
0.3
);
guide_tip
.
position
.
set
(
guide_fox
.
x
+
215
,
guide_fox
.
y
-
70
);
guide_tip
.
scale
.
set
(
0
,
0
);
//
const guide_light = guide.addChild(Tools.getSprite('guide_light.png'));
//
guide_light.anchorTexture.set(0.5, 0.5);
//
guide_light.position.set(guide_check.x + 95, guide_check.y + 45);
//
guide_light.mouseEnable = guide_light.mouseChildren = false;
//
//
const guide_fox = guide.addChild(Tools.getSprite('guide_fox.png'));
//
guide_fox.position.set(45, guide_check.y - 200);
//
guide_fox.alpha = 0;
//
//
const guide_tip = guide.addChild(Tools.getSprite('guide_tip.png'));
//
guide_tip.anchorTexture.set(0, 0.3);
//
guide_tip.position.set(guide_fox.x + 215, guide_fox.y - 70);
//
guide_tip.scale.set(0, 0);
guide
.
alpha
=
0
;
Tween
.
get
(
guide
)
.
to
({
alpha
:
1
},
600
,
Ease
.
quadInOut
);
Tween
.
get
(
guide_fox
)
.
wait
(
300
)
.
to
({
y
:
guide_check
.
y
-
345
,
alpha
:
1
},
300
,
Ease
.
quadInOut
)
.
wait
(
100
)
.
call
(()
=>
{
Tween
.
get
(
guide_tip
)
.
to
({
scaleX
:
1
,
scaleY
:
1
},
300
,
Ease
.
quadInOut
);
});
//
Tween.get(guide_fox)
//
.wait(300)
//
.to({y: guide_check.y - 345, alpha: 1}, 300, Ease.quadInOut)
//
.wait(100)
//
.call(() => {
//
Tween.get(guide_tip)
//
.to({scaleX: 1, scaleY: 1}, 300, Ease.quadInOut);
//
});
}
...
...
@@ -250,7 +258,7 @@ export class MapAvatar extends Container {
super
();
this
.
addChild
(
Tools
.
getSprite
(
'map_avatar_bg.png'
))
.
anchorTexture
.
set
(
0.5
,
1
);
.
anchorTexture
.
set
(
0.5
,
1
);
this
.
position
.
set
(
54
,
32
);
this
.
mouseChildren
=
this
.
mouseEnable
=
false
;
...
...
src/something/uis/FirstPropGift.ts
View file @
4ec7aeeb
import
{
RES
}
from
"../../../module/RES"
;
import
{
MsgBoard
}
from
"./GameGuide"
;
import
{
layers
}
from
"../../../module/views/layers"
;
import
{
Tools
}
from
"../../Tools"
;
// 首次道具赠送
export
class
FirstPropGift
extends
FYGE
.
Container
{
...
...
@@ -13,13 +14,18 @@ export class FirstPropGift extends FYGE.Container {
bg
.
endFill
();
bg
.
hitTestByPixel
=
false
;
//信息板
var
msgBoard
=
this
.
addChild
(
new
MsgBoard
());
msgBoard
.
position
.
set
((
750
-
604
)
/
2
,
800
);
msgBoard
.
msg
=
"首次进入游戏,送你三个道具,让你通关无阻力!"
;
//三个道具
[
"stepBtn"
,
"boomBtn"
,
"hammerBtn"
].
forEach
((
e
,
i
)
=>
{
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
e
+
".png"
))
.
position
.
set
(
100
+
i
*
230
,
500
)
})
const
guide
=
this
.
addChild
(
Tools
.
getSprite
(
'gameGuide1.png'
));
guide
.
anchorTexture
.
set
(
0.5
,
0.5
);
guide
.
position
.
set
(
375
,
812
);
// var msgBoard = this.addChild(new MsgBoard());
// msgBoard.position.set((750 - 604) / 2, 800);
// msgBoard.msg = "首次进入游戏,送你三个道具,让你通关无阻力!";
// 三个道具
// ["stepBtn", "boomBtn", "hammerBtn"].forEach((e, i) => {
// this.addChild(FYGE.Sprite.fromFrame(e + ".png"))
// .position.set(100 + i * 230, 500)
// })
}
}
\ No newline at end of file
}
src/something/uis/GameGuide.ts
View file @
4ec7aeeb
...
...
@@ -10,7 +10,7 @@ import { GTool } from "../../../module/tools/GTool";
* 引导前,initElements需要编排特定元素
* 游戏引导,。8种
* 蒙层都一致,但是需要特定镂空,手势,和提示文案
*
*
*/
export
class
GameGuide
extends
FYGE
.
Container
{
/**
...
...
@@ -25,7 +25,7 @@ export class GameGuide extends FYGE.Container {
msgBoard
:
MsgBoard
/**
* 直接把this传入得了,懒得弄了
* @param thisObj
* @param thisObj
*/
constructor
(
thisObj
:
PlayScene
)
{
super
();
...
...
@@ -98,8 +98,8 @@ export class GameGuide extends FYGE.Container {
}
/**
*
* @param chapter
*
* @param chapter
* @param step 0第一步,1第二步
*/
private
drawBg
(
step
:
number
=
0
)
{
...
...
@@ -134,13 +134,13 @@ export class MsgBoard extends FYGE.Sprite {
var
msg
=
this
.
addChild
(
Tools
.
getText
(
""
,
30
,
"#
df5942
"
,
"#
ffffff
"
,
FYGE
.
TEXT_ALIGN
.
LEFT
,
33
0
,
258
,
14
54
0
,
105
,
0
))
msg
.
textHeight
=
1
66
;
msg
.
textHeight
=
1
82
;
msg
.
verticalAlign
=
FYGE
.
VERTICAL_ALIGN
.
MIDDLE
;
msg
.
lineType
=
FYGE
.
TEXT_lINETYPE
.
MULTI
;
this
.
_msg
=
msg
;
...
...
@@ -397,9 +397,9 @@ const chapterFuns = {
/**
* 根据显示index和隐藏的绘制图形
* @param shape
* @param showIndexs
* @param hideIndexs
* @param shape
* @param showIndexs
* @param hideIndexs
*/
function
drawHole
(
shape
:
FYGE
.
Shape
,
showIndexs
:
number
[],
hideIndexs
:
number
[])
{
...
...
@@ -442,4 +442,4 @@ function getWordCnt(arr: any[]) {
prev
[
next
]
=
(
prev
[
next
]
+
1
)
||
1
;
return
prev
;
},
{});
}
}
src/something/uis/PropGuide.ts
View file @
4ec7aeeb
...
...
@@ -3,6 +3,7 @@ import { Tool } from "../Tool";
import
{
RES
}
from
"../../../module/RES"
;
import
{
PropType
}
from
"../enum/PropType"
;
import
{
stepPosition
}
from
"../anis/BonusShootAni"
;
import
{
Tools
}
from
"../../Tools"
;
/**
* 道具使用引导,初始化一次,然后用init初始化
...
...
@@ -20,6 +21,7 @@ export class PropGuide extends FYGE.Container {
super
()
this
.
bg
=
new
FYGE
.
Shape
();
this
.
addChild
(
this
.
bg
);
this
.
boomBtn
=
new
FYGE
.
Sprite
(
RES
.
getRes
(
"boomBtn.png"
));
this
.
boomBtn
.
x
=
336
;
this
.
boomBtn
.
y
=
offsetY
;
...
...
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