Merge branch 'main' of https://git.sparkus.cn/yangzhao/cb
# Conflicts: # assets/Scene/GameScene.fire # assets/UI/UI/pop/gameui.plist.meta
This commit is contained in:
commit
371d0a519d
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -182,6 +182,7 @@ export default class JiaZai extends cc.Component {
|
||||||
|
|
||||||
// //打开heath弹窗
|
// //打开heath弹窗
|
||||||
// this.openHeath();
|
// this.openHeath();
|
||||||
|
this.uploadToCloud(cc.fx.GameConfig.GM_INFO.level + 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,7 +294,17 @@ export default class JiaZai extends cc.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uploadToCloud(level: number) {
|
||||||
|
if (typeof wx !== 'undefined') {
|
||||||
|
wx.setUserCloudStorage({
|
||||||
|
KVDataList: [
|
||||||
|
{ key: 'level', value: String(level) }
|
||||||
|
],
|
||||||
|
success: () => console.log('✅ 数据上传成功'),
|
||||||
|
fail: (err) => console.error('❌ 上传失败', err)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
setHealthInfo() {
|
setHealthInfo() {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
import ranking from "./ranking";
|
||||||
|
|
||||||
|
|
||||||
const {ccclass, property, requireComponent} = cc._decorator;
|
const { ccclass, property, requireComponent } = cc._decorator;
|
||||||
|
|
||||||
@ccclass
|
@ccclass
|
||||||
export default class NewClass extends cc.Component {
|
export default class NewClass extends cc.Component {
|
||||||
|
@ -26,7 +27,7 @@ export default class NewClass extends cc.Component {
|
||||||
@property(cc.Label)
|
@property(cc.Label)
|
||||||
testVersion: cc.Label = null;
|
testVersion: cc.Label = null;
|
||||||
|
|
||||||
onLoad () {
|
onLoad() {
|
||||||
// cc.director.getPhysicsManager().enabled = true;
|
// cc.director.getPhysicsManager().enabled = true;
|
||||||
// cc.director.getPhysicsManager().debugDrawFlags = 1;
|
// cc.director.getPhysicsManager().debugDrawFlags = 1;
|
||||||
// cc.director.getPhysicsManager().enabledAccumulator = true;
|
// cc.director.getPhysicsManager().enabledAccumulator = true;
|
||||||
|
@ -55,37 +56,46 @@ export default class NewClass extends cc.Component {
|
||||||
|
|
||||||
|
|
||||||
cc.tween(this.node1)
|
cc.tween(this.node1)
|
||||||
.delay(0 * 0.3)
|
.delay(0 * 0.3)
|
||||||
.to(0.3, {scale: 1})
|
.to(0.3, { scale: 1 })
|
||||||
.to(0.3, {scale: 1.3})
|
.to(0.3, { scale: 1.3 })
|
||||||
.to(0.3, {scale: 1})
|
.to(0.3, { scale: 1 })
|
||||||
.union()
|
.union()
|
||||||
.repeatForever()
|
.repeatForever()
|
||||||
.start();
|
.start();
|
||||||
|
|
||||||
cc.tween(this.node2)
|
cc.tween(this.node2)
|
||||||
.delay(1 * 0.3)
|
.delay(1 * 0.3)
|
||||||
.to(0.3, {scale: 1})
|
.to(0.3, { scale: 1 })
|
||||||
.to(0.3, {scale: 1.3})
|
.to(0.3, { scale: 1.3 })
|
||||||
.to(0.3, {scale: 1})
|
.to(0.3, { scale: 1 })
|
||||||
.union()
|
.union()
|
||||||
.repeatForever()
|
.repeatForever()
|
||||||
.start();
|
.start();
|
||||||
|
|
||||||
cc.tween(this.node3)
|
cc.tween(this.node3)
|
||||||
.delay(2 * 0.3)
|
.delay(2 * 0.3)
|
||||||
.to(0.3, {scale: 1})
|
.to(0.3, { scale: 1 })
|
||||||
.to(0.3, {scale: 1.3})
|
.to(0.3, { scale: 1.3 })
|
||||||
.to(0.3, {scale: 1})
|
.to(0.3, { scale: 1 })
|
||||||
.union()
|
.union()
|
||||||
.repeatForever()
|
.repeatForever()
|
||||||
.start();
|
.start();
|
||||||
|
//this.SubContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
setWX(){
|
// SubContext() {
|
||||||
|
// if (typeof wx === 'undefined') {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// wx.getOpenDataContext().postMessage({
|
||||||
|
// message: 'show'
|
||||||
|
// });
|
||||||
|
// console.log("加载子域");
|
||||||
|
// }
|
||||||
|
setWX() {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
if (typeof wx !== 'undefined' && wx !== null) { // 判断是否在微信环境
|
if (typeof wx !== 'undefined' && wx !== null) { // 判断是否在微信环境
|
||||||
wx.setPreferredFramesPerSecond(60);
|
wx.setPreferredFramesPerSecond(60);
|
||||||
|
|
||||||
|
|
||||||
|
@ -99,10 +109,10 @@ export default class NewClass extends cc.Component {
|
||||||
// });
|
// });
|
||||||
|
|
||||||
wx.onShareAppMessage(function () {
|
wx.onShareAppMessage(function () {
|
||||||
// 用户点击了“转发”按钮
|
// 用户点击了“转发”按钮
|
||||||
return {
|
return {
|
||||||
title: '你想玩上怎样的游戏?'
|
title: '你想玩上怎样的游戏?'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -163,17 +173,17 @@ export default class NewClass extends cc.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
//开始游戏,跳转至引导页面
|
//开始游戏,跳转至引导页面
|
||||||
startGame(){
|
startGame() {
|
||||||
cc.director.loadScene("GameScene");
|
cc.director.loadScene("GameScene");
|
||||||
// cc.director.loadScene("GuideScene");
|
// cc.director.loadScene("GuideScene");
|
||||||
}
|
}
|
||||||
//备用,用来测试跳转 指定关卡
|
//备用,用来测试跳转 指定关卡
|
||||||
clickBtn(event,data){
|
clickBtn(event, data) {
|
||||||
cc.fx.GameConfig.GM_INFO.custom = parseInt(data);
|
cc.fx.GameConfig.GM_INFO.custom = parseInt(data);
|
||||||
cc.director.loadScene("GameScene");
|
cc.director.loadScene("GameScene");
|
||||||
}
|
}
|
||||||
//打开排行榜
|
//打开排行榜
|
||||||
openRank(){
|
openRank() {
|
||||||
cc.director.loadScene("RankScene");
|
cc.director.loadScene("RankScene");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,21 +191,21 @@ export default class NewClass extends cc.Component {
|
||||||
protected update(dt: number): void {
|
protected update(dt: number): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3月17日 - 3月21日 工作完成内容
|
// 3月17日 - 3月21日 工作完成内容
|
||||||
|
|
||||||
// 1:游戏框架搭建
|
// 1:游戏框架搭建
|
||||||
// 2:制作18个基础方块预制体 (方块可编辑颜色与道具和状态)
|
// 2:制作18个基础方块预制体 (方块可编辑颜色与道具和状态)
|
||||||
// 3:完成地图的搭建,可配置8*8以内,任意组合,包括可缺口和障碍物配置
|
// 3:完成地图的搭建,可配置8*8以内,任意组合,包括可缺口和障碍物配置
|
||||||
// 4:完成地图墙面建立,根据 ↑3上面构建的地图自动生成墙体。
|
// 4:完成地图墙面建立,根据 ↑3上面构建的地图自动生成墙体。
|
||||||
// 5:做完方块的基础移动,跟随手指,遇到方块或者墙壁或者障碍物阻碍移动。
|
// 5:做完方块的基础移动,跟随手指,遇到方块或者墙壁或者障碍物阻碍移动。
|
||||||
// 6:方块的自动落点做完11个基础方块的(未做完还差11个)
|
// 6:方块的自动落点做完11个基础方块的(未做完还差11个)
|
||||||
|
|
||||||
// 3月24日 - 3月28日 预计完成目标
|
// 3月24日 - 3月28日 预计完成目标
|
||||||
|
|
||||||
// 1:完成全部方块的落点。
|
// 1:完成全部方块的落点。
|
||||||
// 2:完成门的搭建,门可选颜色,可选开关或者星星等特殊状态
|
// 2:完成门的搭建,门可选颜色,可选开关或者星星等特殊状态
|
||||||
// 3:完成方块通过门的游戏逻辑,使游戏可以最基础运行玩起来
|
// 3:完成方块通过门的游戏逻辑,使游戏可以最基础运行玩起来
|
||||||
// 4:出5关版本,配合小白备案审核。
|
// 4:出5关版本,配合小白备案审核。
|
||||||
// 5:根据方块,地图,以及道具,制作地图编辑器 (方块和地图制作的时候都已经考虑到编辑器的需求了)
|
// 5:根据方块,地图,以及道具,制作地图编辑器 (方块和地图制作的时候都已经考虑到编辑器的需求了)
|
||||||
// 优先制作,后续开发拓展玩法功能时,小白可同步进行制作关卡。
|
// 优先制作,后续开发拓展玩法功能时,小白可同步进行制作关卡。
|
||||||
}
|
}
|
||||||
|
|
|
@ -1422,6 +1422,7 @@ export default class MapConroler extends cc.Component {
|
||||||
getChildByName("nextBtn").getComponent("btnControl").setTouch(false);
|
getChildByName("nextBtn").getComponent("btnControl").setTouch(false);
|
||||||
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
|
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
|
||||||
console.log("下一关", cc.fx.GameConfig.GM_INFO.level);
|
console.log("下一关", cc.fx.GameConfig.GM_INFO.level);
|
||||||
|
this.uploadToCloud(cc.fx.GameConfig.GM_INFO.level + 1);
|
||||||
if (cc.fx.GameConfig.GM_INFO.level > 249) {
|
if (cc.fx.GameConfig.GM_INFO.level > 249) {
|
||||||
cc.fx.GameConfig.GM_INFO.level = 249;
|
cc.fx.GameConfig.GM_INFO.level = 249;
|
||||||
MiniGameSdk.API.showToast("每周更新,敬请期待!");
|
MiniGameSdk.API.showToast("每周更新,敬请期待!");
|
||||||
|
@ -1579,7 +1580,17 @@ export default class MapConroler extends cc.Component {
|
||||||
// }
|
// }
|
||||||
// this.node.parent.parent.parent.destroy();
|
// this.node.parent.parent.parent.destroy();
|
||||||
}
|
}
|
||||||
|
uploadToCloud(level: number) {
|
||||||
|
if (typeof wx !== 'undefined') {
|
||||||
|
wx.setUserCloudStorage({
|
||||||
|
KVDataList: [
|
||||||
|
{ key: 'level', value: String(level) }
|
||||||
|
],
|
||||||
|
success: () => console.log('✅ 数据上传成功'),
|
||||||
|
fail: (err) => console.error('❌ 上传失败', err)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
returnHome() {
|
returnHome() {
|
||||||
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
|
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
|
||||||
if (MapConroler._instance = null) {
|
if (MapConroler._instance = null) {
|
||||||
|
|
131
assets/Script/ranking.ts
Normal file
131
assets/Script/ranking.ts
Normal file
|
@ -0,0 +1,131 @@
|
||||||
|
// Learn TypeScript:
|
||||||
|
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
|
||||||
|
// Learn Attribute:
|
||||||
|
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
|
||||||
|
// Learn life-cycle callbacks:
|
||||||
|
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
|
||||||
|
|
||||||
|
const { ccclass, property } = cc._decorator;
|
||||||
|
|
||||||
|
@ccclass
|
||||||
|
export default class ranking extends cc.Component {
|
||||||
|
|
||||||
|
@property(cc.Node)
|
||||||
|
subContextView: cc.Node = null;
|
||||||
|
@property(cc.Node)
|
||||||
|
closeButton: cc.Node = null;
|
||||||
|
@property(cc.Node)
|
||||||
|
btnRanks: cc.Node = null;
|
||||||
|
private isShow: boolean = true;
|
||||||
|
// LIFE-CYCLE CALLBACKS:
|
||||||
|
onLoad() {
|
||||||
|
|
||||||
|
}
|
||||||
|
start() {
|
||||||
|
}
|
||||||
|
|
||||||
|
showRanks() {
|
||||||
|
this.btnRanks.active = true;
|
||||||
|
|
||||||
|
if (typeof wx === 'undefined') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// 设置容器可见
|
||||||
|
this.subContextView.active = true;
|
||||||
|
// 设置随机数(把这个当做玩家每局结算时的分数)
|
||||||
|
let score = Math.round(Math.random() * 10);
|
||||||
|
this.subContextView.getComponent(cc.SubContextView).updateSubContextViewport();
|
||||||
|
setTimeout(() => {
|
||||||
|
wx.getOpenDataContext().postMessage({
|
||||||
|
message: score
|
||||||
|
});
|
||||||
|
this.subContextView.getComponent(cc.SubContextView).updateSubContextViewport();
|
||||||
|
}, 200);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
onRanksBtnClicked() {
|
||||||
|
if (typeof wx === 'undefined') {
|
||||||
|
this.showRanks(); // 非微信环境直接显示
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 直接尝试获取用户信息
|
||||||
|
wx.getUserInfo({
|
||||||
|
success: (res) => {
|
||||||
|
console.log('用户已授权或刚刚授权', res.userInfo);
|
||||||
|
this.showRanks(); // ✅ 授权成功,显示排行榜
|
||||||
|
this.isShow = false;
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
console.log('用户拒绝授权', err);
|
||||||
|
// 可选:提示用户必须授权才能查看排行榜
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
protected update(dt: number): void {
|
||||||
|
// if (this.isShow) {
|
||||||
|
// this.onRanksBtnClicked();
|
||||||
|
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
closeRanks() {
|
||||||
|
console.log('关闭排行榜');
|
||||||
|
this.subContextView.getComponent(cc.SubContextView).updateSubContextViewport();
|
||||||
|
this.closeButton.active = false;
|
||||||
|
// 设置容器不可见,即关闭排行榜,并让开放域清空排名信息
|
||||||
|
this.subContextView.active = false;
|
||||||
|
wx.getOpenDataContext().postMessage({
|
||||||
|
message: 'close'
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
initUserInfoButton() {
|
||||||
|
// 微信授权,此代码来自Cocos官方
|
||||||
|
if (typeof wx === 'undefined') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let systemInfo = wx.getSystemInfoSync();
|
||||||
|
let width = systemInfo.windowWidth;
|
||||||
|
let height = systemInfo.windowHeight;
|
||||||
|
let button = wx.createUserInfoButton({
|
||||||
|
type: 'text',
|
||||||
|
text: '',
|
||||||
|
style: {
|
||||||
|
left: 0,
|
||||||
|
top: 0,
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
lineHeight: 40,
|
||||||
|
backgroundColor: '#00000000',
|
||||||
|
color: '#00000000',
|
||||||
|
textAlign: 'center',
|
||||||
|
fontSize: 10,
|
||||||
|
borderRadius: 4
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
button.onTap((res) => {
|
||||||
|
if (res.userInfo) {
|
||||||
|
// 可以在这里获取当前玩家的个人信息,如头像、微信名等。
|
||||||
|
console.log('授权成功!');
|
||||||
|
this.showRanks()
|
||||||
|
this.isShow = true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
console.log('授权失败!');
|
||||||
|
this.showRanks()
|
||||||
|
}
|
||||||
|
|
||||||
|
button.hide();
|
||||||
|
button.destroy();
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// update (dt) {}
|
||||||
|
}
|
10
assets/Script/ranking.ts.meta
Normal file
10
assets/Script/ranking.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"ver": "1.1.0",
|
||||||
|
"uuid": "8353385a-ecbd-479f-8129-fabbd1df3e64",
|
||||||
|
"importer": "typescript",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
203
assets/Script/ziyu.ts
Normal file
203
assets/Script/ziyu.ts
Normal file
|
@ -0,0 +1,203 @@
|
||||||
|
|
||||||
|
import List from "./List";
|
||||||
|
const { ccclass, property } = cc._decorator;
|
||||||
|
|
||||||
|
@ccclass
|
||||||
|
export default class NewClass extends cc.Component {
|
||||||
|
@property(cc.Node)
|
||||||
|
content: cc.Node = null;
|
||||||
|
@property(cc.Prefab)
|
||||||
|
itemPrefab: cc.Prefab = null;
|
||||||
|
private rankList: any;
|
||||||
|
private Player: cc.Node;
|
||||||
|
private listData: any;
|
||||||
|
private selfData: any;
|
||||||
|
private rankNumber: number;
|
||||||
|
private rankTotal: number;
|
||||||
|
private selfNode: cc.Node;
|
||||||
|
score: any;
|
||||||
|
allInfoList: any[];
|
||||||
|
//content: any;
|
||||||
|
|
||||||
|
|
||||||
|
onLoad() {
|
||||||
|
if (typeof wx === 'undefined') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
wx.onMessage(data => {
|
||||||
|
console.log('子域接收到消息:', data);
|
||||||
|
if (data.message) {
|
||||||
|
console.log('成功接入开放域');
|
||||||
|
//如果收到的消息是分数
|
||||||
|
if (typeof (data.message) == 'number') {
|
||||||
|
//上传分数
|
||||||
|
console.log('收到的分数', data.message);
|
||||||
|
this.score = data.message;
|
||||||
|
this.compareOldNewScore();
|
||||||
|
this.allInfoList = [];
|
||||||
|
this.getPlayerInfo();
|
||||||
|
}
|
||||||
|
//如果收到的是要清空域的消息
|
||||||
|
else if (data.message == 'clear') {
|
||||||
|
//清空排行榜
|
||||||
|
this.content.removeAllChildren();
|
||||||
|
} else if (data.message == 'preload') {
|
||||||
|
console.log('子域收到预加载消息');
|
||||||
|
// 预加载排行榜item
|
||||||
|
if (this.itemPrefab) {
|
||||||
|
// 这里可以根据需要进行更复杂的预加载,例如加载图片等
|
||||||
|
console.log('预加载排行榜itemPrefab成功');
|
||||||
|
} else {
|
||||||
|
console.error('itemPrefab 未赋值');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新:请读者在主域中比较分数,并调用wx.setUserCloudStorage这个API来更新云托管分数(该API可以在主域中使用),否则玩家只有在点击了排行榜按钮后才会将分数存入云托管。
|
||||||
|
// 逻辑:将每局分数与存储在本地的最高分进行比较,如果超过历史最高分数则同时更新本地和云托管数据。不需要再将分数传到子域。
|
||||||
|
compareOldNewScore() {
|
||||||
|
// 将传过来的新分数和之前玩的分数进行比较
|
||||||
|
wx.getUserCloudStorage({
|
||||||
|
keyList: ['score'],
|
||||||
|
success: (res) => {
|
||||||
|
if (res.KVDataList.length) {
|
||||||
|
let KVData = res.KVDataList[0];
|
||||||
|
let storedScore = Number(KVData['value']);
|
||||||
|
if (this.score > storedScore) {
|
||||||
|
// 如果新分数大于存储分数,则将新分数存入云托管
|
||||||
|
let newKVData = { key: 'score', value: String(this.score) }
|
||||||
|
this.setNewCloudScore(newKVData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// 如果第一次玩,那么直接将传过来的分数设置到云托管
|
||||||
|
let newKVData = { key: 'score', value: String(this.score) }
|
||||||
|
this.setNewCloudScore(newKVData);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
fail: (res) => {
|
||||||
|
console.log(res);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
setNewCloudScore(newKVData) {
|
||||||
|
// 设置新云托管分数(第一次游戏时,也调用该方法设置云托管分数)
|
||||||
|
wx.setUserCloudStorage({
|
||||||
|
KVDataList: [newKVData],
|
||||||
|
success: (res) => {
|
||||||
|
console.log('更新玩家分数成功!');
|
||||||
|
},
|
||||||
|
fail: (res) => {
|
||||||
|
console.log(res);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
getPlayerInfo() {
|
||||||
|
// 获取当前玩家信息
|
||||||
|
// 用于读者Demo测试,实际项目中获取排行榜只需要调用getFriendInfo方法
|
||||||
|
wx.getUserInfo({
|
||||||
|
openIdList: ['selfOpenId'],
|
||||||
|
lang: 'zh_CN',
|
||||||
|
success: (res) => {
|
||||||
|
let userInfo = res.data[0];
|
||||||
|
|
||||||
|
// 获取玩家微信名和头像url
|
||||||
|
let nickName = userInfo.nickName;
|
||||||
|
let avatarUrl = userInfo.avatarUrl;
|
||||||
|
|
||||||
|
// 生成多个当前玩家的信息(分数不同)
|
||||||
|
for (let i = 0; i < 40; i++) {
|
||||||
|
// 加入到数组中
|
||||||
|
this.allInfoList.push({
|
||||||
|
nickName: nickName,
|
||||||
|
avatarUrl: avatarUrl,
|
||||||
|
score: Math.round(Math.random() * 100)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 开始排名
|
||||||
|
this.makeRanks();
|
||||||
|
},
|
||||||
|
|
||||||
|
fail: (res) => {
|
||||||
|
console.log(res);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
getFriendInfo() {
|
||||||
|
// 获取同城好友信息(包括自身)
|
||||||
|
wx.getFriendCloudStorage({
|
||||||
|
keyList: ['score'],
|
||||||
|
success: (res) => {
|
||||||
|
for (let i = 0; i < res.data.length; i++) {
|
||||||
|
// 获取玩家微信名,头像url和分数
|
||||||
|
let nickName = res.data[i].nickname;
|
||||||
|
let avatarUrl = res.data[i].avatarUrl;
|
||||||
|
let score = 0;
|
||||||
|
if (res.data[i].KVDataList.length)
|
||||||
|
score = res.data[i].KVDataList[0]['value'];
|
||||||
|
|
||||||
|
// 加入到数组中
|
||||||
|
this.allInfoList.push({
|
||||||
|
nickName: nickName,
|
||||||
|
avatarUrl: avatarUrl,
|
||||||
|
score: score
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 开始排名
|
||||||
|
this.makeRanks();
|
||||||
|
},
|
||||||
|
|
||||||
|
fail: (res) => {
|
||||||
|
console.log(res);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
makeRanks() {
|
||||||
|
// 首先将allInfoList内部元素进行排序,根据分数来降序排列
|
||||||
|
this.allInfoList.sort((a, b) => {
|
||||||
|
return b['score'] - a['score'];
|
||||||
|
});
|
||||||
|
|
||||||
|
// 根据各个玩家的分数制作排名
|
||||||
|
for (let i = 0; i < this.allInfoList.length; i++) {
|
||||||
|
let nickName = this.allInfoList[i]['nickName'];
|
||||||
|
let avatarUrl = this.allInfoList[i]['avatarUrl'];
|
||||||
|
let score = this.allInfoList[i]['score'];
|
||||||
|
this.createItem(i + 1, nickName, avatarUrl, score);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
createItem(rank, nickName, avatarUrl, score) {
|
||||||
|
// 生成item
|
||||||
|
let item = cc.instantiate(this.itemPrefab);
|
||||||
|
|
||||||
|
// 排名
|
||||||
|
item.children[0].getComponent(cc.Label).string = String(rank);
|
||||||
|
// 微信名
|
||||||
|
item.children[4].getComponent(cc.Label).string = nickName;
|
||||||
|
// 分数
|
||||||
|
item.children[5].getComponent(cc.Label).string = score;
|
||||||
|
// 头像
|
||||||
|
cc.loader.load({ url: avatarUrl, type: 'png' }, (err, texture) => {
|
||||||
|
if (err) console.error(err);
|
||||||
|
item.children[1].getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
|
||||||
|
});
|
||||||
|
|
||||||
|
// 添加到content中
|
||||||
|
this.content.addChild(item);
|
||||||
|
}
|
||||||
|
start() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// update (dt) {}
|
||||||
|
}
|
10
assets/Script/ziyu.ts.meta
Normal file
10
assets/Script/ziyu.ts.meta
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"ver": "1.1.0",
|
||||||
|
"uuid": "6ff610c1-4a4b-4030-a777-c8e0cc2528b8",
|
||||||
|
"importer": "typescript",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
|
@ -172,7 +172,7 @@
|
||||||
},
|
},
|
||||||
"btn_lq.png": {
|
"btn_lq.png": {
|
||||||
"ver": "1.0.6",
|
"ver": "1.0.6",
|
||||||
"uuid": "3ae5e75c-8392-4417-821a-3f1f678e8f37",
|
"uuid": "9d485667-ac50-4367-807b-f5ef469b2df6",
|
||||||
"importer": "sprite-frame",
|
"importer": "sprite-frame",
|
||||||
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
|
@ -195,7 +195,7 @@
|
||||||
},
|
},
|
||||||
"btn_lq2.png": {
|
"btn_lq2.png": {
|
||||||
"ver": "1.0.6",
|
"ver": "1.0.6",
|
||||||
"uuid": "4a4bde66-2cc7-4af1-a9f0-18ac18857327",
|
"uuid": "48288f2c-087f-4ffb-88ec-8d386b3cfee2",
|
||||||
"importer": "sprite-frame",
|
"importer": "sprite-frame",
|
||||||
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
|
@ -678,7 +678,7 @@
|
||||||
},
|
},
|
||||||
"gui_chiuzi.png": {
|
"gui_chiuzi.png": {
|
||||||
"ver": "1.0.6",
|
"ver": "1.0.6",
|
||||||
"uuid": "c02391ba-5a13-43b4-9309-abeea5ba83ff",
|
"uuid": "b2e7f800-7deb-41af-b252-ef143637afde",
|
||||||
"importer": "sprite-frame",
|
"importer": "sprite-frame",
|
||||||
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
|
@ -701,7 +701,7 @@
|
||||||
},
|
},
|
||||||
"gui_mofa.png": {
|
"gui_mofa.png": {
|
||||||
"ver": "1.0.6",
|
"ver": "1.0.6",
|
||||||
"uuid": "d889f73e-6896-4b0e-a005-7e43d1790439",
|
"uuid": "7ca1fd9a-f782-4724-9314-edda1879b702",
|
||||||
"importer": "sprite-frame",
|
"importer": "sprite-frame",
|
||||||
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
|
@ -724,7 +724,7 @@
|
||||||
},
|
},
|
||||||
"gui_shizhong.png": {
|
"gui_shizhong.png": {
|
||||||
"ver": "1.0.6",
|
"ver": "1.0.6",
|
||||||
"uuid": "8bd68559-d587-4a13-84e1-f91985f27066",
|
"uuid": "f5a0c53e-da08-4b4a-a317-e4643f37e347",
|
||||||
"importer": "sprite-frame",
|
"importer": "sprite-frame",
|
||||||
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
|
@ -1644,7 +1644,7 @@
|
||||||
},
|
},
|
||||||
"txt_1c.png": {
|
"txt_1c.png": {
|
||||||
"ver": "1.0.6",
|
"ver": "1.0.6",
|
||||||
"uuid": "eb13e15f-96fa-4279-a8b6-cc323a844e7c",
|
"uuid": "96c15a92-de65-418b-b50a-bfd88632c62f",
|
||||||
"importer": "sprite-frame",
|
"importer": "sprite-frame",
|
||||||
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
|
@ -1667,7 +1667,7 @@
|
||||||
},
|
},
|
||||||
"txt_2c.png": {
|
"txt_2c.png": {
|
||||||
"ver": "1.0.6",
|
"ver": "1.0.6",
|
||||||
"uuid": "182da663-4430-4ae0-9c03-69f22cd90129",
|
"uuid": "616721ba-7e1e-4527-ae04-e85eab5f1294",
|
||||||
"importer": "sprite-frame",
|
"importer": "sprite-frame",
|
||||||
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
|
@ -1690,7 +1690,7 @@
|
||||||
},
|
},
|
||||||
"txt_3m.png": {
|
"txt_3m.png": {
|
||||||
"ver": "1.0.6",
|
"ver": "1.0.6",
|
||||||
"uuid": "f3a04cb3-1e2d-47c6-a313-1d7249d46c6b",
|
"uuid": "e9eaadb5-b97d-443a-b2fb-37788be15458",
|
||||||
"importer": "sprite-frame",
|
"importer": "sprite-frame",
|
||||||
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
|
@ -1713,7 +1713,7 @@
|
||||||
},
|
},
|
||||||
"txt_4m.png": {
|
"txt_4m.png": {
|
||||||
"ver": "1.0.6",
|
"ver": "1.0.6",
|
||||||
"uuid": "c41ded6a-8f6c-4a31-81ee-58d8c6ea7fbf",
|
"uuid": "e5407fd9-4e73-4c83-b03f-4aac59a10211",
|
||||||
"importer": "sprite-frame",
|
"importer": "sprite-frame",
|
||||||
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
|
@ -1736,7 +1736,7 @@
|
||||||
},
|
},
|
||||||
"txt_5t.png": {
|
"txt_5t.png": {
|
||||||
"ver": "1.0.6",
|
"ver": "1.0.6",
|
||||||
"uuid": "b11539ac-6f16-45f8-bfa0-9cb799d82c03",
|
"uuid": "4ce23cc5-ef36-458f-bd65-2183659ed1fb",
|
||||||
"importer": "sprite-frame",
|
"importer": "sprite-frame",
|
||||||
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
|
@ -1759,7 +1759,7 @@
|
||||||
},
|
},
|
||||||
"txt_6t.png": {
|
"txt_6t.png": {
|
||||||
"ver": "1.0.6",
|
"ver": "1.0.6",
|
||||||
"uuid": "0dd937c1-f7aa-4a64-8cef-8688c5c4cf77",
|
"uuid": "69f2ab69-c51f-49f3-92dc-9ca27bfe6e32",
|
||||||
"importer": "sprite-frame",
|
"importer": "sprite-frame",
|
||||||
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
"rawTextureUuid": "1f8faacb-88f6-4128-85d9-65adb5eeaa5d",
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
|
|
266
assets/UI/UI/pop/rankui.plist
Normal file
266
assets/UI/UI/pop/rankui.plist
Normal file
|
@ -0,0 +1,266 @@
|
||||||
|
<?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>Rankings.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{301,75}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{301,75}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{816,0},{301,75}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_1_1.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{101,111}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{101,111}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{0,0},{101,111}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_1_2.jpg</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{692,112}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{692,112}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{1117,0},{692,112}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_1_2.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{103,112}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{103,112}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{404,0},{103,112}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_2_1.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{101,111}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{101,111}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{101,0},{101,111}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_2_2.jpg</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{692,112}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{692,112}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{0,112},{692,112}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_2_2.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{103,112}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{103,112}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{507,0},{103,112}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_3_1.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{101,111}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{101,111}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{202,0},{101,111}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_3_2.jpg</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{692,112}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{692,112}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{692,112},{692,112}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_3_2.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{103,112}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{103,112}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{610,0},{103,112}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_4_1.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{101,111}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{101,111}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{303,0},{101,111}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_4_2.jpg</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{692,112}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{692,112}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{0,224},{692,112}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>paihang1_4_2.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{103,112}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{103,112}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{713,0},{103,112}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>tanchaungrank.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{994,1377}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{994,1377}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{858,388},{994,1377}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>tanchaungrank2.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{858,876}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{858,876}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{0,388},{858,876}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
<key>tanchuang3.png</key>
|
||||||
|
<dict>
|
||||||
|
<key>aliases</key>
|
||||||
|
<array/>
|
||||||
|
<key>spriteOffset</key>
|
||||||
|
<string>{0,0}</string>
|
||||||
|
<key>spriteSize</key>
|
||||||
|
<string>{720,164}</string>
|
||||||
|
<key>spriteSourceSize</key>
|
||||||
|
<string>{720,164}</string>
|
||||||
|
<key>textureRect</key>
|
||||||
|
<string>{{692,224},{720,164}}</string>
|
||||||
|
<key>textureRotated</key>
|
||||||
|
<false/>
|
||||||
|
</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>rankui.png</string>
|
||||||
|
<key>size</key>
|
||||||
|
<string>{1852,1765}</string>
|
||||||
|
<key>smartupdate</key>
|
||||||
|
<string>$TexturePacker:SmartUpdate:11bbb43df0f5c4ef019f8e41513ca801:032b4d661f80a0bcb915edbbd818f2ee:9632a610bdeb8e9e1086d36cc9b0dcf5$</string>
|
||||||
|
<key>textureFileName</key>
|
||||||
|
<string>rankui.png</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
381
assets/UI/UI/pop/rankui.plist.meta
Normal file
381
assets/UI/UI/pop/rankui.plist.meta
Normal file
|
@ -0,0 +1,381 @@
|
||||||
|
{
|
||||||
|
"ver": "1.2.6",
|
||||||
|
"uuid": "46fcd116-bb2b-4442-9109-92599d6b0b08",
|
||||||
|
"importer": "asset",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"size": {
|
||||||
|
"width": 1852,
|
||||||
|
"height": 1765
|
||||||
|
},
|
||||||
|
"type": "Texture Packer",
|
||||||
|
"subMetas": {
|
||||||
|
"Rankings.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "b3a763ca-9e88-4c98-a14e-44b11bb84a74",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 816,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 301,
|
||||||
|
"height": 75,
|
||||||
|
"rawWidth": 301,
|
||||||
|
"rawHeight": 75,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_1_1.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "2bb230c1-05e8-4422-a521-ed98a91d270e",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 101,
|
||||||
|
"height": 111,
|
||||||
|
"rawWidth": 101,
|
||||||
|
"rawHeight": 111,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_1_2.jpg": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "fafcbd99-fa00-478d-9359-57b391241703",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 1117,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 692,
|
||||||
|
"height": 112,
|
||||||
|
"rawWidth": 692,
|
||||||
|
"rawHeight": 112,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_1_2.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "a54a3093-0fee-400b-b3c0-c78bd84b3e25",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 404,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 103,
|
||||||
|
"height": 112,
|
||||||
|
"rawWidth": 103,
|
||||||
|
"rawHeight": 112,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_2_1.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "4740b6c7-17cc-44ba-a4d1-8cbf848de4dc",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 101,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 101,
|
||||||
|
"height": 111,
|
||||||
|
"rawWidth": 101,
|
||||||
|
"rawHeight": 111,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_2_2.jpg": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "996157c4-4861-45cb-9b7e-791f92d2fa4c",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 112,
|
||||||
|
"width": 692,
|
||||||
|
"height": 112,
|
||||||
|
"rawWidth": 692,
|
||||||
|
"rawHeight": 112,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_2_2.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "9bc7c334-d579-4328-b8e7-634cdcf6b238",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 507,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 103,
|
||||||
|
"height": 112,
|
||||||
|
"rawWidth": 103,
|
||||||
|
"rawHeight": 112,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_3_1.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "5f318a44-e47c-4b5a-84d4-d9fc0591afd9",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 202,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 101,
|
||||||
|
"height": 111,
|
||||||
|
"rawWidth": 101,
|
||||||
|
"rawHeight": 111,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_3_2.jpg": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "ea1131ed-da6b-4948-8cb8-f062ed1e7515",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 692,
|
||||||
|
"trimY": 112,
|
||||||
|
"width": 692,
|
||||||
|
"height": 112,
|
||||||
|
"rawWidth": 692,
|
||||||
|
"rawHeight": 112,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_3_2.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "c1bcd24b-efa0-4c38-92a6-ec384cc32031",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 610,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 103,
|
||||||
|
"height": 112,
|
||||||
|
"rawWidth": 103,
|
||||||
|
"rawHeight": 112,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_4_1.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "67aa1ff3-4cdb-4afe-b81d-59cd4ffd6698",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 303,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 101,
|
||||||
|
"height": 111,
|
||||||
|
"rawWidth": 101,
|
||||||
|
"rawHeight": 111,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_4_2.jpg": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "71ee30de-ac31-45c1-ab22-7cd09bcac36b",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 224,
|
||||||
|
"width": 692,
|
||||||
|
"height": 112,
|
||||||
|
"rawWidth": 692,
|
||||||
|
"rawHeight": 112,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"paihang1_4_2.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "3f292d94-8ed3-489c-8fe0-d1435b461e27",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 713,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 103,
|
||||||
|
"height": 112,
|
||||||
|
"rawWidth": 103,
|
||||||
|
"rawHeight": 112,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"tanchaungrank.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "1d933469-4b62-4266-9282-a6953cd73bb4",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 858,
|
||||||
|
"trimY": 388,
|
||||||
|
"width": 994,
|
||||||
|
"height": 1377,
|
||||||
|
"rawWidth": 994,
|
||||||
|
"rawHeight": 1377,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"tanchaungrank2.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "1f91b115-e966-4271-84ff-dc7913956e97",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 388,
|
||||||
|
"width": 858,
|
||||||
|
"height": 876,
|
||||||
|
"rawWidth": 858,
|
||||||
|
"rawHeight": 876,
|
||||||
|
"borderTop": 196,
|
||||||
|
"borderBottom": 325,
|
||||||
|
"borderLeft": 153,
|
||||||
|
"borderRight": 193,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
},
|
||||||
|
"tanchuang3.png": {
|
||||||
|
"ver": "1.0.6",
|
||||||
|
"uuid": "f58d9b09-7fbf-4a3c-ba01-e1704a88e68d",
|
||||||
|
"importer": "sprite-frame",
|
||||||
|
"rawTextureUuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 692,
|
||||||
|
"trimY": 224,
|
||||||
|
"width": 720,
|
||||||
|
"height": 164,
|
||||||
|
"rawWidth": 720,
|
||||||
|
"rawHeight": 164,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"spriteType": "normal",
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
assets/UI/UI/pop/rankui.png
Normal file
BIN
assets/UI/UI/pop/rankui.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 162 KiB |
15
assets/UI/UI/pop/rankui.png.meta
Normal file
15
assets/UI/UI/pop/rankui.png.meta
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"ver": "2.3.7",
|
||||||
|
"uuid": "8af5fd42-07fa-4b62-ac3a-8d10910ddcdf",
|
||||||
|
"importer": "texture",
|
||||||
|
"type": "raw",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"genMipmaps": false,
|
||||||
|
"packable": true,
|
||||||
|
"width": 1790,
|
||||||
|
"height": 1765,
|
||||||
|
"platformSettings": {},
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
9
assets/animation/magic.anim
Normal file
9
assets/animation/magic.anim
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"__type__": "cc.AnimationClip",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"_duration": 0,
|
||||||
|
"sample": 60,
|
||||||
|
"curveData": {},
|
||||||
|
"events": []
|
||||||
|
}
|
6
assets/animation/magic.anim.meta
Normal file
6
assets/animation/magic.anim.meta
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"ver": "2.1.2",
|
||||||
|
"uuid": "b91a09d2-1614-49b6-a21e-b286a2441cb6",
|
||||||
|
"importer": "animation-clip",
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
1339
assets/prefab/pop/rank.prefab
Normal file
1339
assets/prefab/pop/rank.prefab
Normal file
File diff suppressed because it is too large
Load Diff
9
assets/prefab/pop/rank.prefab.meta
Normal file
9
assets/prefab/pop/rank.prefab.meta
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"ver": "1.3.2",
|
||||||
|
"uuid": "87c131ed-1e2f-4cf8-9fe0-0d7d49f73c5b",
|
||||||
|
"importer": "prefab",
|
||||||
|
"optimizationPolicy": "AUTO",
|
||||||
|
"asyncLoadAssets": false,
|
||||||
|
"readonly": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
|
@ -3,6 +3,6 @@
|
||||||
"orientation": "portrait",
|
"orientation": "portrait",
|
||||||
"separate_engine": false,
|
"separate_engine": false,
|
||||||
"REMOTE_SERVER_ROOT": "",
|
"REMOTE_SERVER_ROOT": "",
|
||||||
"subContext": "",
|
"subContext": "SubContextView",
|
||||||
"startSceneAssetBundle": true
|
"startSceneAssetBundle": true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user