Commit dfcc7a9b authored by Tt's avatar Tt

init

parent a3f5ba9f
import { asyncDelay, onHomeworkFinish } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
const { ccclass, property } = cc._decorator;
@ccclass
export default class SceneComponent extends MyCocosSceneComponent {
addPreloadImage() {
// TODO 根据自己的配置预加载图片资源
this._imageResList.push({ url: this.data.pic_url });
this._imageResList.push({ url: this.data.pic_url_2 });
}
addPreloadAudio() {
// TODO 根据自己的配置预加载音频资源
this._audioResList.push({ url: this.data.audio_url });
}
addPreloadAnima() {
}
async onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData();
this.initView();
this.initListener();
}
_cantouch = null;
initData() {
// 所有全局变量 默认都是null
this._cantouch = true;
}
initView() {
this.initBg();
this.initPic();
this.initBtn();
this.initIcon();
}
initBg() {
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
}
pic1 = null;
pic2 = null;
initPic() {
const canvas = cc.find('Canvas');
const maxW = canvas.width * 0.7;
this.getSprNodeByUrl(this.data.pic_url, (sprNode) => {
const picNode1 = sprNode;
picNode1.scale = maxW / picNode1.width;
picNode1.baseX = picNode1.x;
canvas.addChild(picNode1);
this.pic1 = picNode1;
const labelNode = new cc.Node();
labelNode.color = cc.Color.YELLOW;
const label = labelNode.addComponent(cc.Label);
label.string = this.data.text;
label.fontSize = 60;
label.lineHeight = 60;
label.font = cc.find('Canvas/res/font/BRLNSDB').getComponent('cc.Label').font;
picNode1.addChild(labelNode);
});
this.getSprNodeByUrl(this.data.pic_url_2, (sprNode) => {
const picNode2 = sprNode;
picNode2.scale = maxW / picNode2.width;
canvas.addChild(picNode2);
picNode2.x = canvas.width;
picNode2.baseX = picNode2.x;
this.pic2 = picNode2;
const labelNode = new cc.Node();
const label = labelNode.addComponent(cc.RichText);
const size = 60
label.font = cc.find('Canvas/res/font/BRLNSDB').getComponent(cc.Label).font;
label.string = `<outline color=#751e00 width=4><size=${size}><color=#ffffff>${this.data.text}</color></size></outline>`
label.lineHeight = size;
picNode2.addChild(labelNode);
});
}
initIcon() {
const iconNode = this.getSprNode('icon');
iconNode.zIndex = 5;
iconNode.anchorX = 1;
iconNode.anchorY = 1;
iconNode.parent = cc.find('Canvas');
iconNode.x = iconNode.parent.width / 2 - 10;
iconNode.y = iconNode.parent.height / 2 - 10;
iconNode.on(cc.Node.EventType.TOUCH_START, () => {
this.playAudioByUrl(this.data.audio_url);
})
}
curPage = null;
initBtn() {
this.curPage = 0;
const bottomPart = cc.find('Canvas/bottomPart');
bottomPart.zIndex = 5; // 提高层级
bottomPart.x = bottomPart.parent.width / 2;
bottomPart.y = -bottomPart.parent.height / 2;
const leftBtnNode = bottomPart.getChildByName('btn_left');
//节点中添加了button组件 则可以添加click事件监听
leftBtnNode.on('click', () => {
if (!this._cantouch) {
return;
}
if (this.curPage == 0) {
return;
}
this.curPage = 0
this.leftMove();
this.playLocalAudio('btn');
})
const rightBtnNode = bottomPart.getChildByName('btn_right');
//节点中添加了button组件 则可以添加click事件监听
rightBtnNode.on('click', () => {
if (!this._cantouch) {
return;
}
if (this.curPage == 1) {
return;
}
this.curPage = 1
this.rightMove();
// 游戏结束时需要调用这个方法通知系统作业完成
onHomeworkFinish();
this.playLocalAudio('btn');
})
}
leftMove() {
this._cantouch = false;
const len = this.pic1.parent.width;
cc.tween(this.pic1)
.to(1, { x: this.pic1.baseX }, { easing: 'cubicInOut' })
.start();
cc.tween(this.pic2)
.to(1, { x: this.pic2.baseX }, { easing: 'cubicInOut' })
.call(() => {
this._cantouch = true;
})
.start();
}
rightMove() {
this._cantouch = false;
const len = this.pic1.parent.width;
cc.tween(this.pic1)
.to(1, { x: this.pic1.baseX - len }, { easing: 'cubicInOut' })
.start();
cc.tween(this.pic2)
.to(1, { x: this.pic2.baseX - len }, { easing: 'cubicInOut' })
.call(() => {
this._cantouch = true;
})
.start();
}
// update (dt) {},
initListener() {
}
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);
});
})
}
}
export const defaultData = {
"pic_url": "http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png",
"pic_url_2": "http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png",
"text": "This is a test label.",
"audio_url": "http://staging-teach.cdn.ireadabc.com/f47f1d7b5c160fe1c59500d180346240.mp3"
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "fa912cc9-47ec-4987-8798-2e432853a3aa",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "56ec52b1-ea8c-4e77-9ad2-152a7b04cddb",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "99481384-7524-4ecf-9623-d8466df57025",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "cafb4d03-522d-4674-879a-b8193c99d2b2",
"subMetas": {}
}
\ No newline at end of file
{"imagePath":"Excellent_tex.png","width":2048,"height":2048,"name":"Excellent","SubTexture":[{"width":161,"y":1849,"height":162,"name":"翅膀_左3","x":671},{"width":161,"y":1849,"height":162,"name":"翅膀_左2","x":508},{"width":160,"y":1849,"height":162,"name":"翅膀_左1","x":834},{"width":161,"y":604,"height":162,"name":"翅膀_右3","x":1864},{"width":161,"y":440,"height":162,"name":"翅膀_右2","x":1864},{"width":160,"y":723,"height":162,"name":"翅膀_右1","x":1532},{"width":391,"y":1,"height":437,"name":"菱形","x":1532},{"width":330,"y":440,"height":281,"name":"虎头Excellent","x":1532},{"width":505,"y":1849,"height":151,"name":"Excellent","x":1},{"width":45,"y":39,"height":30,"name":"糖1","x":2000},{"width":41,"y":1,"height":36,"name":"糖2","x":2000},{"width":39,"y":1,"height":61,"name":"糖3","x":1925},{"width":32,"y":1,"height":49,"name":"糖4","x":1966},{"width":19,"y":80,"height":25,"name":"糖5","x":1952},{"width":26,"y":52,"height":26,"name":"糖6","x":1966},{"width":20,"y":107,"height":24,"name":"糖7","x":2021},{"width":15,"y":80,"height":16,"name":"糖8","x":1973},{"width":15,"y":98,"height":16,"name":"糖9","x":1973},{"width":15,"y":91,"height":16,"name":"糖10","x":1925},{"width":25,"y":64,"height":25,"name":"糖11","x":1925},{"width":25,"y":80,"height":25,"name":"糖12","x":2021},{"width":25,"y":71,"height":25,"name":"糖13","x":1994},{"width":50,"y":2002,"height":27,"name":"糖14","x":1},{"width":862,"y":985,"height":862,"name":"光4","x":1},{"frameY":-74,"y":1,"frameWidth":1920,"frameX":-164,"frameHeight":1080,"width":1529,"height":982,"name":"光","x":1}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "14afe0ae-e556-497f-bf9e-0aab665b5693",
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "2.3.5",
"uuid": "2db45808-9651-4462-b6a2-cb9b013664ed",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 2048,
"platformSettings": {},
"subMetas": {
"Excellent_tex": {
"ver": "1.0.4",
"uuid": "d705d261-275e-4c27-aca0-d5e234e77f62",
"rawTextureUuid": "2db45808-9651-4462-b6a2-cb9b013664ed",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 9,
"trimX": 1,
"trimY": 1,
"width": 2045,
"height": 2028,
"rawWidth": 2048,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "a2b070a7-4df7-4591-91b7-bcb74ca2d828",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "c9cb8190-feb9-4295-a068-9669e36839ad",
"subMetas": {}
}
\ No newline at end of file
{"imagePath":"Good_tex.png","width":2048,"height":2048,"name":"Good","SubTexture":[{"width":161,"y":1849,"height":162,"name":"翅膀_左3","x":671},{"width":161,"y":604,"height":162,"name":"翅膀_左2","x":1861},{"width":160,"y":1849,"height":162,"name":"翅膀_左1","x":834},{"width":161,"y":1849,"height":162,"name":"翅膀_右3","x":508},{"width":161,"y":440,"height":162,"name":"翅膀_右2","x":1861},{"width":160,"y":722,"height":162,"name":"翅膀_右1","x":1532},{"width":391,"y":1,"height":437,"name":"菱形","x":1532},{"width":327,"y":440,"height":280,"name":"虎头Good_","x":1532},{"width":505,"y":1849,"height":151,"name":"Good_","x":1},{"width":45,"y":39,"height":30,"name":"糖1","x":2000},{"width":41,"y":1,"height":36,"name":"糖2","x":2000},{"width":39,"y":1,"height":61,"name":"糖3","x":1925},{"width":32,"y":1,"height":49,"name":"糖4","x":1966},{"width":19,"y":80,"height":25,"name":"糖5","x":1952},{"width":26,"y":52,"height":26,"name":"糖6","x":1966},{"width":20,"y":107,"height":24,"name":"糖7","x":2021},{"width":15,"y":80,"height":16,"name":"糖8","x":1973},{"width":15,"y":98,"height":16,"name":"糖9","x":1973},{"width":15,"y":91,"height":16,"name":"糖10","x":1925},{"width":25,"y":80,"height":25,"name":"糖11","x":2021},{"width":25,"y":71,"height":25,"name":"糖12","x":1994},{"width":25,"y":64,"height":25,"name":"糖13","x":1925},{"width":50,"y":2002,"height":27,"name":"糖14","x":1},{"width":862,"y":985,"height":862,"name":"光4","x":1},{"frameY":-74,"y":1,"frameWidth":1920,"frameX":-164,"frameHeight":1080,"width":1529,"height":982,"name":"光","x":1}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "0d2c601a-6231-45ad-9d1f-d5d51092137b",
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "2.3.5",
"uuid": "95c85916-c868-46a2-8d51-31d4f1a96c4a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 2048,
"platformSettings": {},
"subMetas": {
"Good_tex": {
"ver": "1.0.4",
"uuid": "b6ef27ca-bd13-41f2-80ed-6fa70a53ed8e",
"rawTextureUuid": "95c85916-c868-46a2-8d51-31d4f1a96c4a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 9,
"trimX": 1,
"trimY": 1,
"width": 2045,
"height": 2028,
"rawWidth": 2048,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "8c9909a4-3e62-490f-868c-0bac3ff42e93",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "ecd349c0-ad88-4ef1-ace6-27e9ead1d200",
"subMetas": {}
}
\ No newline at end of file
{"name":"lypc","imagePath":"lypc_tex.png","SubTexture":[{"name":"7","x":1,"height":69,"y":1,"width":11},{"name":"6","x":14,"height":45,"y":1,"width":11},{"name":"5","x":40,"height":27,"y":1,"width":11},{"name":"4","x":1,"height":47,"y":72,"width":11},{"name":"3","x":27,"height":27,"y":1,"width":11},{"name":"2","x":14,"height":38,"y":48,"width":11},{"name":"1","x":14,"height":28,"y":88,"width":11}],"height":128,"width":64}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "bfff0b42-e9cc-4302-8ce3-5e421411d054",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "53bc8d78-30ec-4d2a-9d04-5b6f6d9f9699",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 128,
"platformSettings": {},
"subMetas": {
"lypc_tex": {
"ver": "1.0.4",
"uuid": "5bff2042-cef6-4236-9e63-4db54d4a3b07",
"rawTextureUuid": "53bc8d78-30ec-4d2a-9d04-5b6f6d9f9699",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -6,
"offsetY": 4,
"trimX": 1,
"trimY": 1,
"width": 50,
"height": 118,
"rawWidth": 64,
"rawHeight": 128,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "33ffebb4-44c5-4715-812c-c216797584e9",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "b42b295e-67a2-4856-abff-b0f11377e257",
"subMetas": {}
}
\ No newline at end of file
{"imagePath":"Try_again_tex.png","width":2048,"height":2048,"name":"Try_again","SubTexture":[{"width":161,"y":1849,"height":162,"name":"翅膀_左3","x":671},{"width":161,"y":440,"height":162,"name":"翅膀_左2","x":1865},{"width":160,"y":717,"height":162,"name":"翅膀_左1","x":1532},{"width":161,"y":604,"height":162,"name":"翅膀_右3","x":1865},{"width":161,"y":1849,"height":162,"name":"翅膀_右2","x":508},{"width":160,"y":1849,"height":162,"name":"翅膀_右1","x":834},{"width":391,"y":1,"height":437,"name":"菱形","x":1532},{"width":331,"y":440,"height":275,"name":"虎头Try_again","x":1532},{"width":505,"y":1849,"height":151,"name":"Try_again","x":1},{"width":45,"y":39,"height":30,"name":"糖1","x":2000},{"width":41,"y":1,"height":36,"name":"糖2","x":2000},{"width":39,"y":1,"height":61,"name":"糖3","x":1925},{"width":32,"y":1,"height":49,"name":"糖4","x":1966},{"width":19,"y":80,"height":25,"name":"糖5","x":1952},{"width":26,"y":52,"height":26,"name":"糖6","x":1966},{"width":20,"y":107,"height":24,"name":"糖7","x":2021},{"width":15,"y":91,"height":16,"name":"糖8","x":1925},{"width":15,"y":98,"height":16,"name":"糖9","x":1973},{"width":15,"y":80,"height":16,"name":"糖10","x":1973},{"width":25,"y":80,"height":25,"name":"糖11","x":2021},{"width":25,"y":71,"height":25,"name":"糖12","x":1994},{"width":25,"y":64,"height":25,"name":"糖13","x":1925},{"width":50,"y":2002,"height":27,"name":"糖14","x":1},{"width":862,"y":985,"height":862,"name":"光4","x":1},{"frameY":-74,"y":1,"frameWidth":1920,"frameX":-164,"frameHeight":1080,"width":1529,"height":982,"name":"光","x":1}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "1281c03b-70f7-44b4-8cd7-be6328cc711e",
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "2.3.5",
"uuid": "75678f20-f6cf-4ad9-befa-e281f31a9164",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 2048,
"platformSettings": {},
"subMetas": {
"Try_again_tex": {
"ver": "1.0.4",
"uuid": "e7290793-aaa6-4c91-be52-22ec5fc6746b",
"rawTextureUuid": "75678f20-f6cf-4ad9-befa-e281f31a9164",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 9,
"trimX": 1,
"trimY": 1,
"width": 2045,
"height": 2028,
"rawWidth": 2048,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "11e832db-90f0-4e9f-9e25-ccb938b565fd",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "674f97a3-1898-4235-9473-17c357c39605",
"downloadMode": 0,
"duration": 1.8137,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "bafa4c84-01c2-4d6c-8343-745066eed098",
"downloadMode": 0,
"duration": 1.097125,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "78f18bf7-e329-4386-aaee-1b6737fe5a03",
"downloadMode": 0,
"duration": 1.071,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "3796b67a-a501-40dc-a1b1-8ea234651d9e",
"downloadMode": 0,
"duration": 1.1755,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "19a64a93-34ed-4e65-9303-d0a268c1803c",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "927f6c73-f3af-4c69-a990-9dc6668dbb70",
"subMetas": {}
}
\ No newline at end of file
// pg.event.emit('npc_layer_back_init',{ })
// pg.event.emit('npc_voice_play_voice_start')
// pg.event.emit('npc_voice_play_voice_end')
import pg from "../../scene/pg_hy04_pinci";
const { ccclass, property } = cc._decorator;
@ccclass
export default class LayerBack extends cc.Component {
private btn_back: cc.Node;
private img_npc_voice: cc.Node;
private bg_forbid: cc.Node;
onLoad() {
this.initView();
this.initEvent();
}
private label_title: cc.Node;
protected onDestroy(): void {
this.unscheduleAllCallbacks();
}
initView() {
this.bg_forbid = pg.view.find(this, 'bg_forbid')
this.btn_back = pg.view.find(this, 'btn_back')
this.label_title = pg.view.find(this, 'label_title')
this.img_npc_voice = pg.view.find(this.label_title, 'img_npc_voice')
pg.view.touchOn(this.img_npc_voice, this.playVoiceStart, this);
}
private npcTitle: string;
private npcAudio: string;
updateView(data) {
this.npcTitle = data.npcTitle
this.npcAudio = data.npcAudio
pg.view.visible(this.img_npc_voice, this.npcAudio)
pg.view.visible(this.label_title, this.npcTitle)
pg.view.setString(this.label_title, this.npcTitle);
}
initEvent() {
pg.view.touchOn(this.btn_back, this.onTouchBack, this)
pg.event.on('npc_layer_back_init', (data) => {
this.updateView(data);
if (!this.npcAudio) {
pg.view.visible(this.bg_forbid, false)
pg.event.emit('npc_voice_play_voice_end');
} else {
this.playVoiceStart();
}
})
}
private playVoiceCount: number;
private audioId: number;
playVoiceStart() {
if (this.playVoiceCount > 0) {
if (this.audioId) cc.audioEngine.stopEffect(this.audioId);
this.playVoiceEnd();
}
this.playVoiceCount = 0;
this.schedule(this.playVoiceRunning, 0.3)
pg.audio.playAudioByUrl(this.npcAudio, () => {
this.playVoiceEnd();
pg.view.visible(this.bg_forbid, false)
pg.event.emit('npc_voice_play_voice_end')
}, (audioId) => {
this.audioId = audioId;
});
}
playVoiceRunning() {
if (!this.img_npc_voice) return;
this.playVoiceCount++;
let p1 = this.img_npc_voice.getChildByName('p1')
let p2 = this.img_npc_voice.getChildByName('p2')
let p3 = this.img_npc_voice.getChildByName('p3')
p1.active = this.playVoiceCount % 3 == 0;
p2.active = this.playVoiceCount % 3 == 1;
p3.active = this.playVoiceCount % 3 == 2;
}
playVoiceEnd() {
this.unschedule(this.playVoiceRunning)
this.playVoiceCount = 0;
let p1 = this.img_npc_voice.getChildByName('p1')
let p2 = this.img_npc_voice.getChildByName('p2')
let p3 = this.img_npc_voice.getChildByName('p3')
p1.active = true;
p2.active = false;
p3.active = false;
}
onTouchBack() {
const middleLayer = cc.find('middleLayer');
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.exitGame();
}
}
{
"ver": "1.0.8",
"uuid": "7ab718ad-47f8-49cf-8822-085a39c85075",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "508c4cc0-7802-495f-8c13-85a2a81c52cd",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "d1d55630-4512-4f78-8346-b1004ac24fce",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d3006e79-2315-4059-8aee-8e7a4d56121f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 202,
"height": 117,
"platformSettings": {},
"subMetas": {
"back_hy04_pinci": {
"ver": "1.0.4",
"uuid": "92327074-92fd-4d4a-a8aa-32f7ed514ab1",
"rawTextureUuid": "d3006e79-2315-4059-8aee-8e7a4d56121f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -6.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 189,
"height": 117,
"rawWidth": 202,
"rawHeight": 117,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "a73899c7-e729-4b69-82a5-4cf3eecb2f48",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "593366d0-c41f-40dd-8cfa-72e2fbdb78b8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 95,
"height": 70,
"platformSettings": {},
"subMetas": {
"pic_icon_tiger1_hy04_pinci": {
"ver": "1.0.4",
"uuid": "008bbd55-b1e7-4e82-bf54-f6cf40ebb738",
"rawTextureUuid": "593366d0-c41f-40dd-8cfa-72e2fbdb78b8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -5.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 84,
"height": 70,
"rawWidth": 95,
"rawHeight": 70,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "f6f170f4-59de-40e0-b666-1ddaf58a6997",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 95,
"height": 70,
"platformSettings": {},
"subMetas": {
"pic_icon_tiger2_hy04_pinci": {
"ver": "1.0.4",
"uuid": "603d0882-deba-4173-8432-b9da5e547d20",
"rawTextureUuid": "f6f170f4-59de-40e0-b666-1ddaf58a6997",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 95,
"height": 70,
"rawWidth": 95,
"rawHeight": 70,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ffa50fcc-6561-4673-8e93-5e4abf03d963",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 95,
"height": 70,
"platformSettings": {},
"subMetas": {
"pic_icon_tiger_hy04_pinci": {
"ver": "1.0.4",
"uuid": "5d214bcc-ae6a-48b2-8e3e-693089d66911",
"rawTextureUuid": "ffa50fcc-6561-4673-8e93-5e4abf03d963",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -13.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 68,
"height": 70,
"rawWidth": 95,
"rawHeight": 70,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "5302f1d3-299b-4ec3-82d6-b6229fca203f",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "c2e98610-4444-420b-aa30-ba8406e9e6bb",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "815cbe35-e740-4514-a84b-9fa42bd3957f",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "4c8b7a1c-163d-4358-811b-1c79de3c9b9b",
"subMetas": {}
}
\ No newline at end of file
{"name":"金币","SubTexture":[{"name":"金币动画/金币底","x":1,"height":181,"y":181,"width":172},{"name":"金币动画/条","x":175,"height":18,"y":181,"width":9},{"name":"金币动画/圈","x":1,"height":178,"y":1,"width":218},{"name":"金币动画/金币","x":221,"height":185,"y":1,"width":178}],"height":512,"imagePath":"coin1_tex_hy04_pinci.png","width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "d0a6e7e0-94c8-4828-bd3e-ab5d98f0a611",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "570fd30f-4838-4f67-816d-5c827db29a50",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 512,
"platformSettings": {},
"subMetas": {
"coin1_tex_hy04_pinci": {
"ver": "1.0.4",
"uuid": "6a3fb1c1-925f-471e-89e2-d797a62edd31",
"rawTextureUuid": "570fd30f-4838-4f67-816d-5c827db29a50",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -56,
"offsetY": 74.5,
"trimX": 1,
"trimY": 1,
"width": 398,
"height": 361,
"rawWidth": 512,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "40224cac-9b7c-433a-a36a-ccead9ba6688",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "f011f737-1f65-490f-b1ca-1a960c98d8f9",
"subMetas": {}
}
\ No newline at end of file
{"name":"金币2","SubTexture":[{"name":"金币动画/金币底","x":1,"height":181,"y":181,"width":172},{"name":"金币动画/条","x":175,"height":18,"y":181,"width":9},{"name":"金币动画/圈","x":1,"height":178,"y":1,"width":218},{"name":"金币动画/金币","x":221,"height":185,"y":1,"width":178}],"height":512,"imagePath":"coin2_tex_hy04_pinci.png","width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "bcb9481d-5c54-4e50-85ad-777961ce63b2",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9d1174da-be3b-490b-bbcd-0c43439093da",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 512,
"platformSettings": {},
"subMetas": {
"coin2_tex_hy04_pinci": {
"ver": "1.0.4",
"uuid": "4a536775-acd5-494c-83fa-3a0d5c924980",
"rawTextureUuid": "9d1174da-be3b-490b-bbcd-0c43439093da",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -56,
"offsetY": 74.5,
"trimX": 1,
"trimY": 1,
"width": 398,
"height": 361,
"rawWidth": 512,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "3d98b47f-f41e-4bf1-a130-a5edf51b794d",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "7d43789c-0138-4603-82af-1892d2cad30a",
"downloadMode": 0,
"duration": 1.085333,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "a9b135f6-de46-4257-8be2-55dc863ce747",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
// pg.event.emit('layer_coin_show_coin',1) //1 2 3硬币数量
// pg.event.once('layer_coin_show_coin_end',()=>{}) // 动画回调
import pg from "../../scene/pg_hy04_pinci";
const { ccclass, property } = cc._decorator;
@ccclass
export default class LayerCoin extends cc.Component {
private layout_center;
onLoad() {
pg.event.on('layer_coin_show_coin', (num) => { this.showCoin(num) });
this.layout_center = pg.view.find(this, 'layout_center')
}
showCoin(num) {
pg.view.visible(this.layout_center, true)
let coinAni = null;
pg.view.visible(pg.view.find(this.layout_center, "aniNode1"), false)
pg.view.visible(pg.view.find(this.layout_center, "aniNode2"), false)
pg.view.visible(pg.view.find(this.layout_center, "aniNode3"), false)
switch (num) {
case 1:
coinAni = pg.view.find(this.layout_center, "aniNode1");
coinAni.active = true;
pg.view.addEventDBAnimation(coinAni, this.hideCoin, this);
pg.view.playDBAnimation(coinAni, "one", 1);
this.playLocalAudio('coin');
break;
case 2:
coinAni = pg.view.find(this.layout_center, "aniNode2");
coinAni.active = true;
pg.view.addEventDBAnimation(coinAni, this.hideCoin, this);
pg.view.playDBAnimation(coinAni, "two", 1);
this.playLocalAudio('coin');
this.scheduleOnce(() => {
this.playLocalAudio('coin');
}, 0.3)
break;
case 3:
coinAni = pg.view.find(this.layout_center, "aniNode3");
coinAni.active = true;
pg.view.addEventDBAnimation(coinAni, this.hideCoin, this);
pg.view.playDBAnimation(coinAni, "three", 1);
this.playLocalAudio('coin');
this.scheduleOnce(() => {
this.playLocalAudio('coin');
}, 0.3)
this.scheduleOnce(() => {
this.playLocalAudio('coin');
}, 0.6)
break;
}
}
hideCoin() {
this.scheduleOnce(() => {
pg.view.visible(this.layout_center, false)
pg.event.emit('layer_coin_show_coin_end')
}, 1.0)
}
playLocalAudio(name) {
let ending = pg.view.find(this, `res/${name}`)
pg.audio.playLocalAudio(ending)
}
}
{
"ver": "1.0.8",
"uuid": "7280210e-c21d-4ab8-a9c1-1d8727b60658",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "47713aab-b8a5-494e-a027-eaec5a0f69ce",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "8944c192-3675-466f-9f94-8f824c68e822",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
// pg.event.once('layer_ending_touch_replay', () => {
// alert('replay')
// })
// pg.event.emit('layer_ending_show')
import pg from "../../scene/pg_hy04_pinci";
const { ccclass, property } = cc._decorator;
@ccclass
export default class LayerEnding extends cc.Component {
private layer_center: cc.Node;
private replay_btn: cc.Node;
private next_btn: cc.Node;
private res: cc.Node;
onLoad() {
this.layer_center = pg.view.find(this.node, "layer_center")
this.res = pg.view.find(this.node, "res")
pg.view.visible(this.layer_center, false);
this.replay_btn = pg.view.find(this.layer_center, "replay_btn")
this.next_btn = pg.view.find(this.layer_center, "next_btn")
pg.view.touchOn(this.replay_btn, this.onTouchReplay, this)
pg.view.touchOn(this.next_btn, this.onTouchNext, this)
pg.event.on('layer_ending_show', (data) => {
this.onTouchNext();
// this.showLayer(data);
})
}
showLayer(data) {
let ending = pg.view.find(this.res, "ending")
pg.audio.playLocalAudio(ending)
pg.view.visible(this.layer_center, true)
pg.view.setString(pg.view.find(this.layer_center, 'finish_box/coin_num'), 'X' + data.coin);
let finish_cat = pg.view.find(this.layer_center, "finish_cat")
pg.view.playDBAnimation(finish_cat, "finish", 1);
let bg_light = pg.view.find(this.layer_center, "bg_light")
cc.tween(bg_light).by(2, { angle: 360 }).repeatForever().start();
pg.view.visible(this.layer_center, true)
}
onTouchReplay() {
pg.view.visible(this.layer_center, false)
pg.event.emit('layer_ending_touch_replay');
}
onTouchNext() {
console.log("下一题");
pg.view.visible(this.layer_center, false);
const middleLayer = cc.find('middleLayer');
if (!middleLayer) return;
const middleLayerComponent = middleLayer.getComponent('middleLayer');
if (!middleLayerComponent) return;
const { index, length } = middleLayerComponent.getPageInfo(); // 返回 length:有多少页; index: 当前第几页(从0开始)
if (index == length - 1) {
middleLayerComponent.goNextCross(); // 跳转到下一关卡
} else {
middleLayerComponent.goNextPage(); // 跳转到下一页
}
}
}
{
"ver": "1.0.8",
"uuid": "8aa90d3e-7980-43ef-be5d-3707ef42a804",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "abb5bf98-8e6e-4fda-bdcf-071a0f553e21",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "a5293080-0ee0-4320-804d-3a0173a7c120",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "80d273de-f7a1-45e8-b75c-b4c3032d0b78",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6cda522a-b8bc-40b4-b8c5-28ccdbd817b4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 1024,
"platformSettings": {},
"subMetas": {
"finish": {
"ver": "1.0.4",
"uuid": "df8c0d1b-db97-497e-b721-ebebd22dac62",
"rawTextureUuid": "6cda522a-b8bc-40b4-b8c5-28ccdbd817b4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -10.5,
"offsetY": 75.5,
"trimX": 1,
"trimY": 1,
"width": 1001,
"height": 871,
"rawWidth": 1024,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{"name":"finish","version":"5.5","frameRate":24,"isGlobal":0,"armature":[{"name":"Armature","animation":[{"name":"finish","ffd":[],"frame":[],"duration":26,"slot":[{"name":"金币底","colorFrame":[{"tweenEasing":0,"color":{"aM":0},"duration":4},{"tweenEasing":0,"color":{"aM":0},"duration":6},{"tweenEasing":0,"color":{"aM":44},"duration":10},{"color":{"aM":0},"duration":6}],"displayFrame":[]},{"name":"圈","colorFrame":[{"tweenEasing":0,"color":{"aM":0},"duration":4},{"tweenEasing":0,"color":{"aM":0},"duration":4},{"tweenEasing":0,"color":{"aM":0},"duration":6},{"tweenEasing":0,"color":{"aM":40},"duration":6},{"color":{"aM":0},"duration":6}],"displayFrame":[]},{"name":"金币","colorFrame":[],"displayFrame":[{"duration":4,"value":-1},{"duration":7,"value":-1},{"duration":15}]},{"name":"条1","colorFrame":[{"color":{"aM":0},"duration":8},{"curve":[0,0,0.34269662921348315,0.9952978056426333],"color":{"aM":22},"duration":11},{"tweenEasing":0,"duration":7},{"color":{"aM":0},"duration":0}],"displayFrame":[]},{"name":"条11","colorFrame":[{"color":{"aM":0},"duration":8},{"curve":[0,0,0.5,1],"color":{"aM":22},"duration":11},{"tweenEasing":0,"duration":7},{"color":{"aM":0},"duration":0}],"displayFrame":[]},{"name":"条111","colorFrame":[{"color":{"aM":0},"duration":8},{"curve":[0,0,0.5,1],"color":{"aM":22},"duration":11},{"tweenEasing":0,"duration":7},{"color":{"aM":0},"duration":0}],"displayFrame":[]},{"name":"条12","colorFrame":[{"color":{"aM":0},"duration":8},{"curve":[0,0,0.5,1],"color":{"aM":22},"duration":11},{"tweenEasing":0,"duration":7},{"color":{"aM":0},"duration":0}],"displayFrame":[]},{"name":"条13","colorFrame":[{"color":{"aM":0},"duration":8},{"curve":[0,0,0.34269662921348315,0.9952978056426333],"color":{"aM":22},"duration":11},{"tweenEasing":0,"duration":7},{"color":{"aM":0},"duration":0}],"displayFrame":[]},{"name":"条121","colorFrame":[{"color":{"aM":0},"duration":8},{"curve":[0,0,0.34269662921348315,0.9952978056426333],"color":{"aM":22},"duration":11},{"tweenEasing":0,"duration":7},{"color":{"aM":0},"duration":0}],"displayFrame":[]},{"name":"条122","colorFrame":[{"color":{"aM":0},"duration":8},{"curve":[0,0,0.34269662921348315,0.9952978056426333],"color":{"aM":22},"duration":11},{"tweenEasing":0,"duration":7},{"color":{"aM":0},"duration":0}],"displayFrame":[]}],"bone":[{"name":"root","translateFrame":[],"rotateFrame":[],"scaleFrame":[]},{"name":"金币底","translateFrame":[],"rotateFrame":[],"scaleFrame":[{"x":1.3,"duration":4,"tweenEasing":0,"y":1.3},{"x":1.3,"duration":6,"tweenEasing":0,"y":1.3},{"duration":16}]},{"name":"圈","translateFrame":[],"rotateFrame":[],"scaleFrame":[{"duration":11},{"duration":9,"tweenEasing":0},{"x":1.4,"duration":6,"y":1.4}]},{"name":"金币","translateFrame":[],"rotateFrame":[],"scaleFrame":[{"duration":11},{"x":0.5,"duration":4,"tweenEasing":0,"y":0.5},{"duration":7,"curve":[0.7359550561797753,0.009404388714733543,1,1],"y":1.1},{"duration":4}]},{"name":"条1","translateFrame":[{"duration":8},{"x":93.3333,"duration":11,"tweenEasing":0,"y":33.3333},{"x":-236.6667,"duration":7,"y":-54.1608}],"rotateFrame":[{"duration":8},{"duration":11,"tweenEasing":0},{"rotate":-93.3665,"duration":7}],"scaleFrame":[{"duration":8},{"x":0.7,"duration":11,"tweenEasing":0,"y":0.7},{"duration":7}]},{"name":"bone","translateFrame":[],"rotateFrame":[{"duration":22,"clockwise":2,"tweenEasing":0},{"duration":4}],"scaleFrame":[]},{"name":"条11","translateFrame":[{"duration":8},{"x":-178.25,"duration":11,"curve":[0,0,0.5,1],"y":33.3333},{"x":-581.1667,"duration":7,"y":-526.7441}],"rotateFrame":[{"duration":8},{"curve":[0,0,0.5,1],"duration":11},{"rotate":-93.3665,"duration":7}],"scaleFrame":[{"duration":8},{"x":0.7,"duration":11,"curve":[0,0,0.5,1],"y":0.7},{"duration":7}]},{"name":"条111","translateFrame":[{"duration":8},{"x":-178.25,"duration":11,"curve":[0,0,0.5,1],"y":33.3333},{"x":146.8333,"duration":7,"y":-138.9941}],"rotateFrame":[{"duration":8},{"curve":[0,0,0.5,1],"duration":11},{"rotate":-93.3665,"duration":7}],"scaleFrame":[{"duration":8},{"x":0.7,"duration":11,"curve":[0,0,0.5,1],"y":0.7},{"duration":7}]},{"name":"条12","translateFrame":[{"duration":8},{"x":93.3333,"duration":11,"curve":[0,0,0.5,1],"y":33.3333},{"x":300.8333,"duration":7,"y":-54.1608}],"rotateFrame":[{"duration":8},{"curve":[0,0,0.5,1],"duration":11},{"rotate":-93.3665,"duration":7}],"scaleFrame":[{"duration":8},{"x":0.7,"duration":11,"curve":[0,0,0.5,1],"y":0.7},{"duration":7}]},{"name":"条13","translateFrame":[{"duration":8},{"x":93.3333,"duration":11,"tweenEasing":0,"y":33.3333},{"x":321,"duration":7,"y":-189.8274}],"rotateFrame":[{"duration":8},{"duration":11,"tweenEasing":0},{"rotate":-34.1966,"duration":7}],"scaleFrame":[{"duration":8},{"x":0.7,"duration":11,"tweenEasing":0,"y":0.7},{"duration":7}]},{"name":"条121","translateFrame":[{"duration":8},{"x":93.3333,"duration":11,"tweenEasing":0,"y":33.3333},{"x":-236.6667,"duration":7,"y":-54.1608}],"rotateFrame":[{"duration":8},{"duration":11,"tweenEasing":0},{"rotate":-93.3665,"duration":7}],"scaleFrame":[{"duration":8},{"x":0.7,"duration":11,"tweenEasing":0,"y":0.7},{"duration":7}]}],"ik":[],"playTimes":0}],"bone":[{"name":"root","transform":{"x":-131.6667,"y":16.6667}},{"name":"圈","transform":{"x":140.655,"y":-240.8618},"parent":"root"},{"name":"金币","transform":{"x":143.8193,"y":-246.4},"parent":"root"},{"name":"条1","transform":{"x":33.3193,"y":-90.0208},"parent":"root"},{"name":"金币底","transform":{"x":146.8193,"y":-242},"parent":"root"},{"name":"bone","transform":{"x":138.33,"y":-245.75},"parent":"root"},{"name":"条11","transform":{"x":323.3193,"scY":0.7,"y":-95.8541,"scX":0.7},"parent":"root"},{"name":"条111","transform":{"x":323.3193,"scY":0.7,"y":-95.8541,"scX":0.7},"parent":"root"},{"name":"条12","transform":{"x":166.6526,"y":-40.0208},"parent":"root"},{"name":"条13","transform":{"x":98.1526,"y":-115.9375},"parent":"root"},{"name":"条121","transform":{"x":33.3193,"y":-90.0208},"parent":"root"}],"skin":[{"name":"","slot":[{"name":"条11","display":[{"name":"金币动画/条","transform":{"x":-270.4571,"skX":-39.1322,"y":73.2524,"skY":-39.1322},"type":"image","path":"金币动画/条"}]},{"name":"圈","display":[{"name":"金币动画/圈","transform":{"x":3.5699,"y":0.3676},"type":"image","path":"金币动画/圈"}]},{"name":"金币底","display":[{"name":"金币动画/金币底","transform":{"x":-3,"y":-0.5},"type":"image","path":"金币动画/金币底"}]},{"name":"金币","display":[{"name":"金币动画/金币","transform":{"y":5.9},"type":"image","path":"金币动画/金币"}]},{"name":"条1","display":[{"name":"金币动画/条","transform":{"x":122.0667,"scY":0.5,"y":-6.3667,"scX":0.5},"type":"image","path":"金币动画/条"}]},{"name":"条111","display":[{"name":"金币动画/条","transform":{"x":-0.1,"y":-0.2},"type":"image","path":"金币动画/条"}]},{"name":"条13","display":[{"name":"金币动画/条","transform":{"x":122.0667,"scY":0.5,"y":-6.3667,"scX":0.5},"type":"image","path":"金币动画/条"}]},{"name":"条12","display":[{"name":"金币动画/条","transform":{"x":-0.1,"y":-0.2},"type":"image","path":"金币动画/条"}]},{"name":"条122","display":[{"name":"金币动画/条","transform":{"x":-0.1,"y":-0.2},"type":"image","path":"金币动画/条"}]},{"name":"条121","display":[]}]}],"defaultActions":[{"gotoAndPlay":"finish"}],"frameRate":24,"slot":[{"name":"金币底","color":{},"parent":"金币底"},{"name":"圈","color":{},"z":1,"parent":"圈"},{"name":"金币","color":{},"z":2,"parent":"金币"},{"name":"条1","color":{},"z":3,"parent":"条1"},{"name":"条11","color":{},"z":4,"parent":"条11"},{"name":"条111","color":{},"z":5,"parent":"条111"},{"name":"条12","color":{},"z":6,"parent":"条12"},{"name":"条13","color":{},"z":7,"parent":"条13"},{"name":"条121","color":{},"z":8,"parent":"root","displayIndex":-1},{"name":"条122","color":{},"z":9,"parent":"条121"}],"type":"Armature","ik":[],"aabb":{"x":-243.44169151262471,"height":497.77919520611704,"y":-469.33333333333337,"width":512}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "a3fdb391-e9ad-464d-ad51-2698de2b38e1",
"subMetas": {}
}
\ No newline at end of file
{"name":"finish","SubTexture":[{"name":"金币动画/金币底","x":1,"height":487,"y":1,"width":487},{"name":"金币动画/圈","x":490,"height":420,"y":1,"width":512},{"name":"金币动画/金币","x":490,"height":449,"y":423,"width":388},{"name":"金币动画/条","x":880,"height":104,"y":423,"width":105}],"height":1024,"imagePath":"finish.png","width":1024}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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