Commit 4bf16588 authored by liujiangnan's avatar liujiangnan

feat: 初始化

parent 3b680f1f
No preview for this file type
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
cocos creator技术框架下的H5互动模板框架脚手架,基于cocos creator实现快速开发基于绘玩云的H5互动课件。 cocos creator技术框架下的H5互动模板框架脚手架,基于cocos creator实现快速开发基于绘玩云的H5互动课件。
[视频教程传送门](https://www.bilibili.com/video/BV1Dq4y1t7n5/)
# 使用简介 # 使用简介
## 前期准备 ## 前期准备
...@@ -51,7 +49,21 @@ npm start ...@@ -51,7 +49,21 @@ npm start
``` ```
* 打开浏览器:http://staging-teach.ireadabc.com/template_ci/debug * 打开浏览器:http://staging-teach.ireadabc.com/template_ci/debug
* [点击查看调试视频教程](https://www.bilibili.com/video/BV1Dq4y1t7n5?p=8) * 点击右上角齿轮,选择技术选型、调试模式选择“普通”
### 互动模板
* 找到项目根路径下 index.html 文件
* 在引入JS的位置将air.js改为air_online_open.js
* 启动本地服务
```
npm start
```
* 打开浏览器:http://staging-teach.ireadabc.com/template_ci/debug
* 点击右上角齿轮,选择技术选型、调试模式选择“互动”
* 左侧老师、右侧学生
### 真机调试 ### 真机调试
...@@ -69,11 +81,4 @@ npm start ...@@ -69,11 +81,4 @@ npm start
* 手机和电脑连接同一个Wifi * 手机和电脑连接同一个Wifi
* 打开调试app,根据提示输入IP地址,点击开始就可以在手机上预览模板了 * 打开调试app,根据提示输入IP地址,点击开始就可以在手机上预览模板了
* 使用 console.log("==调试信息=="); 可以打印日志进行必要的调试 * 使用 this.log("==调试信息=="); 可以打印日志进行必要的调试
* 点击左上角 “logcat” 可以查看运行日志,(logcat是可以按住拖动的, 所以不用考虑UI遮挡问题) \ No newline at end of file
### 注意事项及常见问题
* 项目里所有文件及文件夹的命名方式要注意不能包含空格、汉字、减号
* 项目里尽量不要使用setTimeout、setInterval等定时器,如果使用了记得在onDestroy中释放掉(onDestroy 是指CocosCreator的生命周期钩子)
* 理论上禁止使用全局变量,因为模板到线上会进行组装,常见问题是一个模板使用多次造成全局变量被读脏
{
"ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
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() {
}
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);
});
})
}
}
{
"ver": "1.0.8",
"uuid": "408a67f8-65fa-4cf1-8cf2-83e20e1a0fd5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import { defaultData } from "../script/defaultData";
export class MyCocosSceneComponent extends cc.Component {
// 生命周期 onLoad
onLoad() {
this.initSceneData();
this.initSize();
}
_imageResList = null;
_audioResList = null;
_animaResList = null;
initSceneData() {
this._imageResList = [];
this._audioResList = [];
this._animaResList = [];
}
_designSize = null; // 设计分辨率
_frameSize = null; // 屏幕分辨率
_mapScaleMin = null; // 场景中常用缩放(取大值)
_mapScaleMax = null; // 场景中常用缩放(取小值)
_cocosScale = null; // cocos 自缩放 (较少用到)
initSize() {
// 注意cc.winSize只有在适配后(修改fitHeight/fitWidth后)才能获取到正确的值,因此使用cc.getFrameSize()来获取初始的屏幕大小
let screen_size = cc.view.getFrameSize().width / cc.view.getFrameSize().height
let design_size = cc.Canvas.instance.designResolution.width / cc.Canvas.instance.designResolution.height
let f = screen_size >= design_size
cc.Canvas.instance.fitHeight = f
cc.Canvas.instance.fitWidth = !f
const frameSize = cc.view.getFrameSize();
this._frameSize = frameSize;
this._designSize = cc.view.getDesignResolutionSize();
let sx = cc.winSize.width / frameSize.width;
let sy = cc.winSize.height / frameSize.height;
this._cocosScale = Math.min(sx, sy);
sx = frameSize.width / this._designSize.width;
sy = frameSize.height / this._designSize.height;
this._mapScaleMin = Math.min(sx, sy) * this._cocosScale;
this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;
cc.director['_scene'].width = frameSize.width;
cc.director['_scene'].height = frameSize.height;
}
data = null;
// 生命周期 start
start() {
if (window && (<any>window).courseware && (<any>window).courseware.getData) {
(<any>window).courseware.getData((data) => {
this.log('data:' + data);
this.data = data || this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data));
this.preloadItem();
})
} else {
this.data = this.getDefaultData();
this.preloadItem();
}
}
getDefaultData() {
return defaultData;
}
preloadItem() {
this.addPreloadImage();
this.addPreloadAudio();
this.addPreloadAnima();
this.preload();
}
addPreloadImage() {
}
addPreloadAudio() {
}
addPreloadAnima() {
}
preload() {
const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList);
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
if (window && window["air"]) {
// window["air"].onCourseInScreen = (next) => {
// window["air"].isCourseInScreen = true;
// this.onLoadEnd();
// next();
// };
this.onLoadEnd();
window["air"].hideAirClassLoading();
} else {
this.onLoadEnd();
}
cc.debug.setDisplayStats(false);
});
}
log (str) {
const node = cc.find('middleLayer');
if(node){
node.getComponent('middleLayer').log(str);
}else{
cc.log(str);
}
}
onLoadEnd() {
}
// ------------------------------------------------
getSprNode(resName) {
const sf = cc.find('Canvas/res/img/' + resName).getComponent(cc.Sprite).spriteFrame;
const node = new cc.Node();
node.addComponent(cc.Sprite).spriteFrame = sf;
return node;
}
getSpriteFrimeByUrl(url, cb) {
cc.loader.load({ url }, (err, img) => {
const spriteFrame = new cc.SpriteFrame(img)
if (cb) {
cb(spriteFrame);
}
})
}
getSprNodeByUrl(url, cb) {
const node = new cc.Node();
const spr = node.addComponent(cc.Sprite);
this.getSpriteFrimeByUrl(url, (sf) => {
spr.spriteFrame = sf;
if (cb) {
cb(node);
}
})
}
playAudioByUrl(audio_url, cb = null) {
if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
});
}else{
cb && cb();
}
}
}
\ No newline at end of file
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": "2.3.5",
"uuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 144,
"height": 144,
"platformSettings": {},
"subMetas": {
"icon": {
"ver": "1.0.4",
"uuid": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a",
"rawTextureUuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 3,
"trimY": 2,
"width": 138,
"height": 141,
"rawWidth": 144,
"rawHeight": 144,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "f0680ae0-c079-45ef-abd7-9e63d90b982b", "uuid": "514e24a6-4a9b-4a5c-9250-6e11f297b0d0",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.130612, "duration": 0.5774,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "549152ab-1dde-49e3-9240-0e428ac6f29a",
"downloadMode": 0,
"duration": 0.711688,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "8474f6e3-5518-429c-92b9-a7625e67fbfe",
"downloadMode": 0,
"duration": 0.168889,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "1c63bc28-619a-472f-af67-9263b9535165",
"downloadMode": 0,
"duration": 1.802449,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "5d1f8368-bddf-471a-847a-e2a6876ec5f0",
"downloadMode": 0,
"duration": 3.761633,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "b13ae152-f1bb-43b9-8784-a50dee754e38",
"downloadMode": 0,
"duration": 4,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "8c14b3b8-8840-4464-bfee-0e9e1e70aac2",
"downloadMode": 0,
"duration": 2.298776,
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "69844312-80d0-4de7-9098-b587a41dce64",
"subMetas": {}
}
\ No newline at end of file
{"width":512,"imagePath":"WL01_tex.png","height":512,"name":"WL01-flower(1)","SubTexture":[{"width":210,"y":1,"height":198,"name":"WL01-flower(1)/矢量智能对象_17","x":1},{"width":79,"y":348,"height":74,"name":"WL01-flower(1)/矢量智能对象_16","x":1},{"width":47,"y":406,"height":44,"name":"WL01-flower(1)/矢量智能对象_15","x":82},{"width":157,"y":150,"height":147,"name":"WL01-flower(1)/矢量智能对象_14","x":213},{"width":58,"y":342,"height":54,"name":"WL01-flower(1)/矢量智能对象_13","x":329},{"width":120,"y":124,"height":113,"name":"WL01-flower(1)/矢量智能对象_12","x":372},{"width":157,"y":1,"height":147,"name":"WL01-flower(1)/矢量智能对象_11","x":213},{"width":89,"y":299,"height":84,"name":"WL01-flower(1)/矢量智能对象_10","x":157},{"width":154,"y":201,"height":145,"name":"WL01-flower(1)/矢量智能对象_9","x":1},{"width":128,"y":1,"height":121,"name":"WL01-flower(1)/矢量智能对象_8","x":372},{"width":60,"y":348,"height":56,"name":"WL01-flower(1)/矢量智能对象_7","x":82},{"width":47,"y":247,"height":44,"name":"WL01-flower(1)/矢量智能对象_6","x":157},{"width":79,"y":299,"height":74,"name":"WL01-flower(1)/矢量智能对象_5","x":248},{"width":47,"y":201,"height":44,"name":"WL01-flower(1)/矢量智能对象_4","x":157},{"width":45,"y":342,"height":42,"name":"WL01-flower(1)/矢量智能对象_3","x":389},{"width":45,"y":424,"height":42,"name":"WL01-flower(1)/矢量智能对象_2","x":1},{"width":58,"y":375,"height":54,"name":"WL01-flower(1)/矢量智能对象_1","x":248},{"width":107,"y":239,"height":101,"name":"WL01-flower(1)/矢量智能对象_0","x":372},{"width":58,"y":385,"height":54,"name":"WL01-flower(1)/矢量智能对象","x":144}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "8db93b59-84b6-460e-918b-5e68695ec600",
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f", "uuid": "f06f7289-a956-4aac-8242-f482aa66ae16",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 366, "width": 512,
"height": 336, "height": 512,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"1orange": { "WL01_tex": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "43d1e79d-6de8-4dcb-b8ce-d767df7913aa", "uuid": "4899d243-41fa-4e99-ad75-7e0741ad39f1",
"rawTextureUuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f", "rawTextureUuid": "f06f7289-a956-4aac-8242-f482aa66ae16",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": -5.5,
"offsetY": -0.5, "offsetY": 22.5,
"trimX": 0, "trimX": 1,
"trimY": 1, "trimY": 1,
"width": 366, "width": 499,
"height": 335, "height": 465,
"rawWidth": 366, "rawWidth": 512,
"rawHeight": 336, "rawHeight": 512,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{"frameRate":24,"name":"WL02-fiy","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-96,"y":-68,"width":176,"height":148},"bone":[{"name":"root"},{"length":72,"name":"bone","parent":"root","transform":{"x":19.1,"y":23,"skX":88.22,"skY":88.22}},{"length":37,"name":"图层_35","parent":"bone","transform":{"x":5.7785,"y":-8.8748,"skX":-86.7571,"skY":-86.7571}},{"length":74,"name":"图层_21","parent":"bone","transform":{"x":9.4748,"y":7.3979,"skX":105.7885,"skY":105.7885}},{"length":17,"name":"图层_36","parent":"图层_21","transform":{"x":47.8658,"y":22.0697,"skX":57.8641,"skY":57.8641}},{"length":12,"name":"图层_39","parent":"图层_21","transform":{"x":88.0084,"y":16.0743,"skX":52.7624,"skY":52.7624}},{"length":68,"name":"图层_32","parent":"图层_35","transform":{"x":14.1342,"y":-28.22,"skX":-74.3941,"skY":-74.3941}},{"length":70,"name":"图层_31","parent":"图层_35","transform":{"x":-1.2944,"y":-25.2252,"skX":-110.3974,"skY":-110.3974}},{"name":"图层_50","parent":"图层_21","transform":{"x":52.0878,"y":-31.6499,"skX":165.9916,"skY":165.9916}},{"name":"图层_54","parent":"图层_36","transform":{"x":30.4454,"y":1.4968}},{"name":"图层_37","parent":"图层_39","transform":{"x":25.5464,"y":-1.3323}}],"slot":[{"name":"图层_31","parent":"图层_31"},{"name":"图层_35","parent":"图层_35"},{"name":"图层_21","parent":"图层_21"},{"name":"图层_39","parent":"图层_39"},{"displayIndex":1,"name":"图层_37","parent":"图层_37"},{"name":"图层_36","parent":"图层_36"},{"name":"图层_32","parent":"图层_32"},{"name":"图层_54","parent":"图层_54"},{"name":"图层_50","parent":"图层_50"}],"skin":[{"slot":[{"name":"图层_50","display":[{"name":"苍蝇(1)01/图层_50","transform":{"x":1.2,"y":0.7}},{"name":"苍蝇(1)01/图层_18","transform":{"x":24.7,"y":-24.3}}]},{"name":"图层_39","display":[{"name":"苍蝇(1)01/图层_39","transform":{"x":19.38,"y":8.86,"skX":113.23,"skY":113.23}}]},{"name":"图层_31","display":[{"name":"苍蝇(1)01/图层_31","transform":{"x":35.85,"y":-3.56,"skX":108.93,"skY":108.93}}]},{"name":"图层_32","display":[{"name":"苍蝇(1)01/图层_32","transform":{"x":34.22,"y":-3.19,"skX":72.93,"skY":72.93}}]},{"name":"图层_21","display":[{"name":"苍蝇(1)01/图层_21","transform":{"x":41.4,"y":-1.36,"skX":165.99,"skY":165.99}}]},{"name":"图层_37","display":[{"name":"苍蝇(1)01/图层_37","transform":{"x":7.82,"y":-3.39,"skX":113.23,"skY":113.23}},{"name":"苍蝇(1)01/图层_55","transform":{"x":-2.88,"y":1.27,"skX":113.23,"skY":113.23}},{"name":"苍蝇(1)01/图层_56","transform":{"x":3.03,"y":-1.09,"skX":113.23,"skY":113.23}}]},{"name":"图层_54","display":[{"name":"苍蝇(1)01/图层_54","transform":{"x":-3.08,"y":0.73,"skX":108.13,"skY":108.13}},{"name":"苍蝇(1)01/图层_58","transform":{"x":8.38,"y":-14.99,"skX":108.13,"skY":108.13}},{"name":"苍蝇(1)01/图层_57","transform":{"x":1.15,"y":-7.36,"skX":108.13,"skY":108.13}}]},{"name":"图层_36","display":[{"name":"苍蝇(1)01/图层_36","transform":{"x":23.11,"y":5.57,"skX":108.13,"skY":108.13}}]},{"name":"图层_35","display":[{"name":"苍蝇(1)01/图层_35","transform":{"x":6.09,"y":9.35,"skX":-1.46,"skY":-1.46}}]}]}],"animation":[{"duration":24,"playTimes":0,"name":"normal","bone":[{"name":"bone","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"y":-16.99},{"duration":0}]},{"name":"图层_21","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-2.22},{"duration":0}]},{"name":"图层_32","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":0}]},{"name":"图层_31","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":0}]}],"slot":[{"name":"图层_37","displayFrame":[{"duration":24}]},{"name":"图层_54","displayFrame":[{"duration":24,"value":1}]},{"name":"图层_50","displayFrame":[{"duration":24,"value":1}]}]},{"duration":24,"playTimes":0,"name":"dizzy","bone":[{"name":"bone","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"y":-20.51},{"duration":0}],"rotateFrame":[{"duration":12,"tweenEasing":0,"rotate":12.77},{"duration":12,"tweenEasing":0,"rotate":19.12},{"duration":0,"rotate":12.77}]},{"name":"图层_21","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-12.87},{"duration":0}]},{"name":"图层_32","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":0}]},{"name":"图层_31","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":0}]},{"name":"图层_54","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":180},{"duration":0}]},{"name":"图层_37","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":180},{"duration":0}]}]},{"duration":24,"playTimes":0,"name":"laugh","bone":[{"name":"bone","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"y":-16.99},{"duration":0}]},{"name":"图层_21","rotateFrame":[{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-17.3},{"duration":6,"tweenEasing":0,"rotate":-2.22},{"duration":6,"tweenEasing":0,"rotate":-17.9},{"duration":0}]},{"name":"图层_32","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":0}]},{"name":"图层_31","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":0}]}],"slot":[{"name":"图层_37","displayFrame":[{"duration":24}]},{"name":"图层_54","displayFrame":[{"duration":24,"value":1}]},{"name":"图层_50","displayFrame":[{"duration":24,"value":1}]}]},{"duration":20,"playTimes":0,"name":"scare","bone":[{"name":"bone","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":8,"tweenEasing":0,"y":-1.68},{"duration":0}],"rotateFrame":[{"duration":12,"tweenEasing":0,"rotate":12.77},{"duration":8,"tweenEasing":0,"rotate":27.49},{"duration":0,"rotate":12.77}]},{"name":"图层_21","rotateFrame":[{"duration":10,"tweenEasing":0},{"duration":10,"tweenEasing":0,"rotate":3.15},{"duration":0}]},{"name":"图层_32","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":0}]},{"name":"图层_31","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":0}]},{"name":"图层_50","scaleFrame":[{"duration":2,"tweenEasing":0},{"duration":18,"x":0.3}]}],"slot":[{"name":"图层_37","displayFrame":[{"duration":2},{"duration":18,"value":2},{"duration":0}]},{"name":"图层_54","displayFrame":[{"duration":2,"value":1},{"duration":18,"value":2},{"duration":0,"value":1}]}]}],"defaultActions":[{"gotoAndPlay":"normal"}],"canvas":{"width":240,"height":180}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "b8430916-f888-43d8-a423-4facb4deef13",
"subMetas": {}
}
\ No newline at end of file
{"width":256,"SubTexture":[{"width":55,"y":107,"height":77,"name":"苍蝇(1)01/图层_31","x":77},{"width":74,"y":107,"height":84,"name":"苍蝇(1)01/图层_35","x":1},{"width":101,"y":1,"height":104,"name":"苍蝇(1)01/图层_21","x":1},{"width":54,"y":179,"height":53,"name":"苍蝇(1)01/图层_39","x":143},{"width":31,"y":35,"height":28,"name":"苍蝇(1)01/图层_55","x":196},{"width":8,"y":238,"height":7,"name":"苍蝇(1)01/图层_56","x":53},{"width":14,"y":238,"height":12,"name":"苍蝇(1)01/图层_37","x":1},{"width":64,"y":186,"height":66,"name":"苍蝇(1)01/图层_36","x":77},{"width":60,"y":107,"height":70,"name":"苍蝇(1)01/图层_32","x":134},{"width":39,"y":1,"height":32,"name":"苍蝇(1)01/图层_54","x":196},{"width":7,"y":238,"height":7,"name":"苍蝇(1)01/图层_57","x":63},{"width":12,"y":238,"height":14,"name":"苍蝇(1)01/图层_58","x":17},{"width":20,"y":238,"height":7,"name":"苍蝇(1)01/图层_50","x":31},{"width":67,"y":193,"height":43,"name":"苍蝇(1)01/图层_18","x":1}],"height":256,"name":"WL02-fiy","imagePath":"WL02_tex.png"}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "d8decd83-f3ec-4f0c-87b9-8b45948b3741",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b899fb91-da61-49af-bfa7-660fd09df1ab",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 256,
"platformSettings": {},
"subMetas": {
"WL02_tex": {
"ver": "1.0.4",
"uuid": "376fb951-5155-4439-8a06-f90d7140553b",
"rawTextureUuid": "b899fb91-da61-49af-bfa7-660fd09df1ab",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -10,
"offsetY": 1.5,
"trimX": 1,
"trimY": 1,
"width": 234,
"height": 251,
"rawWidth": 256,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{"frameRate":24,"name":"苍蝇拍灰尘","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-293.5,"y":-232,"width":568,"height":441.83},"bone":[{"name":"root"},{"length":102,"name":"图层_0","parent":"root","transform":{"x":263.25,"y":194.3,"skX":-164.6204,"skY":-164.6204}},{"name":"粉末2","parent":"root","transform":{"x":-133.15,"y":4.75}},{"name":"粉末1","parent":"root","transform":{"x":-233.6,"y":-43.4}},{"name":"粉末1_拷贝","parent":"root","transform":{"x":206.8,"y":-156.35}},{"name":"粉末2_拷贝","parent":"root","transform":{"x":126,"y":-76.1}},{"length":92,"name":"图层_01","parent":"图层_0","transform":{"x":102.9362,"skX":26.534,"skY":26.534}},{"length":54,"name":"图层_02","parent":"图层_01","transform":{"x":92.5885,"skX":11.4361,"skY":11.4361}},{"length":84,"name":"图层_03","parent":"图层_02","transform":{"x":54.7804,"skX":1.7224,"skY":1.7224}},{"length":89,"name":"图层_04","parent":"图层_03","transform":{"x":84.0983,"skX":4.623,"skY":4.623}}],"slot":[{"name":"图层_0","parent":"图层_04"},{"name":"粉末2","parent":"粉末2"},{"name":"粉末1","parent":"粉末1"},{"name":"粉末2_拷贝","parent":"粉末2_拷贝"},{"name":"粉末1_拷贝","parent":"粉末1_拷贝"}],"skin":[{"slot":[{"name":"粉末2","display":[{"name":"苍蝇拍灰尘/粉末2","transform":{"x":-5.35,"y":2.75}}]},{"name":"粉末1","display":[{"name":"苍蝇拍灰尘/粉末1","transform":{"x":-1.4,"y":1.9}}]},{"name":"粉末2_拷贝","display":[{"name":"苍蝇拍灰尘/粉末2_拷贝","transform":{"x":6,"y":5.1}}]},{"name":"粉末1_拷贝","display":[{"name":"苍蝇拍灰尘/粉末1_拷贝","transform":{"x":9.2,"y":4.85}}]},{"name":"图层_0","display":[{"type":"mesh","name":"苍蝇拍灰尘/图层_0","width":364,"height":308,"vertices":[230.9,213.95,274.5,213.95,274.5,165.8,179.15,143.8,128.2,102.5,88.25,61.7,110.75,32.3,108,-17.2,91.5,-43.9,53.9,-94,27.3,-94,-42.5,-80.1,-89.5,-49.8,-89.5,-18.6,-72.8,24.5,-46.1,68.1,-8.95,93.75,47.45,80.05,91,131.35,150.7,182.35],"uvs":[0.88022,0.99984,1,0.99984,1,0.84351,0.73805,0.77208,0.59808,0.63799,0.48832,0.50552,0.55014,0.41006,0.54258,0.24935,0.49725,0.16266,0.39396,0,0.32088,0,0.12912,0.04513,0,0.14351,0,0.24481,0.04588,0.38474,0.11923,0.5263,0.22129,0.60958,0.37624,0.5651,0.49588,0.73166,0.65989,0.89724],"triangles":[3,0,2,2,0,1,3,19,0,4,19,3,4,18,19,5,18,4,5,17,18,8,17,7,17,5,7,7,5,6,11,14,10,14,15,17,14,17,8,10,14,8,9,10,8,15,16,17,13,14,11,12,13,11],"weights":[1,1,1,1,1,1,1,1,1,4,1,0.489266,6,0.454272,7,0.039806,8,0.016656,4,1,0.060634,6,0.579101,7,0.304613,8,0.055652,4,7,0.532725,8,0.332979,6,0.112683,9,0.021612,4,7,0.35226,8,0.348685,6,0.197706,9,0.101349,4,8,0.330643,7,0.270231,9,0.252086,6,0.147039,4,8,0.347796,9,0.337617,7,0.204699,6,0.109888,1,9,1,1,9,1,1,9,1,1,9,1,1,9,1,4,9,0.380061,8,0.368457,7,0.160466,6,0.091016,4,8,0.328359,9,0.30167,7,0.237918,6,0.132053,4,8,0.327847,7,0.315801,9,0.179936,6,0.176416,4,7,0.459272,8,0.42878,6,0.083781,9,0.028168,4,1,0.039327,6,0.536927,7,0.377489,8,0.046257,4,1,0.47428,6,0.49413,7,0.02252,8,0.00907],"slotPose":[1,0,0,1,0,0],"bonePose":[1,-0.96419,-0.265213,0.265213,-0.96419,263.25,194.3,6,-0.744153,-0.668009,0.668009,-0.744153,164,167,7,-0.596929,-0.802294,0.802294,-0.596929,95.1,105.15,8,-0.572544,-0.819874,0.819874,-0.572544,62.4,61.2,9,-0.5046,-0.863353,0.863353,-0.5046,14.25,-7.75],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,0],"userEdges":[]}]}]}],"animation":[{"duration":8,"playTimes":0,"name":"normal","bone":[{"name":"图层_0","translateFrame":[{"duration":4,"tweenEasing":0,"x":44.07,"y":-78.34},{"duration":4}],"rotateFrame":[{"duration":4,"tweenEasing":0,"rotate":41.03},{"duration":4}]},{"name":"粉末2","translateFrame":[{"duration":4,"tweenEasing":0,"x":128.42,"y":-1.89},{"duration":4,"tweenEasing":0,"x":128.42,"y":-1.89},{"duration":0}],"scaleFrame":[{"duration":4,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":4,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":0}]},{"name":"粉末1","translateFrame":[{"duration":4,"tweenEasing":0,"x":230.14,"y":40.87},{"duration":4,"tweenEasing":0,"x":230.14,"y":40.87},{"duration":0}],"scaleFrame":[{"duration":4,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":4,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":0}]},{"name":"粉末1_拷贝","translateFrame":[{"duration":4,"tweenEasing":0,"x":-197.57,"y":147.24},{"duration":4,"tweenEasing":0,"x":-197.57,"y":147.24},{"duration":0}],"scaleFrame":[{"duration":4,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":4,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":0}]},{"name":"粉末2_拷贝","translateFrame":[{"duration":4,"tweenEasing":0,"x":-121.25,"y":73.56},{"duration":4,"tweenEasing":0,"x":-121.25,"y":73.56},{"duration":0}],"scaleFrame":[{"duration":4,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":4,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":0}]},{"name":"图层_01","rotateFrame":[{"duration":4,"tweenEasing":0,"rotate":-10.48},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-2.54},{"duration":0}]},{"name":"图层_02","rotateFrame":[{"duration":2,"tweenEasing":0,"rotate":-7.34},{"duration":2,"tweenEasing":0,"rotate":11.46},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-2.33},{"duration":0}]},{"name":"图层_03","rotateFrame":[{"duration":2,"tweenEasing":0,"rotate":-3.22},{"duration":2,"tweenEasing":0,"rotate":8.81},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-4.21},{"duration":0}]},{"name":"图层_04","rotateFrame":[{"duration":2,"tweenEasing":0,"rotate":1.37},{"duration":2,"tweenEasing":0,"rotate":7.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-4.55},{"duration":0}]}]}],"defaultActions":[{"gotoAndPlay":"normal"}]}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "6d78146c-bb3d-4a77-9af6-1cdca5b015ae",
"subMetas": {}
}
\ No newline at end of file
{"width":512,"imagePath":"cangying_tex.png","height":512,"name":"苍蝇拍灰尘","SubTexture":[{"width":364,"y":1,"height":308,"name":"苍蝇拍灰尘/图层_0","x":1},{"width":66,"y":311,"height":105,"name":"苍蝇拍灰尘/粉末2","x":82},{"width":117,"y":164,"height":161,"name":"苍蝇拍灰尘/粉末1","x":367},{"width":79,"y":311,"height":102,"name":"苍蝇拍灰尘/粉末2_拷贝","x":1},{"width":117,"y":1,"height":161,"name":"苍蝇拍灰尘/粉末1_拷贝","x":367}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "135511a5-8a89-4b35-bd9c-53b001b7fb59",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7d17d49f-da42-4da2-be7c-ae9aa5d0ce90",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 512,
"platformSettings": {},
"subMetas": {
"cangying_tex": {
"ver": "1.0.4",
"uuid": "467592e4-2b3c-4a0b-892a-6f30ec3aecde",
"rawTextureUuid": "7d17d49f-da42-4da2-be7c-ae9aa5d0ce90",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -13.5,
"offsetY": 47.5,
"trimX": 1,
"trimY": 1,
"width": 483,
"height": 415,
"rawWidth": 512,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{"frameRate":24,"name":"comeon","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-360.46,"y":-155.14,"width":720,"height":199},"bone":[{"name":"root"},{"name":"WL-comeon","parent":"root","transform":{"x":-2.65,"y":-22.55}}],"slot":[{"name":"WL-comeon","parent":"WL-comeon"}],"skin":[{"slot":[{"name":"WL-comeon","display":[{"name":"WL-comeon","transform":{"x":2.19,"y":-33.09}}]}]}],"animation":[{"duration":34,"playTimes":0,"name":"newAnimation","bone":[{"name":"WL-comeon","translateFrame":[{"duration":12,"tweenEasing":0,"y":-477.5},{"duration":6,"tweenEasing":0,"y":24.18},{"duration":6,"tweenEasing":0,"y":-2.9},{"duration":10,"tweenEasing":0,"y":24.18},{"duration":0,"y":567.5}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"canvas":{"width":1280,"height":720}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "38dc6f23-ad7c-40aa-b453-55fcf4ef11f2",
"subMetas": {}
}
\ No newline at end of file
{"width":1024,"imagePath":"comeon_tex.png","height":256,"name":"comeon","SubTexture":[{"width":720,"y":1,"height":199,"name":"WL-comeon","x":1}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "fabcd065-ac14-49cf-9f17-b066de40f358",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "bfacd412-f2b8-4bdd-a557-79117529901e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 256,
"platformSettings": {},
"subMetas": {
"comeon_tex": {
"ver": "1.0.4",
"uuid": "277729c8-034d-4837-827c-2da49aa5498e",
"rawTextureUuid": "bfacd412-f2b8-4bdd-a557-79117529901e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -151,
"offsetY": 27.5,
"trimX": 1,
"trimY": 1,
"width": 720,
"height": 199,
"rawWidth": 1024,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "sound",
"_objFlags": 0,
"_native": "",
"_duration": 0.3333333333333333,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"curveData": {
"paths": {
"sound": {
"props": {
"active": [
{
"frame": 0,
"value": true
},
{
"frame": 0.08333333333333333,
"value": false
},
{
"frame": 0.16666666666666666,
"value": true
},
{
"frame": 0.25,
"value": false
},
{
"frame": 0.3333333333333333,
"value": true
}
]
}
},
"sound1": {
"props": {
"active": [
{
"frame": 0,
"value": false
},
{
"frame": 0.08333333333333333,
"value": true
},
{
"frame": 0.16666666666666666,
"value": false
},
{
"frame": 0.25,
"value": true
},
{
"frame": 0.3333333333333333,
"value": false
}
]
}
}
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.0",
"uuid": "264c55c1-d582-4791-adc1-56e17e70e764",
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "1.1.0", "ver": "1.1.0",
"uuid": "c551970e-b095-45f3-9f1d-25cde8b8deb1", "uuid": "954a1831-f11e-4448-b641-0e4a2d830e57",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
This diff is collapsed.
{ {
"ver": "1.2.9", "ver": "1.2.9",
"uuid": "0737ce42-24f0-45c6-8e1a-8bdab4f74ba3", "uuid": "57ea7c61-9b8b-498a-b024-c98ee9124beb",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"autoReleaseAssets": true, "autoReleaseAssets": true,
"subMetas": {} "subMetas": {}
......
This diff is collapsed.
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "f8b451ff-857c-4ca8-9870-866bc5154a29", "uuid": "f4ede462-f8d7-4069-ba80-915611c058ca",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
export const defaultData =
// {
// "sitems": [
// {
// "correct": "aeee",
// "incorrect": "theeeeee",
// "audio_url": "http://staging-teach.cdn.ireadabc.com/dd360bbbcf5817eea26ac5fa3341ef5d.mp3"
// },
// {
// "audio_url": "http://staging-teach.cdn.ireadabc.com/738ef124b1882d10b31d59fb2fbd7eb7.mp3",
// "correct": "b",
// "incorrect": "eeeeeeeeeeee"
// },
// {
// "audio_url": "http://staging-teach.cdn.ireadabc.com/a812f773f22fdb5fa0de04bc7979f6d7.mp3",
// "correct": "s",
// "incorrect": "ddd"
// }
// ],
// "time": "10",
// // "audio_url": "http://staging-teach.cdn.ireadabc.com/a812f773f22fdb5fa0de04bc7979f6d7.mp3",
// "title": "woijsjifwoiejf"
// }
{ "sitems": [{ "audio_url": "http://staging-teach.cdn.ireadabc.com/a5fb06cfafd5c74d143d00b8cafbed2e.mp3", "correct": "s1", "incorrect": "e1", "corrent_type": "pic", "incorrect_type": "pic", "correct_img": "http://staging-teach.cdn.ireadabc.com/d4155c391c607110f7b465938ee6b2e3.png", "incorrect_img": "http://staging-teach.cdn.ireadabc.com/72ed24ee44e6a420b77691a8c82c3ba6.png" }, { "audio_url": "http://staging-teach.cdn.ireadabc.com/b6400b57190622a34f1320d3e118db60.mp3", "correct": "s2", "incorrect": "e2", "corrent_type": "pic", "incorrect_type": "pic", "correct_img": "http://staging-teach.cdn.ireadabc.com/b234d6b23d499e70f9763208c2b3b482.png", "incorrect_img": "http://staging-teach.cdn.ireadabc.com/72ed24ee44e6a420b77691a8c82c3ba6.png" }], "time": 10, "title": "test1234" }
\ No newline at end of file
export function playAudioByUrlSync(audio_url) {
return new Promise((resolve, reject) => {
try {
if (!audio_url) {
resolve();
return;
}
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
if (err) {
reject(err);
return;
}
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
cc.audioEngine.setFinishCallback(audioId, () => {
resolve();
});
});
} catch (e) {
reject(e);
}
});
}
export function playDragonBoneAnimation(node, animationName, time = 1, onFinish = null, onFrameEvent = null) {
const armatureDisplay = node.getComponent(dragonBones.ArmatureDisplay);
armatureDisplay.once(dragonBones.EventObject.COMPLETE, () => {
if (onFinish) {
onFinish();
}
});
armatureDisplay.on(dragonBones.EventObject.FRAME_EVENT, (event) => {
if (onFrameEvent) {
onFrameEvent(event);
}
});
armatureDisplay.playAnimation(animationName, time);
}
export function getPosByAngle(angle, len) { export function getPosByAngle(angle, len) {
const radian = angle * Math.PI / 180; const radian = angle * Math.PI / 180;
...@@ -165,7 +204,7 @@ export function getSprNodeByUrl(url, cb) { ...@@ -165,7 +204,7 @@ export function getSprNodeByUrl(url, cb) {
export function playAudio(audioClip, cb = null) { export function playAudio(audioClip, cb = null) {
if (audioClip) { if (audioClip) {
const audioId = cc.audioEngine.playEffect(audioClip, false); const audioId = cc.audioEngine.playEffect(audioClip, false, 0.8);
if (cb) { if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => { cc.audioEngine.setFinishCallback(audioId, () => {
cb(); cb();
...@@ -177,12 +216,9 @@ export function playAudio(audioClip, cb = null) { ...@@ -177,12 +216,9 @@ export function playAudio(audioClip, cb = null) {
export async function asyncDelay(time) { export async function asyncDelay(time) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
try { try {
cc.tween(cc.find('Canvas')) setTimeout(() => {
.delay(time) resolve();
.call(()=>{ }, time * 1000);
resolve(null);
})
.start();
} catch (e) { } catch (e) {
reject(e); reject(e);
} }
...@@ -299,7 +335,7 @@ export async function asyncTweenTo(node, duration, obj, ease = undefined) { ...@@ -299,7 +335,7 @@ export async function asyncTweenTo(node, duration, obj, ease = undefined) {
cc.tween(node) cc.tween(node)
.to(duration, obj, ease) .to(duration, obj, ease)
.call(() => { .call(() => {
resolve(null); resolve();
}) })
.start(); .start();
} catch (e) { } catch (e) {
...@@ -314,7 +350,7 @@ export async function asyncTweenBy(node, duration, obj, ease = undefined) { ...@@ -314,7 +350,7 @@ export async function asyncTweenBy(node, duration, obj, ease = undefined) {
cc.tween(node) cc.tween(node)
.by(duration, obj, ease) .by(duration, obj, ease)
.call(() => { .call(() => {
resolve(null); resolve();
}) })
.start(); .start();
} catch (e) { } catch (e) {
......
{
"ver": "2.3.5",
"uuid": "f3586893-c9af-4a15-bb89-22b2cd2214fe",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 66,
"height": 105,
"platformSettings": {},
"subMetas": {
"air_0": {
"ver": "1.0.4",
"uuid": "64584a25-0b5f-4475-acf8-96d2c4af4576",
"rawTextureUuid": "f3586893-c9af-4a15-bb89-22b2cd2214fe",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 66,
"height": 105,
"rawWidth": 66,
"rawHeight": 105,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0ae3b1ad-1320-41bb-93a0-7d787bc895de",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 102,
"height": 163,
"platformSettings": {},
"subMetas": {
"air_1": {
"ver": "1.0.4",
"uuid": "6ae8f594-379c-48cb-9004-10df6e4d1a0c",
"rawTextureUuid": "0ae3b1ad-1320-41bb-93a0-7d787bc895de",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 102,
"height": 163,
"rawWidth": 102,
"rawHeight": 163,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d0fd4ec5-58bf-4bd2-8769-7d16d7c96898",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "a0e475f7-598e-4937-85e9-71026b619bbf",
"rawTextureUuid": "d0fd4ec5-58bf-4bd2-8769-7d16d7c96898",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c9531747-09e6-4c50-9e55-8f7df94c055e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 645,
"height": 160,
"platformSettings": {},
"subMetas": {
"cup": {
"ver": "1.0.4",
"uuid": "f41b953d-198a-4437-a871-c4198ef8ec9f",
"rawTextureUuid": "c9531747-09e6-4c50-9e55-8f7df94c055e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 645,
"height": 160,
"rawWidth": 645,
"rawHeight": 160,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3490beae-5126-4c4b-8add-48e1a5a98021",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 76,
"platformSettings": {},
"subMetas": {
"desk": {
"ver": "1.0.4",
"uuid": "b126504b-24cb-474c-9d5e-34dfcbac9dfe",
"rawTextureUuid": "3490beae-5126-4c4b-8add-48e1a5a98021",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 76,
"rawWidth": 1280,
"rawHeight": 76,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "24ee341c-7dfd-41c3-a941-dc45833b7e6d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 364,
"height": 308,
"platformSettings": {},
"subMetas": {
"flyswatter": {
"ver": "1.0.4",
"uuid": "fa9cb3c8-2996-484d-88a1-668a5b9c157b",
"rawTextureUuid": "24ee341c-7dfd-41c3-a941-dc45833b7e6d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 364,
"height": 308,
"rawWidth": 364,
"rawHeight": 308,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0644eafb-6e34-45d8-a62b-2e02abed4388",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 32,
"height": 46,
"platformSettings": {},
"subMetas": {
"icon_0": {
"ver": "1.0.4",
"uuid": "35e1bdd3-ea12-4be8-ae1c-aa4602266b0c",
"rawTextureUuid": "0644eafb-6e34-45d8-a62b-2e02abed4388",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 32,
"height": 46,
"rawWidth": 32,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c4d88804-0433-4caa-b21b-75b7fbd2dbc2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 40,
"height": 54,
"platformSettings": {},
"subMetas": {
"icon_1": {
"ver": "1.0.4",
"uuid": "020443b0-ca60-4a48-bde2-5ac11fb32c09",
"rawTextureUuid": "c4d88804-0433-4caa-b21b-75b7fbd2dbc2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 40,
"height": 54,
"rawWidth": 40,
"rawHeight": 54,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "936c2fda-6df3-4146-97e8-f6455a329d7b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 37,
"height": 51,
"platformSettings": {},
"subMetas": {
"icon_correct": {
"ver": "1.0.4",
"uuid": "8ff1d8dd-d6a3-40a0-9af2-32daae1da95e",
"rawTextureUuid": "936c2fda-6df3-4146-97e8-f6455a329d7b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 37,
"height": 51,
"rawWidth": 37,
"rawHeight": 51,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "db1907bd-a766-4e24-8fdb-98cf2e14a63d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 37,
"height": 51,
"platformSettings": {},
"subMetas": {
"icon_incorrect": {
"ver": "1.0.4",
"uuid": "aa4b89fb-61ee-4c70-98a3-c453a3d08ebf",
"rawTextureUuid": "db1907bd-a766-4e24-8fdb-98cf2e14a63d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 37,
"height": 51,
"rawWidth": 37,
"rawHeight": 51,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6300be7b-7614-4325-a43e-63663b61310f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 103,
"height": 95,
"platformSettings": {},
"subMetas": {
"icon_orange": {
"ver": "1.0.4",
"uuid": "64305c43-132e-408d-9de8-5bb16a7cbf0f",
"rawTextureUuid": "6300be7b-7614-4325-a43e-63663b61310f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 103,
"height": 95,
"rawWidth": 103,
"rawHeight": 95,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "f4ddfeac-55e6-483c-bc5f-dcaf9d62b049",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 37,
"height": 46,
"platformSettings": {},
"subMetas": {
"sound": {
"ver": "1.0.4",
"uuid": "67305c3b-6f6c-4603-85fd-83883e41884a",
"rawTextureUuid": "f4ddfeac-55e6-483c-bc5f-dcaf9d62b049",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 37,
"height": 46,
"rawWidth": 37,
"rawHeight": 46,
"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.
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