Commit bc05c104 authored by yu's avatar yu

完成

parent a3f5ba9f
This diff is collapsed.
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": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"uuid": "85158b98-997b-4f2c-8436-807482117f73",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.1.2",
"uuid": "cb9fa4ea-66ca-45af-ad31-e445c7b0ef32",
"uuid": "0b029fa5-ad79-4759-8bdd-59093f0751a5",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.0.1",
"uuid": "f0680ae0-c079-45ef-abd7-9e63d90b982b",
"uuid": "02d54fb8-30de-4d77-a067-c35f5fabd044",
"downloadMode": 0,
"duration": 0.130612,
"duration": 0.600816,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "7e7587d6-9ccd-41db-a520-28a5de0cb709",
"downloadMode": 0,
"duration": 5.302857,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "fdeea25b-e8c8-431d-b13d-380cf72f1612",
"downloadMode": 0,
"duration": 0.679184,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "b005fd49-02d2-47ec-8ee4-22c5bce94ca3",
"downloadMode": 0,
"duration": 1.515102,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "0853721c-3f55-4eb2-873d-e3081cfadd4b",
"uuid": "f4c3f150-7fea-4c04-8bcc-9d78f6078348",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{"name":"fire","isGlobal":0,"version":"5.5","armature":[{"name":"Armature","animation":[{"name":"newAnimation","frame":[],"duration":20,"slot":[{"name":"后焰","colorFrame":[],"displayFrame":[]},{"name":"火焰","colorFrame":[],"displayFrame":[]},{"name":"黄圆2","colorFrame":[],"displayFrame":[]},{"name":"黄圆","colorFrame":[],"displayFrame":[]},{"name":"圆","colorFrame":[],"displayFrame":[]},{"name":"线","colorFrame":[],"displayFrame":[]}],"bone":[{"name":"root","scaleFrame":[],"translateFrame":[],"rotateFrame":[]},{"name":"线","scaleFrame":[{"duration":10,"tweenEasing":0},{"x":1.4,"duration":10,"tweenEasing":0,"y":0.77},{"duration":0}],"translateFrame":[],"rotateFrame":[]},{"name":"火焰","scaleFrame":[{"duration":10,"tweenEasing":0},{"x":1.11,"duration":10,"tweenEasing":0},{"duration":0}],"translateFrame":[{"duration":20}],"rotateFrame":[{"duration":2,"tweenEasing":0},{"rotate":1.123,"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0},{"rotate":1.123,"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0},{"rotate":1.123,"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0},{"rotate":1.123,"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0},{"rotate":1.123,"duration":2,"tweenEasing":0},{"duration":0}]},{"name":"黄圆2","scaleFrame":[],"translateFrame":[{"duration":10},{"x":-63.4778,"duration":10,"y":9.155}],"rotateFrame":[]},{"name":"黄圆","scaleFrame":[],"translateFrame":[{"duration":10},{"x":-14.3647,"duration":10,"y":-17.7283}],"rotateFrame":[]},{"name":"后焰","scaleFrame":[{"duration":10,"tweenEasing":0},{"x":1.21,"duration":10,"tweenEasing":0},{"duration":0}],"translateFrame":[],"rotateFrame":[]}],"playTimes":0,"ffd":[],"ik":[]}],"slot":[{"name":"后焰","color":{},"parent":"后焰"},{"name":"火焰","color":{},"z":1,"parent":"火焰"},{"name":"黄圆2","color":{},"z":2,"parent":"黄圆2"},{"name":"黄圆","color":{},"z":3,"parent":"黄圆"},{"name":"圆","color":{},"z":4,"parent":"root"},{"name":"线","color":{},"z":5,"parent":"线"}],"bone":[{"name":"root","transform":{}},{"name":"线","transform":{"x":-120,"y":-131,"skX":180,"skY":180},"length":34,"parent":"root"},{"name":"火焰","transform":{"x":-81.5,"y":-20.5,"skX":-179.2655,"skY":-179.2655},"length":39,"parent":"root"},{"name":"黄圆2","transform":{"x":-89,"y":-57},"parent":"root"},{"name":"黄圆","transform":{"x":-125,"y":-1},"parent":"root"},{"name":"后焰","transform":{"x":-13.4412,"y":4.6727,"skX":3.3777,"skY":3.3777},"length":76,"parent":"火焰"}],"aabb":{"x":-260,"height":180.00000000000003,"y":-138,"width":273},"skin":[{"name":"","slot":[{"name":"圆","display":[{"name":"飞船/圆","transform":{"x":-92.5,"y":-130.5,"skX":-0.0832,"skY":-0.0832},"type":"image","path":"飞船/圆"}]},{"name":"黄圆","display":[{"name":"飞船/黄圆","transform":{"x":0.5,"y":-0.5,"skX":-0.0832,"skY":-0.0832},"type":"image","path":"飞船/黄圆"}]},{"name":"黄圆2","display":[{"name":"飞船/黄圆2","transform":{"x":0.5,"y":0.5,"skX":-0.0832,"skY":-0.0832},"type":"image","path":"飞船/黄圆2"}]},{"name":"火焰","display":[{"name":"飞船/火焰","transform":{"x":38.6058,"y":8.0058,"skX":179.1822,"skY":179.1822},"type":"image","path":"飞船/火焰"}]},{"name":"后焰","display":[{"name":"飞船/后焰","transform":{"x":55.1061,"y":-7.4709,"skX":175.8045,"skY":175.8045},"type":"image","path":"飞船/后焰"}]},{"name":"线","display":[{"name":"飞船/线","transform":{"x":52.5,"skX":179.9168,"skY":179.9168},"type":"image","path":"飞船/线"}]}]}],"frameRate":24,"defaultActions":[{"gotoAndPlay":"newAnimation"}],"type":"Armature","ik":[]}],"frameRate":24}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "b3057d86-109b-4c2e-a235-85745b61187f",
"subMetas": {}
}
\ No newline at end of file
{"name":"fire","SubTexture":[{"name":"飞船/后焰","x":1,"height":127,"y":1,"width":273},{"name":"飞船/火焰","x":276,"height":76,"y":1,"width":78},{"name":"飞船/黄圆2","x":498,"height":9,"y":1,"width":9},{"name":"飞船/黄圆","x":498,"height":7,"y":12,"width":7},{"name":"飞船/圆","x":481,"height":15,"y":1,"width":15},{"name":"飞船/线","x":356,"height":6,"y":1,"width":123}],"imagePath":"fire_tex.png","height":256,"width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "533643eb-1a35-482a-85f8-eedea6a8f3fa",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2aa7591c-9925-4062-95ae-48451734d019",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 256,
"platformSettings": {},
"subMetas": {
"fire_tex": {
"ver": "1.0.4",
"uuid": "eab56a33-8ad5-4187-83ad-3fb876239488",
"rawTextureUuid": "2aa7591c-9925-4062-95ae-48451734d019",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -2,
"offsetY": 63.5,
"trimX": 1,
"trimY": 1,
"width": 506,
"height": 127,
"rawWidth": 512,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{"name":"hand","isGlobal":0,"version":"5.5","armature":[{"name":"Armature","animation":[{"name":"newAnimation","frame":[],"duration":24,"slot":[{"name":"圈2","colorFrame":[{"color":{"aM":5},"duration":10,"tweenEasing":0},{"color":{"aM":42},"duration":14,"tweenEasing":0},{"color":{"aM":5},"duration":0}],"displayFrame":[]},{"name":"圈1","colorFrame":[{"color":{"aM":20},"duration":10,"tweenEasing":0},{"color":{"aM":67},"duration":14,"tweenEasing":0},{"color":{"aM":20},"duration":0}],"displayFrame":[]},{"name":"手","colorFrame":[],"displayFrame":[]}],"bone":[{"name":"root","scaleFrame":[],"translateFrame":[],"rotateFrame":[]},{"name":"手1","scaleFrame":[],"translateFrame":[],"rotateFrame":[]},{"name":"bone","scaleFrame":[],"translateFrame":[],"rotateFrame":[{"duration":10,"tweenEasing":0},{"rotate":-17.6867,"duration":14,"curve":[0.5,0,1,1]},{"duration":0}]},{"name":"手","scaleFrame":[],"translateFrame":[],"rotateFrame":[]},{"name":"圈1","scaleFrame":[{"x":0.7,"duration":10,"tweenEasing":0,"y":0.7},{"duration":14}],"translateFrame":[],"rotateFrame":[]},{"name":"圈2","scaleFrame":[{"x":0.6,"duration":20,"tweenEasing":0,"y":0.6},{"x":1.2,"duration":4,"y":1.2}],"translateFrame":[],"rotateFrame":[]}],"playTimes":0,"ffd":[],"ik":[]}],"slot":[{"name":"圈2","color":{},"parent":"圈2"},{"name":"圈1","color":{},"z":1,"parent":"圈1"},{"name":"手","color":{},"z":2,"parent":"bone"}],"bone":[{"name":"root","transform":{}},{"name":"手1","transform":{"x":35.55,"y":32.6,"skX":-148.7082,"skY":-148.7082},"length":37,"parent":"root"},{"name":"圈2","transform":{"x":-28.5645,"y":-27.281,"skX":108.4349,"skY":108.4349},"length":1,"parent":"root"},{"name":"圈1","transform":{"x":-28.5,"y":-27},"parent":"root"},{"name":"bone","transform":{"x":54.6204,"y":5.2923,"skX":29.6652,"skY":29.6652},"length":34,"parent":"手1"},{"name":"手","transform":{"x":-30.2479,"y":3.6918,"skX":56.0738,"skY":56.0738},"length":32,"parent":"手1"}],"aabb":{"x":-74.99999999999896,"height":137.02849640581374,"y":-73.49999999999991,"width":147.63349699360094},"skin":[{"name":"","slot":[{"name":"圈2","display":[{"name":"手/圈2","transform":{"x":0.2461,"y":-0.15,"skX":-108.6774,"skY":-108.6774},"type":"image","path":"手/圈2"}]},{"name":"圈1","display":[{"name":"手/圈1","transform":{"skX":-0.2425,"skY":-0.2425},"type":"image","path":"手/圈1"}]},{"name":"手","display":[{"width":114,"userEdges":[],"transform":{"x":-26.611,"y":15.393,"skX":118.8006,"skY":118.8006},"vertices":[-57,-58,57,-58,-57,58,57,58,-4.76,-21.47,-16.27,-58,-57,-20.2,-44.63,7.31,-10.44,44.51,57,8.33],"bonePose":[5,-0.04596364018645993,-0.9989431133857472,0.9989431133857472,-0.04596364018645993,63.31539917687949,45.15585412222554,1,-0.8545335615464725,-0.5193961803774658,0.5193961803774658,-0.8545335615464725,35.55,32.6,4,-0.48546672075089964,-0.8742551475646954,0.8742551475646954,-0.48546672075089964,-8.376162734842005,-0.29206045047740403],"type":"mesh","triangles":[8,2,3,5,4,1,8,3,9,4,8,9,1,4,9,5,6,4,6,7,4,7,8,4,0,6,5,7,2,8,6,2,7],"name":"手/手","uvs":[0,0,1,0,0,1,1,1,0.45825,0.31491,0.35729,0,0,0.32586,0.1085,0.56303,0.40843,0.88367,1,0.57183],"height":116,"edges":[3,2,0,5,5,1,2,6,6,0,1,9,9,3],"weights":[3,5,0.024386669153679635,4,0.9102552648675118,1,0.06535806597880847,3,5,0.93,1,0.04,4,0.03,3,5,0.20788854717393426,1,0.4273697753255674,4,0.36474167750049824,3,5,0.87,1,0.11,4,0.02,3,5,0.35000000000000003,1,0.34,4,0.31,3,5,0.08988429187450295,4,0.7161025756124043,1,0.19401313251309277,3,5,0.04371329816266336,4,0.7446890630700564,1,0.21159763876728022,3,5,0.05645971418052874,4,0.5090502808498537,1,0.43449000496961754,3,5,0.62,1,0.29,4,0.09,2,5,0.91,1,0.09],"slotPose":[0.9999910464482966,-0.004231669086503187,0.004231669086503187,0.9999910464482966,18.000000000000234,15.500000000000261],"path":"手/手"}]}]}],"frameRate":24,"defaultActions":[{"gotoAndPlay":"newAnimation"}],"type":"Armature","ik":[]}],"frameRate":24}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "e80afd0b-559d-40da-a062-91ede3ed5957",
"subMetas": {}
}
\ No newline at end of file
{"name":"hand","SubTexture":[{"name":"手/圈2","x":1,"height":93,"y":119,"width":93},{"name":"手/圈1","x":96,"height":59,"y":119,"width":59},{"name":"手/手","x":1,"height":116,"y":1,"width":114}],"imagePath":"hand_tex.png","height":256,"width":256}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "4a6f3cc8-664d-4d1c-9f95-e97ac8bcc081",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0d6499d9-2535-4c28-ad18-b092958b7be7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 256,
"platformSettings": {},
"subMetas": {
"hand_tex": {
"ver": "1.0.4",
"uuid": "d4f63ff1-461f-4483-a7c8-63911d29eeb3",
"rawTextureUuid": "0d6499d9-2535-4c28-ad18-b092958b7be7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -50,
"offsetY": 21.5,
"trimX": 1,
"trimY": 1,
"width": 154,
"height": 211,
"rawWidth": 256,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "db29a81d-7f06-44af-8a63-a4cbb6ae51d1",
"subMetas": {}
}
\ No newline at end of file
{"name":"right","imagePath":"right_tex.png","height":512,"SubTexture":[{"name":"正确/圆圈","x":1,"height":273,"y":1,"width":273},{"name":"正确/光线1","x":426,"height":148,"y":151,"width":10},{"name":"正确/光线2","x":276,"height":10,"y":52,"width":148},{"name":"正确/光线3","x":276,"height":10,"y":64,"width":148},{"name":"正确/光线4","x":426,"height":148,"y":1,"width":10},{"name":"正确/圆","x":380,"height":29,"y":1,"width":29},{"name":"正确/圆2","x":438,"height":29,"y":1,"width":29},{"name":"正确/圆3","x":438,"height":29,"y":32,"width":29},{"name":"正确/圆4","x":469,"height":29,"y":1,"width":29},{"name":"正确/星2","x":276,"height":49,"y":1,"width":50},{"name":"正确/星1","x":328,"height":49,"y":1,"width":50}],"width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "87ba90ff-79ef-4cbc-8d12-87c6117d2d20",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9d6b2a51-fbbc-496e-beab-c5884ff532a7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 512,
"platformSettings": {},
"subMetas": {
"right_tex": {
"ver": "1.0.4",
"uuid": "76e5ef30-cdcf-455d-ae57-420cc18007a0",
"rawTextureUuid": "9d6b2a51-fbbc-496e-beab-c5884ff532a7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -6.5,
"offsetY": 106,
"trimX": 1,
"trimY": 1,
"width": 497,
"height": 298,
"rawWidth": 512,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "20185448-a1ca-4de2-8b37-7bf6cdfccbae",
"uuid": "a1661b36-f57f-41f3-b20a-96a13e29a23f",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.1.0",
"uuid": "c551970e-b095-45f3-9f1d-25cde8b8deb1",
"uuid": "09dd4f94-cfa3-4056-a6bc-1004c35058c0",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "e3dbc67f-c047-44ce-8d01-cae00e20268e",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "2abf9c1d-93d1-4173-ba45-54863cb57739",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "e8bd16b0-3804-45a9-a8ca-f52c02224f55",
"uuid": "65c98f08-d5b7-4e75-9f5c-929b5b155e44",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
This diff is collapsed.
{
"ver": "1.2.9",
"uuid": "0737ce42-24f0-45c6-8e1a-8bdab4f74ba3",
"uuid": "8498c9f5-c5a6-4111-8fa2-ec6c1df21146",
"asyncLoadAssets": false,
"autoReleaseAssets": true,
"autoReleaseAssets": false,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.8",
"uuid": "f8b451ff-857c-4ca8-9870-866bc5154a29",
"uuid": "117069fb-78e7-4d6e-b257-18407a5788d7",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.1.2",
"uuid": "72b9b4cc-3e4f-491f-9da1-783080b71e58",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
export enum FISH_OUT {
RUNNING,
TOUCH,
CATCH,
ESCAP,
OUT
}
export class Fish {
public isOut: number;
public node: cc.Node;
public isLeft: boolean;//在左侧 向右运动
constructor() {
this.isOut = 0;
this.isLeft = Math.random() < 0.5;
}
}
export class Option {
public type;
public txt;
public picUrl;
public audioUrl;
public right: boolean;
public data;
public id: number;
public count: number;
public time: number;
public touchRight: boolean;
public parent;
public fish: any;
constructor(data, id) {
this.id = id;
this.type = data.type;
// this.count = 0;
this.txt = data.text;
// this.time = data.duration;
this.picUrl = data.image;
this.audioUrl = data.audio;
this.right = data.right;
this.fish = new Fish();
}
}
export class Item {
public page;
public audio;
public duration;
public optionList;
public questImg;
public checkMore: boolean;
public rNum: number;
public lineArr;
constructor(data, page) {
this.audio = data.audioUrl;
this.page = page;
this.optionList = data.options.map((o, idx) => {
return new Option(o, (idx + 1) * this.page);
})
this.optionList.sort(function () {
return (0.5 - Math.random());
});
this.optionList.push(new Option({ type: "jl", right: true, image: "", text: "" }, 456));
this.rNum = 0;
for (let i = 0; i < this.optionList.length; i++) {
if (this.optionList[i].right) this.rNum++;
}
this.checkMore = this.rNum > 1;
}
}
class Role {
public score: number;
public right: number;
public error: number;
public voices: Array<any>;
constructor() {
this.score = 0;
this.error = 0;
this.right = 0;
this.voices = [];
}
addScore(score: number = 1) {
this.score += score;
}
addError(score: number = 1) {
this.error += score;
}
addRight() {
this.right += 1;
}
addVoice(obj: any) {
this.voices.push(obj);
}
}
export class Player extends Role {
constructor() {
super();
}
reset() {
this.score = 0;
this.error = 0;
this.right = 0;
this.voices = [];
}
}
export class Robot extends Role {
constructor() {
super();
}
reset() {
this.score = 0;
this.error = 0;
this.right = 0;
this.voices = [];
}
}
export enum GAME_STATE {
WAIT,
RUNNING,
OVER
}
export default class Game {
private static ins: Game;
public static getIns(): Game {
if (!Game.ins) Game.ins = new Game();
return Game.ins;
}
private data: any;
private lists: Array<Item>
public player: Player;
public robot: Robot;
public state: GAME_STATE;
public total: number;
constructor() {
this.start = false;
this.lists = [];
this.player = new Player();
this.robot = new Robot();
this.state = GAME_STATE.WAIT;
}
get len() {
return this.lists.length;
}
public singleGame: boolean;
public question: { text, audio };
public title: string;
public bgAudio: string;
public questionText: string;
public init(data) {
this.singleGame = !data.onlineFlg;
this.question = { text: data.questionText, audio: data.questionTextAudio };
this.title = data.title;
this.bgAudio = data.bgAudio || "";
this.questionText = data.questionText;
this.start = false;
this.lists = [];
this.data = data.questions;
}
public start: boolean;
public page: number;
reset() {
this.player.reset();
this.robot.reset();
this.page = 1;
this.start = true;
this.lists = [];
for (let i = 0; i < this.data.length; i++) {
let data = this.data[i];
this.lists.push(new Item(data, i + 1));
}
this.state = GAME_STATE.WAIT;
this.total = this.lists.length;
}
// checkSuccess(arr: Option[]) {
// let data = this.getCurrentPage();
// let options = data.optionList.concat();
// options.sort((A, B) => A.id - B.id)
// for (let i = 0; i < options.length; i++) {
// if (arr[i] && arr[i].id != options[i].id) {
// return false;
// }
// }
// return true;
// }
// getDataByPage(page): Item {
// return this.lists.filter(li => li.page == page)[0]
// }
getCurrentPage(): Item {
let page = this.page;
return this.lists.filter(li => li.page == page)[0]
}
getTotalPageNum() {
return this.lists.length;
}
getCurrentPageNum() {
return this.page;
}
addPage() {
this.page += 1;
}
get getTotla() {
return this.lists.length;
// this.total = 0;
// this.lists.forEach((item) => {
// this.total += item.rNum;
// })
// return this.total;
}
get isOver() {
return this.page > this.lists.length;
}
}
{
"ver": "1.0.8",
"uuid": "c41b0e51-55d7-443c-af3a-b22c3dd9b9e5",
"uuid": "0cf58d83-d746-4f4f-804b-ddff83bd7dd7",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
This diff is collapsed.
{
"ver": "1.0.8",
"uuid": "ade7af40-d56d-4087-bbc6-2888fef55353",
"uuid": "c909773e-9f45-4136-bfb5-df8f41d8414e",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.1.2",
"uuid": "b0c008bc-cf92-463b-8360-0984e13c2e4d",
"uuid": "81fa1e32-520d-4c2b-9863-2a6511d65483",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
import { defaultData } from "../script/defaultData";
import { defaultData } from "../script/defaultData_sn16_parkour";
export class MyCocosSceneComponent extends cc.Component {
......@@ -87,7 +87,7 @@ export class MyCocosSceneComponent extends cc.Component {
preload() {
const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList);
cc.assetManager.preloadAny(preloadArr, null, null, async (err, data) => {
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
if (window && window["air"]) {
// window["air"].onCourseInScreen = (next) => {
......@@ -95,10 +95,10 @@ export class MyCocosSceneComponent extends cc.Component {
// this.onLoadEnd();
// next();
// };
await this.onLoadEnd();
this.onLoadEnd();
window["air"].hideAirClassLoading();
} else {
await this.onLoadEnd();
this.onLoadEnd();
}
cc.debug.setDisplayStats(false);
......@@ -110,11 +110,11 @@ export class MyCocosSceneComponent extends cc.Component {
if(node){
node.getComponent('middleLayer').log(str);
}else{
console.log(str);
cc.log(str);
}
}
async onLoadEnd() {
onLoadEnd() {
}
......@@ -176,4 +176,4 @@ export class MyCocosSceneComponent extends cc.Component {
cb && cb();
}
}
}
\ No newline at end of file
}
{
"ver": "1.0.8",
"uuid": "408a67f8-65fa-4cf1-8cf2-83e20e1a0fd5",
"uuid": "6b5f525e-0b03-432b-98de-a65c2a6e4d91",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
export const defaultData = {
"audioName": "",
"title": "单词跑酷",
"bgAudio": "",
"bgAudioName": "",
"questions": [{
"options": [{
"type": "img",
"image": "http://staging-teach.cdn.ireadabc.com/585fda9184600f61b47da622346a9cdd.png",
"audio": "",
"text": "",
"time": "",
"right": true
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "hell",
"time": "",
"right": true
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "two",
"time": "",
"right": false
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "one",
"time": "",
"right": false
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "seven",
"time": "",
"right": false
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "kill",
"time": "",
"right": true
}, {
"type": "txt",
"image": "",
"audio": "http://staging-teach.cdn.ireadabc.com/3656883821fc547da4af0253476ab9be_l.mp3",
"text": "ameameameameame",
"time": "",
"right": true,
"audioName": "right.mp3"
}, {
"type": "img",
"image": "http://staging-teach.cdn.ireadabc.com/237e6cf60d500061c5c7ec69c5110414.png",
"audio": "http://staging-teach.cdn.ireadabc.com/7f1fba5bc7fa3ac27737730bcd2d86e0_l.mp3",
"text": "",
"time": "",
"right": true,
"audioName": "again.mp3"
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "five",
"time": "",
"right": false
}, {
"type": "txt",
"image": "",
"audio": "http://staging-teach.cdn.ireadabc.com/3656883821fc547da4af0253476ab9be_l.mp3",
"text": "right",
"time": "",
"right": true,
"audioName": "right.mp3"
}
],
"type": "txt",
"audioUrl": "http://staging-teach.cdn.ireadabc.com/3656883821fc547da4af0253476ab9be_l.mp3",
"audioName": "",
"text": ""
}, {
"options": [{
"type": "img",
"image": "http://staging-teach.cdn.ireadabc.com/585fda9184600f61b47da622346a9cdd.png",
"audio": "",
"text": "",
"time": "",
"right": true
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "hell",
"time": "",
"right": true
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "two",
"time": "",
"right": false
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "one",
"time": "",
"right": false
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "seven",
"time": "",
"right": false
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "kill",
"time": "",
"right": true
}, {
"type": "txt",
"image": "",
"audio": "http://staging-teach.cdn.ireadabc.com/3656883821fc547da4af0253476ab9be_l.mp3",
"text": "ame",
"time": "",
"right": true,
"audioName": "right.mp3"
}, {
"type": "img",
"image": "http://staging-teach.cdn.ireadabc.com/237e6cf60d500061c5c7ec69c5110414.png",
"audio": "http://staging-teach.cdn.ireadabc.com/7f1fba5bc7fa3ac27737730bcd2d86e0_l.mp3",
"text": "",
"time": "",
"right": true,
"audioName": "again.mp3"
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "time",
"time": "",
"right": true
}, {
"type": "txt",
"image": "",
"audio": "",
"text": "why",
"time": "",
"right": false
}
],
"type": "txt",
"audioUrl": "",
"audioName": "",
"text": ""
}
],
"word_count": "0",
"sentence_count": "0",
"zi_count": "0"
}
{
"ver": "1.0.8",
"uuid": "ed6863e3-7272-4c10-a487-28ccc5cc6de6",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "b54300af-b8e5-4b4e-aa2f-9ac1cef7b598",
"uuid": "4ec0a2fd-3363-4075-abc9-4b9ec031a90a",
"isPlugin": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
......@@ -411,65 +411,15 @@ export function showTrebleFirework(baseNode, rabbonList) {
showFireworks(right);
}
export function httpHeadCall(requsetUrl: string, callback) {
let xhr = new XMLHttpRequest();
console.log("Status: Send Post Request to " + requsetUrl);
try {
xhr.onreadystatechange = () => {
try {
console.log('xhr.readyState: ', xhr.readyState);
if (xhr.readyState == 4) {
if ((xhr.status >= 200 && xhr.status < 400)) {
callback(true);
} else {
callback(false);
}
}
} catch (e) {
console.log(e)
}
};
xhr.open("HEAD", requsetUrl, true);
xhr.send();
xhr.timeout = 15000;
xhr.onerror = (e) => {
callback(false);
};
xhr.ontimeout = (e) => {
callback(false);
};
} catch (e) {
console.log("Send Get Request error: ", e);
}
}
export function onHomeworkFinish(data = "", callback = ()=>{}) {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.onHomeworkFinish(callback, data);
} else {
console.log('onHomeworkFinish', JSON.stringify(data));
}
}
export function callMiddleLayerFunction(apiName: string, data: any, callback: Function) {
export function onHomeworkFinish(data) {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.callMiddleLayerFunction(apiName, data, callback);
} else {
console.log('callMiddleLayerFunction: ' + apiName);
}
}
export function showTips(tips) {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
middleLayer.getComponent('middleLayer').showTips(tips);
if (middleLayerComponent.role == 'student') {
middleLayerComponent.onHomeworkFinish(() => { }, data);
}
} else {
console.log(tips);
console.log('onHomeworkFinish');
}
}
{
"ver": "1.0.8",
"uuid": "3511e2f9-47e0-4b0b-9760-dd07898b2dcd",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "8ba21262-178f-4fa5-afc9-2c1dd50ba3ab",
"uuid": "5efbf8af-ab41-4f16-9389-f1beea93b40f",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.1.2",
"uuid": "bdbc9541-a234-4dff-a977-4545720393d6",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "2.3.5",
"uuid": "f7d1f7b9-9be5-45de-b9f2-4b2b9daf1e2d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1080,
"platformSettings": {},
"subMetas": {
"bg_bg_sn16_parkour": {
"ver": "1.0.4",
"uuid": "d5f9151a-76ec-491b-85e4-b7675567799a",
"rawTextureUuid": "f7d1f7b9-9be5-45de-b9f2-4b2b9daf1e2d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1080,
"rawWidth": 1920,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f",
"uuid": "429a7f23-e1c4-4465-b7c2-2ab46bfb5758",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 366,
"height": 336,
"width": 694,
"height": 99,
"platformSettings": {},
"subMetas": {
"1orange": {
"bg_bottom1_sn16_parkour": {
"ver": "1.0.4",
"uuid": "43d1e79d-6de8-4dcb-b8ce-d767df7913aa",
"rawTextureUuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f",
"uuid": "c22612c4-79d3-4f88-8c47-6bb0c8d8b789",
"rawTextureUuid": "429a7f23-e1c4-4465-b7c2-2ab46bfb5758",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 1,
"width": 366,
"height": 335,
"rawWidth": 366,
"rawHeight": 336,
"trimY": 0,
"width": 694,
"height": 99,
"rawWidth": 694,
"rawHeight": 99,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "27a42f01-f3b3-4481-b3c3-c973a01f35d5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 353,
"height": 147,
"platformSettings": {},
"subMetas": {
"bg_bottom2_sn16_parkour": {
"ver": "1.0.4",
"uuid": "b2678fe9-6cf8-45ac-848b-ca742bfbe3aa",
"rawTextureUuid": "27a42f01-f3b3-4481-b3c3-c973a01f35d5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 353,
"height": 147,
"rawWidth": 353,
"rawHeight": 147,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c2bc9030-f4fc-49bb-b4d3-247c00ca93ea",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 987,
"height": 131,
"platformSettings": {},
"subMetas": {
"bg_bottom3_sn16_parkour": {
"ver": "1.0.4",
"uuid": "c7703050-ef49-4610-97c0-e3a594bc548e",
"rawTextureUuid": "c2bc9030-f4fc-49bb-b4d3-247c00ca93ea",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 987,
"height": 131,
"rawWidth": 987,
"rawHeight": 131,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7380444a-e3f8-48eb-bb48-fdd985ca1211",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 374,
"height": 102,
"platformSettings": {},
"subMetas": {
"bg_bottom4_sn16_parkour": {
"ver": "1.0.4",
"uuid": "5348d2f1-aff7-41ef-a240-aeeba6338f2f",
"rawTextureUuid": "7380444a-e3f8-48eb-bb48-fdd985ca1211",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 374,
"height": 102,
"rawWidth": 374,
"rawHeight": 102,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "55d9daa5-c3ff-4838-a80b-e1fa5017aed4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 252,
"height": 252,
"platformSettings": {},
"subMetas": {
"bg_planet2_sn16_parkour": {
"ver": "1.0.4",
"uuid": "95f6684f-7bac-4c02-9c28-35cd06e7b869",
"rawTextureUuid": "55d9daa5-c3ff-4838-a80b-e1fa5017aed4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 252,
"height": 252,
"rawWidth": 252,
"rawHeight": 252,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8d2325d2-63d1-4362-8c41-23c85a6771f1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 397,
"height": 397,
"platformSettings": {},
"subMetas": {
"bg_planet_sn16_parkour": {
"ver": "1.0.4",
"uuid": "369d1bd0-76bb-4166-a442-91f80169d1db",
"rawTextureUuid": "8d2325d2-63d1-4362-8c41-23c85a6771f1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 397,
"height": 397,
"rawWidth": 397,
"rawHeight": 397,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6a8119ea-d95b-44a9-9326-dda630590988",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1857,
"height": 1024,
"platformSettings": {},
"subMetas": {
"bg_star_sn16_parkour": {
"ver": "1.0.4",
"uuid": "26e5cea8-59ca-4991-8679-d29d2e0c41ea",
"rawTextureUuid": "6a8119ea-d95b-44a9-9326-dda630590988",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1857,
"height": 1024,
"rawWidth": 1857,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e1b4d971-9876-4832-803a-5a321964a78b",
"uuid": "320dbb6c-70f5-4256-bf25-94421060f9d4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"width": 73,
"height": 60,
"platformSettings": {},
"subMetas": {
"bg": {
"bg_stone1_sn16_parkour": {
"ver": "1.0.4",
"uuid": "8288e3d4-4c75-4b27-8f01-f7014417f4dd",
"rawTextureUuid": "e1b4d971-9876-4832-803a-5a321964a78b",
"uuid": "bfd4de79-24ea-4d41-a595-10b4b6a39d00",
"rawTextureUuid": "320dbb6c-70f5-4256-bf25-94421060f9d4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"width": 73,
"height": 60,
"rawWidth": 73,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "9a79969a-0506-48d4-bc98-3c05d109b027",
"uuid": "b6a8764d-4bac-410a-b9e7-32f320a6f423",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 61,
"height": 67,
"width": 99,
"height": 97,
"platformSettings": {},
"subMetas": {
"btn_left": {
"bg_stone2_sn16_parkour": {
"ver": "1.0.4",
"uuid": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5",
"rawTextureUuid": "9a79969a-0506-48d4-bc98-3c05d109b027",
"uuid": "40a6362a-a333-47d0-9f98-b7f95c58aa92",
"rawTextureUuid": "b6a8764d-4bac-410a-b9e7-32f320a6f423",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 61,
"height": 67,
"rawWidth": 61,
"rawHeight": 67,
"width": 99,
"height": 97,
"rawWidth": 99,
"rawHeight": 97,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "d582359e-924e-4ee9-9964-1fc4bb417e71",
"uuid": "4f80ecc0-ce73-488b-aedb-55c39998c642",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 61,
"height": 67,
"width": 86,
"height": 66,
"platformSettings": {},
"subMetas": {
"btn_right": {
"bg_stone3_sn16_parkour": {
"ver": "1.0.4",
"uuid": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59",
"rawTextureUuid": "d582359e-924e-4ee9-9964-1fc4bb417e71",
"uuid": "fc869921-9be0-4432-a111-9a2d95053ca4",
"rawTextureUuid": "4f80ecc0-ce73-488b-aedb-55c39998c642",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 60,
"width": 86,
"height": 66,
"rawWidth": 61,
"rawHeight": 67,
"rawWidth": 86,
"rawHeight": 66,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "bbc85dea-a1e7-4eb9-bbeb-dc4a0814c05b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 106,
"height": 106,
"platformSettings": {},
"subMetas": {
"bg_stone4_sn16_parkour": {
"ver": "1.0.4",
"uuid": "c2411268-7701-44e0-ac48-1a7f78bc3f77",
"rawTextureUuid": "bbc85dea-a1e7-4eb9-bbeb-dc4a0814c05b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 106,
"height": 106,
"rawWidth": 106,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "adb6bac0-1e85-44b6-a896-f7ad8b33106e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 138,
"height": 120,
"platformSettings": {},
"subMetas": {
"bg_stone5_sn16_parkour": {
"ver": "1.0.4",
"uuid": "3265f8a9-b062-4741-8f91-c0adc5cea7ce",
"rawTextureUuid": "adb6bac0-1e85-44b6-a896-f7ad8b33106e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 138,
"height": 120,
"rawWidth": 138,
"rawHeight": 120,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "14cac335-eeff-46c7-bc66-6f0f82468077",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 330,
"height": 277,
"platformSettings": {},
"subMetas": {
"bg_pic_cloud_sn16_parkour": {
"ver": "1.0.4",
"uuid": "90d111d0-d603-45d2-b8c7-31d198190544",
"rawTextureUuid": "14cac335-eeff-46c7-bc66-6f0f82468077",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 330,
"height": 277,
"rawWidth": 330,
"rawHeight": 277,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "f9b889a4-3f46-4f6e-b080-528ac8815be2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 326,
"height": 226,
"platformSettings": {},
"subMetas": {
"bg_ship_sn16_parkour": {
"ver": "1.0.4",
"uuid": "87f614eb-0b28-45f2-a3d5-cb4e732ba2e6",
"rawTextureUuid": "f9b889a4-3f46-4f6e-b080-528ac8815be2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 0,
"trimY": 0,
"width": 326,
"height": 225,
"rawWidth": 326,
"rawHeight": 226,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9b25cc34-d244-4db7-877e-a464ac0714df",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 276,
"height": 143,
"platformSettings": {},
"subMetas": {
"bg_word_cloud1_sn16_parkour": {
"ver": "1.0.4",
"uuid": "bb897b54-157e-4ef4-a62c-1fe31a18134a",
"rawTextureUuid": "9b25cc34-d244-4db7-877e-a464ac0714df",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 276,
"height": 143,
"rawWidth": 276,
"rawHeight": 143,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"uuid": "830eea14-294b-45f3-a8aa-1219844cbe95",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 144,
"width": 420,
"height": 144,
"platformSettings": {},
"subMetas": {
"icon": {
"bg_word_cloud2_sn16_parkour": {
"ver": "1.0.4",
"uuid": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a",
"rawTextureUuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"uuid": "ca9e664c-7fcf-438d-b8eb-c3acca75f762",
"rawTextureUuid": "830eea14-294b-45f3-a8aa-1219844cbe95",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 3,
"trimY": 2,
"width": 138,
"height": 141,
"rawWidth": 144,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 420,
"height": 144,
"rawWidth": 420,
"rawHeight": 144,
"borderTop": 0,
"borderBottom": 0,
......
{
"ver": "2.3.5",
"uuid": "eea94fc2-bba1-48ea-8e52-69ada8ca9a79",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 149,
"height": 149,
"platformSettings": {},
"subMetas": {
"btn_laba1_sn16_parkour": {
"ver": "1.0.4",
"uuid": "620080f2-9b18-45ae-b622-40aa8963d18d",
"rawTextureUuid": "eea94fc2-bba1-48ea-8e52-69ada8ca9a79",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -14.5,
"offsetY": 8,
"trimX": 35,
"trimY": 33,
"width": 50,
"height": 67,
"rawWidth": 149,
"rawHeight": 149,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"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.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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