删除HomeScene里的 每日任务 特殊挑战

This commit is contained in:
huanghaipeng 2025-10-10 14:28:47 +08:00
parent cc5754a159
commit 719bcd4ba5
19 changed files with 1113 additions and 17495 deletions

File diff suppressed because it is too large Load Diff

View File

@ -608,8 +608,8 @@ export default class GameManager extends cc.Component {
if (this.load1 && this.load2 && this.load3 && this.load4 && this.load5 && this.load6 == true && this.timeNumber <= 0) {
this.load1 = this.load2 = false;
MiniGameSdk.API.shushu_Login();
// MiniGameSdk.API.yinli_Init();
// MiniGameSdk.API.yinli_Login();
MiniGameSdk.API.yinli_Init();
MiniGameSdk.API.yinli_Login();
this.startGame();
}
}

View File

@ -38,8 +38,8 @@ export default class JiaZai extends cc.Component {
//// private actionpNode: cc.Node | null = null;
private static cachedAvatarPrefab: cc.Prefab | null = null;
private AvatarNode: cc.Node | null = null;
private static cachedDailyQuestsPrefab: cc.Prefab | null = null;
private dailyQuestsNode: cc.Node | null = null;
//// private static cachedDailyQuestsPrefab: cc.Prefab | null = null;
//// private dailyQuestsNode: cc.Node | null = null;
private static cachedWinStreakPrefab: cc.Prefab | null = null;
private winStreakNode: cc.Node | null = null;
@ -80,21 +80,10 @@ export default class JiaZai extends cc.Component {
scheduleCallback2: any;
scheduleCallback3: any;
private isFirstLaunch: boolean = true; // 添加首次启动标志
//// newbieGift: any; // 用于存储heath预制体
dailyQuestsShow: boolean = false; // 每日任务加载
winStreakShow: boolean = false; // 连胜活动是否展示
// //月卡
// @property(cc.Node)
// monthCardBtn: cc.Node = null;
// @property(cc.Node)
// monthCardBtn2: cc.Node = null;
// @property(cc.Node)
// monthCardTime: cc.Node = null;
// @property(cc.Node)
// monthCard: cc.Node = null;
//月卡领取 删除
// @property(cc.Node)
// getcard: cc.Node = null;
@property(cc.Node)
cardTime: cc.Node = null;
// LIFE-CYCLE CALLBACKS:
@ -111,23 +100,19 @@ export default class JiaZai extends cc.Component {
this.checkShare();
this.closeAvatar();
this.setShareInfo();
this.checkTasks();
//// this.checkTasks();
// this.checkDailyQuests();
//console.log("进入首页获取的share", cc.fx.GameConfig.GM_INFO.otherUid, cc.fx.GameConfig.GM_INFO.otherLevel);
cc.game.setFrameRate(63);
LQCollideSystem.is_enable = true;
//新手礼包
//// this.newbieGift = false;
//// this.Stamina.parent.getChildByName("xinshou").active = false;
this.winStreakShow = false;
//// this.checkStarter_pack();
//每日任务
this.dailyQuestsShow = false;
// //console.log("加载关卡配置2");
// window.initMgr();
GameManager._instance.Block_Color = this.Block_Color;
let version = cc.fx.GameTool.getWechatGameVersion();
if (version == "开发版" || version == "体验版") {
@ -153,13 +138,7 @@ export default class JiaZai extends cc.Component {
cc.error(err.message || err);
return;
}
//// bundle.load('prefab/newbieGift', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// JiaZai.cachedActionPrefab = prefab;
// });
bundle.load('prefab/Avatar', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
if (err) {
cc.error(err.message || err);
@ -168,22 +147,22 @@ export default class JiaZai extends cc.Component {
JiaZai.cachedAvatarPrefab = prefab;
console.log("头像预制体已经准备好");
});
bundle.load('prefab/dailyQuests', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
if (err) {
cc.error(err.message || err);
return;
}
JiaZai.cachedDailyQuestsPrefab = prefab;
console.log("每日任务预制体已经准备好");
});
bundle.load('prefab/winStreak', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
if (err) {
cc.error(err.message || err);
return;
}
JiaZai.cachedWinStreakPrefab = prefab;
console.log("连胜活动预制体已经准备好");
});
//// bundle.load('prefab/dailyQuests', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// JiaZai.cachedDailyQuestsPrefab = prefab;
// console.log("每日任务预制体已经准备好");
// });
//// bundle.load('prefab/winStreak', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// JiaZai.cachedWinStreakPrefab = prefab;
// console.log("连胜活动预制体已经准备好");
// });
});
}
@ -195,37 +174,6 @@ export default class JiaZai extends cc.Component {
return;
}
});
// bundle.load('prefab/shop', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// JiaZai.cachedShopPrefab = prefab;
// });
// bundle.load('prefab/RewardWindow', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// JiaZai.cachedRewardPrefab = prefab;
// this.getOrder();
// });
// bundle.load('prefab/monthlyCard', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// JiaZai.cachedMonthlyCardPrefab = prefab;
// //等级大于16开启
// if (cc.fx.GameConfig.GM_INFO.level >= 16) {
// let top = this.node.getChildByName("Load").getChildByName("Top");
// top.getChildByName("yicon").active = true;
// this.monthH();
// };
// });
// });
// }
if (cc.fx.GameConfig.GM_INFO.otherLevel > 0) {
if (cc.fx.GameConfig.GM_INFO.first) {
@ -303,10 +251,7 @@ export default class JiaZai extends cc.Component {
if (this.level) {
NumberToImage.numberToImageNodes((cc.fx.GameConfig.GM_INFO.level + 1), 43, 15, "level_", this.level, true);
}
//// if (this.coin) {
// NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.coin, 30, 15, "coin_", this.coin, true);
// this.setHealthInfo(true);
// }
});
// console.log("执行on", cc.fx.GameConfig.GM_INFO.min_Time);
if (this) {
@ -328,14 +273,11 @@ export default class JiaZai extends cc.Component {
start() {
// //console.log("已经进入Home界面");
// //console.log("金币",cc.fx.GameConfig.GM_INFO.coin);
// //console.log("关卡",cc.fx.GameConfig.GM_INFO.level+1);
this.updatePower();
cc.fx.GameTool.getHealth((data) => {
NumberToImage.numberToImageNodes((cc.fx.GameConfig.GM_INFO.level + 1), 43, 15, "level_", this.level, true);
//// NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.coin, 30, 15, "coin_", this.coin, true);
this.setHealthInfo(true);
});
// cc.fx.GameConfig.LEVEL_INFO_init(false,0);
@ -349,7 +291,6 @@ export default class JiaZai extends cc.Component {
if (entry.animation.name === "down" && !cc.fx.GameConfig.GM_INFO.first) {
// 动画播放结束后执行的逻辑
this.node.getChildByName("zhuanchang").active = false;
//// if (this.newbieGift) this.openStarter_pack();
}
});
}, 500);
@ -357,12 +298,10 @@ export default class JiaZai extends cc.Component {
else {
if (!cc.fx.GameConfig.GM_INFO.first) {
this.node.getChildByName("zhuanchang").active = false;
//// if (this.newbieGift) this.openStarter_pack();
}
}
// //打开heath弹窗
// this.openHeath();
this.uploadToCloud(cc.fx.GameConfig.GM_INFO.level + 1);
// this.getMonthlyCardValidityDays();
@ -385,22 +324,13 @@ export default class JiaZai extends cc.Component {
cc.fx.GameConfig.GM_INFO.monthTime = remainingDays;
}
//// if (cc.fx.GameConfig.GM_INFO.level >= 16) {
// let top = this.node.getChildByName("Load").getChildByName("Top");
// top.getChildByName("yicon").active = true;
// if (JiaZai.cachedMonthlyCardPrefab) {
// this.monthH();
// }
// };
if (cc.fx.GameConfig.GM_INFO.level >= 17) {
let top = this.node.getChildByName("Load").getChildByName("Top");
top.getChildByName("hammer").active = true;
// top.getChildByName("hammer").active = true;
}
else {
let top = this.node.getChildByName("Load").getChildByName("Top");
top.getChildByName("hammer").active = false;
// top.getChildByName("hammer").active = false;
}
}
@ -522,8 +452,6 @@ export default class JiaZai extends cc.Component {
// 设置金币花费数
// NumberToImage.numberToImageNodes(1000, 35, 15, "button_", coin, true);
}
// 弹窗倒计时
@ -797,8 +725,6 @@ export default class JiaZai extends cc.Component {
}
//打开商店 删除
openRewardWindow(data, month?: number) {
if (!JiaZai.cachedRewardPrefab) {
@ -821,95 +747,59 @@ export default class JiaZai extends cc.Component {
this.RewardNode.zIndex = 1001;
this.updatePower();
}
//打开月卡
//// openMonthlyCard() {
// if (!JiaZai.cachedMonthlyCardPrefab) {
// cc.error('MonthlyCard prefab is not loaded yet.');
// openDailyQuests() {
// this.dailyQuestsNode = null;
// this.openLoad2();
// this.dailyQuestsShow = true;
// cc.fx.GameTool.getDailyQuestsInfo((data) => {
// this.dailyQuestsShow = false;
// console.log("处理结果:", data);
// this.closeLoad();
// if (data.code != 1) {
// MiniGameSdk.API.showToast("网络异常,请稍后重试!")
// return;
// }
// if (!this.monthlyCardNode) {
// if (!JiaZai.cachedDailyQuestsPrefab) {
// // cc.error('Action prefab is not loaded yet.');
// cc.assetManager.loadBundle('action_bundle', (err: Error, bundle: cc.AssetManager.Bundle) => {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// bundle.load('prefab/dailyQuests', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// JiaZai.cachedDailyQuestsPrefab = prefab;
// if (!this.dailyQuestsNode) {
// // 第一次使用,创建节点
// this.dailyQuestsNode = cc.instantiate(JiaZai.cachedDailyQuestsPrefab);
// this.node.addChild(this.dailyQuestsNode);
// this.dailyQuestsNode.getComponent("DailyQuests").init(data.data.task);
// } else {
// // 非第一次使用,直接激活节点
// this.dailyQuestsNode.active = true;
// this.dailyQuestsNode.getComponent("DailyQuests").init(data.data.task);
// }
// });
// });
// return;
// }
// if (!this.dailyQuestsNode) {
// // 第一次使用,创建节点
// this.monthlyCardNode = cc.instantiate(JiaZai.cachedMonthlyCardPrefab);
// this.node.addChild(this.monthlyCardNode);
// this.monthlyCardNode.active = true;
// this.monthlyCardNode.getComponent("monthlyCard").init();
// this.monthlyCardNode.getComponent("monthlyCard").juwai = true;
// this.dailyQuestsNode = cc.instantiate(JiaZai.cachedDailyQuestsPrefab);
// this.node.addChild(this.dailyQuestsNode);
// this.dailyQuestsNode.active = true;
// this.dailyQuestsNode.getComponent("DailyQuests").init(data.data.task);
// } else {
// // 非第一次使用,直接激活节点
// this.monthlyCardNode.active = true;
// this.monthlyCardNode.zIndex = 1000;
// this.monthlyCardNode.getComponent("monthlyCard").init();
// this.monthlyCardNode.getComponent("monthlyCard").juwai = true;
// }
// if (typeof wx !== 'undefined') {
// // console.log("执行开始游戏monthlyCard")
// //@ts-ignore
// wx.offShow(this.onShowListener);
// //@ts-ignore
// wx.offHide(this.onHideListener);
// }
// }
openDailyQuests() {
this.dailyQuestsNode = null;
this.openLoad2();
this.dailyQuestsShow = true;
cc.fx.GameTool.getDailyQuestsInfo((data) => {
this.dailyQuestsShow = false;
console.log("处理结果:", data);
this.closeLoad();
if (data.code != 1) {
MiniGameSdk.API.showToast("网络异常,请稍后重试!")
return;
}
if (!JiaZai.cachedDailyQuestsPrefab) {
// cc.error('Action prefab is not loaded yet.');
cc.assetManager.loadBundle('action_bundle', (err: Error, bundle: cc.AssetManager.Bundle) => {
if (err) {
cc.error(err.message || err);
return;
}
bundle.load('prefab/dailyQuests', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
if (err) {
cc.error(err.message || err);
return;
}
JiaZai.cachedDailyQuestsPrefab = prefab;
if (!this.dailyQuestsNode) {
// 第一次使用,创建节点
this.dailyQuestsNode = cc.instantiate(JiaZai.cachedDailyQuestsPrefab);
this.node.addChild(this.dailyQuestsNode);
this.dailyQuestsNode.getComponent("DailyQuests").init(data.data.task);
} else {
// 非第一次使用,直接激活节点
this.dailyQuestsNode.active = true;
this.dailyQuestsNode.getComponent("DailyQuests").init(data.data.task);
}
});
});
return;
}
if (!this.dailyQuestsNode) {
// 第一次使用,创建节点
this.dailyQuestsNode = cc.instantiate(JiaZai.cachedDailyQuestsPrefab);
this.node.addChild(this.dailyQuestsNode);
this.dailyQuestsNode.active = true;
this.dailyQuestsNode.getComponent("DailyQuests").init(data.data.task);
} else {
// 非第一次使用,直接激活节点
this.dailyQuestsNode.active = true;
this.dailyQuestsNode.getComponent("DailyQuests").init(data.data.task);
}
})
}
// 关闭商店 删除
// closeShop() {
// if (this.shopNode) {
// this.shopNode.active = false;
// this.dailyQuestsNode.active = true;
// this.dailyQuestsNode.getComponent("DailyQuests").init(data.data.task);
// }
// })
// }
closeRank() {
@ -985,124 +875,6 @@ export default class JiaZai extends cc.Component {
this.node.getChildByName("Stamina").active = false;
}
//// updateCoin() {
// //console.log("主页更新金币", cc.fx.GameConfig.GM_INFO.coin);
// NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.coin, 30, 15, "coin_", this.coin, true);
// }
// getOrder() {
// if (typeof wx !== 'undefined' && wx !== null) {
// // 判断设备系统
// let systemType = "Android";
// try {
// //@ts-ignore
// const systemInfo = wx.getSystemInfoSync();
// if (systemInfo.platform === 'ios') {
// systemType = "ios";
// }
// } catch (e) {
// console.error('获取系统信息失败', e);
// }
// if (cc.fx.GameConfig.GM_INFO.allOutTradeNo.length != 0) {
// console.log("有需要补发数据", cc.fx.GameConfig.GM_INFO.allOutTradeNo);
// // 递归函数,按顺序处理每个订单
// const processOrder = (index: number) => {
// if (index >= cc.fx.GameConfig.GM_INFO.allOutTradeNo.length) {
// return; // 所有订单处理完成
// }
// let order = cc.fx.GameConfig.GM_INFO.allOutTradeNo[index];
// console.log("需要补发数据", order);
// if (order.itemid == "gold_1" || order.itemid == "gold_2" || order.itemid == "gold_3"
// || order.itemid == "gold_4" || order.itemid == "gold_5" || order.itemid == "gold_6"
// || order.itemid == "unlimited_health_bundle_10" || order.itemid == "unlimited_health_bundle_20"
// || order.itemid == "unlimited_health_bundle_30" || order.itemid == "month_Card" || "reborn_Gift"
// || order.itemid == "starter_pack"
// ) {
// this.openLoad();
// console.log("补发名称:", order.itemid);
// let productId = order.itemid;
// Utils.setPayInfo(
// (res) => {
// console.log("设置轮训结果:", res);
// this.closeLoad();
// if (res.code === 1) {
// console.log("7.14_________正式发货");
// let coinTemp = 0;
// if (order.itemid == "gold_1") { coinTemp = 1200; }
// else if (order.itemid == "gold_2") { coinTemp = 8000; }
// else if (order.itemid == "gold_3") { coinTemp = 16000; }
// else if (order.itemid == "gold_4") { coinTemp = 32000; }
// else if (order.itemid == "gold_5") { coinTemp = 100000; }
// else if (order.itemid == "gold_6") { coinTemp = 240000; }
// else if (order.itemid == "unlimited_health_bundle_10") { coinTemp = 2500; }
// else if (order.itemid == "unlimited_health_bundle_20") { coinTemp = 5000; }
// else if (order.itemid == "unlimited_health_bundle_30") { coinTemp = 7500; }
// else if (order.itemid == "month_Card") {
// coinTemp = 6000;
// cc.fx.GameConfig.GM_INFO.doubleCoin = 2;
// cc.fx.GameConfig.GM_INFO.hp_Max = 7;
// cc.fx.GameConfig.GM_INFO.hp = 7;
// this.openLoad();
// //// this.buyMonthCard(productId);
// }
// else if (order.itemid == "reborn_Gift") {
// coinTemp = 1000;
// }
// else if (order.itemid == "starter_pack") {
// coinTemp = 3000;
// cc.fx.GameConfig.GM_INFO.doubleCoin = 5;
// cc.fx.GameConfig.GM_INFO.hp_Max = 5;
// cc.fx.GameConfig.GM_INFO.hp = 5;
// }
// let title = "充值补发奖励金币:" + coinTemp;
// // MiniGameSdk.API.showToast(title);
// if (order.itemid != "month_Card") cc.fx.GameTool.shopBuy(productId, true);
// console.log("充值成功获得金币");
// let price = parseInt(order.goodsPrice) || 0;
// // const dataSuccess = {
// // outTradeNo: order.outTradeNo,
// // pay_amount: price,
// // payment_name: productId,
// // payment_num: 1,
// // type: systemType,
// // }
// let name = "补发充值成功" + productId;
// // cc.fx.GameTool.shushu_Track("payment", dataSuccess);
// // console.log("引力付费透传", price, order.outTradeNo, name);
// MiniGameSdk.API.yinli_Pay(price, order.outTradeNo, name);
// }
// else {
// MiniGameSdk.API.showToast("网络异常,充值奖励将在登录后再次发放");
// const dataFail4 = {
// outTradeNo: order.outTradeNo,
// pay_amount: parseInt(order.goodsPrice) || 0,
// payment_name: productId,
// payment_num: 1,
// type: systemType,
// fail_reason: "成功付款,但是发货时请求服务器失败,重新进入游戏后轮训发货又失败",
// }
// cc.fx.GameTool.shushu_Track("payment_fail", dataFail4);
// }
// NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.coin, 30, 15, "coin_", this.coin, true);
// this.updateCoin();
// // 处理下一个订单
// processOrder(index + 1);
// }, order.outTradeNo);
// } else {
// // 如果当前订单不处理,直接处理下一个订单
// processOrder(index + 1);
// }
// };
// // 从第一个订单开始处理
// processOrder(0);
// }
// }
// }
openLoad() {
this.node.getChildByName("Loading").active = true;
this.node.getChildByName("Loading").getChildByName("load").stopAllActions();
@ -1150,117 +922,6 @@ export default class JiaZai extends cc.Component {
}
}
//月卡
//打开界面
//// openMonthCard() {
// this.openMonthlyCard();
// this.monthCard.active = true;
// Utils.getMonthlyCard((data) => {
// if (data.msg == "不在有效期") {
// this.monthCardBtn.active = true;
// this.monthCardBtn2.active = false;
// } else {
// this.monthCardBtn.active = false;
// this.monthCardBtn2.active = true;
// NumberToImage.numberToImageNodes(25, 35, 20, "month_", this.monthCardTime, true);
// }
// })
// }
//// openStarter_pack() {
// if (!JiaZai.cachedActionPrefab) {
// // cc.error('Action prefab is not loaded yet.');
// cc.assetManager.loadBundle('action_bundle', (err: Error, bundle: cc.AssetManager.Bundle) => {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// bundle.load('prefab/newbieGift', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
// if (err) {
// cc.error(err.message || err);
// return;
// }
// JiaZai.cachedActionPrefab = prefab;
// if (!this.actionpNode) {
// // 第一次使用,创建节点
// this.actionpNode = cc.instantiate(JiaZai.cachedActionPrefab);
// this.node.addChild(this.actionpNode);
// this.actionpNode.zIndex = 2;
// this.actionpNode.getComponent("NewbieGift").init(true);
// this.actionpNode.getChildByName("time").active = false;
// } else {
// // 非第一次使用,直接激活节点
// this.actionpNode.active = true;
// this.actionpNode.getComponent("NewbieGift").init(false);
// this.actionpNode.getChildByName("time").active = false;
// }
// });
// });
// return;
// }
// if (!this.actionpNode) {
// // 第一次使用,创建节点
// this.actionpNode = cc.instantiate(JiaZai.cachedActionPrefab);
// this.node.addChild(this.actionpNode);
// this.actionpNode.zIndex = 2;
// this.actionpNode.getComponent("NewbieGift").init(true);
// } else {
// // 非第一次使用,直接激活节点
// this.actionpNode.active = true;
// this.actionpNode.getComponent("NewbieGift").init(false);
// }
// if (typeof wx !== 'undefined') {
// //@ts-ignore
// wx.offShow(this.onShowListener);
// //@ts-ignore
// wx.offHide(this.onHideListener);
// }
// }
// closeStarter_pack() {
// if (this.actionpNode) {
// this.actionpNode.active = false;
// }
// }
// 新手礼包
//// startStarter_pack() {
// this.stopStarter_pack();
// if (this.scheduleCallback3) {
// this.unschedule(this.scheduleCallback3);
// }
// this.scheduleCallback3 = function () {
// let nowTime = Math.floor(Date.now() / 1000);
// if (cc.fx.GameConfig.GM_INFO.starter_packTime < nowTime) {
// this.stopStarter_pack();
// this.Stamina.parent.getChildByName("xinshou").active = false;
// return;
// }
// let time = cc.fx.GameConfig.GM_INFO.starter_packTime - nowTime;
// if (time <= 0) {
// time = 0;
// this.stopStarter_pack();
// this.Stamina.parent.getChildByName("xinshou").active = false;
// }
// else {
// var timeTemp = cc.fx.GameTool.getTimeMargin2(time);
// this.Stamina.parent.getChildByName("xinshou").getChildByName("time").getComponent(cc.Label)
// .string = timeTemp;
// if (this.actionpNode) {
// this.actionpNode.getChildByName("time").getComponent(cc.Label).
// string = timeTemp;
// }
// // 同步显示
// }
// }.bind(this);
// this.schedule(this.scheduleCallback3, 1);
// }
stopStarter_pack() {
if (this.scheduleCallback3) {
this.unschedule(this.scheduleCallback3);
@ -1268,164 +929,6 @@ export default class JiaZai extends cc.Component {
}
}
// 删除月卡
// rewarded() {
// Utils.monthGetReward((data) => {
// if (data.data == null) {
// //console.log("到期");
// cc.fx.GameConfig.GM_INFO.hp_Max = 5;
// //如果体力大于5设置为5小于5设置为体力值
// if (cc.fx.GameConfig.GM_INFO.hp > 5) {
// cc.fx.GameConfig.GM_INFO.hp = 5;
// cc.fx.GameTool.setUserHealth(0, (data) => {
// cc.fx.GameTool.getHealth(null);
// })
// }
// setTimeout(() => {
// this.updateCoin();
// this.setHealthInfo(false);
// this.startTimeCutDown();
// }, 300);
// }
// if (data.data != null && data.code == 0) {
// //console.log("未到期已领取");
// }
// // == 1 删除
// if (data.code == 1) {
// console.log("领取月卡 删除")
// }
// })
// }
//缓存弹窗
//// monthH() {
// return;
//如果没有充值月卡,每天弹一次月卡弹窗用缓存实现
// 删除月卡
// Utils.getMonthlyCard((data) => {
// if (data.msg == "不在有效期") {
// let date = new Date();
// let day = date.getDate(); // 当前日期1-31
// let month = date.getMonth() + 1; // 当前月份1-12
// let year = date.getFullYear(); // 当前年份
// let dateStr = `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`; // 格式化为 YYYY-MM-DD
// // 从缓存中获取上次弹窗的日期
// let cachedDateStr = cc.fx.StorageMessage.getStorage("monthlyCardDate");
// // 如果缓存中的日期和当前日期不一致
// if (cachedDateStr !== dateStr) {
// this.winStreakShow = false;
// // 更新缓存
// cc.fx.StorageMessage.setStorage("monthlyCardDate", dateStr);
// this.openMonthCard();
// }
// else {
// this.openWin();
// }
// }
// else {
// this.openWin();
// }
// })
// }
//检查是否弹出新手礼包
//// checkStarter_pack() {
// // return;
// //如果没有充值新手礼包,每天弹一次新手礼包
// if (cc.fx.GameConfig.GM_INFO.level < 15) {
// return;
// }
// const timestamp = Date.now();
// Utils.getStarter_pack((data) => {
// if (data.code == 1) {
// if (data.data.starter_pack == 0) {
// console.log("用户没有触发新手礼包,准备触发,并且给弹窗");
// this.winStreakShow = false;
// Utils.setStarter_pack((res) => {
// if (res.code == 1) {
// this.newbieGift = true;
// // let top = this.node.getChildByName("Load").getChildByName("Top");
// // top.getChildByName("yicon").active = false;
// this.Stamina.parent.getChildByName("xinshou").active = true;
// cc.fx.GameConfig.GM_INFO.starter_packTime = res.data.starter_pack / 1000;
// if (!this.actionpNode) this.openStarter_pack();
// console.log("打开新手礼包");
// const nowTime = Math.floor(Date.now() / 1000);
// let time = cc.fx.GameConfig.GM_INFO.starter_packTime - nowTime;
// if (time > 0) {
// this.startStarter_pack();
// time = cc.fx.GameTool.getTimeMargin2(time);
// this.Stamina.parent.getChildByName("xinshou").getChildByName("time").getComponent(cc.Label)
// .string = time + "";
// }
// }
// })
// }
// else if (data.data.starter_pack < timestamp) {
// this.winStreakShow = true;
// console.log("用户新手礼包已经过期,不触发");
// this.newbieGift = false;
// this.Stamina.parent.getChildByName("xinshou").active = false;
// }
// else if (data.data.starter_packState == 1) {
// this.winStreakShow = true;
// console.log("用户已经购买过新手礼包,不触发");
// this.newbieGift = false;
// this.Stamina.parent.getChildByName("xinshou").active = false;
// }
// else {
// console.log("用户在新手礼包时间范围内,给弹窗");
// cc.fx.GameConfig.GM_INFO.starter_packTime = data.data.starter_pack / 1000;
// const nowTime = Math.floor(Date.now() / 1000);
// let time = cc.fx.GameConfig.GM_INFO.starter_packTime - nowTime;
// if (time > 0) {
// this.startStarter_pack();
// time = cc.fx.GameTool.getTimeMargin2(time);
// this.Stamina.parent.getChildByName("xinshou").getChildByName("time").getComponent(cc.Label)
// .string = time + "";
// }
// let date = new Date();
// let day = date.getDate() + 1; // 当前日期1-31
// let month = date.getMonth(); // 当前月份1-12
// let year = date.getFullYear(); // 当前年份
// let dateStr = `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`; // 格式化为 YYYY-MM-DD
// // 从缓存中获取上次弹窗的日期
// let cachedDateStr = cc.fx.StorageMessage.getStorage("Starter_pack");
// // 如果缓存中的日期和当前日期不一致
// if (cachedDateStr !== dateStr) {
// // 更新缓存
// this.newbieGift = true;
// // let top = this.node.getChildByName("Load").getChildByName("Top");
// // top.getChildByName("yicon").active = false;
// this.Stamina.parent.getChildByName("xinshou").active = true;
// cc.fx.StorageMessage.setStorage("Starter_pack", dateStr);
// if (!this.actionpNode) this.openStarter_pack();
// console.log("打开新手礼包");
// this.winStreakShow = false;
// }
// else {
// this.winStreakShow = true;
// this.newbieGift = false;
// this.Stamina.parent.getChildByName("xinshou").active = true;
// console.log("当天已经给过,不再弹窗新手礼包");
// }
// }
// }
// else {
// this.newbieGift = false;
// this.Stamina.parent.getChildByName("xinshou").active = false;
// }
// })
// }
//获取有没有分享信息
getShareInfo() {
// 检查微信小游戏启动参数
@ -1485,19 +988,6 @@ export default class JiaZai extends cc.Component {
MiniGameSdk.API.shushu_SetSuperProperties(time, false);
}
}
//// onCardReward() {
// // this.getcard.active = false;
// cc.fx.GameTool.changeCoin(500);
// this.updateCoin();
// const dataTemp = {
// change_reason: "month",
// id: "1001",
// num: 500,
// compensate: false
// }
// cc.fx.GameTool.shushu_Track("resource_get", dataTemp);
// }
//检测当日是否有分享行为,用不用主动获取分享关卡信息
checkShare() {
@ -1546,92 +1036,49 @@ export default class JiaZai extends cc.Component {
}
//购买月卡
//// buyMonthCard(id) {
// console.log("购买月卡", id);
// Utils.setMonthlyCard(0, (data) => {
// // console.log("购买月卡", data.code);
// if (data.code == 1) {
// // let rewardData = [
// // { type: "coin", count: 6000 },
// // ]
// cc.fx.GameTool.shopBuy(id, false);
// cc.fx.GameConfig.GM_INFO.hp_Max = 7;
// cc.fx.GameConfig.GM_INFO.hp = 7;
// cc.fx.GameTool.getMonthlyCardValidityDays().then(days => {
// cc.fx.GameConfig.GM_INFO.monthTime = days.days;
// //本地储存当前服务器时间
// let dateStr = new Date(days.time);
// cc.fx.StorageMessage.setStorage("mCardDate", dateStr);
// });
// // cc.fx.GameTool.changeCoin(6000);
// const jiazaiNode = cc.find("Canvas"); // 假设 JiaZai 挂在 Canvas 节点
// const jiazaiComp = jiazaiNode.getComponent(JiaZai);
// if (jiazaiComp) {
// // console.log("获取到JiaZai组件", jiazaiComp);
// setTimeout(() => {
// jiazaiComp.setHealthInfo(false);
// jiazaiComp.startTimeCutDown();
// jiazaiComp.updateCoin();
// }, 300);
// } else {
// // console.log("无法获取JiaZai组件");
// }
// cc.fx.GameConfig.GM_INFO.doubleCoin = 2;
// cc.fx.GameTool.setUserHealth(0, (data) => {
// cc.fx.GameTool.getHealth(null);
// })
// }
// this.closeLoad();
// })
// update (dt) {}
// }
setShareInfo() {
console.log("设置分享信息");
MiniGameSdk.API.shareAppToFriends();
}
//检查任务列表
checkTasks() {
let top = this.node.getChildByName("Load").getChildByName("Top");
top.getChildByName("day").getChildByName("red").active = false;
if (cc.fx.GameConfig.GM_INFO.tasks.levelPass.target == 0) {
console.log("没有获取任务列表从服务器拿");
cc.fx.GameTool.getDailyQuestsInfo((data) => {
if (data.code == 1) {
let res = data.data.task;
cc.fx.GameConfig.GM_INFO.tasks.levelPass = res["levelPass"];
cc.fx.GameConfig.GM_INFO.tasks.share = res["share"];
cc.fx.GameConfig.GM_INFO.tasks.useEnergy = res["useEnergy"];
cc.fx.GameConfig.GM_INFO.tasks.useProp = res["useProp"];
}
else {
//以备不时之需
cc.fx.GameConfig.GM_INFO.tasks.levelPass.target = 3;
cc.fx.GameConfig.GM_INFO.tasks.share.target = 1;
cc.fx.GameConfig.GM_INFO.tasks.useEnergy.target = 10;
cc.fx.GameConfig.GM_INFO.tasks.useProp.target = 3;
}
if (cc.fx.GameConfig.GM_INFO.tasks.levelPass.state == 1 || cc.fx.GameConfig.GM_INFO.tasks.share.state == 1 ||
cc.fx.GameConfig.GM_INFO.tasks.useEnergy.state == 1 || cc.fx.GameConfig.GM_INFO.tasks.useProp.state == 1
) {
top.getChildByName("day").getChildByName("red").active = true;
}
})
}
else {
console.log("有任务列表判断红点", cc.fx.GameConfig.GM_INFO.tasks);
if (cc.fx.GameConfig.GM_INFO.tasks.levelPass.state == 1 || cc.fx.GameConfig.GM_INFO.tasks.share.state == 1 ||
cc.fx.GameConfig.GM_INFO.tasks.useEnergy.state == 1 || cc.fx.GameConfig.GM_INFO.tasks.useProp.state == 1
) {
top.getChildByName("day").getChildByName("red").active = true;
}
// checkTasks() {
// let top = this.node.getChildByName("Load").getChildByName("Top");
// top.getChildByName("day").getChildByName("red").active = false;
// if (cc.fx.GameConfig.GM_INFO.tasks.levelPass.target == 0) {
// console.log("没有获取任务列表从服务器拿");
// cc.fx.GameTool.getDailyQuestsInfo((data) => {
// if (data.code == 1) {
// let res = data.data.task;
// cc.fx.GameConfig.GM_INFO.tasks.levelPass = res["levelPass"];
// cc.fx.GameConfig.GM_INFO.tasks.share = res["share"];
// cc.fx.GameConfig.GM_INFO.tasks.useEnergy = res["useEnergy"];
// cc.fx.GameConfig.GM_INFO.tasks.useProp = res["useProp"];
// }
// else {
// //以备不时之需
// cc.fx.GameConfig.GM_INFO.tasks.levelPass.target = 3;
// cc.fx.GameConfig.GM_INFO.tasks.share.target = 1;
// cc.fx.GameConfig.GM_INFO.tasks.useEnergy.target = 10;
// cc.fx.GameConfig.GM_INFO.tasks.useProp.target = 3;
// }
// if (cc.fx.GameConfig.GM_INFO.tasks.levelPass.state == 1 || cc.fx.GameConfig.GM_INFO.tasks.share.state == 1 ||
// cc.fx.GameConfig.GM_INFO.tasks.useEnergy.state == 1 || cc.fx.GameConfig.GM_INFO.tasks.useProp.state == 1
// ) {
// top.getChildByName("day").getChildByName("red").active = true;
// }
// })
// }
// else {
// console.log("有任务列表判断红点", cc.fx.GameConfig.GM_INFO.tasks);
// if (cc.fx.GameConfig.GM_INFO.tasks.levelPass.state == 1 || cc.fx.GameConfig.GM_INFO.tasks.share.state == 1 ||
// cc.fx.GameConfig.GM_INFO.tasks.useEnergy.state == 1 || cc.fx.GameConfig.GM_INFO.tasks.useProp.state == 1
// ) {
// top.getChildByName("day").getChildByName("red").active = true;
// }
}
}
// }
// }
openWin() {
if (this.winStreakShow == false || cc.fx.GameConfig.GM_INFO.level < 17) {
@ -1653,49 +1100,9 @@ export default class JiaZai extends cc.Component {
return;
}
}
this.openWinStreak();
//// this.openWinStreak();
}
//打开连胜活动
openWinStreak() {
if (!JiaZai.cachedWinStreakPrefab) {
// cc.error('Action prefab is not loaded yet.');
cc.assetManager.loadBundle('action_bundle', (err: Error, bundle: cc.AssetManager.Bundle) => {
if (err) {
cc.error(err.message || err);
return;
}
bundle.load('prefab/winStreak', cc.Prefab, (err: Error, prefab: cc.Prefab) => {
if (err) {
cc.error(err.message || err);
return;
}
JiaZai.cachedWinStreakPrefab = prefab;
if (!this.winStreakNode) {
// 第一次使用,创建节点
this.winStreakNode = cc.instantiate(JiaZai.cachedWinStreakPrefab);
this.node.addChild(this.winStreakNode);
this.winStreakNode.getComponent("WinStreak").init();
} else {
// 非第一次使用,直接激活节点
this.winStreakNode.active = true;
this.winStreakNode.getComponent("WinStreak").init();
}
});
});
return;
}
if (!this.winStreakNode) {
// 第一次使用,创建节点
this.winStreakNode = cc.instantiate(JiaZai.cachedWinStreakPrefab);
this.node.addChild(this.winStreakNode);
this.winStreakNode.active = true;
this.winStreakNode.getComponent("WinStreak").init();
} else {
// 非第一次使用,直接激活节点
this.winStreakNode.active = true;
this.winStreakNode.getComponent("WinStreak").init();
}
}
update(dt) {
//// if (this.newbieGift && this.monthlyCardNode) {

View File

@ -1396,55 +1396,55 @@ export namespace MiniGameSdk {
}
//#region 引力平台-
//// static yinli_Init() {
// if (typeof wx !== 'undefined' && wx !== null) {
// const configYinli = {
// accessToken: "aGws0nluotbm6Jjiv9WMuzOAbXLydxwe", // 项目通行证,在:网站后台-->设置-->应用列表中找到Access Token列 复制(首次使用可能需要先新增应用)
// clientId: cc.fx.GameConfig.GM_INFO.openid, // 用户唯一标识如产品为小游戏则必须填用户openid注意不是小游戏的APPID
// name: "ge", // 全局变量名称
// debugMode: "none", // 是否开启测试模式,开启测试模式后,可以在 网站后台--设置--元数据--事件流中查看实时数据上报结果。测试时使用上线之后一定要关掉改成none或者删除
// sendTimeout: 3000, // 网络请求超时时间,单位毫秒,默认值 3000 ms
// maxRetries: 3, // 网络请求失败时的重试次数1 表示不重试。默认值是 3
// enablePersistence: true, // 是否使用本地缓存,主实例默认为 true子实例默认为 false
// asyncPersistence: false, // 是否使用异步存储,默认为 false
// enable_sync_attribution: true, // 是否开启渠道归因,默认为 false
// autoTrack: {
// appLaunch: true, // 自动采集 $MPLaunch
// appShow: false, // 自动采集 $MPShow
// appHide: false, // 自动采集 $MPHide
// },
// };
// API._ge = new GravityAnalyticsAPI(configYinli);
// API._ge.setupAndStart();
static yinli_Init() {
if (typeof wx !== 'undefined' && wx !== null) {
const configYinli = {
accessToken: "aGws0nluotbm6Jjiv9WMuzOAbXLydxwe", // 项目通行证,在:网站后台-->设置-->应用列表中找到Access Token列 复制(首次使用可能需要先新增应用)
clientId: cc.fx.GameConfig.GM_INFO.openid, // 用户唯一标识如产品为小游戏则必须填用户openid注意不是小游戏的APPID
name: "ge", // 全局变量名称
debugMode: "none", // 是否开启测试模式,开启测试模式后,可以在 网站后台--设置--元数据--事件流中查看实时数据上报结果。测试时使用上线之后一定要关掉改成none或者删除
sendTimeout: 3000, // 网络请求超时时间,单位毫秒,默认值 3000 ms
maxRetries: 3, // 网络请求失败时的重试次数1 表示不重试。默认值是 3
enablePersistence: true, // 是否使用本地缓存,主实例默认为 true子实例默认为 false
asyncPersistence: false, // 是否使用异步存储,默认为 false
enable_sync_attribution: true, // 是否开启渠道归因,默认为 false
autoTrack: {
appLaunch: true, // 自动采集 $MPLaunch
appShow: false, // 自动采集 $MPShow
appHide: false, // 自动采集 $MPHide
},
};
API._ge = new GravityAnalyticsAPI(configYinli);
API._ge.setupAndStart();
// API._ge.initialize({
// name: cc.fx.GameConfig.GM_INFO.openid,
// version: cc.fx.GameConfig.GM_INFO.version,
// openid: cc.fx.GameConfig.GM_INFO.openid,
// enable_sync_attribution: false,//渠道归因
// })
// .then((res) => {
// // console.log("引力引擎初始化成功", res)
// })
// .catch((err) => {
// // console.log("引力引擎初始化失败 " + err);
// });
API._ge.initialize({
name: cc.fx.GameConfig.GM_INFO.openid,
version: cc.fx.GameConfig.GM_INFO.version,
openid: cc.fx.GameConfig.GM_INFO.openid,
enable_sync_attribution: false,//渠道归因
})
.then((res) => {
// console.log("引力引擎初始化成功", res)
})
.catch((err) => {
// console.log("引力引擎初始化失败 " + err);
});
// if (cc.fx.GameConfig.GM_INFO.shushu_AccountId == "") cc.fx.GameConfig.GM_INFO.shushu_AccountId =
// cc.fx.GameConfig.GM_INFO.openid;
if (cc.fx.GameConfig.GM_INFO.shushu_AccountId == "") cc.fx.GameConfig.GM_INFO.shushu_AccountId =
cc.fx.GameConfig.GM_INFO.openid;
// const CURRENT_USER_TA_ACCOUNT_ID = cc.fx.GameConfig.GM_INFO.shushu_AccountId; // 用户唯一标识如产品为小游戏则必须填用户openid注意不是小游戏的APPID
// const CURRENT_USER_TA_DISTINCT_ID = cc.fx.GameConfig.GM_INFO.shushu_DistinctId; // 用户唯一标识如产品为小游戏则必须填用户openid注意不是小游戏的APPID
// API._ge.bindTAThirdPlatform(CURRENT_USER_TA_ACCOUNT_ID, CURRENT_USER_TA_DISTINCT_ID);
const CURRENT_USER_TA_ACCOUNT_ID = cc.fx.GameConfig.GM_INFO.shushu_AccountId; // 用户唯一标识如产品为小游戏则必须填用户openid注意不是小游戏的APPID
const CURRENT_USER_TA_DISTINCT_ID = cc.fx.GameConfig.GM_INFO.shushu_DistinctId; // 用户唯一标识如产品为小游戏则必须填用户openid注意不是小游戏的APPID
API._ge.bindTAThirdPlatform(CURRENT_USER_TA_ACCOUNT_ID, CURRENT_USER_TA_DISTINCT_ID);
// }
// }
}
}
//// static yinli_Register() {
// if (typeof wx !== 'undefined' && wx !== null) {
// API._ge.registerEvent();
// }
// }
static yinli_Register() {
if (typeof wx !== 'undefined' && wx !== null) {
API._ge.registerEvent();
}
}
/**
*
@ -1454,24 +1454,24 @@ export namespace MiniGameSdk {
* @param payReason
* @param payMethod
*/
//// static yinli_Pay(payAmount, orderId, payReason) {
// if (typeof wx !== 'undefined' && wx !== null) {
// let version = cc.fx.GameTool.getWechatGameVersion();
// if (version == "开发版" || version == "体验版") {
// }
// else {
// API._ge.payEvent(payAmount, "CNY", orderId, payReason, "微信");
// }
// console.log("版本:", version);
static yinli_Pay(payAmount, orderId, payReason) {
if (typeof wx !== 'undefined' && wx !== null) {
let version = cc.fx.GameTool.getWechatGameVersion();
if (version == "开发版" || version == "体验版") {
}
else {
API._ge.payEvent(payAmount, "CNY", orderId, payReason, "微信");
}
console.log("版本:", version);
// }
// }
}
}
// static yinli_Login() {
// if (typeof wx !== 'undefined' && wx !== null) {
// API._ge.loginEvent();
// }
// }
static yinli_Login() {
if (typeof wx !== 'undefined' && wx !== null) {
API._ge.loginEvent();
}
}
//分享
static shareGame() {

View File

@ -113,70 +113,6 @@ export default class NewClass extends cc.Component {
}
//购买体力
// buyHeath() {
// if (!this.btn_Touch) {
// return;
// }
// this.btn_Touch = false;
// //获取当前体力
// let curHeath = cc.fx.GameConfig.GM_INFO.hp;
// //获取当前金币
// let curCoin = cc.fx.GameConfig.GM_INFO.coin;
// if (curCoin >= 1000) {
// this.switchButtons[1].active = false;
// cc.fx.GameTool.changeCoin(-1000);
// const data = {
// change_reason: "首页购买体力",
// id: (1001 + ""),
// num: -1000
// }
// cc.fx.GameTool.shushu_Track("resource_cost", data);
// cc.fx.GameConfig.GM_INFO.hp = cc.fx.GameConfig.GM_INFO.hp_Max;
// cc.fx.GameConfig.GM_INFO.min_Time = 0;
// const parentNode = cc.find("Canvas"); // 假设 JiaZai 挂在 Canvas 节点
// if (parentNode) {
// const jiazaiComp = parentNode.getComponent(JiaZai);
// if (jiazaiComp) {
// jiazaiComp.setHealthInfo(false);
// jiazaiComp.updateCoin();
// }
// }
// this.switchButtons[0].active = true;
// cc.fx.GameTool.setUserHealth(0, (data) => {
// cc.fx.GameTool.getHealth(null);
// })
// const buyData = {
// item_id: "refill_health",
// item_num: 3,
// item_price: 1000,
// cost_type: "gold"
// }
// // console.log("____________即将上传Shop_buy", buyData);
// cc.fx.GameTool.shushu_Track("shop_buy", buyData);
// }
// else {
// MiniGameSdk.API.showToast("金币不足,无法购买体力");
// setTimeout(() => {
// this.btn_Touch = true;
// this.openShop();
// }, 500);
// }
// }
//金币不够购买金币
//// openShop() {
// //获取场景中的 JiaZai 组件
// const parentNode = cc.find("Canvas"); // 假设 JiaZai 挂在 Canvas 节点
// if (parentNode) {
// const jiazaiComp = parentNode.getComponent(JiaZai);
// if (jiazaiComp) {
// jiazaiComp.openShop();
// }
// }
// }
//关闭弹窗
closePop() {
this.btn_Touch = true;

View File

@ -672,12 +672,12 @@ var GameTool = {
}
//console.log("_____________新版本", num);
// cc.fx.GameTool.changeCoin(-cost);
//// const dataTemp = {
// change_reason: "商城购买道具消耗",
// id: (1001 + ""),
// num: -cost
// }
// cc.fx.GameTool.shushu_Track("resource_cost", dataTemp);
const dataTemp = {
change_reason: "商城购买道具消耗",
id: (1001 + ""),
num: -cost
}
cc.fx.GameTool.shushu_Track("resource_cost", dataTemp);
let _id = "";
let propNumber = 0;
@ -826,205 +826,6 @@ var GameTool = {
}
},
//商城购买
//// shopBuy(productId, compensate) {
// let coin = 0;
// let price = 0;
// let getCoin = 0;
// var rewardData = null;
// //console.log(productId);
// //console.log("发放奖励", productId);
// switch (productId) {
// case "gold_1":
// cc.fx.GameTool.changeCoin(1200);
// coin = 1200;
// price = 600;
// // MiniGameSdk.API.showToast("充值成功获得1200金币");
// rewardData = [
// { type: "coin", count: coin },
// ]
// break;
// case "gold_2":
// cc.fx.GameTool.changeCoin(8000);
// coin = 8000;
// price = 3600;
// // MiniGameSdk.API.showToast("充值成功获得8000金币");
// rewardData = [
// { type: "coin", count: coin },
// ]
// break;
// case "gold_3":
// cc.fx.GameTool.changeCoin(16000);
// coin = 16000;
// price = 6800;
// // MiniGameSdk.API.showToast("充值成功获得16000金币");
// rewardData = [
// { type: "coin", count: coin },
// ]
// break;
// case "gold_4":
// cc.fx.GameTool.changeCoin(32000);
// coin = 32000;
// price = 12800;
// // MiniGameSdk.API.showToast("充值成功获得32000金币");
// rewardData = [
// { type: "coin", count: coin },
// ]
// break;
// case "gold_5":
// cc.fx.GameTool.changeCoin(100000);
// coin = 100000;
// price = 32800;
// // MiniGameSdk.API.showToast("充值成功获得100000金币");
// rewardData = [
// { type: "coin", count: coin },
// ]
// break;
// case "gold_6":
// cc.fx.GameTool.changeCoin(240000);
// coin = 240000;
// price = 64800;
// // MiniGameSdk.API.showToast("充值成功获得240000金币");
// rewardData = [
// { type: "coin", count: coin },
// ]
// break;
// case "unlimited_health_bundle_10":
// cc.fx.GameTool.changeCoin(2500);
// coin = 2500;
// price = 1000;
// this.setUserPowerTime(3600);
// // MiniGameSdk.API.showToast("获得无限体力小组合包");
// rewardData = [
// { type: "coin", count: coin },
// { type: "infinite_health", count: 3600 },
// ]
// break;
// case "unlimited_health_bundle_20":
// cc.fx.GameTool.changeCoin(5000);
// coin = 5000;
// price = 2000;
// let propData = {
// "freeze": 2,
// "hammer": 2,
// "magic_wand": 2,
// "price": price
// }
// this.getShopProp(propData, compensate);
// this.setUserPowerTime(7200);
// // MiniGameSdk.API.showToast("获得无限体力大组合包");
// rewardData = [
// { type: "coin", count: coin },
// { type: "freeze", count: 2 },
// { type: "hammer", count: 2 },
// { type: "magic", count: 2 },
// { type: "infinite_health", count: 7200 },
// ]
// break;
// case "unlimited_health_bundle_30":
// cc.fx.GameTool.changeCoin(7500);
// coin = 7500;
// price = 3000;
// let propData2 = {
// "freeze": 5,
// "hammer": 5,
// "magic_wand": 5,
// "price": price
// }
// this.getShopProp(propData2, compensate);
// this.setUserPowerTime(14400);
// // MiniGameSdk.API.showToast("获得无限体力超组合包");
// rewardData = [
// { type: "coin", count: coin },
// { type: "freeze", count: 5 },
// { type: "hammer", count: 5 },
// { type: "magic", count: 5 },
// { type: "infinite_health", count: 14400 },
// ]
// break;
// case "month_Card":
// cc.fx.GameTool.changeCoin(6000);
// coin = 6000;
// price = 3000;
// // MiniGameSdk.API.showToast("充值成功获得240000金币");
// rewardData = [
// { type: "coin", count: coin },
// ]
// break;
// case "reborn_Gift":
// cc.fx.GameTool.changeCoin(1000);
// coin = 1000;
// price = 600;
// rewardData = [
// { type: "coin", count: coin },
// { type: "freeze", count: 1 },
// { type: "hammer", count: 1 },
// { type: "magic", count: 1 },
// ]
// let propData3 = {
// "freeze": 1,
// "hammer": 1,
// "magic_wand": 1,
// "price": price
// }
// this.getShopProp(propData3, compensate);
// break;
// case "starter_pack":
// cc.fx.GameTool.changeCoin(3000);
// coin = 3000;
// price = 300;
// let propData4 = {
// "freeze": 5,
// "hammer": 5,
// "magic_wand": 5,
// "price": price
// }
// this.getShopProp(propData4, compensate);
// rewardData = [
// { type: "coin", count: coin },
// { type: "freeze", count: 5 },
// { type: "hammer", count: 5 },
// { type: "magic", count: 5 }
// ]
// break;
// }
// if (MapConroler._instance != null) {
// //console.log("應該下發獎勵:", rewardData);
// MapConroler._instance.SceneManager.openRewardWindow(rewardData);
// }
// else {
// const canvasTemp = cc.find("Canvas"); // 假设 Canvas 节点
// if (canvasTemp) {
// const JiaZai = canvasTemp.getComponent("JiaZai");
// if (JiaZai) {
// JiaZai.openRewardWindow(rewardData);
// }
// }
// }
// const dataTemp = {
// change_reason: "shop",
// id: "1001",
// num: coin,
// compensate: compensate
// }
// cc.fx.GameTool.shushu_Track("resource_get", dataTemp);
// const buyData = {
// item_id: productId,
// item_num: coin,
// item_price: price,
// cost_type: "cash",
// compensate: compensate
// }
// cc.fx.GameTool.shushu_Track("shop_buy", buyData);
// MiniGameSdk.API.shushu_SetSuperProperties(null, true);
// },
formatDate(date: Date): string {
const year = date.getFullYear();
@ -1363,42 +1164,6 @@ var GameTool = {
let dateStr = cc.fx.StorageMessage.getStorage("starter_pack");
},
//获取月卡有效期距离今天的天数
// getMonthlyCardValidityDays(): Promise<{ days: number, time: number }> {
// console.log("________________2");
// return new Promise((resolve, reject) => {
// Utils.getMonthlyCard((data) => {
// console.log("月卡返回时间:", data);
// if (data) {
// if (data.code === 1) {
// const validityTime = data.data.monthCardTime; // 后端返回的到期时间戳(毫秒)
// const today = new Date();
// today.setHours(0, 0, 0, 0);
// const todayMidnight = today.getTime();
// const expiryDate = new Date(validityTime);
// expiryDate.setHours(0, 0, 0, 0);
// const expiryMidnight = expiryDate.getTime();
// const diffMs = expiryMidnight - todayMidnight;
// const days = Math.floor(diffMs / 86400000);
// const remainingDays = Math.max(0, days);
// cc.fx.GameConfig.GM_INFO.monthTime = remainingDays;
// let obj = {
// days: remainingDays,
// time: validityTime,
// }
// resolve(obj);
// } else {
// // resolve(0); // 或 reject(data) 根据需要
// }
// }
// else {
// // resolve(0); // 或 reject(data) 根据需要
// }
// });
// });
// },
// 设置用户信息
setUserAvatar(callback: Function) {
//@ts-ignore

View File

@ -1,371 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>15.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{162,38}</string>
<key>spriteSourceSize</key>
<string>{162,38}</string>
<key>textureRect</key>
<string>{{1,1476},{162,38}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>allGet.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{516,164}</string>
<key>spriteSourceSize</key>
<string>{516,164}</string>
<key>textureRect</key>
<string>{{1,1196},{516,164}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>bgKuang.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{879,876}</string>
<key>spriteSourceSize</key>
<string>{879,876}</string>
<key>textureRect</key>
<string>{{1,1},{879,876}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>bgLittle.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{834,277}</string>
<key>spriteSourceSize</key>
<string>{834,277}</string>
<key>textureRect</key>
<string>{{1,879},{834,277}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>dailyQuests1.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{106,106}</string>
<key>spriteSourceSize</key>
<string>{106,106}</string>
<key>textureRect</key>
<string>{{624,1377},{106,106}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>dailyQuests2.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{106,106}</string>
<key>spriteSourceSize</key>
<string>{106,106}</string>
<key>textureRect</key>
<string>{{732,1377},{106,106}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>dailyQuests3.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{106,106}</string>
<key>spriteSourceSize</key>
<string>{106,106}</string>
<key>textureRect</key>
<string>{{837,1082},{106,106}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>dailyQuests4.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{106,106}</string>
<key>spriteSourceSize</key>
<string>{106,106}</string>
<key>textureRect</key>
<string>{{815,1190},{106,106}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>dailyQuests5.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{106,106}</string>
<key>spriteSourceSize</key>
<string>{106,106}</string>
<key>textureRect</key>
<string>{{840,1298},{106,106}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>dayTitle.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{258,65}</string>
<key>spriteSourceSize</key>
<string>{258,65}</string>
<key>textureRect</key>
<string>{{519,1310},{258,65}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>fuhao.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{31,45}</string>
<key>spriteSourceSize</key>
<string>{31,45}</string>
<key>textureRect</key>
<string>{{882,771},{31,45}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>getBtn.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{294,112}</string>
<key>spriteSourceSize</key>
<string>{294,112}</string>
<key>textureRect</key>
<string>{{1,1362},{294,112}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>icon.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{80,37}</string>
<key>spriteSourceSize</key>
<string>{80,37}</string>
<key>textureRect</key>
<string>{{165,1476},{80,37}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>jindut.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{768,36}</string>
<key>spriteSourceSize</key>
<string>{768,36}</string>
<key>textureRect</key>
<string>{{882,1},{768,36}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>jindut01.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{768,36}</string>
<key>spriteSourceSize</key>
<string>{768,36}</string>
<key>textureRect</key>
<string>{{1,1158},{768,36}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>jumpBtn.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{294,112}</string>
<key>spriteSourceSize</key>
<string>{294,112}</string>
<key>textureRect</key>
<string>{{519,1196},{294,112}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>openDay.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{154,174}</string>
<key>spriteSourceSize</key>
<string>{154,174}</string>
<key>textureRect</key>
<string>{{297,1362},{154,174}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>title1.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{186,44}</string>
<key>spriteSourceSize</key>
<string>{186,44}</string>
<key>textureRect</key>
<string>{{920,571},{186,44}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>title2.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{379,46}</string>
<key>spriteSourceSize</key>
<string>{379,46}</string>
<key>textureRect</key>
<string>{{920,1},{379,46}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>title3.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{184,44}</string>
<key>spriteSourceSize</key>
<string>{184,44}</string>
<key>textureRect</key>
<string>{{877,879},{184,44}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>title4.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{187,45}</string>
<key>spriteSourceSize</key>
<string>{187,45}</string>
<key>textureRect</key>
<string>{{920,382},{187,45}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>updateTitle.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{201,38}</string>
<key>spriteSourceSize</key>
<string>{201,38}</string>
<key>textureRect</key>
<string>{{837,879},{201,38}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>xiaoren.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{131,149}</string>
<key>spriteSourceSize</key>
<string>{131,149}</string>
<key>textureRect</key>
<string>{{473,1377},{131,149}}</string>
<key>textureRotated</key>
<true/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>format</key>
<integer>3</integer>
<key>pixelFormat</key>
<string>RGBA8888</string>
<key>premultiplyAlpha</key>
<false/>
<key>realTextureFileName</key>
<string>DailyQuests.png</string>
<key>size</key>
<string>{967,1517}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:b6d038cedabcb2d51dcc4bdca1eddf43:3aee5dcbe124d22516ae6ca7458e202b:e8e9bbf140e919199f05df27e9dd8979$</string>
<key>textureFileName</key>
<string>DailyQuests.png</string>
</dict>
</dict>
</plist>

View File

@ -1,542 +0,0 @@
{
"ver": "1.2.6",
"uuid": "2e466cd1-95aa-4e3c-bb69-759c50404dd1",
"importer": "asset",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"size": {
"width": 967,
"height": 1517
},
"type": "Texture Packer",
"subMetas": {
"15.png": {
"ver": "1.0.6",
"uuid": "11ecd330-0759-43eb-88a0-b0accc4ae798",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1476,
"width": 162,
"height": 38,
"rawWidth": 162,
"rawHeight": 38,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"allGet.png": {
"ver": "1.0.6",
"uuid": "e58fcacb-1189-4c5c-a0c0-4d2ef8fe52ad",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1196,
"width": 516,
"height": 164,
"rawWidth": 516,
"rawHeight": 164,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"bgKuang.png": {
"ver": "1.0.6",
"uuid": "35bf5f97-fef6-42d8-8094-2887a2c3b033",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"width": 879,
"height": 876,
"rawWidth": 879,
"rawHeight": 876,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"bgLittle.png": {
"ver": "1.0.6",
"uuid": "9443a1fd-81dd-4cc3-8904-c466d142aada",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 879,
"width": 834,
"height": 277,
"rawWidth": 834,
"rawHeight": 277,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"dailyQuests1.png": {
"ver": "1.0.6",
"uuid": "ee22ad0e-4e0c-4e92-8fb2-ba79bfecc598",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 624,
"trimY": 1377,
"width": 106,
"height": 106,
"rawWidth": 106,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"dailyQuests2.png": {
"ver": "1.0.6",
"uuid": "48dbc128-13f7-471a-a97f-da8a0de98e2e",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 732,
"trimY": 1377,
"width": 106,
"height": 106,
"rawWidth": 106,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"dailyQuests3.png": {
"ver": "1.0.6",
"uuid": "a28d2aa6-472a-4371-a9a0-b5489ef0eada",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 837,
"trimY": 1082,
"width": 106,
"height": 106,
"rawWidth": 106,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"dailyQuests4.png": {
"ver": "1.0.6",
"uuid": "a01b7b8b-d12f-4a2c-ab1d-684c5618120b",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 815,
"trimY": 1190,
"width": 106,
"height": 106,
"rawWidth": 106,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"dailyQuests5.png": {
"ver": "1.0.6",
"uuid": "f233562b-b0bf-4340-adbe-c52b22e3157d",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 840,
"trimY": 1298,
"width": 106,
"height": 106,
"rawWidth": 106,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"dayTitle.png": {
"ver": "1.0.6",
"uuid": "9aff6d7a-201e-4691-a99e-6f033ebf1a42",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 519,
"trimY": 1310,
"width": 258,
"height": 65,
"rawWidth": 258,
"rawHeight": 65,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"fuhao.png": {
"ver": "1.0.6",
"uuid": "b534af29-fa28-4c73-903e-29dbc62c719f",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 882,
"trimY": 771,
"width": 31,
"height": 45,
"rawWidth": 31,
"rawHeight": 45,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"getBtn.png": {
"ver": "1.0.6",
"uuid": "414ac329-666b-484c-825e-8feb0c0d4170",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1362,
"width": 294,
"height": 112,
"rawWidth": 294,
"rawHeight": 112,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"icon.png": {
"ver": "1.0.6",
"uuid": "8c511e4a-7f66-449d-beec-75fe45e159dd",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 165,
"trimY": 1476,
"width": 80,
"height": 37,
"rawWidth": 80,
"rawHeight": 37,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"jindut.png": {
"ver": "1.0.6",
"uuid": "ccfdaade-8f72-4636-8774-07ac95ec8817",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 882,
"trimY": 1,
"width": 768,
"height": 36,
"rawWidth": 768,
"rawHeight": 36,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"jindut01.png": {
"ver": "1.0.6",
"uuid": "170d9827-4e52-4c49-aeaa-4d2f54d3aa65",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1158,
"width": 768,
"height": 36,
"rawWidth": 768,
"rawHeight": 36,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"jumpBtn.png": {
"ver": "1.0.6",
"uuid": "0c60f4d2-464a-44be-9cda-689b17043553",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 519,
"trimY": 1196,
"width": 294,
"height": 112,
"rawWidth": 294,
"rawHeight": 112,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"openDay.png": {
"ver": "1.0.6",
"uuid": "f75337ae-a288-4497-92e6-c3486c78cfe1",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 297,
"trimY": 1362,
"width": 154,
"height": 174,
"rawWidth": 154,
"rawHeight": 174,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"title1.png": {
"ver": "1.0.6",
"uuid": "8dbc1b65-1250-48db-9b75-412f44edd6b9",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 920,
"trimY": 571,
"width": 186,
"height": 44,
"rawWidth": 186,
"rawHeight": 44,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"title2.png": {
"ver": "1.0.6",
"uuid": "56df0374-c70d-4550-8bbf-490e4cf3821e",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 920,
"trimY": 1,
"width": 379,
"height": 46,
"rawWidth": 379,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"title3.png": {
"ver": "1.0.6",
"uuid": "751060b7-8139-426e-af56-245f0911ab34",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 877,
"trimY": 879,
"width": 184,
"height": 44,
"rawWidth": 184,
"rawHeight": 44,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"title4.png": {
"ver": "1.0.6",
"uuid": "b71f0cef-3240-42c1-bd81-5da86e69dbd9",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 920,
"trimY": 382,
"width": 187,
"height": 45,
"rawWidth": 187,
"rawHeight": 45,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"updateTitle.png": {
"ver": "1.0.6",
"uuid": "90966c3c-bd2b-4d62-adf3-5db0157571d7",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 837,
"trimY": 879,
"width": 201,
"height": 38,
"rawWidth": 201,
"rawHeight": 38,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
},
"xiaoren.png": {
"ver": "1.0.6",
"uuid": "908c3c41-afef-41fc-a899-4631a0378445",
"importer": "sprite-frame",
"rawTextureUuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 473,
"trimY": 1377,
"width": 131,
"height": 149,
"rawWidth": 131,
"rawHeight": 149,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"spriteType": "normal",
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

View File

@ -1,15 +0,0 @@
{
"ver": "2.3.7",
"uuid": "5ffe5ac7-fa91-45d7-9454-7e9215be185b",
"importer": "texture",
"type": "raw",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 967,
"height": 1517,
"platformSettings": {},
"subMetas": {}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

View File

@ -1,38 +0,0 @@
{
"ver": "2.3.7",
"uuid": "4f0d5cd6-4465-4ed6-b990-efd65fee962a",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 954,
"height": 1319,
"platformSettings": {},
"subMetas": {
"bg": {
"ver": "1.0.6",
"uuid": "d0aa980b-a3b8-4920-abfb-110bc2f92f56",
"importer": "sprite-frame",
"rawTextureUuid": "4f0d5cd6-4465-4ed6-b990-efd65fee962a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 954,
"height": 1319,
"rawWidth": 954,
"rawHeight": 1319,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +0,0 @@
{
"ver": "1.3.2",
"uuid": "2d9e3cf1-b363-4876-bdb1-a301b993260c",
"importer": "prefab",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +0,0 @@
{
"ver": "1.3.2",
"uuid": "aef6a950-9de0-464a-84a1-1efe22adecc8",
"importer": "prefab",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

View File

@ -32,5 +32,5 @@
"isGameTourist": false,
"appid": "wxe69a671ea2c93af3",
"editorSetting": {},
"libVersion": "1.0.1"
"libVersion": "1.0.0"
}

View File

@ -1,5 +1,5 @@
{
"title": "ColorBlockAD",
"title": "colorBlock_iaa",
"packageName": "org.cocos2d.demo",
"startScene": "ea96c58a-b731-4349-bcfc-c446571823ad",
"excludeScenes": [],

View File

@ -1,5 +1,5 @@
{
"last-module-event-record-time": 1759124996111,
"last-module-event-record-time": 1759996464818,
"group-list": [
"default",
"Map"