Commit d022180d authored by liujiaxin's avatar liujiaxin

feat: change skin

parent d56aa152
...@@ -28,11 +28,11 @@ export default class ChangeItemAnimation extends cc.Component { ...@@ -28,11 +28,11 @@ export default class ChangeItemAnimation extends cc.Component {
this.armatureDisplay = this.animNode.getComponent(dragonBones.ArmatureDisplay); this.armatureDisplay = this.animNode.getComponent(dragonBones.ArmatureDisplay);
this.armatureDisplay.addEventListener(dragonBones.EventObject.COMPLETE, this.OnCallAnimationPlayComplete, this); this.armatureDisplay.addEventListener(dragonBones.EventObject.COMPLETE, this.OnCallAnimationPlayComplete, this);
// @ts-ignore // @ts-ignore
this.node.changeSkin = this.changeSkin.bind(this) this.node.changeFurniture = this.changeFurniture.bind(this)
} }
changeSkin (data) { changeFurniture (data) {
pg.view.setNetImg(this.node, data.itemImage, false).then(() => { pg.view.setNetImg(this.node, data.itemImage, false).then(({w, h}) => {
console.log({w, h})
let {x, y, width, height} = this.node; let {x, y, width, height} = this.node;
if (data.rect) { if (data.rect) {
x = data.rect.x; x = data.rect.x;
...@@ -43,6 +43,10 @@ export default class ChangeItemAnimation extends cc.Component { ...@@ -43,6 +43,10 @@ export default class ChangeItemAnimation extends cc.Component {
this.node.y = y; this.node.y = y;
this.node.width = width; this.node.width = width;
this.node.height = height; this.node.height = height;
this.node.active = false;
setTimeout(() => {
this.node.active = true;
})
} }
user.updateFurniture(data, { user.updateFurniture(data, {
x, y, width, height x, y, width, height
......
...@@ -111,7 +111,7 @@ const USER = { ...@@ -111,7 +111,7 @@ const USER = {
growthDailyMax: 100, growthDailyMax: 100,
eatTime: new Date().getTime(), eatTime: new Date().getTime(),
useFurniture: [], useFurniture: [],
useClothes: [], useClothes: 13,
mood: "开心" mood: "开心"
} }
enum ITEM_TYPE { enum ITEM_TYPE {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -10,6 +10,8 @@ import HouseItem from "./model/house-item"; ...@@ -10,6 +10,8 @@ import HouseItem from "./model/house-item";
import kitchen from "./model/kitchen"; import kitchen from "./model/kitchen";
import { ITEM_TYPE } from "./config/config"; import { ITEM_TYPE } from "./config/config";
import house from "./model/house"; import house from "./model/house";
import dress from "./model/dress";
import PengPeng from "./pengpeng";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
...@@ -70,7 +72,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -70,7 +72,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
@property(cc.AudioClip) @property(cc.AudioClip)
starPop: cc.AudioClip = null; starPop: cc.AudioClip = null;
private pengpeng: PengPeng|null = null;
...@@ -96,13 +98,36 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -96,13 +98,36 @@ export default class SceneComponent extends MyCocosSceneComponent {
// globalThis.USER_TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2Mzk2MjE3MTIsImV4cCI6MTY0MjIxMzcxMiwiaWQiOjQwMDY2LCJwYXNzd29yZCI6IjE5QTEwM0E3NUUzM0QzQTNCODg0QkQxNTUwMjhENTA1Iiwic2Nob29sX2lkIjoyODYsInBob25lIjoiMTMxMDAwMDAwMDAiLCJuYW1lIjoi5bCP546J5rWL6K-VMCIsInN0YXR1cyI6MCwidHlwZSI6MCwicm9sZXMiOjEsImV4cGlyZWQiOiIyMDIyLTAzLTE5VDE2OjAwOjAwLjAwMFoiLCJzY2hvb2xfbmFtZSI6Iue7mOeOqea1i-ivleeOr-Wig-WtpuagoSIsInNjaG9vbF90eXBlIjoyLCJjcmVhdGVvbiI6MTU3MDc2MTk3NDAwMCwiY2xhc3NfbmFtZSI6IuS4ieW5tDHnj60iLCJjbGFzc19pbmZvIjpbeyJjbGFzc19pZCI6MzkxNSwiY2xhc3NfbmFtZSI6IuS4ieW5tDHnj60ifV0sIm90aGVycyI6W119.4T-Lnsl25aJ-rvUOCDwShq4F5u3BbR86ZLPew4zyULU" // globalThis.USER_TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2Mzk2MjE3MTIsImV4cCI6MTY0MjIxMzcxMiwiaWQiOjQwMDY2LCJwYXNzd29yZCI6IjE5QTEwM0E3NUUzM0QzQTNCODg0QkQxNTUwMjhENTA1Iiwic2Nob29sX2lkIjoyODYsInBob25lIjoiMTMxMDAwMDAwMDAiLCJuYW1lIjoi5bCP546J5rWL6K-VMCIsInN0YXR1cyI6MCwidHlwZSI6MCwicm9sZXMiOjEsImV4cGlyZWQiOiIyMDIyLTAzLTE5VDE2OjAwOjAwLjAwMFoiLCJzY2hvb2xfbmFtZSI6Iue7mOeOqea1i-ivleeOr-Wig-WtpuagoSIsInNjaG9vbF90eXBlIjoyLCJjcmVhdGVvbiI6MTU3MDc2MTk3NDAwMCwiY2xhc3NfbmFtZSI6IuS4ieW5tDHnj60iLCJjbGFzc19pbmZvIjpbeyJjbGFzc19pZCI6MzkxNSwiY2xhc3NfbmFtZSI6IuS4ieW5tDHnj60ifV0sIm90aGVycyI6W119.4T-Lnsl25aJ-rvUOCDwShq4F5u3BbR86ZLPew4zyULU"
// globalThis.CLIENT_TYPE = 'student' // globalThis.CLIENT_TYPE = 'student'
// globalThis.SERVER_HOST = 'http://192.168.3.127:3900' // globalThis.SERVER_HOST = 'http://192.168.3.127:3900'
globalThis.____GAME_ENV____ = { // globalThis.____GAME_ENV____ = {
baseUrl: isLocalDev ? 'http://192.168.99.41:3900/api/' : cc.find('middleLayer').getComponent('middleLayer').baseUrl, // baseUrl: isLocalDev ? 'http://192.168.99.41:3900/api/' : cc.find('middleLayer').getComponent('middleLayer').baseUrl,
token: isLocalDev // token: isLocalDev
? "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NTQ3Mzk5MzQsImV4cCI6MTY1NzMzMTkzNCwiaWQiOjE4LCJwYXNzd29yZCI6IkNDNkZBNjJEMjNFOTM1QjlBRUFGODMxQ0UwNEEyMzNEIiwic2Nob29sX2lkIjoxLCJwaG9uZSI6IjEzMzk5OTk5OTkxIiwibmFtZSI6IuWOu-WOu-WOuyIsInN0YXR1cyI6MCwidHlwZSI6MCwicm9sZXMiOjEsImV4cGlyZWQiOiIyMDIzLTEwLTI5VDE2OjAwOjAwLjAwMFoiLCJzY2hvb2xfbmFtZSI6IumYs-WFieaVmeiCsumbhuWbojciLCJzY2hvb2xfdHlwZSI6MSwiY3JlYXRlb24iOjE1NDE0OTc2NzYwMDB9.cOnkBbscUD4Dkc5ZqtH6WV6Nd7-KxvVitY6uRgLs6zQ" // ? "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NTQ3Mzk5MzQsImV4cCI6MTY1NzMzMTkzNCwiaWQiOjE4LCJwYXNzd29yZCI6IkNDNkZBNjJEMjNFOTM1QjlBRUFGODMxQ0UwNEEyMzNEIiwic2Nob29sX2lkIjoxLCJwaG9uZSI6IjEzMzk5OTk5OTkxIiwibmFtZSI6IuWOu-WOu-WOuyIsInN0YXR1cyI6MCwidHlwZSI6MCwicm9sZXMiOjEsImV4cGlyZWQiOiIyMDIzLTEwLTI5VDE2OjAwOjAwLjAwMFoiLCJzY2hvb2xfbmFtZSI6IumYs-WFieaVmeiCsumbhuWbojciLCJzY2hvb2xfdHlwZSI6MSwiY3JlYXRlb24iOjE1NDE0OTc2NzYwMDB9.cOnkBbscUD4Dkc5ZqtH6WV6Nd7-KxvVitY6uRgLs6zQ"
: cc.find('middleLayer').getComponent('middleLayer').token // : cc.find('middleLayer').getComponent('middleLayer').token
// }
if (cc.find('middleLayer')) {
globalThis.____GAME_ENV____ = {
baseUrl: cc.find('middleLayer').getComponent('middleLayer').baseUrl,
token: cc.find('middleLayer').getComponent('middleLayer').token
}
}
if (cc.sys.platform === cc.sys.DESKTOP_BROWSER ) {
const u = new URL(window.location.href);
const baseUrl = u.searchParams.get('baseUrl')
const token = u.searchParams.get('token')
if (baseUrl && token) {
globalThis.____GAME_ENV____ = {
baseUrl,
token
}
} else {
console.warn('in browser Env need baseUrl and token, eg. baseUrl is http://127.0.0.1:3900/api/ and token is xxxxx')
}
} }
// globalThis.SERVER_HOST = 'http://staging.ireadabc.com'
this.initGame(); this.initGame();
...@@ -125,9 +150,19 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -125,9 +150,19 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (typeof e == 'string' && e) { if (typeof e == 'string' && e) {
message = e message = e
} }
// add for relogn
let fn = null;
if (message.includes('重新登录') || message.includes('登陆') ) {
fn = () => {
cc.find('middleLayer').getComponent('middleLayer').exit();
}
}
this.openTipAlert({message, this.openTipAlert({message,
callback: () => { callback: () => {
this.closeTipAlert(); this.closeTipAlert();
if (fn && fn.call) {
fn()
}
this.fetchUserData(); this.fetchUserData();
}}) }})
}) })
...@@ -140,7 +175,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -140,7 +175,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
initData() { initData() {
// 所有全局变量 默认都是null // 所有全局变量 默认都是null
this._cantouch = true; this._cantouch = true;
this.elephentState(user.mood == 0 ? 1 : 2); this.pengpeng.elephentState(user.mood == 0 ? 1 : 2);
this.renderMyHouse(); this.renderMyHouse();
} }
...@@ -157,7 +192,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -157,7 +192,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.home = pg.view.find(this, "home"); this.home = pg.view.find(this, "home");
this.kitchen = pg.view.find(this, "kitchen"); this.kitchen = pg.view.find(this, "kitchen");
this.shop = pg.view.find(this, "shop"); this.shop = pg.view.find(this, "shop");
this.elephant = pg.view.find(this.home, "elephant"); // this.elephant = pg.view.find(this.home, "elephant");
const pengpengNode = pg.view.find(this.home, "pengpeng");
this.pengpeng = pengpengNode.getComponent('pengpeng')
this.loading = pg.view.find(this, "loading"); this.loading = pg.view.find(this, "loading");
this.exitButton = pg.view.find(this.home, "exit_btn"); this.exitButton = pg.view.find(this.home, "exit_btn");
} }
...@@ -220,13 +257,19 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -220,13 +257,19 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.view.touchOn(pg.view.find(this.home, "btn_kitchen"), this.onTouchKitchen, this); pg.view.touchOn(pg.view.find(this.home, "btn_kitchen"), this.onTouchKitchen, this);
}, this); }, this);
console.log('this.pengpeng', this.pengpeng);
const walkNode = pg.view.find(this.pengpeng, "walk")
walkNode.on(cc.Node.EventType.LONG_PRESS, function(){
console.log('walk cc.Node.EventType.LONG_PRESS')
this.onTouchPengPengToChange();
}, this);
pg.view.touchOn(pg.view.find(this.home, "btn_kitchen"), this.onTouchKitchen, this); pg.view.touchOn(pg.view.find(this.home, "btn_kitchen"), this.onTouchKitchen, this);
pg.view.touchOn(pg.view.find(this, "kitchen/btn_close"), this.onTouchKitchenClose, this); pg.view.touchOn(pg.view.find(this, "kitchen/btn_close"), this.onTouchKitchenClose, this);
pg.view.touchOn(pg.view.find(this.home, "btn_shop"), this.onTouchShop, this); pg.view.touchOn(pg.view.find(this.home, "btn_shop"), this.onTouchShop, this);
pg.view.touchOn(pg.view.find(this, "shop/btn_close"), this.onTouchShopClose, this); pg.view.touchOn(pg.view.find(this, "shop/btn_close"), this.onTouchShopClose, this);
pg.view.touchOn(pg.view.find(this.elephant, "walk"), this.onTouchElephent, this); // pg.view.touchOn(pg.view.find(this.elephant, "walk"), this.onTouchElephent, this);
pg.view.touchOn(pg.view.find(this.elephant, "panel_info/btn_close"), this.onTouchPanel, this); // pg.view.touchOn(pg.view.find(this.elephant, "panel_info/btn_close"), this.onTouchPanel, this);
pg.view.touchOn(this.exitButton, this.onExitPetRoom, this); pg.view.touchOn(this.exitButton, this.onExitPetRoom, this);
} }
renderMyHouse() { renderMyHouse() {
...@@ -234,8 +277,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -234,8 +277,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
const self = this; const self = this;
fur_kinds.forEach(kind => { fur_kinds.forEach(kind => {
const fur = user.myFurniture.furniture[kind]; const fur = user.myFurniture.furniture[kind];
console.log(kind, fur.rect) // console.log(kind, fur.rect)
house.setFurnitureItem(self[kind], fur.id, fur.rect); house.setFurnitureItem(self[kind], fur.id);
}); });
} }
//----------------------------商店部分-------------------------------------- //----------------------------商店部分--------------------------------------
...@@ -250,7 +293,21 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -250,7 +293,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.updateMyHouseItemsListView(kind); this.updateMyHouseItemsListView(kind);
this.skin_choice_dialog.active = true; this.skin_choice_dialog.active = true;
} }
// 小鹏鹏
onTouchPengPengToChange(){
let scroll = pg.view.find(this.skin_choice_dialog, "dialog/scrollview");
let svt = scroll.getComponent("svt");
let list = dress.list;
svt.list = list;
if (list.length == 0) {
return list;
}
svt.updateItem = this.updatemMyHouseItemsList;
svt.target = this;
svt.addNum = 2;
svt.flush();
this.skin_choice_dialog.active = true;
}
updateMyHouseItem(item, data: HouseItem) { updateMyHouseItem(item, data: HouseItem) {
item.active = true; item.active = true;
...@@ -263,12 +320,35 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -263,12 +320,35 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else { } else {
pg.view.visible(current, false); pg.view.visible(current, false);
} }
if (data.type == ITEM_TYPE.HOUSE) {
pg.view.touchOn(item, this.changeHouseItem.bind(this, data), this); pg.view.touchOn(item, this.changeHouseItem.bind(this, data), this);
} else {
pg.view.touchOn(item, this.changeDressItem.bind(this, data), this);
}
item.data = data; item.data = data;
} }
changeDressItem(data) {
console.log('chanchangeDressItemgeHouseItem', data);
const current = user.isCurrentDress(data.id);
if (current) {
return;
}
this.showWaitingLetters();
this.pengpeng?.changeDress(data).then(() => {
user.useClothes = data.id;
this.hideWaitingLetters();
Api.updateUserDress({id: data.id});
}).catch(e => {
this.openTipAlert({message: '皮肤加载失败,请退出重试(err: 1)',
callback: () => {
this.closeTipAlert();
}
})
});
this.skin_choice_dialog.active = false;
}
changeHouseItem(data) { changeHouseItem(data) {
console.log(data); console.log('changeHouseItem', data);
const {id, kind} = data; const {id, kind} = data;
const current = user.isCurrentFurniture(id, kind); const current = user.isCurrentFurniture(id, kind);
if (current) { if (current) {
...@@ -278,7 +358,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -278,7 +358,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// close dialog // close dialog
this.skin_choice_dialog.active = false; this.skin_choice_dialog.active = false;
// @ts-ignore // @ts-ignore
this[kind].changeSkin(data); this[kind].changeFurniture(data);
} }
updatemMyHouseItemsList(item, datas) { updatemMyHouseItemsList(item, datas) {
item.children.forEach(it => it.active = false); item.children.forEach(it => it.active = false);
...@@ -291,6 +371,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -291,6 +371,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
} }
} }
updateMyHouseItemsListView(kind) { updateMyHouseItemsListView(kind) {
let scroll = pg.view.find(this.skin_choice_dialog, "dialog/scrollview"); let scroll = pg.view.find(this.skin_choice_dialog, "dialog/scrollview");
let svt = scroll.getComponent("svt"); let svt = scroll.getComponent("svt");
...@@ -308,7 +389,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -308,7 +389,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
//商店按钮 //商店按钮
private shopType = 0; private shopType = 0;
onTouchShop() { onTouchShop() {console.log('onTouchShop')
this.shop.active = true; this.shop.active = true;
this.updateShopCoin(); this.updateShopCoin();
...@@ -337,7 +418,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -337,7 +418,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
onTouchShopHouse() { onTouchShopHouse() {
this.shopType = ITEM_TYPE.HOUSE; this.shopType = ITEM_TYPE.HOUSE;
const list = this.updateShopList(); const list = this.updateShopList();
if (!list.length) { if (!list.length) {
this.openTipEmpty(() => { this.openTipEmpty(() => {
this.closeTipEmpty(); this.closeTipEmpty();
...@@ -346,13 +426,15 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -346,13 +426,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
this.updateShopBtns(); this.updateShopBtns();
} }
onTouchShopClothes() { onTouchShopClothes() {console.log('onTouchShopClothes')
this.openTipEmpty(() => { this.shopType = ITEM_TYPE.CLOTHES;
this.closeTipEmpty(); const list = this.updateShopList();
}) if (!list.length) {
// this.shopType = ITEM_TYPE.CLOTHES; this.openTipEmpty(() => {
// this.updateShopList(); this.closeTipEmpty();
// this.updateShopBtns(); });
}
this.updateShopBtns();
} }
updateShopCoin() { updateShopCoin() {
let coin = pg.view.find(this.shop, "coin/num"); let coin = pg.view.find(this.shop, "coin/num");
...@@ -406,8 +488,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -406,8 +488,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
let icon = pg.view.find(item, "bg_food/icon"); let icon = pg.view.find(item, "bg_food/icon");
let discount = pg.view.find(item, "bg_food/discount"); let discount = pg.view.find(item, "bg_food/discount");
let btn_buy = pg.view.find(item, "bg_food/btn_buy"); let btn_buy = pg.view.find(item, "bg_food/btn_buy");
if(data.type == ITEM_TYPE.HOUSE && (data as HouseItem).num > 0) { if(([ITEM_TYPE.HOUSE, ITEM_TYPE.CLOTHES].includes(data.type)) && (data as HouseItem).num > 0) {
let own = pg.view.find(item, "bg_food/own"); let own = pg.view.find(item, "bg_food/own");
pg.view.visible(own, true); pg.view.visible(own, true);
} }
...@@ -433,13 +515,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -433,13 +515,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.view.touchOn(item, this.onTouchShopItem, this); pg.view.touchOn(item, this.onTouchShopItem, this);
item.data = data; item.data = data;
} }
onTouchShopItem(e) { onTouchShopItem(e) {console.log('onTouchShopItem')
let item = e.target; // .parent; let item = e.target; // .parent;
let data: Item = item.data; let data: Item = item.data;
let action = null; let action = null;
if (data.type == 1) { if (data.type == ITEM_TYPE.FOOD) {
action = this.buy.bind(this); action = this.buy.bind(this);
} else if (data.type == 2) { } else if (data.type == ITEM_TYPE.HOUSE || data.type == ITEM_TYPE.CLOTHES) {
//物品已购买 //物品已购买
if (data.num > 0) { if (data.num > 0) {
this.openTipNormal(data, () => { this.openTipNormal(data, () => {
...@@ -448,11 +530,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -448,11 +530,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
return; return;
} }
action = this.buy.bind(this); action = this.buy.bind(this);
} else if (data.type == 3) {
//物品已购买
if (data.num > 0) return;
action = this.buy.bind(this);
} }
if (!action) { if (!action) {
return; return;
} }
...@@ -462,7 +541,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -462,7 +541,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.openTipNormal(data, () => { this.openTipNormal(data, () => {
action(data); action(data);
this.closeTipNormal(); this.closeTipNormal();
}, () => { }, () => {
this.closeTipNormal(); this.closeTipNormal();
}) })
...@@ -565,14 +643,17 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -565,14 +643,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
} }
eating(data) { eating(data) {
//可以检测是否升级等---升级说明之类的 //可以检测是否升级等---升级说明之类的
this.showWaitingLetters(); this.showWaitingLetters();
window.aaaa = this;
Api.askUseItem(data).then((resp) => { Api.askUseItem(data).then((resp) => {
this.fetchUserData().then(ud => { this.fetchUserData().then(ud => {
this.hideWaitingLetters(true); this.hideWaitingLetters(true);
this.elephentState(3); // this.elephentState(3);
this.onTouchKitchenClose(); this.onTouchKitchenClose();
setTimeout(() => {
this.pengpeng.elephentState(3);
})
}).catch(e => { }).catch(e => {
this.hideWaitingLetters(true); this.hideWaitingLetters(true);
this.openTipAlert({message: '网络错误,请重试(err: 1)', this.openTipAlert({message: '网络错误,请重试(err: 1)',
...@@ -591,7 +672,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -591,7 +672,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}) })
} }
/*
//----------------------------主界面部分-------------------------------------- //----------------------------主界面部分--------------------------------------
//打开提示面板 //打开提示面板
onTouchElephent() { onTouchElephent() {
...@@ -719,6 +800,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -719,6 +800,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
playHungryAudio() { playHungryAudio() {
this.playLocalAudio("hungry"); this.playLocalAudio("hungry");
} }
*/
...@@ -728,13 +810,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -728,13 +810,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
private tip_fail: cc.Node; private tip_fail: cc.Node;
private tip_empty: cc.Node; private tip_empty: cc.Node;
private tip_alert: cc.Node; private tip_alert: cc.Node;
private tipSuccess: Function; private tipSuccess: Function|null;
private tipCancel: Function; private tipCancel: Function|null;
private tipBuySuccess: Function; private tipBuySuccess: Function|null;
private tipFailSuccess: Function; private tipFailSuccess: Function|null;
private tipFailCancel: Function; private tipFailCancel: Function|null;
private tipEmptySuccess: Function; private tipEmptySuccess: Function|null;
private tipAlertCallback: Function; private tipAlertCallback: Function|null;
private skin_choice_dialog: cc.Node; private skin_choice_dialog: cc.Node;
...@@ -839,7 +921,6 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -839,7 +921,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
hideWaitingLetters(force = false) { hideWaitingLetters(force = false) {
if (force) { if (force) {
this.LoadingCount = 0; this.LoadingCount = 0;
...@@ -912,6 +993,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -912,6 +993,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
initBg() { initBg() {
const bgNode = cc.find('Canvas/bg'); const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax; bgNode.scale = this._mapScaleMax;
console.error('initBg')
} }
playLocalAudio(audioName) { playLocalAudio(audioName) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource); const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
......
import Item from "./item"
import user from "./user";
import shop from "./shop";
import pg from "../pg";
class Dress {
public _list: Array<Item>
defaultSkin = {
cover: "ani/cover.png",
type: 3,
meta_value: {
"eat": {
"tex_png": "ani/eating/eating_tex.png",
"ske_json": "ani/eating/eating_ske.json",
"tex_json": "ani/eating/eating_tex.json",
"armature": "",
// "play": "default"
},
"walk": {
"tex_png": "ani/walkinghungryhappy/walkinghungryhappy_tex.png",
"ske_json": "ani/walkinghungryhappy/walkinghungryhappy_ske.json",
"tex_json": "ani/walkinghungryhappy/walkinghungryhappy_tex.json",
"armature": "Armature",
"animation": "happy",
// "play": ""
}
},
};
constructor() {
this._list = [];
}
parse(list: any) {
if (!list) return;
this._list = [this.defaultSkin, ...list];
}
get list() {
let currentIndex = 0
if (this._list.length > 1) {
}
return this._list.map((it, i) =>{
it.current = user.isCurrentDress(it.id)
return it;
});
}
has(item_id) {
return this._list.indexOf(item_id) > -1;
}
setDressItem(node, id) {
const item = this._list.find(li => li.id == id);
if (!item) {
return;
}
pg.view.setNetImg(node, item.itemImage, true).then(() => {
node.active = true;
if (rect) {
node.x = rect.x;
node.y = rect.y;
node.width = rect.width;
node.height = rect.height;
}
});
}
}
const dress = new Dress();
export default dress;
{
"ver": "1.0.8",
"uuid": "f8d8b243-dd28-4f9b-87fd-eae71a1bbdc5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -4,7 +4,7 @@ class HouseItem extends Item { ...@@ -4,7 +4,7 @@ class HouseItem extends Item {
public kind: string; // 商品种类 public kind: string; // 商品种类
// public own: boolean; // public own: boolean;
public rect: {x: number, y: number, width: number, height: number} public rect: {x: number, y: number, width: number, height: number}
public current = false;
public defaultId: number; public defaultId: number;
constructor(obj: any) { constructor(obj: any) {
super(obj); super(obj);
......
import HouseItem from "./house-item" import HouseItem from "./house-item";
import { ITEM_TYPE } from "../config/config";
import user from "./user"; import user from "./user";
import shop from "./shop";
import pg from "../pg"; import pg from "../pg";
class House { class House {
public _list: Array<HouseItem> public _list: Array<HouseItem>
...@@ -26,7 +28,11 @@ class House { ...@@ -26,7 +28,11 @@ class House {
return this._list.findIndex(it => it.id == item_id) > -1; return this._list.findIndex(it => it.id == item_id) > -1;
} }
setFurnitureItem(node, id, rect = null) { setFurnitureItem(node, id, rect = null) {
const item = this._list.find(li => li.id == id); // const item = this._list.find(li => li.id == id);
// const item = shop.getListByType(ITEM_TYPE.HOUSE).find(li => li.id == id);
const item = shop._list.find(li => li.id == id);
// if (!item) { // if (!item) {
// item = this._list.find(li => { // item = this._list.find(li => {
// return li.defaultId == id // return li.defaultId == id
...@@ -37,12 +43,13 @@ class House { ...@@ -37,12 +43,13 @@ class House {
} }
pg.view.setNetImg(node, item.itemImage, true).then(() => { pg.view.setNetImg(node, item.itemImage, true).then(() => {
node.active = true; node.active = true;
if (rect) { if (!rect) {
node.x = rect.x; rect = item.rect;
node.y = rect.y;
node.width = rect.width;
node.height = rect.height;
} }
node.x = rect.x;
node.y = rect.y;
node.width = rect.width;
node.height = rect.height;
}); });
} }
......
...@@ -9,6 +9,7 @@ class Item { ...@@ -9,6 +9,7 @@ class Item {
public discount: number;//折扣 public discount: number;//折扣
public num: number;//拥有数量 public num: number;//拥有数量
public levelLimite: number;//等级限制 public levelLimite: number;//等级限制
public current = false;
constructor(obj: any) { constructor(obj: any) {
this.id = obj.id; this.id = obj.id;
this.type = obj.type; this.type = obj.type;
......
import Item from "./item" import Item from "./item"
import HouseItem from "./house-item" import HouseItem from "./house-item"
import house from "./house"; import house from "./house";
import dress from "./dress";
import { ITEM_TYPE } from "../config/config";
class Shop { class Shop {
public _list: Array<Item> public _list: Array<Item>
constructor() { constructor() {
...@@ -20,12 +22,16 @@ class Shop { ...@@ -20,12 +22,16 @@ class Shop {
return this._list.filter(li => ![20,21,22,23,24,25,26,27,28,29,30].includes(li.id)); return this._list.filter(li => ![20,21,22,23,24,25,26,27,28,29,30].includes(li.id));
} }
getListByType(type: number) { getListByType(type: number) {
const myDress = dress.list.map(it => it.id).filter(id => !!id)
return this._list.filter(li => { return this._list.filter(li => {
return li.type == type && ![20,21,22,23,24,25,26,27,28,29,30].includes(li.id); return li.type == type && ![20,21,22,23,24,25,26,27,28,29,30].includes(li.id);
}).map(li => { }).map(li => {
if (li.type == 2) { if (li.type == ITEM_TYPE.FOOD) {
return {...li, num: (house.has(li.id) ? 1 : 0)} return {...li, num: (house.has(li.id) ? 1 : 0)}
} }
if (li.type == ITEM_TYPE.CLOTHES) {
return {...li, num: (myDress.includes(li.id) ? 1 : 0)}
}
return li; return li;
}); });
......
...@@ -11,10 +11,13 @@ class User { ...@@ -11,10 +11,13 @@ class User {
public growthDailyMax: number; public growthDailyMax: number;
public eatTime: number; public eatTime: number;
// public useFurniture: Array<number>; // public useFurniture: Array<number>;
public useClothes: Array<number>; public useClothes: number;
public myFurniture: any; public myFurniture: any;
public myDress: any;
public mood: number;//0开心 1不开心 public mood: number;//0开心 1不开心
private dataReadyCallback = null
constructor() { constructor() {
} }
...@@ -31,6 +34,12 @@ class User { ...@@ -31,6 +34,12 @@ class User {
this.myFurniture = data.myFurniture; this.myFurniture = data.myFurniture;
this.useClothes = data.useClothes; this.useClothes = data.useClothes;
this.mood = data.mood; this.mood = data.mood;
if (this.dataReadyCallback && this.dataReadyCallback.call) {
this.dataReadyCallback(this)
}
}
setDataReadyCallback(callback) {
this.dataReadyCallback = callback
} }
isDailyMax() { isDailyMax() {
return this.growthDailyMax >= this.growthDaily return this.growthDailyMax >= this.growthDaily
...@@ -43,6 +52,9 @@ class User { ...@@ -43,6 +52,9 @@ class User {
useCoin(val) { useCoin(val) {
this.coin -= val; this.coin -= val;
} }
isCurrentDress(id) {
return this.useClothes == id;
}
isCurrentFurniture(id, kind) { isCurrentFurniture(id, kind) {
if (this.myFurniture.furniture) { if (this.myFurniture.furniture) {
return this.myFurniture.furniture[kind].id == id return this.myFurniture.furniture[kind].id == id
...@@ -50,6 +62,10 @@ class User { ...@@ -50,6 +62,10 @@ class User {
return false; return false;
} }
hasThisDress(id) {
return false
}
updateFurniture(data, rect) { updateFurniture(data, rect) {
this.myFurniture.furniture[data.kind] = { this.myFurniture.furniture[data.kind] = {
...this.myFurniture.furniture[data.kind], ...this.myFurniture.furniture[data.kind],
...@@ -58,6 +74,9 @@ class User { ...@@ -58,6 +74,9 @@ class User {
} }
Api.updateUserHouse(data, rect); Api.updateUserHouse(data, rect);
} }
updateDress(id) {
Api.updateUserDress(id);
}
// //当前等级成长值最大值 // //当前等级成长值最大值
// public get growthLevel(): number { // public get growthLevel(): number {
// let max = 1; // let max = 1;
......
...@@ -2,6 +2,7 @@ import pg from "../pg"; ...@@ -2,6 +2,7 @@ import pg from "../pg";
import { ITEMS, USER } from "../config/config" import { ITEMS, USER } from "../config/config"
import user from "../model/user"; import user from "../model/user";
import kitchen from "../model/kitchen"; import kitchen from "../model/kitchen";
import dress from "../model/dress";
import shop from "../model/shop"; import shop from "../model/shop";
import house from "../model/house"; import house from "../model/house";
//获取信息,购买物品,使用物品(吃东西),穿戴衣服/更换家具 //获取信息,购买物品,使用物品(吃东西),穿戴衣服/更换家具
...@@ -10,9 +11,14 @@ class Api { ...@@ -10,9 +11,14 @@ class Api {
static askUser() { static askUser() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
console.log(`[askUser] ${ globalThis.____GAME_ENV____.baseUrl}pets/v2/info`) console.log(`[askUser] ${ globalThis.____GAME_ENV____.baseUrl}pets/v2/info`)
pg.http.send("GET", `${ globalThis.____GAME_ENV____.baseUrl}pets/v2/info`, null).then((userInfo: any) => { pg.http.send("GET", `${ globalThis.____GAME_ENV____.baseUrl}pets/v3/info`, null).then((userInfo: any) => {
// let userInfo = USER; // let userInfo = USER;
try{ try{
const shopItemMap = {};
userInfo.shop_items.forEach(item => {
shopItemMap[item.id] = item;
});
shop.parse(userInfo.shop_items);
const mood = (Date.now() - userInfo.status.eat.time) > 4 * 60 * 60 * 1000 ? 1: 0; // 4 hours const mood = (Date.now() - userInfo.status.eat.time) > 4 * 60 * 60 * 1000 ? 1: 0; // 4 hours
const info = { const info = {
name: userInfo.name, name: userInfo.name,
...@@ -21,17 +27,20 @@ class Api { ...@@ -21,17 +27,20 @@ class Api {
eatTime: userInfo.status.eat.time, eatTime: userInfo.status.eat.time,
// useFurniture: userInfo.furniture, // useFurniture: userInfo.furniture,
myFurniture: userInfo.furniture, myFurniture: userInfo.furniture,
useClothes: userInfo.dress, useClothes: userInfo.dress.id,
growth: userInfo.current_exp, growth: userInfo.current_exp,
growthLevel: userInfo.need_exp, growthLevel: userInfo.need_exp,
mood mood
}; };
console.log(info); const my_dress_items = userInfo.my_dress_items.map(item => {
user.parse(info); return shopItemMap[item.id];
});
// let kitchenInfo = ITEMS; // let kitchenInfo = ITEMS;
house.parse(userInfo.my_furniture_items); house.parse(userInfo.my_furniture_items);
kitchen.parse(userInfo.my_food_items); kitchen.parse(userInfo.my_food_items);
shop.parse(userInfo.shop_items); dress.parse(my_dress_items);
console.log(info);
user.parse(info);
resolve(''); resolve('');
} catch(e) { } catch(e) {
reject(e) reject(e)
...@@ -41,6 +50,19 @@ class Api { ...@@ -41,6 +50,19 @@ class Api {
}) })
}); });
} }
static updateUserDress(params) {
return new Promise((resolve, reject) => {
pg.http.send("POST", `${ globalThis.____GAME_ENV____.baseUrl}pets/update/dress`, params).then((resp: any) => {
try {
resolve(resp);
} catch (e) {
reject(e)
}
}).catch(e => {
reject(e)
})
});
}
static updateUserHouse(data, rect) { static updateUserHouse(data, rect) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
pg.http.send("POST", `${ globalThis.____GAME_ENV____.baseUrl}pets/update/house`, { pg.http.send("POST", `${ globalThis.____GAME_ENV____.baseUrl}pets/update/house`, {
......
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator;
import user from "./model/user";
import dress from "./model/dress";
import pg from "./pg";
@ccclass
export default class PengPeng extends cc.Component {
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start () {
console.log('pengpeng start')
user.setDataReadyCallback(this.dataReady);
const walkNode = pg.view.find(this.node, "walk")
const eatAni = pg.view.find(this.node, "eat");
window.walk = walkNode
window.eat = eatAni
window.pp = this;
pg.view.touchOn(walkNode, this.onTouchElephent, this);
const btnClose = pg.view.find(this.node, "panel_info/btn_close");
pg.view.touchOn(btnClose, this.onTouchPanel, this);
}
dataReady = () => {
console.log('pengpeng dataReady');
const item = dress.list.find(item => item.current)
this.changeDress(item);
}
//打开提示面板
onTouchElephent() {
let panel_info = pg.view.find(this.node, "panel_info");
if (panel_info.active) {
this.onTouchPanel();
return;
}
this.elephentState(user.mood == 0 ? 1 : 2);
panel_info.active = true;
//刷新内容
let label_name = pg.view.find(panel_info, "label_name");
pg.view.setString(label_name, user.name);
let label_level = pg.view.find(panel_info, "label_level");
pg.view.setString(label_level, `LV.${user.level ? user.level : 0 }`);
let icon_happy = pg.view.find(panel_info, "icon_happy");
let icon_hungry = pg.view.find(panel_info, "icon_hungry");
icon_happy.active = user.mood == 0;
icon_hungry.active = user.mood == 1;
let percent = user.growth / user.growthLevel;
let progress = pg.view.find(panel_info, "progress");
progress.getComponent(cc.ProgressBar).progress = percent;
}
//关闭提示面板
onTouchPanel() {
let panel_info = pg.view.find(this.node, "panel_info");
panel_info.active = false;
this.elephentState(0);
}
//小象的动作管理。
// private elephant: cc.Node;
private _timer: number;
elephentState(state) {
switch (state) {
case 0:
this.elephantWalk();
break;
case 1:
this.elephantHappy();
break;
case 2:
this.elephantHungry();
break;
case 3:
this.elephantEating();
break;
}
}
elephantWalk() {
let walkAni = pg.view.find(this.node, "walk");
const oriScaleX = walkAni.scaleX;
let eatAni = pg.view.find(this.node, "eat");
walkAni.active = true;
eatAni.active = false;
let db = pg.view.playDBAnimation(walkAni, "walking", 0);
this.removeHungryAudio(db);
cc.Tween.stopAllByTarget(this.node);
walkAni.scaleX = oriScaleX;
let moveX = 400;
let moveY = 0;
let winSize = cc.winSize;
if (winSize.width / winSize.height < 16 / 9) {
moveY = -(16 / 9 - winSize.width / winSize.height) * 750 / 2;
}
if (!this.node.active) {
this.node.active = true;
this.node.x = 0;
this.node.y = moveY + Math.random() * 100;
}
cc.tween(this.node)
.to(4, { x: moveX, y: moveY + Math.random() * 100 })
.call(() => {
walkAni.scaleX = -oriScaleX;
})
.to(4, { x: 0, y: moveY + Math.random() * 100 })
.to(4, { x: -moveX, y: moveY + Math.random() * 100 })
.call(() => {
walkAni.scaleX = oriScaleX;
})
.to(4, { x: 0, y: moveY + Math.random() * 100 })
.call(() => {
this.elephentState(0);
})
.start();
}
elephantHappy() {
let walkAni = pg.view.find(this.node, "walk");
let eatAni = pg.view.find(this.node, "eat");
walkAni.active = true;
eatAni.active = false;
let db = pg.view.playDBAnimation(walkAni, "happy", 0);
this.removeHungryAudio(db);
cc.Tween.stopAllByTarget(this.node);
// walkAni.scaleX = 1;
}
elephantHungry() {
let walkAni = pg.view.find(this.node, "walk");
let eatAni = pg.view.find(this.node, "eat");
walkAni.active = true;
eatAni.active = false;
this.playLocalAudio("hungry");
let db: dragonBones.ArmatureDisplay = pg.view.playDBAnimation(walkAni, "hungry", 0);
this.removeHungryAudio(db);
this.addHungryAudio(db);
cc.Tween.stopAllByTarget(this.node);
// walkAni.scaleX = 1;
}
elephantEating() {
let walkAni = pg.view.find(this.node, "walk");
let eatAni = pg.view.find(this.node, "eat");
walkAni.active = false;
eatAni.active = true;
cc.Tween.stopAllByTarget(this.node);
pg.view.playDBAnimation(eatAni, "eating", 0);
this.playLocalAudio("eating");
setTimeout(() => {
this.elephentState(0);
}, 3500);
}
addHungryAudio(db: dragonBones.ArmatureDisplay) {
db.addEventListener(dragonBones.EventObject.LOOP_COMPLETE, this.playHungryAudio, this)
}
removeHungryAudio(db: dragonBones.ArmatureDisplay) {
db.removeEventListener(dragonBones.EventObject.LOOP_COMPLETE, this.playHungryAudio, this)
}
playHungryAudio() {
this.playLocalAudio("hungry");
}
playLocalAudio(audioName) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, false);
cc.audioEngine.setFinishCallback(id, () => {
resolve(id);
});
})
}
changeDress(data) {
console.log('changeDress1', dress)
console.log('changeDress2', data)
const promiseArray = [];
const nodeNames = Object.keys(data.meta_value);
for(let i = 0; i < nodeNames.length; i++) {
const nodeName = nodeNames[i];
const node = cc.find(nodeName, this.node)
node.stopAllActions();
window[nodeName] = node;
if (node) {
const proc = new Promise((resolve, reject) => {
const meta = data.meta_value[nodeName]
const dragonDisplay = node.getComponent(dragonBones.ArmatureDisplay);
const imageUrl = meta['tex_png'];
const skeUrl = meta['ske_json'];
const atlasUrl = meta['tex_json'];
const armatureName = meta['armature'];
const animationName = meta['animation'];
const properties = meta['node'];
const offset = meta['offset'];
console.log(nodeName, armatureName, node)
pg.load.loadAssets([
[imageUrl],
[atlasUrl, {ext: '.txt', type: dragonBones.DragonBonesAtlasAsset}],
[skeUrl, {ext: '.txt', type: dragonBones.DragonBonesAsset}]
]).then((assets: any[]) => {
const u1 = dragonDisplay.dragonAtlasAsset._uuid;
const u2 = dragonDisplay.dragonAsset._uuid;
// dragonDisplay.dragonAtlasAsset.destroy();
// dragonDisplay.dragonAsset.destroy();
if (u1.startsWith('http')) {
console.log('release1', u1)
dragonDisplay.dragonAtlasAsset.destroy();
cc.assetManager.releaseAsset(dragonDisplay.dragonAtlasAsset.texture);
cc.assetManager.releaseAsset(u1);
}
if (u2.startsWith('http')) {
console.log('release1', u2)
dragonDisplay.dragonAsset.destroy();
cc.assetManager.releaseAsset(u2);
}
const currentArmature = dragonDisplay.armature()
if (currentArmature) {
currentArmature.dispose()
}
dragonDisplay.dragonAsset = null;
dragonDisplay.dragonAtlasAsset = null;
dragonDisplay.armatureName = "";
// dragonDisplay.playAnimation(null);
const [texture, atlasJson, dragonBonesJson ] = assets;
let atlas = atlasJson
if (atlasJson.constructor.name == 'cc_TextAsset') {
atlas = new dragonBones.DragonBonesAtlasAsset();
atlas._uuid = atlasUrl;
let atlasJsonStr = atlasJson.text;
atlas.atlasJson = atlasJsonStr;
atlas.texture = texture;
}
let asset = dragonBonesJson;
if (dragonBonesJson.constructor.name == 'cc_TextAsset') {
asset = new dragonBones.DragonBonesAsset();
asset._uuid = skeUrl;
asset.dragonBonesJson = dragonBonesJson.text;
}
dragonDisplay.dragonAtlasAsset = atlas;
dragonDisplay.dragonAsset = asset;
dragonDisplay.armatureName = armatureName;
const armature = dragonDisplay.armature()
// armature.animation.animationNames
console.log('animationName',node.name, armatureName, animationName, armature ? armature.animation.animationNames : [])
if (animationName) {
dragonDisplay.playAnimation(animationName, 0);
}
node.scaleX = 1;
node.scaleY = 1;
if (properties) {
Object.keys(properties).forEach(key => {
node[key] = properties[key];
})
}
if (offset) {
Object.keys(offset).forEach(key => {
node[key] += +offset[key];
})
}
resolve()
});
// cc.assetManager.loadRemote(imageUrl, (err: Error, texture: cc.Texture2D) => {
// cc.assetManager.loadRemote(atlasUrl,{ext: '.txt'}, (error: Error, atlasJson: cc.TextAsset) => {
// cc.assetManager.loadRemote(skeUrl, {ext: '.txt'},(error: Error, dragonBonesJson:cc.JsonAsset) => {
// // console.log('texture', texture)
// // console.log('atlasJson', atlasJson)
// // console.log('dragonBonesJson', dragonBonesJson)
// var atlas:any = new dragonBones.DragonBonesAtlasAsset();
// atlas._uuid = atlasUrl;
// atlas.atlasJson = atlasJson.text;
// atlas.texture = texture;
// var asset:any = new dragonBones.DragonBonesAsset();
// asset._uuid = skeUrl;
// asset.dragonBonesJson = dragonBonesJson;
// console.log('set armatureName: ', armatureName)
// dragonDisplay.armatureName = armatureName;
// dragonDisplay.dragonAtlasAsset = atlas;
// dragonDisplay.dragonAsset = asset;
// // dragonDisplay.playAnimation('happy', 0);
// resolve()
// });
// });
// });
})
promiseArray.push(proc);
}
}
return Promise.all(promiseArray)
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "e9ba8d59-a9e5-43f1-bdd7-23ccb0882821",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -144,10 +144,13 @@ let pg = { ...@@ -144,10 +144,13 @@ let pg = {
let w = node.width; let w = node.width;
let h = node.height; let h = node.height;
node.active = false;// node.active = false;//
pg.load.loadNetImg(res).then((texture: cc.Texture2D) => { pg.load.loadNetImg(res).then((texture: cc.Texture2D) => {
if (!cc.isValid(node)) return pg.logger.i("节点已销毁"); if (!cc.isValid(node)) return pg.logger.i("节点已销毁");
let nw = node.width = texture.width; // let nw = node.width = texture.width;
let nh = node.height = texture.height; // let nh = node.height = texture.height;
let nw = texture.width;
let nh = texture.height;
let spriteFrame = new cc.SpriteFrame(texture); let spriteFrame = new cc.SpriteFrame(texture);
node.net_spriteFrame node.net_spriteFrame
node.net_url = res; node.net_url = res;
...@@ -160,6 +163,7 @@ let pg = { ...@@ -160,6 +163,7 @@ let pg = {
const sx = node.width / width; const sx = node.width / width;
const sy = node.height / height; const sy = node.height / height;
const s = Math.min(sx, sy); const s = Math.min(sx, sy);
// console.error('loadNetImg', res)
cover.scale = Math.round(s * 1000) / 1000; cover.scale = Math.round(s * 1000) / 1000;
} else { } else {
let component = node.getComponent(cc.Sprite); let component = node.getComponent(cc.Sprite);
...@@ -290,7 +294,7 @@ let pg = { ...@@ -290,7 +294,7 @@ let pg = {
//此处需要二次封装,新的存在assetbundle //此处需要二次封装,新的存在assetbundle
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
cc.loader.loadRes(res, type, (err, data) => { cc.loader.loadRes(res, type, (err, data) => {
if (err && !data) return resolve(pg.logger.d('loading loadRes error-> ' + res)); if (err && !data) return reject(pg.logger.d('loading loadRes error-> ' + res));
resolve(data); resolve(data);
}); });
}) })
...@@ -314,11 +318,57 @@ let pg = { ...@@ -314,11 +318,57 @@ let pg = {
}, },
loadNetImg: async function (url) { loadNetImg: async function (url) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
cc.loader.load({ url }, (err, texture) => { // cc.loader.load({ url }, (err, texture) => {
if (err && !texture) return resolve(pg.logger.w('loading loadRes warn-> ' + texture)); // if (err && !texture) return resolve(pg.logger.w('loading loadNetImg warn-> ' + texture));
resolve(texture); // resolve(texture);
}); // });
if (url.startsWith('http')) {
cc.assetManager.loadRemote(url, (err, texture) => {
if (err && !texture) return resolve(pg.logger.w('loading loadNetImg warn-> ' + texture));
resolve(texture);
});
} else {
console.log('cc.resources.load', url)
const [uri, ext] = url.split('.');
cc.resources.load(uri, cc.Texture2D ,(a,b)=>{},(err, texture)=>{
if (err && !texture) return reject(pg.logger.w('loading cc.resources.load warn-> ' + texture));
resolve(texture);
});
}
})
},
loadAsset: async function (url, option) {
return new Promise((resolve, reject) => {
// cc.loader.load({ url }, (err, texture) => {
// if (err && !texture) return resolve(pg.logger.w('loading loadNetImg warn-> ' + texture));
// resolve(texture);
// });
if (!option || Object.keys(option).length == 0) option = {type: cc.Texture2D};
if (url.startsWith('http')) {
cc.assetManager.loadRemote(url,option, (err, texture) => {
if (err && !texture) return reject(pg.logger.w('loading loadNetImg warn-> ' + texture));
resolve(texture);
});
} else {
console.log('cc.resources.load', url)
const [uri, ext] = url.split('.');
cc.resources.load(uri, option.type ,(a,b)=>{},(err, texture)=>{
console.log(uri, option.type.name, err, texture )
if (err && !texture) return reject(pg.logger.w('loading cc.resources.load warn-> ' + texture));
resolve(texture);
});
}
})
},
/**
* params is array
* [['http://asdfa.com/a.png', {ext: '.png'}], ['http://asdfa.com/a.json', {ext: '.json'}]]
*/
loadAssets: async function (params) {
const tasks = params.map(([url, option]) => {
return pg.load.loadAsset(url, option);
}) })
return Promise.all(tasks);
}, },
}, },
localStorage: { localStorage: {
......
...@@ -45,7 +45,9 @@ export default class NewClass extends cc.Component { ...@@ -45,7 +45,9 @@ export default class NewClass extends cc.Component {
for (let i = 0; i < list.length; i += addNum) { for (let i = 0; i < list.length; i += addNum) {
let datas = [list[i]]; let datas = [list[i]];
for (let m = 1; m < addNum; m++) { for (let m = 1; m < addNum; m++) {
datas.push(list[i + m]); if (list[i + m]) {
datas.push(list[i + m]);
}
} }
let item = this._selectorCall(items, datas); let item = this._selectorCall(items, datas);
let itemClone = cc.instantiate(item); let itemClone = cc.instantiate(item);
......
...@@ -42,7 +42,7 @@ export function getAngleByPos(px, py, mx, my) { ...@@ -42,7 +42,7 @@ export function getAngleByPos(px, py, mx, my) {
} }
export function exchangeNodePos(baseNode, targetNode) { export function exchangeNodePos(baseNode, targetNode) {console.log('exchangeNodePos')
return baseNode.convertToNodeSpaceAR(targetNode._parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y))); return baseNode.convertToNodeSpaceAR(targetNode._parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y)));
} }
...@@ -63,20 +63,20 @@ export function randomSortByArr(arr) { ...@@ -63,20 +63,20 @@ export function randomSortByArr(arr) {
return newArr; return newArr;
} }
export function setSprNodeMaxLen(sprNode, maxW, maxH) { export function setSprNodeMaxLen(sprNode, maxW, maxH) {console.error('setSprNodeMaxLen')
const sx = maxW / sprNode.width; const sx = maxW / sprNode.width;
const sy = maxH / sprNode.height; const sy = maxH / sprNode.height;
const s = Math.min(sx, sy); const s = Math.min(sx, sy);
sprNode.scale = Math.round(s * 1000) / 1000; sprNode.scale = Math.round(s * 1000) / 1000;
} }
export function localPosTolocalPos(baseNode, targetNode) { export function localPosTolocalPos(baseNode, targetNode) {console.log('localPosTolocalPos')
const worldPos = targetNode.parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y)); const worldPos = targetNode.parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y));
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y)); const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos; return localPos;
} }
export function worldPosToLocalPos(worldPos, baseNode) { export function worldPosToLocalPos(worldPos, baseNode) {console.log('worldPosToLocalPos')
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y)); const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos; return localPos;
} }
...@@ -114,7 +114,7 @@ export function playAudioByUrl(audio_url, cb=null) { ...@@ -114,7 +114,7 @@ export function playAudioByUrl(audio_url, cb=null) {
} }
export function btnClickAnima(btn, time=0.15, rate=1.05) { export function btnClickAnima(btn, time=0.15, rate=1.05) {console.error('btnClickAnima')
btn.tmpScale = btn.scale; btn.tmpScale = btn.scale;
btn.on(cc.Node.EventType.TOUCH_START, () => { btn.on(cc.Node.EventType.TOUCH_START, () => {
cc.tween(btn) cc.tween(btn)
...@@ -222,7 +222,7 @@ export class FireworkSettings { ...@@ -222,7 +222,7 @@ export class FireworkSettings {
} }
} }
export async function showFireworks(fireworkSettings) { export async function showFireworks(fireworkSettings) {console.log('showFireworks')
const { baseNode, nodeList, pos, side, range, number, scalseRange } = fireworkSettings; const { baseNode, nodeList, pos, side, range, number, scalseRange } = fireworkSettings;
new Array(number).fill(' ').forEach(async (_, i) => { new Array(number).fill(' ').forEach(async (_, i) => {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 1334, "width": 1334,
"height": 92, "height": 152,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"wainscoting": { "wainscoting": {
......
{
"ver": "1.1.2",
"uuid": "68fdd5c0-48a6-4db5-b219-780457e9fe9b",
"isBundle": true,
"bundleName": "resources",
"priority": 8,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "119f21e9-7ecf-4223-825a-31179b364f28",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c97d088e-6fb3-4b14-a636-aa11d86ff31a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 160,
"height": 183,
"platformSettings": {},
"subMetas": {
"cover": {
"ver": "1.0.4",
"uuid": "bf718212-a007-44cd-8664-975a20bc01ac",
"rawTextureUuid": "c97d088e-6fb3-4b14-a636-aa11d86ff31a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": -7,
"trimX": 13,
"trimY": 26,
"width": 133,
"height": 145,
"rawWidth": 160,
"rawHeight": 183,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "5cb14f87-267e-4de5-894b-61d5f332d885",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"frameRate":24,"name":"eating","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-117,"y":-126.95,"width":257,"height":279.22},"bone":[{"name":"root","transform":{"x":-224,"y":-126.95}},{"length":31,"name":"tou_","parent":"root","transform":{"x":224.75,"y":84.7,"skX":-89.0804,"skY":-89.0804}},{"length":26,"name":"左手","parent":"root","transform":{"x":183.45,"y":104.75,"skX":105.5355,"skY":105.5355}},{"length":15,"name":"右手","parent":"root","transform":{"x":286.35,"y":141.55,"skX":-135.5185,"skY":-135.5185}},{"length":22,"name":"左手1","parent":"左手","transform":{"x":33.6608,"y":-3.8046,"skX":-33.1913,"skY":-33.1913}},{"name":"嘴巴","parent":"tou_","transform":{"x":-6.9595,"y":-0.5384}},{"name":"眼睛","parent":"tou_","transform":{"x":33.5974,"y":-22.2421,"skX":134.0804,"skY":134.0804}},{"length":17,"name":"右手1","parent":"右手","transform":{"x":23.0539,"y":-0.1449,"skX":-8.6654,"skY":-8.6654}},{"length":18,"name":"叉子","parent":"右手1","transform":{"x":26.1068,"y":-1.7602,"skX":-12.2047,"skY":-12.2047}},{"name":"吃","parent":"嘴巴","transform":{"x":8.3396,"y":-18.0602,"skX":44.0804,"skY":44.0804}}],"slot":[{"name":"凳子","parent":"root"},{"name":"身体","parent":"root"},{"name":"桌子","parent":"root"},{"name":"左手","parent":"左手1"},{"name":"右袖子","parent":"root"},{"name":"围嘴","parent":"root"},{"name":"tou_","parent":"tou_"},{"name":"嘴巴","parent":"嘴巴"},{"name":"吃","parent":"吃"},{"name":"眼睛","parent":"眼睛"},{"name":"叉子","parent":"叉子"},{"name":"右手","parent":"右手1"}],"skin":[{"slot":[{"name":"叉子","display":[{"name":"吃饭-场景/叉子","transform":{"x":3.04,"y":0.47,"skX":156.39,"skY":156.39}}]},{"name":"眼睛","display":[{"name":"吃饭-场景/眼睛","transform":{"x":13.22,"y":-15.7,"skX":-45,"skY":-45}}]},{"name":"吃","display":[{"name":"吃饭-场景/吃","transform":{"x":1.8,"y":0.25,"skX":45,"skY":45}}]},{"name":"嘴巴","display":[{"name":"吃饭-场景/嘴巴","transform":{"x":3.13,"y":-1.15,"skX":89.08,"skY":89.08}}]},{"name":"tou_","display":[{"name":"吃饭-场景/tou_","transform":{"x":31.6,"y":-6.76,"skX":89.08,"skY":89.08}}]},{"name":"围嘴","display":[{"name":"吃饭-场景/围嘴","transform":{"x":222,"y":106.5}}]},{"name":"右袖子","display":[{"name":"吃饭-场景/右袖子","transform":{"x":274,"y":110.5}}]},{"name":"左手","display":[{"type":"mesh","name":"吃饭-场景/左手","width":46,"height":80,"vertices":[202.72,97.92,201.47,88.37,194.87,87.22,189.77,87.22,180.32,87.22,170.32,96.62,162.27,112.52,156.72,125.87,156.72,137.52,156.72,146.62,163.22,155.52,169.07,167.22,178.02,167.22,188.97,167.22,202.72,167.22,202.72,154.72,200.47,148.77,202.72,144.77,202.72,129.72,202.72,111.47],"uvs":[1,0.13375,0.97283,0.01437,0.82935,0,0.71848,0,0.51304,0,0.29565,0.1175,0.12065,0.31625,0,0.48312,0,0.62875,0,0.7425,0.1413,0.85375,0.26848,1,0.46304,1,0.70109,1,1,1,1,0.84375,0.95109,0.76937,1,0.71937,1,0.53125,1,0.30312],"triangles":[3,5,19,5,6,19,13,14,15,16,13,15,3,19,0,2,3,0,1,2,0,6,7,18,16,17,18,8,16,18,7,8,18,19,6,18,8,10,16,4,5,3,12,13,16,10,12,16,8,9,10,10,11,12],"weights":[2,2,0.842048,4,0.157952,2,2,0.836259,4,0.163741,2,2,0.86805,4,0.13195,2,2,0.887323,4,0.112677,2,2,0.891428,4,0.108572,2,2,0.882413,4,0.117587,2,2,0.730506,4,0.269494,2,2,0.599991,4,0.400009,2,2,0.504022,4,0.495978,2,2,0.438303,4,0.561697,2,2,0.310744,4,0.689256,2,2,0.176269,4,0.823731,2,2,0.072993,4,0.927007,2,2,0.050352,4,0.949648,2,2,0.156358,4,0.843642,2,2,0.207104,4,0.792896,2,2,0.259737,4,0.740263,2,2,0.33567,4,0.66433,2,2,0.515341,4,0.484659,2,2,0.761004,4,0.238996],"slotPose":[1,0,0,1,0,0],"bonePose":[2,-0.267836,0.963465,-0.963465,-0.267836,183.45,104.75,4,0.303297,0.952896,-0.952896,0.303297,178.1,138.2],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,0],"userEdges":[]}]},{"name":"桌子","display":[{"name":"吃饭-场景/桌子","transform":{"x":236.5,"y":209.72}}]},{"name":"身体","display":[{"name":"吃饭-场景/身体","transform":{"x":234,"y":164.22}}]},{"name":"凳子","display":[{"name":"吃饭-场景/凳子","transform":{"x":250,"y":229}}]},{"name":"右手","display":[{"type":"mesh","name":"吃饭-场景/右手","width":49,"height":46,"vertices":[293.9,122.67,286.05,119.97,276.05,108.62,268.6,103.22,261.35,103.22,256.05,103.22,249.75,109.37,246,116.32,246,123.92,246,131.92,254.2,141.57,261.6,147.02,267.3,149.22,275.35,149.22,283.2,149.22,290.65,149.22,293.95,144.02,295,137.77,295,130.87,295,125.77],"uvs":[0.97755,0.42283,0.81735,0.36413,0.61327,0.11739,0.46122,0,0.31327,0,0.2051,0,0.07653,0.1337,0,0.28478,0,0.45,0,0.62391,0.16735,0.8337,0.31837,0.95217,0.43469,1,0.59898,1,0.75918,1,0.91122,1,0.97857,0.88696,1,0.75109,1,0.60109,1,0.49022],"triangles":[0,1,19,14,16,17,14,17,18,1,14,18,19,1,18,13,14,1,14,15,16,2,10,1,10,11,1,12,13,1,11,12,1,8,10,2,7,8,6,6,8,4,3,4,2,4,8,2,8,9,10,5,6,4],"weights":[1,3,1,2,3,0.79,7,0.21,2,3,0.374362,7,0.625638,2,3,0.268005,7,0.731995,2,3,0.155811,7,0.844189,2,3,0.11611,7,0.88389,2,3,0.06363,7,0.93637,2,3,0.084304,7,0.915696,2,3,0.154797,7,0.845203,2,3,0.293799,7,0.706201,2,3,0.462392,7,0.537608,2,3,0.540239,7,0.459761,2,3,0.616281,7,0.383719,2,3,0.77358,7,0.22642,2,3,0.915253,7,0.084747,2,3,0.92808,7,0.07192,2,3,0.935505,7,0.064495,2,3,0.9,7,0.1,1,3,1,1,3,1],"slotPose":[1,0,0,1,0,0],"bonePose":[3,-0.713477,-0.700679,0.700679,-0.713477,286.35,141.55,7,-0.8109,-0.585185,0.585185,-0.8109,269.8,125.5],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,0],"userEdges":[]}]}]}],"animation":[{"duration":60,"playTimes":0,"name":"eating","frame":[{"duration":0,"sound":"eating"}],"bone":[{"name":"tou_","rotateFrame":[{"duration":16,"curve":[0,0,0.5,1]},{"duration":18,"tweenEasing":0,"rotate":-4.28},{"duration":26}]},{"name":"眼睛","translateFrame":[{"duration":10,"tweenEasing":0},{"duration":22,"tweenEasing":0,"x":-1.93,"y":-4.84},{"duration":12,"tweenEasing":0,"x":-1.93,"y":-4.84},{"duration":16}]},{"name":"嘴巴","translateFrame":[{"duration":15,"tweenEasing":0},{"duration":15,"tweenEasing":0,"x":2.08,"y":-2.4},{"duration":15,"tweenEasing":0},{"duration":15,"tweenEasing":0,"x":2.08,"y":-2.4},{"duration":0}],"scaleFrame":[{"duration":15,"tweenEasing":0},{"duration":15,"tweenEasing":0,"y":1.12},{"duration":15,"tweenEasing":0},{"duration":15,"tweenEasing":0,"y":1.12},{"duration":0}]},{"name":"吃","scaleFrame":[{"duration":12,"tweenEasing":0,"x":0.8,"y":0.8},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.8,"y":0.8},{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.8,"y":0.8},{"duration":0}]},{"name":"左手1","translateFrame":[{"duration":16,"tweenEasing":0},{"duration":20,"curve":[0,0,0.5,1],"x":3.84,"y":-6.5},{"duration":24}],"rotateFrame":[{"duration":16,"tweenEasing":0},{"duration":20,"curve":[0,0,0.5,1],"rotate":-9.23},{"duration":24}]},{"name":"右手1","translateFrame":[{"duration":10,"tweenEasing":0},{"duration":18,"curve":[0,0,0.5,1],"x":0.34,"y":4.12},{"duration":14,"tweenEasing":0,"x":1.22,"y":-8.82},{"duration":18,"tweenEasing":0,"x":1.23,"y":-3.29},{"duration":0}],"rotateFrame":[{"duration":10,"tweenEasing":0},{"duration":18,"curve":[0,0,0.5,1],"rotate":11.96},{"duration":14,"tweenEasing":0,"rotate":-3.79},{"duration":18,"tweenEasing":0,"rotate":10.34},{"duration":0}]},{"name":"叉子","rotateFrame":[{"duration":18,"curve":[0,0,0.5,1]},{"duration":22,"curve":[0,0,0.5,1],"rotate":12.65},{"duration":20,"tweenEasing":0,"rotate":-13.01},{"duration":0}]}]}],"defaultActions":[{"gotoAndPlay":"eating"}],"canvas":{"x":8,"y":8,"width":262,"height":286}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "8eda94aa-90d7-46e3-87d6-e212239eec32",
"subMetas": {}
}
\ No newline at end of file
{"name":"eating","SubTexture":[{"name":"吃饭-场景/凳子","x":258,"height":96,"y":109,"width":210},{"name":"吃饭-场景/身体","x":1,"height":166,"y":142,"width":120},{"name":"吃饭-场景/桌子","x":1,"height":139,"y":1,"width":255},{"name":"吃饭-场景/左手","x":123,"height":80,"y":197,"width":46},{"name":"吃饭-场景/右袖子","x":171,"height":55,"y":197,"width":48},{"name":"吃饭-场景/围嘴","x":123,"height":53,"y":142,"width":94},{"name":"吃饭-场景/tou_","x":258,"height":106,"y":1,"width":223},{"name":"吃饭-场景/嘴巴","x":219,"height":7,"y":161,"width":22},{"name":"吃饭-场景/吃","x":219,"height":17,"y":142,"width":13},{"name":"吃饭-场景/眼睛","x":221,"height":18,"y":207,"width":53},{"name":"吃饭-场景/叉子","x":123,"height":30,"y":279,"width":46},{"name":"吃饭-场景/右手","x":171,"height":46,"y":254,"width":49}],"imagePath":"eating_tex.png","height":512,"width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "583e299e-0f9e-4d27-b52c-2813ccf8dd2a",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2e9f1fb8-72d6-4b05-95da-8446ccb5048e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 512,
"platformSettings": {},
"subMetas": {
"eating_tex": {
"ver": "1.0.4",
"uuid": "67e8ae56-e59e-4e70-9024-24607460498b",
"rawTextureUuid": "2e9f1fb8-72d6-4b05-95da-8446ccb5048e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -15,
"offsetY": 101,
"trimX": 1,
"trimY": 1,
"width": 480,
"height": 308,
"rawWidth": 512,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "1839fe97-78b0-4b25-b803-7fc196aade9a",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"name":"walkinghungryhappy","version":"5.5","armature":[{"name":"Armature","slot":[{"name":"阴影","color":{},"parent":"阴影"},{"name":"右腿","color":{},"z":1,"parent":"右腿1"},{"name":"左腿","color":{},"z":2,"parent":"左腿1"},{"name":"右手","color":{},"z":3,"parent":"右手"},{"name":"衣服","color":{},"displayIndex":1,"z":4,"parent":"衣服4"},{"name":"左手","color":{},"z":5,"parent":"左手1"},{"name":"围巾","color":{},"z":6,"parent":"围巾"},{"name":"围巾2","color":{},"z":7,"parent":"围巾"},{"name":"左耳","color":{},"z":8,"parent":"左耳1"},{"name":"右耳","color":{},"z":9,"parent":"右耳"},{"name":"脸","color":{},"z":10,"parent":"脸"},{"name":"嘴巴","color":{},"z":11,"parent":"嘴巴"},{"name":"鼻子","color":{},"z":12,"parent":"鼻子1"},{"name":"眼珠","color":{},"z":13,"parent":"眼珠"},{"name":"眼皮","color":{},"z":14,"parent":"眼皮"},{"name":"饿","color":{},"z":15,"parent":"饿"}],"bone":[{"name":"root","transform":{}},{"name":"饿","transform":{"x":66.55,"skY":90,"y":9.75,"skX":90},"parent":"root"},{"name":"阴影","transform":{"x":22.8872,"skY":90,"y":114.0219,"skX":90},"parent":"root"},{"name":"衣服","transform":{"x":21.3,"skY":-90,"y":23.9,"skX":-90},"length":28,"parent":"root"},{"name":"右腿","transform":{"x":-27.9,"skY":151.0881,"y":16.9,"skX":151.0881},"length":27,"parent":"衣服"},{"name":"右手","transform":{"x":52.723,"skY":134.0044,"y":23.4199,"skX":134.0044},"length":26,"parent":"衣服"},{"name":"左手","transform":{"x":50.0478,"skY":-142.4218,"y":-33.8673,"skX":-142.4218},"length":24,"parent":"衣服"},{"name":"左腿","transform":{"x":-27.2,"skY":-158.7892,"y":-12.65,"skX":-158.7892},"length":26,"parent":"衣服"},{"name":"脸","transform":{"x":94.15,"skY":-14.3894,"y":-2.05,"skX":-14.3894},"length":35,"parent":"衣服"},{"name":"衣服2","transform":{"x":28.4,"skY":38.8197,"y":17.5,"skX":38.8197},"length":28,"parent":"衣服"},{"name":"衣服1","transform":{"x":25.3526,"skY":-58.2148,"y":-25.5,"skX":-58.2148},"length":24,"parent":"衣服"},{"name":"围巾","transform":{"x":44.5,"skY":133.072,"y":7.85,"skX":133.072},"length":17,"parent":"衣服"},{"name":"左耳","transform":{"x":46.1192,"skY":-121.5663,"y":-41.3356,"skX":-121.5663},"length":36,"parent":"脸"},{"name":"嘴巴","transform":{"x":-29.5087,"y":-5.2995},"parent":"脸"},{"name":"眼珠","transform":{"x":7.4142,"skY":104.3894,"y":24.8212,"skX":104.3894},"parent":"脸"},{"name":"左腿1","transform":{"x":36.7409,"skY":-4.5481,"y":-2.6204,"skX":-4.5481},"length":22,"parent":"左腿"},{"name":"右耳","transform":{"x":32.7052,"skY":151.1507,"y":41.5305,"skX":151.1507},"length":28,"parent":"脸"},{"name":"眼皮","transform":{"x":10.3496,"skY":-17.6498,"y":-15.8006,"skX":-17.6498},"parent":"脸"},{"name":"左手1","transform":{"x":39.3477,"skY":-20.3443,"y":-3.3424,"skX":-20.3443},"length":24,"parent":"左手"},{"name":"鼻子","transform":{"x":-12.546,"skY":84.6453,"y":12.8864,"skX":84.6453},"length":25,"parent":"脸"},{"name":"衣服3","transform":{"x":40.9364,"skY":-13.1394,"y":3.8995,"skX":-13.1394},"length":28,"parent":"衣服2"},{"name":"右腿1","transform":{"x":34.745,"skY":23.4004,"y":0.7974,"skX":23.4004},"length":22,"parent":"右腿"},{"name":"衣服4","transform":{"x":39.192,"skY":5.3534,"y":-4.0545,"skX":5.3534},"length":25,"parent":"衣服1"},{"name":"左耳1","transform":{"x":50.4975,"skY":27.7233,"y":1.9386,"skX":27.7233},"length":26,"parent":"左耳"},{"name":"鼻子1","transform":{"x":33.0224,"skY":-42.6586,"y":-4.8282,"skX":-42.6586},"length":22,"parent":"鼻子"}],"aabb":{"x":-108.85135193443726,"height":263.94264333685396,"y":-131.94264333685396,"width":215.85135193443722},"animation":[{"name":"walking","frame":[],"bone":[{"name":"root","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"衣服","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"围巾","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"rotate":-2.3421,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"rotate":-2.3421,"tweenEasing":0},{"duration":0}],"translateFrame":[],"scaleFrame":[{"tweenEasing":0,"duration":12},{"tweenEasing":0,"y":0.95,"duration":12},{"tweenEasing":0,"duration":12},{"tweenEasing":0,"y":0.95,"duration":12},{"duration":0}]},{"name":"左手","rotateFrame":[{"duration":12,"rotate":-36.3473,"tweenEasing":0},{"duration":12,"rotate":6.2981,"tweenEasing":0},{"duration":12,"rotate":-36.3473,"tweenEasing":0},{"duration":12,"rotate":6.2981,"tweenEasing":0},{"duration":0,"rotate":-36.3473}],"translateFrame":[],"scaleFrame":[]},{"name":"右手","rotateFrame":[{"duration":12,"rotate":-301.3725,"curve":[0.5,0,1,1]},{"duration":12,"rotate":7.955,"curve":[0,0,0.5,1]},{"duration":12,"rotate":-301.3725,"curve":[0.5,0,1,1]},{"duration":12,"rotate":7.955,"curve":[0,0,0.5,1]},{"duration":0,"rotate":-301.3725}],"translateFrame":[{"curve":[0.5,0,1,1],"x":-4.3779,"y":-7.9403,"duration":12},{"curve":[0,0,0.5,1],"duration":12},{"curve":[0.5,0,1,1],"x":-4.3779,"y":-7.9403,"duration":12},{"curve":[0,0,0.5,1],"duration":12},{"x":-4.3779,"y":-7.9403,"duration":0}],"scaleFrame":[]},{"name":"左腿","rotateFrame":[{"duration":12,"rotate":-3.4196,"curve":[0,0,0.5,1]},{"duration":12,"rotate":-1.6054,"curve":[0.5,0,1,1]},{"duration":12,"rotate":-3.4196,"curve":[0,0,0.5,1]},{"duration":12,"rotate":-1.6054,"curve":[0.5,0,1,1]},{"duration":0,"rotate":-3.4196}],"translateFrame":[{"curve":[0,0,0.5,1],"duration":12},{"curve":[0.5,0,1,1],"y":9.6032,"duration":12},{"curve":[0,0,0.5,1],"duration":12},{"curve":[0.5,0,1,1],"y":9.6032,"duration":12},{"duration":0}],"scaleFrame":[]},{"name":"右腿","rotateFrame":[{"duration":12,"rotate":4.6726,"curve":[0.5,0,1,1]},{"duration":12,"rotate":-319.9452,"curve":[0.5,0,1,1]},{"duration":12,"rotate":4.6726,"curve":[0.5,0,1,1]},{"duration":12,"rotate":-319.9452,"curve":[0.5,0,1,1]},{"duration":0,"rotate":4.6726}],"translateFrame":[{"curve":[0.5,0,1,1],"duration":12},{"curve":[0.5,0,1,1],"x":6.7608,"y":-0.0155,"duration":12},{"curve":[0.5,0,1,1],"duration":12},{"curve":[0.5,0,1,1],"x":6.7608,"y":-0.0155,"duration":12},{"duration":0}],"scaleFrame":[]},{"name":"脸","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"rotate":-3.4595,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"rotate":-3.4595,"tweenEasing":0},{"duration":0}],"translateFrame":[],"scaleFrame":[]},{"name":"左腿1","rotateFrame":[{"duration":12,"rotate":30.6116,"curve":[0.5,0,1,1]},{"duration":12,"rotate":-22.8872,"curve":[0.5,0,1,1]},{"duration":12,"rotate":30.6116,"curve":[0.5,0,1,1]},{"duration":12,"rotate":-22.8872,"curve":[0.5,0,1,1]},{"duration":0,"rotate":30.6116}],"translateFrame":[{"curve":[0.5,0,1,1],"x":3.3539,"y":10.8465,"duration":12},{"curve":[0.5,0,1,1],"x":-11.8496,"y":-28.2665,"duration":12},{"curve":[0.5,0,1,1],"x":3.3539,"y":10.8465,"duration":12},{"curve":[0.5,0,1,1],"x":-11.8496,"y":-28.2665,"duration":12},{"x":3.3539,"y":10.8465,"duration":0}],"scaleFrame":[]},{"name":"左手1","rotateFrame":[{"duration":10,"rotate":-27.522,"curve":[0.5,0,1,1]},{"duration":10,"rotate":8.2662,"curve":[0,0,0.5,1]},{"duration":10,"rotate":-27.522,"curve":[0.5,0,1,1]},{"duration":10,"rotate":8.2662,"curve":[0,0,0.5,1]},{"duration":8,"rotate":-27.522}],"translateFrame":[{"curve":[0.5,0,1,1],"x":-0.6707,"y":-7.5975,"duration":10},{"curve":[0,0,0.5,1],"duration":10},{"curve":[0.5,0,1,1],"x":-0.6707,"y":-7.5975,"duration":10},{"curve":[0,0,0.5,1],"duration":10},{"x":-0.6707,"y":-7.5975,"duration":8}],"scaleFrame":[]},{"name":"右腿1","rotateFrame":[{"duration":12,"rotate":-15.6782,"curve":[0.5,0,1,1]},{"duration":12,"rotate":17.9245,"curve":[0.5,0,1,1]},{"duration":12,"rotate":-15.6782,"curve":[0.5,0,1,1]},{"duration":12,"rotate":17.9245,"curve":[0.5,0,1,1]},{"duration":0,"rotate":-15.6782}],"translateFrame":[{"curve":[0.5,0,1,1],"x":-4.3033,"y":0.0831,"duration":12},{"curve":[0.5,0,1,1],"x":-1.8566,"y":27.7622,"duration":12},{"curve":[0.5,0,1,1],"x":-4.3033,"y":0.0831,"duration":12},{"curve":[0.5,0,1,1],"x":-1.8566,"y":27.7622,"duration":12},{"x":-4.3033,"y":0.0831,"duration":0}],"scaleFrame":[]},{"name":"左耳","rotateFrame":[{"duration":12,"rotate":-2.0872,"curve":[0.5,0,1,1]},{"duration":12,"rotate":7.7541,"curve":[0,0,0.5,1]},{"duration":12,"rotate":-2.0872,"curve":[0.5,0,1,1]},{"duration":12,"rotate":7.7541,"curve":[0,0,0.5,1]},{"duration":0,"rotate":-2.0872}],"translateFrame":[],"scaleFrame":[]},{"name":"右耳","rotateFrame":[{"duration":12,"rotate":7.4098,"curve":[0.5,0,1,1]},{"duration":12,"curve":[0,0,0.5,1]},{"duration":12,"rotate":7.4098,"curve":[0.5,0,1,1]},{"duration":12,"curve":[0,0,0.5,1]},{"duration":0,"rotate":7.4098}],"translateFrame":[],"scaleFrame":[]},{"name":"鼻子","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"rotate":10.3655,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":12,"rotate":10.3655,"tweenEasing":0},{"duration":0}],"translateFrame":[],"scaleFrame":[]},{"name":"嘴巴","rotateFrame":[],"translateFrame":[],"scaleFrame":[{"tweenEasing":0,"duration":12},{"tweenEasing":0,"x":0.81,"y":0.89,"duration":12},{"tweenEasing":0,"duration":12},{"tweenEasing":0,"x":0.81,"y":0.89,"duration":12},{"duration":0}]},{"name":"眼珠","rotateFrame":[],"translateFrame":[{"tweenEasing":0,"duration":12},{"tweenEasing":0,"x":-3.1899,"y":-4.8356,"duration":18},{"tweenEasing":0,"x":-3.1899,"y":-4.8356,"duration":12},{"duration":6}],"scaleFrame":[]},{"name":"眼皮","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"左耳1","rotateFrame":[{"duration":12,"rotate":-10.1354,"curve":[0.5,0,1,1]},{"duration":12,"rotate":6.8616,"curve":[0,0,0.5,1]},{"duration":12,"rotate":-10.1354,"curve":[0.5,0,1,1]},{"duration":12,"rotate":6.8616,"curve":[0,0,0.5,1]},{"duration":0,"rotate":-10.1354}],"translateFrame":[{"curve":[0.5,0,1,1],"duration":12},{"curve":[0,0,0.5,1],"x":-6.6688,"y":-4.9623,"duration":12},{"curve":[0.5,0,1,1],"duration":12},{"curve":[0,0,0.5,1],"x":-6.6688,"y":-4.9623,"duration":12},{"duration":0}],"scaleFrame":[]},{"name":"鼻子1","rotateFrame":[{"duration":12,"curve":[0.5,0,1,1]},{"duration":12,"rotate":16.9991,"curve":[0,0,0.5,1]},{"duration":12,"curve":[0.5,0,1,1]},{"duration":12,"rotate":16.9991,"curve":[0,0,0.5,1]},{"duration":0}],"translateFrame":[],"scaleFrame":[]},{"name":"阴影","rotateFrame":[],"translateFrame":[],"scaleFrame":[{"tweenEasing":0,"duration":12},{"tweenEasing":0,"y":0.91,"duration":12},{"tweenEasing":0,"duration":12},{"tweenEasing":0,"y":0.91,"duration":12},{"duration":0}]},{"name":"饿","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"衣服2","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"衣服3","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"衣服1","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"衣服4","rotateFrame":[],"translateFrame":[],"scaleFrame":[]}],"playTimes":0,"ffd":[{"name":"走路/眼皮","slot":"眼皮","scale":1,"frame":[{"vertices":[0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4],"tweenEasing":0,"offset":0,"duration":3},{"vertices":[0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0.03,-9.79,0.18,-10.79,0.03,-9.79,0,-3.14,0,-3.14,0,-3.14,0.03,-9.79,0.04,-13.44,0.03,-9.79,0,-3.14,0,-3.14,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0,-3.14,0,-3.14],"tweenEasing":0,"offset":0,"duration":3},{"vertices":[0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15],"tweenEasing":0,"offset":1,"duration":3},{"vertices":[0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0.03,-9.79,0.18,-10.79,0.03,-9.79,0,-3.14,0,-3.14,0,-3.14,0.03,-9.79,0.04,-13.44,0.03,-9.79,0,-3.14,0,-3.14,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0,-3.14,0,-3.14],"tweenEasing":0,"offset":0,"duration":3},{"vertices":[0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4],"tweenEasing":null,"offset":0,"duration":36}],"skin":"","offset":0}],"slot":[{"name":"阴影","displayFrame":[],"colorFrame":[]},{"name":"右腿","displayFrame":[],"colorFrame":[]},{"name":"左腿","displayFrame":[],"colorFrame":[]},{"name":"右手","displayFrame":[],"colorFrame":[]},{"name":"衣服","displayFrame":[{"duration":48}],"colorFrame":[]},{"name":"左手","displayFrame":[],"colorFrame":[]},{"name":"围巾","displayFrame":[],"colorFrame":[]},{"name":"左耳","displayFrame":[],"colorFrame":[]},{"name":"右耳","displayFrame":[],"colorFrame":[]},{"name":"脸","displayFrame":[],"colorFrame":[]},{"name":"嘴巴","displayFrame":[],"colorFrame":[]},{"name":"鼻子","displayFrame":[],"colorFrame":[]},{"name":"眼珠","displayFrame":[],"colorFrame":[]},{"name":"眼皮","displayFrame":[],"colorFrame":[]},{"name":"饿","displayFrame":[{"duration":48,"value":-1}],"colorFrame":[]},{"name":"围巾2","displayFrame":[{"duration":48,"value":-1}],"colorFrame":[]}],"ik":[],"duration":48},{"name":"hungry","frame":[],"bone":[{"name":"root","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"衣服","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"围巾","rotateFrame":[{"duration":16,"tweenEasing":0},{"duration":20,"rotate":-2.3421,"tweenEasing":0},{"duration":20,"rotate":-2.3421,"tweenEasing":0},{"duration":0}],"translateFrame":[],"scaleFrame":[{"tweenEasing":0,"duration":16},{"tweenEasing":0,"y":0.95,"duration":20},{"tweenEasing":0,"y":0.95,"duration":20},{"duration":0}]},{"name":"左手","rotateFrame":[{"duration":16,"tweenEasing":0},{"duration":10,"rotate":-35.4451,"tweenEasing":0},{"duration":10,"rotate":321.2318,"tweenEasing":0},{"duration":20,"rotate":-35.4451,"tweenEasing":0},{"duration":0}],"translateFrame":[],"scaleFrame":[]},{"name":"右手","rotateFrame":[{"duration":16,"rotate":10.0486,"tweenEasing":0},{"duration":16,"rotate":31.2515,"tweenEasing":0},{"duration":24,"rotate":31.2515,"tweenEasing":0},{"duration":0,"rotate":10.0486}],"translateFrame":[],"scaleFrame":[]},{"name":"左腿","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"右腿","rotateFrame":[{"duration":56,"rotate":15.4585}],"translateFrame":[{"x":1.6917,"y":-0.9398,"duration":56}],"scaleFrame":[]},{"name":"脸","rotateFrame":[{"duration":16,"tweenEasing":0},{"duration":20,"rotate":10.1002,"tweenEasing":0},{"duration":20,"rotate":10.1002,"tweenEasing":0},{"duration":0}],"translateFrame":[],"scaleFrame":[]},{"name":"左腿1","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"左手1","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":8,"rotate":-35.9961,"tweenEasing":0},{"duration":8,"rotate":-53.2622,"tweenEasing":0},{"duration":8,"rotate":-35.9961,"tweenEasing":0},{"duration":20,"rotate":-53.2622,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":12},{"tweenEasing":0,"x":-5.8084,"y":-29.6916,"duration":8},{"tweenEasing":0,"x":-5.6206,"y":-29.6986,"duration":8},{"tweenEasing":0,"x":-5.8084,"y":-29.6916,"duration":8},{"tweenEasing":0,"x":-5.6206,"y":-29.6986,"duration":20},{"duration":0}],"scaleFrame":[]},{"name":"右腿1","rotateFrame":[{"duration":56,"rotate":-11.1199}],"translateFrame":[],"scaleFrame":[]},{"name":"左耳","rotateFrame":[{"duration":16,"rotate":-10.9573,"curve":[0.5,0,1,1]},{"duration":20,"rotate":-18.9274,"tweenEasing":0},{"duration":20,"rotate":-18.9274,"tweenEasing":0},{"duration":0,"rotate":-10.9573}],"translateFrame":[],"scaleFrame":[]},{"name":"右耳","rotateFrame":[{"duration":16,"rotate":22.127,"curve":[0.5,0,1,1]},{"duration":20,"rotate":12.1335,"curve":[0,0,0.5,1]},{"duration":20,"rotate":12.1335,"curve":[0,0,0.5,1]},{"duration":0,"rotate":22.127}],"translateFrame":[],"scaleFrame":[]},{"name":"鼻子","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":12,"rotate":13.9161,"tweenEasing":0},{"duration":30,"rotate":15.1234,"tweenEasing":0},{"duration":0}],"translateFrame":[],"scaleFrame":[]},{"name":"嘴巴","rotateFrame":[{"duration":56,"rotate":38.3853}],"translateFrame":[{"x":7.465,"y":1.9152,"duration":56}],"scaleFrame":[{"x":-1,"duration":56}]},{"name":"眼珠","rotateFrame":[],"translateFrame":[{"tweenEasing":0,"duration":12},{"tweenEasing":0,"x":-3.1899,"y":-4.8356,"duration":18},{"tweenEasing":0,"x":-3.1899,"y":-4.8356,"duration":12},{"duration":14}],"scaleFrame":[]},{"name":"眼皮","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"左耳1","rotateFrame":[{"duration":16,"rotate":-16.1369,"tweenEasing":0},{"duration":20,"rotate":-25.4816,"tweenEasing":0},{"duration":20,"rotate":-25.4816,"tweenEasing":0},{"duration":0,"rotate":-16.1369}],"translateFrame":[{"tweenEasing":0,"x":-6.3387,"y":-8.4562,"duration":16},{"tweenEasing":0,"x":-10.1275,"y":-10.0811,"duration":20},{"tweenEasing":0,"x":-10.1275,"y":-10.0811,"duration":20},{"x":-6.3387,"y":-8.4562,"duration":0}],"scaleFrame":[]},{"name":"鼻子1","rotateFrame":[{"duration":14,"tweenEasing":0},{"duration":14,"rotate":19.0149,"tweenEasing":0},{"duration":10,"rotate":33.0063,"tweenEasing":0},{"duration":18,"rotate":19.0149,"tweenEasing":0},{"duration":0}],"translateFrame":[],"scaleFrame":[]},{"name":"阴影","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"饿","rotateFrame":[],"translateFrame":[{"tweenEasing":0,"x":-11.8421,"duration":12},{"x":7.8947,"duration":44}],"scaleFrame":[]},{"name":"衣服2","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"衣服3","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"衣服1","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"衣服4","rotateFrame":[],"translateFrame":[],"scaleFrame":[]}],"playTimes":0,"ffd":[{"name":"走路/眼皮","slot":"眼皮","scale":1,"frame":[{"vertices":[0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4],"tweenEasing":0,"offset":0,"duration":3},{"vertices":[0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0.03,-9.79,0.18,-10.79,0.03,-9.79,0,-3.14,0,-3.14,0,-3.14,0.03,-9.79,0.04,-13.44,0.03,-9.79,0,-3.14,0,-3.14,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0,-3.14,0,-3.14],"tweenEasing":0,"offset":0,"duration":3},{"vertices":[0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15],"tweenEasing":0,"offset":1,"duration":3},{"vertices":[0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0.03,-9.79,0.18,-10.79,0.03,-9.79,0,-3.14,0,-3.14,0,-3.14,0.03,-9.79,0.04,-13.44,0.03,-9.79,0,-3.14,0,-3.14,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0,-3.14,0,-3.14],"tweenEasing":0,"offset":0,"duration":3},{"vertices":[0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4],"tweenEasing":null,"offset":0,"duration":44}],"skin":"","offset":0}],"slot":[{"name":"阴影","displayFrame":[],"colorFrame":[]},{"name":"右腿","displayFrame":[],"colorFrame":[]},{"name":"左腿","displayFrame":[],"colorFrame":[]},{"name":"右手","displayFrame":[],"colorFrame":[]},{"name":"衣服","displayFrame":[{"duration":56}],"colorFrame":[]},{"name":"左手","displayFrame":[],"colorFrame":[]},{"name":"围巾","displayFrame":[],"colorFrame":[]},{"name":"左耳","displayFrame":[],"colorFrame":[]},{"name":"右耳","displayFrame":[],"colorFrame":[]},{"name":"脸","displayFrame":[],"colorFrame":[]},{"name":"嘴巴","displayFrame":[],"colorFrame":[]},{"name":"鼻子","displayFrame":[],"colorFrame":[]},{"name":"眼珠","displayFrame":[],"colorFrame":[]},{"name":"眼皮","displayFrame":[],"colorFrame":[]},{"name":"饿","displayFrame":[],"colorFrame":[{"duration":12,"color":{"aM":0},"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":32,"color":{"aM":0}}]},{"name":"围巾2","displayFrame":[{"duration":56,"value":-1}],"colorFrame":[]}],"ik":[],"duration":56},{"name":"happy","frame":[],"bone":[{"name":"root","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"衣服","rotateFrame":[],"translateFrame":[{"curve":[0,0,0.5,1],"duration":10},{"curve":[0.5,0,1,1],"y":-18.6596,"duration":10},{"curve":[0,0,0.5,1],"duration":10},{"curve":[0.5,0,1,1],"y":-18.6596,"duration":10},{"duration":0}],"scaleFrame":[]},{"name":"围巾","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"rotate":-2.3421,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":4,"rotate":-2.3421}],"translateFrame":[],"scaleFrame":[{"tweenEasing":0,"duration":12},{"tweenEasing":0,"y":0.95,"duration":12},{"tweenEasing":0,"duration":12},{"y":0.95,"duration":4}]},{"name":"左手","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"右手","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"左腿","rotateFrame":[{"duration":10,"tweenEasing":0},{"duration":10,"rotate":-7.7064,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":10,"rotate":-7.7064,"tweenEasing":0},{"duration":0}],"translateFrame":[],"scaleFrame":[]},{"name":"右腿","rotateFrame":[{"duration":10,"tweenEasing":0},{"duration":10,"rotate":7.7783,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":10,"rotate":7.7783,"tweenEasing":0},{"duration":0}],"translateFrame":[],"scaleFrame":[]},{"name":"脸","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"rotate":-3.4595,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":4,"rotate":-3.4595}],"translateFrame":[],"scaleFrame":[]},{"name":"左腿1","rotateFrame":[{"duration":10,"curve":[0,0,0.5,1]},{"duration":10,"rotate":-4.3635,"curve":[0.5,0,1,1]},{"duration":10,"curve":[0,0,0.5,1]},{"duration":10,"rotate":-4.3635,"curve":[0.5,0,1,1]},{"duration":0}],"translateFrame":[{"curve":[0,0,0.5,1],"duration":10},{"curve":[0.5,0,1,1],"x":5.8907,"y":-3.8135,"duration":10},{"curve":[0,0,0.5,1],"duration":10},{"curve":[0.5,0,1,1],"x":5.8907,"y":-3.8135,"duration":10},{"duration":0}],"scaleFrame":[]},{"name":"左手1","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"右腿1","rotateFrame":[{"duration":10,"curve":[0,0,0.5,1]},{"duration":10,"rotate":-10.711,"curve":[0.5,0,1,1]},{"duration":10,"curve":[0,0,0.5,1]},{"duration":10,"rotate":-10.711,"curve":[0.5,0,1,1]},{"duration":0}],"translateFrame":[{"curve":[0,0,0.5,1],"duration":10},{"curve":[0.5,0,1,1],"x":2.4185,"y":8.9056,"duration":10},{"curve":[0,0,0.5,1],"duration":10},{"curve":[0.5,0,1,1],"x":2.4185,"y":8.9056,"duration":10},{"duration":0}],"scaleFrame":[]},{"name":"左耳","rotateFrame":[{"duration":12,"rotate":-2.0872,"curve":[0.5,0,1,1]},{"duration":12,"rotate":7.7541,"curve":[0,0,0.5,1]},{"duration":12,"rotate":-2.0872,"curve":[0.5,0,1,1]},{"duration":4,"rotate":7.7541}],"translateFrame":[],"scaleFrame":[]},{"name":"右耳","rotateFrame":[{"duration":12,"rotate":7.4098,"curve":[0.5,0,1,1]},{"duration":12,"curve":[0,0,0.5,1]},{"duration":12,"rotate":7.4098,"curve":[0.5,0,1,1]},{"duration":4}],"translateFrame":[],"scaleFrame":[]},{"name":"鼻子","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"rotate":10.3655,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":4,"rotate":10.3655}],"translateFrame":[],"scaleFrame":[]},{"name":"嘴巴","rotateFrame":[],"translateFrame":[],"scaleFrame":[{"tweenEasing":0,"duration":12},{"tweenEasing":0,"x":0.81,"y":0.89,"duration":12},{"tweenEasing":0,"duration":12},{"x":0.81,"y":0.89,"duration":4}]},{"name":"眼珠","rotateFrame":[],"translateFrame":[{"tweenEasing":0,"duration":12},{"tweenEasing":0,"x":-3.1899,"y":-4.8356,"duration":18},{"tweenEasing":0,"x":-3.1899,"y":-4.8356,"duration":10},{"duration":0}],"scaleFrame":[]},{"name":"眼皮","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"左耳1","rotateFrame":[{"duration":12,"rotate":-10.1354,"curve":[0.5,0,1,1]},{"duration":12,"rotate":6.8616,"curve":[0,0,0.5,1]},{"duration":12,"rotate":-10.1354,"curve":[0.5,0,1,1]},{"duration":4,"rotate":6.8616}],"translateFrame":[{"curve":[0.5,0,1,1],"duration":12},{"curve":[0,0,0.5,1],"x":-6.6688,"y":-4.9623,"duration":12},{"curve":[0.5,0,1,1],"duration":12},{"x":-6.6688,"y":-4.9623,"duration":4}],"scaleFrame":[]},{"name":"鼻子1","rotateFrame":[{"duration":12,"curve":[0.5,0,1,1]},{"duration":12,"rotate":16.9991,"curve":[0,0,0.5,1]},{"duration":12,"curve":[0.5,0,1,1]},{"duration":4,"rotate":16.9991}],"translateFrame":[],"scaleFrame":[]},{"name":"阴影","rotateFrame":[],"translateFrame":[],"scaleFrame":[{"tweenEasing":0,"duration":10},{"tweenEasing":0,"x":0.8,"y":0.8,"duration":10},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"x":0.8,"y":0.8,"duration":10},{"duration":0}]},{"name":"饿","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"衣服2","rotateFrame":[{"duration":10,"rotate":5.539,"tweenEasing":0},{"duration":10,"rotate":0.8703,"tweenEasing":0},{"duration":10,"rotate":5.539,"tweenEasing":0},{"duration":10,"rotate":0.8703,"tweenEasing":0},{"duration":0,"rotate":5.539}],"translateFrame":[],"scaleFrame":[]},{"name":"衣服3","rotateFrame":[{"duration":10,"curve":[0,0,0.5,1]},{"duration":10,"rotate":-5.7707,"curve":[0.5,0,1,1]},{"duration":10,"curve":[0,0,0.5,1]},{"duration":10,"curve":[0,0,0.5,1]},{"duration":0,"rotate":-5.7707}],"translateFrame":[{"curve":[0,0,0.5,1],"duration":10},{"curve":[0.5,0,1,1],"x":4.0911,"y":-1.6903,"duration":10},{"curve":[0,0,0.5,1],"duration":10},{"curve":[0,0,0.5,1],"duration":10},{"x":4.0911,"y":-1.6903,"duration":0}],"scaleFrame":[]},{"name":"衣服1","rotateFrame":[{"duration":10,"tweenEasing":0},{"duration":10,"rotate":8.4264,"tweenEasing":0},{"duration":10,"tweenEasing":0},{"duration":10,"rotate":8.4264,"tweenEasing":0},{"duration":0}],"translateFrame":[],"scaleFrame":[]},{"name":"衣服4","rotateFrame":[{"duration":10,"curve":[0,0,0.5,1]},{"duration":10,"rotate":8.733,"curve":[0.5,0,1,1]},{"duration":10,"curve":[0,0,0.5,1]},{"duration":10,"rotate":8.733,"curve":[0.5,0,1,1]},{"duration":0}],"translateFrame":[{"curve":[0,0,0.5,1],"duration":10},{"curve":[0.5,0,1,1],"x":3.1139,"y":4.8123,"duration":10},{"curve":[0,0,0.5,1],"duration":10},{"curve":[0.5,0,1,1],"x":3.1139,"y":4.8123,"duration":10},{"duration":0}],"scaleFrame":[]}],"playTimes":0,"ffd":[{"name":"走路/眼皮","slot":"眼皮","scale":1,"frame":[{"vertices":[0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4],"tweenEasing":0,"offset":0,"duration":3},{"vertices":[0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0.03,-9.79,0.18,-10.79,0.03,-9.79,0,-3.14,0,-3.14,0,-3.14,0.03,-9.79,0.04,-13.44,0.03,-9.79,0,-3.14,0,-3.14,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0,-3.14,0,-3.14],"tweenEasing":0,"offset":0,"duration":3},{"vertices":[0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15,0,0.15],"tweenEasing":0,"offset":1,"duration":3},{"vertices":[0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0.03,-9.79,0.18,-10.79,0.03,-9.79,0,-3.14,0,-3.14,0,-3.14,0.03,-9.79,0.04,-13.44,0.03,-9.79,0,-3.14,0,-3.14,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0.04,-13.19,0,-3.14,0,-3.14,0,-3.14,0,-3.14],"tweenEasing":0,"offset":0,"duration":3},{"vertices":[0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4,0.07,-25.4],"tweenEasing":null,"offset":0,"duration":28}],"skin":"","offset":0}],"slot":[{"name":"阴影","displayFrame":[],"colorFrame":[]},{"name":"右腿","displayFrame":[],"colorFrame":[]},{"name":"左腿","displayFrame":[],"colorFrame":[]},{"name":"右手","displayFrame":[{"duration":40,"value":-1}],"colorFrame":[]},{"name":"衣服","displayFrame":[{"duration":20,"value":1},{"duration":20,"value":1},{"duration":0,"value":1}],"colorFrame":[]},{"name":"左手","displayFrame":[{"duration":40,"value":-1}],"colorFrame":[]},{"name":"围巾","displayFrame":[{"duration":40,"value":-1}],"colorFrame":[]},{"name":"左耳","displayFrame":[],"colorFrame":[]},{"name":"右耳","displayFrame":[],"colorFrame":[]},{"name":"脸","displayFrame":[],"colorFrame":[]},{"name":"嘴巴","displayFrame":[],"colorFrame":[]},{"name":"鼻子","displayFrame":[],"colorFrame":[]},{"name":"眼珠","displayFrame":[],"colorFrame":[]},{"name":"眼皮","displayFrame":[],"colorFrame":[]},{"name":"饿","displayFrame":[{"duration":40,"value":-1}],"colorFrame":[]},{"name":"围巾2","displayFrame":[],"colorFrame":[]}],"ik":[],"duration":40}],"defaultActions":[{"gotoAndPlay":"walking"}],"skin":[{"name":"","slot":[{"name":"眼皮","display":[{"name":"走路/眼皮","height":32,"type":"mesh","edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,0],"width":59,"transform":{"x":-7.0112,"skY":121.8848,"y":17.4766,"skX":121.8848},"triangles":[17,18,25,25,15,16,17,25,16,25,24,14,12,13,14,24,12,14,15,25,14,24,11,12,18,24,25,19,20,24,10,11,24,19,24,18,20,10,24,21,9,20,20,9,10,23,8,9,21,23,9,0,23,21,6,7,8,23,6,8,0,22,23,22,6,23,1,2,22,4,5,22,22,5,6,1,22,0,2,3,22,3,4,22],"userEdges":[],"uvs":[0.17373,0.14844,0.03729,0.22813,0,0.44531,0,0.65156,0.00169,0.89219,0.07034,1,0.17627,1,0.31271,1,0.36441,0.85938,0.37627,0.58594,0.7,0.55937,0.75763,0.72813,0.8678,0.8,0.97712,0.71562,1,0.58437,1,0.38125,1,0.08281,0.94492,-0.00156,0.85424,-0.00156,0.73644,-0.00156,0.67288,0.18594,0.35847,0.24531,0.08786,0.60034,0.28957,0.5904,0.80006,0.37262,0.93908,0.34988],"path":"走路/眼皮","vertices":[-19.25,-11.25,-27.3,-8.7,-29.5,-1.75,-29.5,4.85,-29.4,12.55,-25.35,16,-19.1,16,-11.05,16,-8,11.5,-7.3,2.75,11.8,1.9,15.2,7.3,21.7,9.6,28.15,6.9,29.5,2.7,29.5,-3.8,29.5,-13.35,26.25,-16.05,20.9,-16.05,13.95,-16.05,10.2,-10.05,-8.35,-8.15,-24.32,3.21,-12.42,2.89,17.7,-4.08,25.91,-4.8]}]},{"name":"饿","display":[{"name":"走路/饿","transform":{"x":0.7575,"skY":-90,"y":-2.1492,"skX":-90},"type":"image","path":"走路/饿"}]},{"name":"阴影","display":[{"name":"走路/阴影","transform":{"x":-0.5219,"skY":-90.1206,"y":0.3872,"skX":-90.1206},"type":"image","path":"走路/阴影"}]},{"name":"右腿","display":[{"bonePose":[4,0.48346459084158877,0.8753639182662117,-0.8753639182662117,0.48346459084158877,38.2,51.8,21,0.09604514706748718,0.9953769786994194,-0.9953769786994194,0.09604514706748718,54.29999999999996,82.60000000000001],"userEdges":[],"slotPose":[0.9999977839408842,-0.002105258492506326,0.002105258492506326,0.9999977839408842,40.99999999999996,77.50000000000001],"weights":[2,4,0.6631997298870469,21,0.3368002701129532,2,4,0.7875429572594259,21,0.21245704274057406,2,4,0.904862130590558,21,0.09513786940944205,2,4,0.8994002965333745,21,0.10059970346662549,2,4,0.8166396848000982,21,0.18336031519990179,2,4,0.7686194941140329,21,0.23138050588596729,2,4,0.6372907108677067,21,0.3627092891322934,2,4,0.5257987507251152,21,0.47420124927488494,2,4,0.38210339665266624,21,0.6178966033473339,2,4,0.2626931775459036,21,0.7373068224540965,2,4,0.14688811561284093,21,0.8531118843871591,2,4,0.07935777926596232,21,0.9206422207340378,2,4,0.15356367815923302,21,0.8464363218407669,2,4,0.14934615071606303,21,0.8506538492839371,2,4,0.21930982386973674,21,0.7806901761302633,2,4,0.3654360517063407,21,0.6345639482936593,2,4,0.5718630889989177,21,0.42813691100108237,2,4,0.27050868817985824,21,0.7294913118201417,2,4,0.5675171341127718,21,0.43248286588722823],"transform":{"x":-6.3538,"skY":-84.6091,"y":12.7487,"skX":-84.6091},"type":"mesh","width":62,"name":"走路/右腿","height":77,"vertices":[24.05,-26.8,16.05,-37.15,4,-38.5,-14.35,-38.5,-28.55,-32.85,-31,-22,-31,-5.7,-22.8,9.45,-15.05,26.95,-8.8,38.5,2.65,38.5,19.55,38.5,31,38.5,31,29.6,31,20.4,31,7.7,26.7,-13.8,21.14,4.84,-3.86,3.49],"path":"走路/右腿","triangles":[11,13,14,17,11,14,13,11,12,17,14,15,16,17,15,10,11,17,18,10,17,0,18,16,18,17,16,1,2,0,2,18,0,18,8,10,3,18,2,3,5,18,5,6,18,8,9,10,4,5,3,6,7,18,7,8,18],"uvs":[0.8879,0.15195,0.75887,0.01753,0.56452,0,0.26855,0,0.03952,0.07338,0,0.21429,0,0.42597,0.13226,0.62273,0.25726,0.85,0.35806,1,0.54274,1,0.81532,1,1,1,1,0.88442,1,0.76494,1,0.6,0.93065,0.32078,0.84097,0.56292,0.43778,0.54535],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,0]}]},{"name":"左腿","display":[{"bonePose":[7,-0.36179952596909465,0.9322559214124297,-0.9322559214124297,-0.36179952596909465,8.650000000000004,51.1,15,-0.2867360581093517,0.9580096205048835,-0.9580096205048835,-0.2867360581093517,-2.1999999999999824,86.30000000000001],"userEdges":[],"slotPose":[0.9999977839408841,-0.0021052584924816653,0.0021052584924816653,0.9999977839408841,-0.9999999999999618,82],"weights":[2,7,0.8090353086672651,15,0.19096469133273491,2,7,0.92,15,0.08,2,7,0.88,15,0.12,2,7,0.5186558241932598,15,0.4813441758067401,2,7,0.392425551140543,15,0.607574448859457,2,7,0.2872415920052162,15,0.7127584079947838,2,7,0.16610846794038556,15,0.8338915320596144,2,7,0.06017355008794399,15,0.939826449912056,2,7,0.06415262677120699,15,0.9358473732287931,2,7,0.15633813397327695,15,0.8436618660267231,2,7,0.21756674999309178,15,0.7824332500069082,2,7,0.2955815151447187,15,0.7044184848552814,2,7,0.43589182594159787,15,0.5641081740584022,2,7,0.73,15,0.27,2,7,0.84,15,0.16,2,7,0.91,15,0.09,1,7,1,1,7,1,2,7,0.9932967298965132,15,0.00670327010348673,1,7,1,1,7,1,2,7,0.3939091433476022,15,0.6060908566523978,2,7,0.3737546739344217,15,0.6262453260655784],"transform":{"x":-4.4635,"skY":-106.7833,"y":0.0834,"skX":-106.7833},"type":"mesh","width":62,"name":"走路/左腿","height":68,"vertices":[31,-26.65,31,-26.4,30.85,-14.05,25.65,0.25,20.2,14.75,16.3,25.75,8.85,34.05,-2,34.05,-14.9,34.05,-26.7,34.05,-31,24.95,-31,16.2,-31,3.25,-31,-10.65,-31,-18.2,-31,-29.5,-26.6,-34,-12.45,-34,8.8,-34,22.2,-34,31,-34,12.54,5.23,-16.41,3.07],"path":"走路/左腿","triangles":[19,18,2,19,2,1,19,1,0,20,19,0,21,3,2,18,21,2,21,4,3,17,22,18,18,22,21,21,5,4,21,7,5,7,6,5,22,7,21,14,13,22,22,11,8,14,22,17,22,8,7,15,14,16,10,9,8,11,10,8,16,14,17,13,12,22,12,11,22],"uvs":[1,0.10809,1,0.11176,0.99758,0.29338,0.91371,0.50368,0.82581,0.71691,0.7629,0.87868,0.64274,1.00074,0.46774,1.00074,0.25968,1.00074,0.06935,1.00074,0,0.86691,0,0.73824,0,0.54779,0,0.34338,0,0.23235,0,0.06618,0.07097,0,0.29919,0,0.64194,0,0.85806,0,1,0,0.70224,0.57686,0.23538,0.54508],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,0]}]},{"name":"右手","display":[{"name":"走路/右手","transform":{"x":27.1699,"skY":-57.0955,"y":-1.7561,"skX":-57.0955},"type":"image","path":"走路/右手"}]},{"name":"衣服","display":[{"name":"走路/衣服","transform":{"x":-58.6257,"skY":142.7408,"y":10.6252,"skX":142.7408},"type":"image","path":"走路/衣服"},{"bonePose":[10,-0.850029116500765,-0.5267357032715073,0.5267357032715073,-0.850029116500765,-4.199999999999932,-1.452632161492346,22,-0.797177636084725,-0.6037448273288726,0.6037448273288726,-0.797177636084725,-39.65,-18.650000000000002,9,0.6268714235960784,-0.7791227235029319,0.7791227235029319,0.6268714235960784,38.8,-4.5000000000000036,20,0.43334837062043763,-0.9012264918879226,0.9012264918879226,0.43334837062043763,67.5,-33.949999999999996,3,6.123233995736766e-17,-1,1,6.123233995736766e-17,21.3,23.9],"userEdges":[],"slotPose":[1.0000000000000004,-5.551115123125783e-17,5.551115123125783e-17,0.9999999999999999,8.090225563909918,-11.362792931935825],"weights":[4,10,0.04929178064427734,20,0.7434573589535687,9,0.16988587743632738,22,0.037364982965826576,4,10,0.0460942988924822,20,0.6543632986158809,9,0.2693235140146689,22,0.030218888476968134,4,10,0.10131906525736255,9,0.48484958846786014,20,0.356644799464488,22,0.05718654681028936,2,10,0.61,22,0.39,4,10,0.27954361651266324,22,0.6442581756946283,9,0.045314733751155446,20,0.030883474041552932,4,10,0.16219732256280406,22,0.7577575399352668,9,0.04525768891681806,20,0.034787448585111014,4,10,0.1335042288931194,22,0.8028680807355816,9,0.03659006833096699,20,0.027037622040332176,4,10,0.11750127651703196,22,0.837723428023643,9,0.02669102679865525,20,0.018084268660669662,4,10,0.23794304094954116,22,0.6750796279851813,9,0.053315648014649705,20,0.03366168305062778,4,10,0.35523222949719746,22,0.5327732381786813,9,0.07176449834694193,20,0.0402300339771794,4,10,0.4398919901957386,22,0.42126723582742454,9,0.0940395715399642,20,0.04480120243687258,4,10,0.40408313982171906,22,0.3496416832401179,9,0.16480505695999756,20,0.08147011997816549,5,10,0.05,22,0.03,9,0.02,3,0.89,20,0.01,1,3,1,1,3,1,5,10,0.02,9,0.06,20,0.01,22,0.01,3,0.9,5,10,0.03,9,0.08,20,0.04,22,0.02,3,0.8300000000000001,4,10,0.17187053293056598,9,0.4466584668501974,20,0.2972341904704125,22,0.0842368097488242,4,10,0.09454972543800964,9,0.4604017727838128,20,0.3996416657038102,22,0.04540683607436734,4,10,0.04548012851881602,20,0.5676855126952336,9,0.36232226754310126,22,0.024512091242849064,4,10,0.041519710656472884,20,0.6604259174477626,9,0.273257153435115,22,0.024797218460649514,4,10,0.022437407907315382,20,0.8407897213332062,9,0.12221544274799677,22,0.014557428011481698,4,10,0.022586452822398597,20,0.864298945942436,9,0.09743276319301244,22,0.015681838042153177,4,10,0.04166079133933822,20,0.7844830474792508,9,0.14294755104069135,22,0.03090861014071951,4,10,0.009850176873545412,9,0.5316848115778778,20,0.4534303483652842,22,0.005034663183292344,3,20,0.78,9,0.21,22,0.01,4,10,0.9764591082471212,22,0.021835657600230103,9,0.0011561274872970673,20,0.0005491066653514837,4,10,0.3921741259065552,22,0.5657737883152134,9,0.02808103490168437,20,0.013971050876546926],"transform":{"x":-42.4571,"skY":142.8614,"y":23.0137,"skX":142.8614},"type":"mesh","width":178,"name":"走路/衣服2","height":145,"vertices":[58.45,-72.5,47.65,-49.95,29.3,-35.85,-18.95,-28.15,-46.4,-35.55,-73.05,-50.9,-89,-39.6,-89,-17.8,-89,3.65,-72.3,22.05,-49.6,32.5,-49.85,58.3,-44.05,72.5,-19.85,72.5,14.4,72.5,51.9,72.5,76.95,72.5,72,46.05,72.15,16.6,80.45,-6.25,89,-22.6,89,-41.55,89,-56.7,88.6,-72.5,49.21,-24.49,68.91,-17.49,-32.99,-5.09,-49.49,10.51],"path":"走路/衣服2","triangles":[25,19,20,0,1,22,0,22,23,25,20,21,22,1,21,1,25,21,1,24,25,17,15,16,25,18,19,25,24,18,24,14,18,18,14,17,14,15,17,26,14,24,2,26,24,3,26,2,1,2,24,26,10,13,26,13,14,27,10,26,4,26,3,11,12,13,10,11,13,4,27,26,7,8,27,7,27,4,27,9,10,5,7,4,6,7,5,8,9,27],"uvs":[0.82837,0,0.7677,0.15552,0.66461,0.25276,0.39354,0.30586,0.23933,0.25483,0.08961,0.14897,0,0.2269,0,0.37724,0,0.52517,0.09382,0.65207,0.22135,0.72414,0.21994,0.90207,0.25253,1,0.38848,1,0.5809,1,0.79157,1,0.9323,1,0.90449,0.81759,0.90534,0.61448,0.95197,0.4569,1,0.34414,1,0.21345,1,0.10897,0.99775,0,0.77646,0.33112,0.88713,0.3794,0.31466,0.46492,0.22197,0.5725],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,0]}]},{"name":"左手","display":[{"bonePose":[6,-0.6098435478385089,0.7925218275604409,-0.7925218275604409,-0.6098435478385089,-12.567282244998347,-26.14782602413247,18,-0.2962734874208507,0.9551031466032831,-0.9551031466032831,-0.2962734874208507,-33.9143133198379,7.074471367348124],"userEdges":[],"slotPose":[0.9999977839408855,-0.0021052584925072004,0.0021052584925072004,0.9999977839408855,-25.000000000000068,2.500000000000008],"weights":[1,6,1,1,6,1,2,6,0.8181897526623843,18,0.18181024733761578,2,6,0.6220313247750421,18,0.37796867522495786,2,6,0.42927735402348305,18,0.570722645976517,2,6,0.32028228420056015,18,0.6797177157994398,2,6,0.21519892076791228,18,0.7848010792320878,2,6,0.1806267852155118,18,0.8193732147844883,2,6,0.12287663564138167,18,0.8771233643586184,2,6,0.11079756029147955,18,0.8892024397085205,2,6,0.12348823498662627,18,0.8765117650133737,2,6,0.1354049266980396,18,0.8645950733019604,2,6,0.28352894047556826,18,0.7164710595244318,2,6,0.347079591020113,18,0.652920408979887,2,6,0.4444286411913993,18,0.5555713588086008,2,6,0.55,18,0.45,2,6,0.85,18,0.15,1,6,1,1,6,1,1,6,1],"transform":{"x":-6.9328,"skY":-108.1054,"y":-7.3488,"skX":-108.1054},"type":"mesh","width":64,"name":"走路/左手","height":83,"vertices":[32,-32.4,32,-21.95,25.4,-11,20.05,3.75,14.15,25.3,5.75,27.45,1.65,38.3,-1.85,41.5,-8.35,41.5,-26.15,41.5,-31.95,34.35,-31.95,26.7,-31.95,12.8,-28.25,5.9,-31.95,-3.45,-21.05,-23,-7.2,-37.35,7.4,-41.5,22.2,-41.5,32,-41.5],"path":"走路/左手","triangles":[17,2,1,18,17,1,0,18,1,18,0,19,17,16,2,15,3,2,16,15,2,13,5,3,15,13,3,5,4,3,13,12,5,14,13,15,11,8,5,12,11,5,8,6,5,8,7,6,11,9,8,11,10,9],"uvs":[1,0.10964,1,0.23554,0.89687,0.36747,0.81328,0.54518,0.72109,0.80482,0.58984,0.83072,0.52578,0.96145,0.47109,1,0.36953,1,0.09141,1,0.00078,0.91386,0.00078,0.82169,0.00078,0.65422,0.05859,0.57108,0.00078,0.45843,0.17188,0.22349,0.38984,0.04819,0.61562,0,0.84688,0,1,0],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,0]}]},{"name":"围巾","display":[{"name":"走路/围巾","transform":{"x":-16.1206,"skY":-43.1926,"y":4.9405,"skX":-43.1926},"type":"image","path":"走路/围巾"}]},{"name":"左耳","display":[{"bonePose":[12,-0.6952133625080943,0.7188034366850157,-0.7188034366850157,-0.6952133625080943,-32.25,-104.65,23,-0.949794781049111,0.31287357493382506,-0.31287357493382506,-0.949794781049111,-68.75000000000001,-69.7],"userEdges":[],"slotPose":[0.9999977839408845,-0.0021052584924305395,0.0021052584924305395,0.9999977839408845,-53.500000000000014,-86.00000000000001],"weights":[1,12,1,1,12,1,1,12,1,2,12,0.88,23,0.12,2,12,0.8200000000000001,23,0.18,2,12,0.37,23,0.63,2,12,0.16817699906132227,23,0.8318230009386778,2,12,0.04,23,0.96,2,12,0.07707030585683289,23,0.9229296941431672,2,12,0.06870402884806232,23,0.9312959711519376,2,12,0.17153586404540888,23,0.8284641359545911,2,12,0.3851900193389824,23,0.6148099806610177,2,12,0.76,23,0.24,2,12,0.89,23,0.11,2,12,0.9500000000000001,23,0.05,2,12,0.92,23,0.08,1,12,1],"transform":{"x":-19.5842,"skY":-161.8881,"y":10.7103,"skX":-161.8881},"type":"mesh","width":107,"name":"走路/左耳","height":82,"vertices":[53.5,-35.3,53.5,-21.05,53.5,-7.85,36.65,14.45,14.6,31.35,-13.7,41,-29.5,41,-50.3,41,-53.5,33.35,-53.5,20.7,-53.5,6.2,-37.5,-6.9,-22.2,-12.15,-6.8,-33.75,5.6,-41,27.85,-41,43.85,-41],"path":"走路/左耳","triangles":[15,3,2,15,2,1,16,15,1,16,1,0,15,14,3,14,13,3,12,4,3,13,12,3,12,5,4,12,11,5,11,9,6,11,6,5,10,9,11,9,8,6,8,7,6],"uvs":[1,0.06951,1,0.24329,1,0.40427,0.84252,0.67622,0.63645,0.88232,0.37196,1,0.2243,1,0.02991,1,0,0.90671,0,0.75244,0,0.57561,0.14953,0.41585,0.29252,0.35183,0.43645,0.08841,0.55234,0,0.76028,0,0.90981,0],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,0]}]},{"name":"右耳","display":[{"name":"走路/右耳","transform":{"x":17.9977,"skY":-46.8819,"y":0.9322,"skX":-46.8819},"type":"image","path":"走路/右耳"}]},{"name":"脸","display":[{"name":"走路/脸","transform":{"x":9.8616,"skY":104.2688,"y":-5.4709,"skX":104.2688},"type":"image","path":"走路/脸"}]},{"name":"嘴巴","display":[{"name":"走路/嘴巴","transform":{"x":3.2746,"skY":104.2688,"y":1.9241,"skX":104.2688},"type":"image","path":"走路/嘴巴"}]},{"name":"鼻子","display":[{"bonePose":[24,0.4632542093436877,-0.8862254439618367,0.8862254439618367,0.4632542093436877,64.3,-77.00000000000001,19,0.9412105917125162,-0.3378203991001358,0.3378203991001358,0.9412105917125162,34.85000000000001,-61.300000000000004],"userEdges":[],"slotPose":[0.9999977839408843,-0.0021052584924834417,0.0021052584924834417,0.9999977839408843,47.5,-78.99999999999997],"weights":[2,24,0.9611923970300705,19,0.03880760296992939,2,24,0.952690503055001,19,0.047309496944998995,2,24,0.8824580591072362,19,0.11754194089276387,2,24,0.7207020832417013,19,0.2792979167582987,2,24,0.4511615264916445,19,0.5488384735083556,2,24,0.32620004711117856,19,0.6737999528888214,2,24,0.19141529321544137,19,0.8085847067845586,2,24,0.0941817039599493,19,0.9058182960400507,2,24,0.09229565177418783,19,0.9077043482258121,2,24,0.09,19,0.91,2,24,0.06,19,0.9400000000000001,2,24,0.11,19,0.89,2,24,0.03,19,0.97,2,24,0.11,19,0.89,2,24,0.21,19,0.79,2,24,0.7764756938478818,19,0.22352430615211824,2,24,0.8441149655990965,19,0.15588503440090343,2,24,0.8569115295023856,19,0.1430884704976144,2,24,0.9150087671033025,19,0.08499123289669755,2,24,0.9114661868121524,19,0.08853381318784762],"transform":{"x":-6.0102,"skY":62.2821,"y":-15.8151,"skX":62.2821},"type":"mesh","width":67,"name":"走路/鼻子","height":60,"vertices":[33.5,-21.6,33.5,-14.15,33.5,-7.6,33.5,2.05,26.6,22.4,11.65,30,0,30,-10.3,30,-21.4,30,-33.5,30,-33.5,19.55,-33.5,10.1,-33.5,0.5,-17.8,-1.7,-4.25,1.7,11.1,-14.15,14.3,-25,16.75,-30,25,-30,33.5,-30],"path":"走路/鼻子","triangles":[18,16,0,14,4,3,15,14,3,15,3,2,0,16,1,16,15,1,15,2,1,18,0,19,17,16,18,14,5,4,14,6,5,13,8,7,13,7,14,14,7,6,11,10,8,11,8,13,12,11,13,10,9,8],"uvs":[1,0.14,1,0.26417,1,0.37333,1,0.53417,0.89701,0.87333,0.67388,1,0.5,1,0.34627,1,0.1806,1,0,1,0,0.82583,0,0.66833,0,0.50833,0.23433,0.47167,0.43657,0.52833,0.66567,0.26417,0.71343,0.08333,0.75,0,0.87313,0,1,0],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,0]}]},{"name":"围巾2","display":[{"name":"走路/围巾2","transform":{"x":-15.7388,"skY":-43.072,"y":5.2938,"skX":-43.072},"type":"image","path":"走路/围巾2"}]},{"name":"眼珠","display":[{"name":"走路/眼珠","transform":{"x":-19.45,"skY":-0.1206,"y":0.1,"skX":-0.1206},"type":"image","path":"走路/眼珠"}]}]}],"frameRate":24,"type":"Armature","ik":[]}],"frameRate":24,"isGlobal":0}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "d1e0fd95-3f00-476d-9ce6-2595fe1d03ee",
"subMetas": {}
}
\ No newline at end of file
{"name":"walkinghungryhappy","imagePath":"walkinghungryhappy_tex.png","SubTexture":[{"name":"走路/阴影","x":1,"height":37,"y":334,"width":143},{"name":"走路/右腿","x":83,"height":77,"y":401,"width":62},{"name":"走路/左腿","x":1,"height":68,"y":435,"width":62},{"name":"走路/右手","x":147,"height":70,"y":401,"width":60},{"name":"走路/衣服2","x":1,"height":145,"y":1,"width":178},{"name":"走路/衣服","x":106,"height":100,"y":148,"width":95},{"name":"走路/左手","x":181,"height":83,"y":1,"width":64},{"name":"走路/围巾","x":1,"height":60,"y":373,"width":80},{"name":"走路/围巾2","x":146,"height":65,"frameY":0,"y":334,"frameHeight":65,"frameX":0,"frameWidth":78,"width":77},{"name":"走路/左耳","x":106,"height":82,"y":250,"width":107},{"name":"走路/右耳","x":1,"height":65,"y":257,"width":88},{"name":"走路/脸","x":1,"height":107,"y":148,"width":103},{"name":"走路/嘴巴","x":65,"height":10,"y":480,"width":23},{"name":"走路/鼻子","x":181,"height":60,"y":86,"width":67},{"name":"走路/眼珠","x":83,"height":21,"y":373,"width":50},{"name":"走路/眼皮","x":147,"height":32,"y":473,"width":59},{"name":"走路/饿","x":208,"height":35,"y":473,"width":38}],"height":512,"width":256}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "7bb1fdec-6bf4-4d94-b596-5a98f4d68121",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "fb67c85c-587f-48f1-82a3-e64242a6d336",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 512,
"platformSettings": {},
"subMetas": {
"walkinghungryhappy_tex": {
"ver": "1.0.4",
"uuid": "476841dd-bad5-4844-92b3-5eb0e514cbd1",
"rawTextureUuid": "fb67c85c-587f-48f1-82a3-e64242a6d336",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -3.5,
"offsetY": 1.5,
"trimX": 1,
"trimY": 1,
"width": 247,
"height": 507,
"rawWidth": 256,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment