Commit 5730ba06 authored by limingzhe's avatar limingzhe

fix: debug

parent ec3fe3b8
{
"ver": "1.1.2",
"uuid": "68e76a24-404b-4287-9e6c-46dea48ec654",
"uuid": "f6517781-c70b-4976-a7d6-d2faa67541d5",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "81976ddc-8485-4a74-8495-efd3dea5240a",
"uuid": "0a74206b-1819-4ada-9213-82de8548f217",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.0.1",
"uuid": "4f07dbcf-4a58-4d34-a598-a86b0b06712d",
"downloadMode": 0,
"duration": 29.962449,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "a197e707-5884-47e4-9492-133f2a0d595d",
"uuid": "6c5bf4cc-c761-43da-868d-4de4acb2de3b",
"downloadMode": 0,
"duration": 0.835918,
"subMetas": {}
......
{
"ver": "2.0.1",
"uuid": "496317ae-94db-4e25-9b6f-eac2decdbf58",
"uuid": "9dd99720-edf1-4c8e-9090-6174667acd6d",
"downloadMode": 0,
"duration": 2.011429,
"duration": 0.365714,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "4021fdad-6f92-4f2e-8fbf-5fda967fc069",
"uuid": "878bfa5d-fec0-4218-86a2-d7b354161756",
"downloadMode": 0,
"duration": 1.724082,
"duration": 2.220417,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "7cc7c57b-a534-4543-9226-d558c66f734d",
"downloadMode": 0,
"duration": 2.716735,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "d179653c-fbf3-45bd-9471-057ef22df6b0",
"uuid": "5b1bdaa9-0989-4494-9f15-b33f9c3ae1de",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"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": "d2584e3d-ee16-4da1-a5a4-66b3ecd5bb2a",
"uuid": "78f18bf7-e329-4386-aaee-1b6737fe5a03",
"downloadMode": 0,
"duration": 4.032,
"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": "e03c0bb7-d7c6-4b87-b6ea-3c5a36b33305",
"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_temp_mz_cocos";
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;
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){
this.unschedule(this.playVoiceRunning)
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_hy05_pintu": {
"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_hy05_pintu": {
"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": "59ec86c9-1482-43e1-a307-3e2c8e82158d",
"uuid": "f6f170f4-59de-40e0-b666-1ddaf58a6997",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 409,
"height": 142,
"width": 95,
"height": 70,
"platformSettings": {},
"subMetas": {
"bg_time_sn04_classify": {
"pic_icon_tiger2_hy05_pintu": {
"ver": "1.0.4",
"uuid": "4bdfb009-c677-4f54-9c4d-454a2ef6d745",
"rawTextureUuid": "59ec86c9-1482-43e1-a307-3e2c8e82158d",
"uuid": "603d0882-deba-4173-8432-b9da5e547d20",
"rawTextureUuid": "f6f170f4-59de-40e0-b666-1ddaf58a6997",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 409,
"height": 142,
"rawWidth": 409,
"rawHeight": 142,
"width": 95,
"height": 70,
"rawWidth": 95,
"rawHeight": 70,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
{
"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_hy05_pintu": {
"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": "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.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_hy05_pintu.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_hy05_pintu": {
"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_hy05_pintu.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_hy05_pintu": {
"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.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_temp_mz_cocos";
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_temp_mz_cocos";
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.showLayer(data);
this.onTouchNext();
})
}
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() {
pg.view.visible(this.layer_center, false)
const middleLayer = cc.find('middleLayer');
if (!middleLayer) return this.log("no middleLayer ");
const middleLayerComponent = middleLayer.getComponent('middleLayer');
const { index, length } = middleLayerComponent.getPageInfo(); // 返回 length:有多少页; index: 当前第几页(从0开始)
this.log("跳转到下一页 ");
if (index == length - 1) {
middleLayerComponent.goNextCross(); // 跳转到下一关卡
} else {
middleLayerComponent.goNextPage(); // 跳转到下一页
}
}
log(str) {
const node = cc.find('middleLayer');
if (node) {
node.getComponent('middleLayer').log(str);
} else {
cc.log(str);
}
}
}
{
"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
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