Commit 96794d2a authored by haiyoucuv's avatar haiyoucuv

25年新迭代

parent f653ad92
This diff is collapsed.
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "cef3e6fb-dfda-4b43-b5b4-621fd921a976",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "cef3e6fb-dfda-4b43-b5b4-621fd921a976@6c48a",
"displayName": "更改昵称提示",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "cef3e6fb-dfda-4b43-b5b4-621fd921a976",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "cef3e6fb-dfda-4b43-b5b4-621fd921a976@f9941",
"displayName": "更改昵称提示",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 218,
"height": 53,
"rawWidth": 218,
"rawHeight": 53,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-109,
-26.5,
0,
109,
-26.5,
0,
-109,
26.5,
0,
109,
26.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
53,
218,
53,
0,
0,
218,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-109,
-26.5,
0
],
"maxPos": [
109,
26.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "cef3e6fb-dfda-4b43-b5b4-621fd921a976@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "cef3e6fb-dfda-4b43-b5b4-621fd921a976@6c48a"
}
}
This diff is collapsed.
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "7c35d118-808a-4637-ae3b-a865cef8a70d",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "de5520e0-3483-45c2-be2e-c51a48a91585",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "de5520e0-3483-45c2-be2e-c51a48a91585@6c48a",
"displayName": "下一页",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "de5520e0-3483-45c2-be2e-c51a48a91585",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "de5520e0-3483-45c2-be2e-c51a48a91585@f9941",
"displayName": "下一页",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 88,
"rawWidth": 240,
"rawHeight": 88,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-120,
-44,
0,
120,
-44,
0,
-120,
44,
0,
120,
44,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
88,
240,
88,
0,
0,
240,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-120,
-44,
0
],
"maxPos": [
120,
44,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "de5520e0-3483-45c2-be2e-c51a48a91585@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "de5520e0-3483-45c2-be2e-c51a48a91585@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd@6c48a",
"displayName": "引导1",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd@f9941",
"displayName": "引导1",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1624,
"height": 750,
"rawWidth": 1624,
"rawHeight": 750,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-812,
-375,
0,
812,
-375,
0,
-812,
375,
0,
812,
375,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
750,
1624,
750,
0,
0,
1624,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-812,
-375,
0
],
"maxPos": [
812,
375,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a1fd93f8-04a5-4a0f-997d-7ce67393b3dd@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "b25a58f1-1d18-44fd-9b0d-92ecc0146458",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "b25a58f1-1d18-44fd-9b0d-92ecc0146458@6c48a",
"displayName": "引导1黄色",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "b25a58f1-1d18-44fd-9b0d-92ecc0146458",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "b25a58f1-1d18-44fd-9b0d-92ecc0146458@f9941",
"displayName": "引导1黄色",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1624,
"height": 750,
"rawWidth": 1624,
"rawHeight": 750,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-812,
-375,
0,
812,
-375,
0,
-812,
375,
0,
812,
375,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
750,
1624,
750,
0,
0,
1624,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-812,
-375,
0
],
"maxPos": [
812,
375,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "b25a58f1-1d18-44fd-9b0d-92ecc0146458@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "b25a58f1-1d18-44fd-9b0d-92ecc0146458@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "5cde494c-5a2c-41d3-9158-40f51862cd9f",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "5cde494c-5a2c-41d3-9158-40f51862cd9f@6c48a",
"displayName": "引导2",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "5cde494c-5a2c-41d3-9158-40f51862cd9f",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "5cde494c-5a2c-41d3-9158-40f51862cd9f@f9941",
"displayName": "引导2",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1624,
"height": 750,
"rawWidth": 1624,
"rawHeight": 750,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-812,
-375,
0,
812,
-375,
0,
-812,
375,
0,
812,
375,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
750,
1624,
750,
0,
0,
1624,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-812,
-375,
0
],
"maxPos": [
812,
375,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "5cde494c-5a2c-41d3-9158-40f51862cd9f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "5cde494c-5a2c-41d3-9158-40f51862cd9f@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "c071797c-b74e-4443-b140-2803dffcda84",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c071797c-b74e-4443-b140-2803dffcda84@6c48a",
"displayName": "引导2黄色",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "c071797c-b74e-4443-b140-2803dffcda84",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "c071797c-b74e-4443-b140-2803dffcda84@f9941",
"displayName": "引导2黄色",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1624,
"height": 750,
"rawWidth": 1624,
"rawHeight": 750,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-812,
-375,
0,
812,
-375,
0,
-812,
375,
0,
812,
375,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
750,
1624,
750,
0,
0,
1624,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-812,
-375,
0
],
"maxPos": [
812,
375,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "c071797c-b74e-4443-b140-2803dffcda84@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c071797c-b74e-4443-b140-2803dffcda84@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "33695c9d-96ff-45e6-a63b-6495bd18b0fb",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "33695c9d-96ff-45e6-a63b-6495bd18b0fb@6c48a",
"displayName": "我知道了",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "33695c9d-96ff-45e6-a63b-6495bd18b0fb",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "33695c9d-96ff-45e6-a63b-6495bd18b0fb@f9941",
"displayName": "我知道了",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 88,
"rawWidth": 240,
"rawHeight": 88,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-120,
-44,
0,
120,
-44,
0,
-120,
44,
0,
120,
44,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
88,
240,
88,
0,
0,
240,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-120,
-44,
0
],
"maxPos": [
120,
44,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "33695c9d-96ff-45e6-a63b-6495bd18b0fb@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "33695c9d-96ff-45e6-a63b-6495bd18b0fb@6c48a"
}
}
......@@ -29,7 +29,7 @@ import { isType1 } from "../AppTool";
const { ccclass, property } = _decorator;
@observer
@ccclass('HomeScene')
@ccclass("HomeScene")
export class HomeScene extends Scene {
static bundle: string = "HomeScene";
......@@ -66,6 +66,8 @@ export class HomeScene extends Scene {
@property(SpriteFrame) bagSpNoActive: SpriteFrame;
@property(SpriteFrame) bagSpActive: SpriteFrame;
@property(Node) avatarTip: Node = null;
// 默认头像
avatar = isType1()
? "https://yun.duiba.com.cn/polaris/img.546cbcd3811aa2265e50d495c078108a217450b7.png"
......@@ -86,7 +88,7 @@ export class HomeScene extends Scene {
}
async start() {
if(store.enter == false){
if (store.enter == false) {
store.doAssist();
}
......@@ -94,9 +96,9 @@ export class HomeScene extends Scene {
showWaiting();
await store.getTaskInfo();
await store.updateIndex();
hideWaiting()
hideWaiting();
sendLog(LOG_TYPE.EXPOSURE, 1)
sendLog(LOG_TYPE.EXPOSURE, 1);
const {
signPopFlag,
rankPopList,
......@@ -114,15 +116,15 @@ export class HomeScene extends Scene {
}
if (rankPopList.length > 0) { // 排行榜开奖弹窗
// showPanel(RankPrizePanel);
store.setRankPop()
store.setRankPop();
}
if (newGetSpId == "sp_skin_snake_year") {
showPanel(SnakeSkin, { newGetSpImage, newGetSpName })
showPanel(SnakeSkin, { newGetSpImage, newGetSpName });
}
if (firstEntryFlag) {
showPanel(FirstSkinPanel)
showPanel(FirstSkinPanel);
}
UIMgr.ins.preloadScene(MainGame);
}
......@@ -138,6 +140,8 @@ export class HomeScene extends Scene {
benefitDesc = "",
avatar,
bagLightFlag,
bagSwitch,
avatarGuide,
} = store.homeInfo || {};
this.userName.string = strFormat(nickname || "微信用户", 8);
......@@ -147,18 +151,20 @@ export class HomeScene extends Scene {
this.fuDaiText.string = luckBenefitDesc;
this.quanyiText.string = benefitDesc;
this.avatarTip.active = avatarGuide;
this.bagBtn.getComponent(Sprite).spriteFrame = bagLightFlag ? this.bagSpActive : this.bagSpNoActive;
if (rankInfos && rankInfos.length > 0) {
this.rankList.active = true;
this.rankNone.active = false;
rankInfos.map((item, index) => {
const node = this[`rankInfo${index + 1}`]
const node = this[`rankInfo${index + 1}`];
node.active = true
node.active = true;
node.getChildByPath("mask/rank_img").getComponent(Sprite).spriteFrame = item.avatar || this.avatar;
node.getChildByName("rank_name").getComponent(Label).string = strFormat(item.nickname || "微信用户", 8);
})
});
} else {
this.rankList.active = false;
this.rankNone.active = true;
......@@ -166,9 +172,8 @@ export class HomeScene extends Scene {
}
clickStart = _asyncThrottle(async () => {
sendLog(LOG_TYPE.CLICK, 5)
sendLog(LOG_TYPE.CLICK, 5);
if (!store.checkActTime()) return;
await gameStore.startGame();
......@@ -183,21 +188,21 @@ export class HomeScene extends Scene {
});
clickRank = _asyncThrottle(async () => {
sendLog(LOG_TYPE.CLICK, 4)
sendLog(LOG_TYPE.CLICK, 4);
if (!store.checkActTime()) return;
await changeScene(RankScence);
});
clickBag = _asyncThrottle(async () => {
sendLog(LOG_TYPE.CLICK, 6)
sendLog(LOG_TYPE.CLICK, 6);
if (!store.checkActTime()) return;
await changeScene(BlessingBagPage)
})
await changeScene(BlessingBagPage);
});
clickSign = _asyncThrottle(async () => {
sendLog(LOG_TYPE.CLICK, 8)
sendLog(LOG_TYPE.CLICK, 8);
if (!store.checkActTime()) return;
showPanel(SignPanel);
});
......@@ -209,11 +214,11 @@ export class HomeScene extends Scene {
});
clickProp = _asyncThrottle(async () => {
sendLog(LOG_TYPE.CLICK, 7)
sendLog(LOG_TYPE.CLICK, 7);
if (!store.checkActTime()) return;
await changeScene(PropPage,{isFrom:HomeScene,isPop:false})
})
await changeScene(PropPage, { isFrom: HomeScene, isPop: false });
});
clickDetail = _asyncThrottle(async () => {
if (!store.checkActTime()) return;
......@@ -221,10 +226,10 @@ export class HomeScene extends Scene {
});
clickShare = _asyncThrottle(async () => {
sendLog(LOG_TYPE.CLICK, 2)
sendLog(LOG_TYPE.CLICK, 2);
if (!store.checkActTime()) return;
shareStore.doShare(true)
shareStore.doShare(true);
});
clickUserInfo = _asyncThrottle(async () => {
......
import {
_decorator,
_decorator, Button,
Camera, Color,
director, game, instantiate,
Label,
......@@ -74,6 +74,11 @@ export class MainGame extends Scene {
@property({ type: Label, group: "UI" }) killTxt: Label = null;
@property({ type: Label, group: "UI" }) lengthTxt: Label = null;
@property({ type: Label, group: "UI" }) luckyNum: Label = null;
@property({ type: Node, group: "UI" }) newGuide: Node = null;
@property({ type: Node, group: "UI" }) newGuide1Btn: Node = null;
@property({ type: Node, group: "UI" }) newGuide2Btn: Node = null;
@property(RenderTexture) rt: RenderTexture = null;
_canvas: HTMLCanvasElement = null;
_canvas2: HTMLCanvasElement = null;
......@@ -122,6 +127,8 @@ export class MainGame extends Scene {
async start() {
this.newGuide.active = false;
await this.initStage();
this.isStart = true;
......@@ -322,8 +329,10 @@ export class MainGame extends Scene {
if (!currentStage || currentStage == 3) {
PropManager.ins.init(gameStore.startInfo?.barrierFlag ? 1 : 2);
CardManager.ins.init(gameStore.startInfo?.barrierFlag ? 1 : 2);
// PropManager.ins.init(gameStore.startInfo?.barrierFlag ? 1 : 2);
// CardManager.ins.init(gameStore.startInfo?.barrierFlag ? 1 : 2);
PropManager.ins.init(1);
CardManager.ins.init(1);
LuckyBagManager.ins.init();
await Target.ins.showTarget3();
// await PreCd.ins.startCd();
......@@ -355,6 +364,7 @@ export class MainGame extends Scene {
);
} else if (currentStage == 1) {
await this.showNewGuide();
const { time } = Global.stageConfig[0];
Target.ins.totalCd = Target.ins.cd = time;
await Target.ins.showTarget1();
......@@ -364,6 +374,24 @@ export class MainGame extends Scene {
}
}
showNewGuide = async () => {
return new Promise<void>((resolve) => {
this.newGuide.active = true;
this.newGuide1Btn.parent.active = true;
this.newGuide2Btn.parent.active = false;
this.newGuide1Btn.once(Button.EventType.CLICK, () => {
this.newGuide1Btn.parent.active = false;
this.newGuide2Btn.parent.active = true;
});
this.newGuide2Btn.once(Button.EventType.CLICK, async () => {
this.newGuide.active = false;
resolve();
});
});
};
update(dt: number) {
if (!this.isStart) return;
this.isShort += dt
......
......@@ -376,7 +376,7 @@ export class Snake extends Component {
*/
private grow() {
if (this.length > 200) {
if (this.length > 180) {
return;
}
......
......@@ -47,6 +47,9 @@ export interface IHomeInfo {
bagName: string;
bagImg: number;
};
bagSwitch: boolean,
avatarGuide: boolean,
}
......@@ -81,6 +84,9 @@ class Store {
rankPopList: [],
bagPopVO: null,
bagLightFlag: false,
bagSwitch: false,
avatarGuide: false,
};
async updateIndex() {
......
......@@ -2,5 +2,5 @@
"success": true,
"code": "",
"message": "",
"data": "Dn22D8mkVmDOfP4ajNWcqtUT2BWK7hLAEHSofRAnITI23/h6M5dk9MJ+cY56DvHjDzXBIud5f2y2oC6Ki0109gTGfqIr9aJogqT+S54B6PDCX6U4eUaJ7IDHzUUFilz+rZLS/RcgGjrx9aF3NMMpcN6pDZ/CKPoLq0HmDD1u5q+fja1LYfEicgXLV37B6H9snjl1PoaOdrcnUUvUhfTcoYdWr/xE2a7yz4v0dS6pwzPk1G/o5qWasw92Skmo1UTWWCp3B30UpNlB6mGduoAarvhdLgrAla0gKO7BpQrFQGYAggvR6H1RyssowTrlJzMsOr7Fyr6l7T0x/Rr0j4qXknsCakwY9oL7n6/EiYTi8DazEkNapclreM1ISd9IxuRc8RZWek2tan9hp+aKfJ6KH7QEYzp3683GzLo0GGRrlTEPlNs89A8cOvV44Zj5KErAygr9JwXp/prSsn1MEAlF36WeUiAEi7rgtln0ImFZPpB+6ysOSYxQsQ78pq3PTcW+gIWzOfHn3UpaZykLGEs/g6m2KUhVKG5QwfxSzYSi8d/G0KIXbhEtr1apZXQgmrV3xAVJdCgJKlbYTnA0w7TvffpiDjwdoAj9ehcjyJ3d/jWK2NebdECvRpZ9z+qVucGVwjcjtwNDt9P3uNhMo+HJ0g=="
"data": "Dn22D8mkVmDOfP4ajNWcqtUT2BWK7hLAEHSofRAnITI23/h6M5dk9MJ+cY56DvHjDzXBIud5f2y2oC6Ki0109gTGfqIr9aJogqT+S54B6PDCX6U4eUaJ7IDHzUUFilz+rZLS/RcgGjrx9aF3NMMpcN6pDZ/CKPoLq0HmDD1u5q+fja1LYfEicgXLV37B6H9slstMTx8EuAkIeaHM8HuZ5orDBIjo0jEeIruY4nIhZvHTZIkl7ilg4z12DHerGc+lBlPNDmY14d/zFfZgx43+j+Eh3+bU3SkyUcIjunn8mPqO7JdSl3ASV1giysk3KJ7HtT8OpbyyEah7uNJkXQeQFZ7JlrvIt+zXYD1ZHawn6c4MEw6ms8kb9dMuwQzElroiACLJ8X95R25hKkr/3Z3/MtC6sX9m2SZUXRS2icgmAYVXvFEtKcf6EVSk/gOIpK9+E9G7BvI/G75R2zGAuCi4knjX0oBb7KZVWmhn6oqGw8RyVueP3up3MUEsspCTgUANjpXJF8cr+uNXaCoPc+F4LZGaEZAsu3SwtqKtXQxj++V354kdqPSebNdYVj0PwhFnXja7i+tuNG/TRtZEULK6ap68B+uIaNmtY3RKIJAY7vV81yeo8oHRUYzwu3F1iDt2FlB6bXhootp7mExmN5lsLg=="
}
\ No newline at end of file
......@@ -52,7 +52,7 @@ const startInfo = {
limitLuckNum: 5, // 当日上限可获得福袋数
downArea: [3, 2, 1], // 掉落分布,集合,比如每日上限6个,这里配置返回1、2、3
currentAcquireNum: 5, // 当局剩余可获得福袋数,不包含accumulateLuckNum,当局累计获得福袋数量
currentStage: 3, // 当前应该进入的阶段(1-一阶段 2-二阶段 3-无尽模式)
currentStage: 1, // 当前应该进入的阶段(1-一阶段 2-二阶段 3-无尽模式)
spCardList: [ // 道具卡集合
{ spId: "sp_bag_silver", num: 1 },
{ spId: "sp_revival_card", num: 2 },
......
......@@ -50,7 +50,9 @@
],
"rankPopList": [],
"signPopFlag": false,
"bagLightFlag": true
"bagLightFlag": true,
"bagSwitch": false,
"avatarGuide": false
},
"message": null,
"success": true,
......
......@@ -7,7 +7,7 @@
"enable": true,
"customSplash": {
"complete": true,
"form": "https://creator-api.cocos.com/api/form/show?sid=89ca74d316d6341a14aae897a7fd7ec2"
"form": "https://creator-api.cocos.com/api/form/show?sid=441e6f8e3e7ba0c9581ed7936daee45d"
}
},
"removeSplash": {
......@@ -16,7 +16,7 @@
"enable": true,
"removeSplash": {
"complete": true,
"form": "https://creator-api.cocos.com/api/form/show?sid=89ca74d316d6341a14aae897a7fd7ec2"
"form": "https://creator-api.cocos.com/api/form/show?sid=441e6f8e3e7ba0c9581ed7936daee45d"
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment