Commit 5fa2c117 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": "2.0.1",
"uuid": "0354b2dc-b110-49a3-836d-27184edf3b34",
"downloadMode": 0,
"duration": 1.776327,
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "f0680ae0-c079-45ef-abd7-9e63d90b982b", "uuid": "d9b37446-6c60-4784-aadf-e28a4edbbac7",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.130612, "duration": 0.130612,
"subMetas": {} "subMetas": {}
......
{
"ver": "2.0.1",
"uuid": "28662f37-fec2-4fb1-99bb-75d865565300",
"downloadMode": 0,
"duration": 0.173333,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "cd74e0ef-2454-41dd-be6e-acb08313cf19",
"downloadMode": 0,
"duration": 0.264,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "a263ce05-4956-4b2a-a797-68bcc502ba87",
"downloadMode": 0,
"duration": 2.220417,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "7f48ef4f-4e44-4f34-b854-11a87b28630b",
"downloadMode": 0,
"duration": 0.653061,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "fc679f47-82ed-420e-9d26-b2bf22eb2ee6",
"downloadMode": 0,
"duration": 4.04898,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "55b186a9-fa4a-4521-a961-f497cb86ef12",
"downloadMode": 0,
"duration": 4.101224,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "80c5049c-accf-45e5-8b6f-092755404293",
"downloadMode": 0,
"duration": 2.952,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "f1f7f62b-64d3-4a5b-8564-6ba3403ea2d5",
"downloadMode": 0,
"duration": 2.115917,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "afcb9c6f-2f4e-4003-b091-ca929a1e15bd",
"downloadMode": 0,
"duration": 0.809796,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "b1b3f16f-3f61-4c8d-b050-237fa24b8827",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"name":"speak","version":"5.5","frameRate":24,"armature":[{"name":"Armature","animation":[{"name":"newAnimation","frame":[],"ik":[],"duration":18,"slot":[{"name":"椭圆_11","colorFrame":[{"tweenEasing":0,"duration":18},{"duration":0,"color":{"aM":0}}],"displayFrame":[]},{"name":"椭圆_11_拷贝","colorFrame":[{"tweenEasing":0,"duration":18},{"duration":0,"color":{"aM":12}}],"displayFrame":[]},{"name":"组_1","colorFrame":[],"displayFrame":[]}],"bone":[{"name":"root","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"big","rotateFrame":[],"scaleFrame":[{"duration":18,"tweenEasing":0},{"duration":0,"x":1.7,"y":1.7}],"translateFrame":[]},{"name":"small","rotateFrame":[],"scaleFrame":[{"duration":18,"tweenEasing":0},{"duration":0,"x":1.7,"y":1.7}],"translateFrame":[]}],"playTimes":0,"ffd":[]}],"slot":[{"name":"椭圆_11","color":{},"parent":"big"},{"name":"椭圆_11_拷贝","color":{},"z":1,"parent":"small"},{"name":"组_1","color":{},"z":2,"parent":"root"}],"skin":[{"name":"","slot":[{"name":"椭圆_11","display":[{"name":"提示/椭圆_11","transform":{"x":1,"y":-0.5,"skX":-90,"skY":-90},"type":"image","path":"提示/椭圆_11"}]},{"name":"椭圆_11_拷贝","display":[{"name":"提示/椭圆_11_拷贝","transform":{"skX":180,"skY":180},"type":"image","path":"提示/椭圆_11_拷贝"}]},{"name":"组_1","display":[{"name":"提示/组_1","transform":{"x":1,"y":5.5},"type":"image","path":"提示/组_1"}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"ik":[],"frameRate":24,"bone":[{"name":"root","transform":{}},{"name":"big","transform":{"x":-0.5,"y":-1,"skX":90,"skY":90},"parent":"root"},{"name":"small","transform":{"skX":180,"skY":180},"parent":"root"}],"type":"Armature","aabb":{"x":-137.5,"height":278,"y":-139,"width":275}}],"isGlobal":0}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "a85b38de-c311-496f-88fd-08a5b07740dc",
"subMetas": {}
}
\ No newline at end of file
{"name":"speak","SubTexture":[{"name":"提示/椭圆_11","x":1,"height":278,"y":1,"width":275},{"name":"提示/椭圆_11_拷贝","x":1,"height":225,"y":281,"width":222},{"name":"提示/组_1","x":225,"height":184,"y":281,"width":124}],"imagePath":"speak_tex.png","height":512,"width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "e5b79d69-891d-476b-8d6c-36758018efb4",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "118be05d-6f0a-4cbd-b0ca-a117bba8113d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 512,
"platformSettings": {},
"subMetas": {
"speak_tex": {
"ver": "1.0.4",
"uuid": "f83b1e81-69d1-4f5c-9283-948626f2cb3a",
"rawTextureUuid": "118be05d-6f0a-4cbd-b0ca-a117bba8113d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -81,
"offsetY": 2.5,
"trimX": 1,
"trimY": 1,
"width": 348,
"height": 505,
"rawWidth": 512,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "929f2d45-0476-4c41-982b-7bac3525385a",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "cc976566-1393-4a57-9cbc-7198b0dcd6f8",
"subMetas": {}
}
\ No newline at end of file
{"name":"right","imagePath":"right_tex.png","height":256,"SubTexture":[{"name":"1/圆","x":1,"height":98,"y":1,"width":98},{"name":"1/星1","x":66,"height":59,"y":172,"width":57},{"name":"1/星2","x":71,"height":45,"y":101,"width":43},{"name":"1/星3","x":1,"height":64,"y":172,"width":63},{"name":"1/星4","x":183,"height":45,"y":172,"width":45},{"name":"1/星6","x":1,"height":69,"y":101,"width":68},{"name":"1/星7","x":116,"height":40,"y":101,"width":37},{"name":"1/星5","x":125,"height":57,"y":172,"width":56},{"name":"1/星8","x":183,"height":33,"y":219,"width":32},{"name":"1/星9","x":155,"height":37,"y":101,"width":36}],"width":256}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "d9e35d3e-7a69-4107-a87b-6ef7ecf65731",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "19c35939-4bf6-49c3-b443-2d2860461a8f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 256,
"platformSettings": {},
"subMetas": {
"right_tex": {
"ver": "1.0.4",
"uuid": "2826aa30-9e1e-4d76-bf8e-43738b5306cd",
"rawTextureUuid": "19c35939-4bf6-49c3-b443-2d2860461a8f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -13.5,
"offsetY": 1.5,
"trimX": 1,
"trimY": 1,
"width": 227,
"height": 251,
"rawWidth": 256,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "0d6dc63b-6feb-4875-a668-5063a1d622b5",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "cb251ca0-8be4-41e6-9c06-6461d59ff7c0",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
const {ccclass, property} = cc._decorator;
@ccclass
export default class StarScore extends cc.Component {
starLength = 0;
addStar() {
this.starLength++;
let length = this.starLength;
const starLayout = cc.find('layout', this.node);
starLayout.removeAllChildren();
const paddingY = starLayout.getComponent(cc.Layout).spacingY;
for (let i = 0; i < length; i++) {
const starBase = cc.instantiate(cc.find('StarBase', this.node));
starBase.name = `starBase_${i}`;
starBase.active = true;
starBase.scale = this.Between(0.5, (starLayout.height / length - paddingY) / starBase.height, 1);
starBase.parent = starLayout;
}
this.currentStarIdx = 0;
}
clearAllStar() {
const starLayout = cc.find('layout', this.node);
starLayout.removeAllChildren();
this.starLength = 0;
this.currentStarIdx = 0;
}
currentStarIdx = 0;
showStar() {
const starBase = cc.find(`layout/starBase_${this.currentStarIdx}`, this.node);
if (!starBase) {
return;
}
const star = starBase.getChildByName('Star');
const starBig = star.getChildByName('StarBig');
starBig.scale = 1;
star.active = true;
star.scaleX = 0.7 / starBase.scale;
star.scaleY = 1 / starBase.scale;
star.angle = 90;
const canvas = cc.find('Canvas');
const startPos = this.exchangeNodePos(star.parent, canvas, cc.v2(0, -canvas.height / 2));
const middlePos = this.exchangeNodePos(star.parent, canvas, cc.v2(0, -canvas.height / 4));
star.x = startPos.x;
star.y = startPos.y - starBig.height;
console.log('middlePos = ' + JSON.stringify(middlePos));
cc.tween(star)
.to(0.3, { y: middlePos.y + 80 }, { easing: 'quadOut' })
.to(0.1, { y: middlePos.y + 40, scaleX: 1.2 / starBase.scale, scaleY: 0.8 / starBase.scale }, { easing: 'quadOut' })
.to(0.1, { y: middlePos.y, scaleX: 1 / starBase.scale, scaleY: 1 / starBase.scale }, { easing: 'quadOut' })
.delay(0.1)
.to(0.8, { angle: -720, scale: 1 })
.start();
cc.tween(star)
.delay(0.6)
.to(0.8, { x: 0 }, { easing: 'quadIn' })
.start();
cc.tween(star)
.delay(0.6)
.to(0.8, { y: 0 }, { easing: 'quadOut' })
.start();
cc.tween(starBig)
.delay(0.6)
.to(0.8, { scale: 0 }, { easing: 'quadOut' })
.call(() => {
// this.checkGameEnd();
})
.start();
this.currentStarIdx++;
}
Between(a, b, c) {
return [a, b, c].sort()[1];
}
exchangeNodePos(targetNode, baseNode, basePos) {
return targetNode.convertToNodeSpaceAR(baseNode.convertToWorldSpaceAR(cc.v2(basePos.x, basePos.y)));
}
}
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "408a67f8-65fa-4cf1-8cf2-83e20e1a0fd5", "uuid": "b879a481-b795-4658-adde-625e4c6d3e70",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
This diff is collapsed.
{ {
"ver": "1.2.9", "ver": "1.2.9",
"uuid": "0737ce42-24f0-45c6-8e1a-8bdab4f74ba3", "uuid": "20ecf6b1-f87d-458f-912f-0b42da5d9ec0",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"autoReleaseAssets": true, "autoReleaseAssets": true,
"subMetas": {} "subMetas": {}
......
This diff is collapsed.
{
"ver": "1.0.8",
"uuid": "70a6591f-467b-4405-8120-ed11877a1f08",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// export const defaultData = {"contentObj":{"picArr":[[[{"cardId":"","left":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/213871779bc2404f84bfa94672dd0e74.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3","radioValue":"B"},"right":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/213871779bc2404f84bfa94672dd0e74.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3","radioValue":"B"},"radioValue":"D","word":"doom"},{"cardId":"","word":"food","left":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/98d6388099de7dcd945f39d9f74e226f.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/695bb2b2cda6c7efbacceabc89f1a031.mp3","radioValue":"B"},"right":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/98d6388099de7dcd945f39d9f74e226f.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/ce3337620f22232dd15c29c66af57736.mp3","radioValue":"B"},"radioValue":"D"}]]],"countDownNumber":3,"answerTime":30}}
// export const defaultData = {"contentObj":{"picArr":[[[{"cardId":"","left":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/213871779bc2404f84bfa94672dd0e74.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3","radioValue":"B"},"right":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/213871779bc2404f84bfa94672dd0e74.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3","radioValue":"B"},"radioValue":"D","word":"doom"},{"cardId":"","left":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/e04216e18a88cf20bb02a144d1ff541a.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/9f2fb9b0e8bee93e843e7d687e7aea50.mp3","radioValue":"B"},"right":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/e04216e18a88cf20bb02a144d1ff541a.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/7cba4edb49320a17b0db544780e0d0a9.mp3","radioValue":"B"},"radioValue":"D","word":"cook"},{"cardId":"","word":"food","left":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/98d6388099de7dcd945f39d9f74e226f.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/695bb2b2cda6c7efbacceabc89f1a031.mp3","radioValue":"B"},"right":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/98d6388099de7dcd945f39d9f74e226f.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/ce3337620f22232dd15c29c66af57736.mp3","radioValue":"B"},"radioValue":"D"}]]],"countDownNumber":12,"answerTime":21}}
// export const defaultData = {"contentObj":{"picArr":[[[{"cardId":"","left":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/213871779bc2404f84bfa94672dd0e74.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3","radioValue":"B"},"right":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/213871779bc2404f84bfa94672dd0e74.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3","radioValue":"B"},"radioValue":"D","word":"doom"},{"cardId":"","left":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/e04216e18a88cf20bb02a144d1ff541a.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/9f2fb9b0e8bee93e843e7d687e7aea50.mp3","radioValue":"B"},"right":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/e04216e18a88cf20bb02a144d1ff541a.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/7cba4edb49320a17b0db544780e0d0a9.mp3","radioValue":"B"},"radioValue":"D","word":"cook"},{"cardId":"","left":{"title":"flowers","pic_url":"","audio_url":"http://staging-teach.cdn.ireadabc.com/b62600fd1e72b54d1d1c3bc71b7361af.mp3","radioValue":"A"},"right":{"title":"flowers","pic_url":"","audio_url":"http://staging-teach.cdn.ireadabc.com/b62600fd1e72b54d1d1c3bc71b7361af.mp3","radioValue":"A"},"radioValue":"A","word":"look"},{"cardId":"","word":"food","left":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/98d6388099de7dcd945f39d9f74e226f.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/695bb2b2cda6c7efbacceabc89f1a031.mp3","radioValue":"B"},"right":{"title":"","pic_url":"http://staging-teach.cdn.ireadabc.com/98d6388099de7dcd945f39d9f74e226f.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/ce3337620f22232dd15c29c66af57736.mp3","radioValue":"B"},"radioValue":"D"}]]],"countDownNumber":12,"answerTime":21}}
// export const defaultData = { "contentObj": { "picArr": [[[{ "cardId": "", "left": { "title": "", "pic_url": "http://staging-teach.cdn.ireadabc.com/213871779bc2404f84bfa94672dd0e74.jpg", "audio_url": "http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3", "radioValue": "B" }, "right": { "title": "", "pic_url": "http://staging-teach.cdn.ireadabc.com/213871779bc2404f84bfa94672dd0e74.jpg", "audio_url": "http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3", "radioValue": "B" }, "radioValue": "D", "word": "doom" }, { "cardId": "", "left": { "title": "", "pic_url": "http://staging-teach.cdn.ireadabc.com/e04216e18a88cf20bb02a144d1ff541a.jpg", "audio_url": "http://staging-teach.cdn.ireadabc.com/9f2fb9b0e8bee93e843e7d687e7aea50.mp3", "radioValue": "B" }, "right": { "title": "", "pic_url": "http://staging-teach.cdn.ireadabc.com/e04216e18a88cf20bb02a144d1ff541a.jpg", "audio_url": "http://staging-teach.cdn.ireadabc.com/7cba4edb49320a17b0db544780e0d0a9.mp3", "radioValue": "B" }, "radioValue": "D", "word": "cook" }, { "cardId": "", "left": { "title": "flowers", "pic_url": "", "audio_url": "http://staging-teach.cdn.ireadabc.com/b62600fd1e72b54d1d1c3bc71b7361af.mp3", "radioValue": "A" }, "right": { "title": "flowers", "pic_url": "", "audio_url": "http://staging-teach.cdn.ireadabc.com/b62600fd1e72b54d1d1c3bc71b7361af.mp3", "radioValue": "A" }, "radioValue": "A", "word": "look" }, { "cardId": "", "left": { "title": "", "pic_url": "", "audio_url": "http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3", "radioValue": "C" }, "right": { "title": "", "pic_url": "", "audio_url": "http://staging-teach.cdn.ireadabc.com/c0e467e1950cb24b1e581737a1344cb4.mp3", "radioValue": "C" }, "radioValue": "F", "word": "book" }, { "cardId": "", "left": { "title": "", "pic_url": "http://staging-teach.cdn.ireadabc.com/98d6388099de7dcd945f39d9f74e226f.jpg", "audio_url": "", "radioValue": "B" }, "right": { "title": "", "pic_url": "http://staging-teach.cdn.ireadabc.com/98d6388099de7dcd945f39d9f74e226f.jpg", "audio_url": "", "radioValue": "B" }, "radioValue": "B", "word": "food" }]]], "countDownNumber": 12, "answerTime": 21 } }
export const defaultData = {"contentObj":{"picArr":[[[{"cardId":"","word":"blackboard","left":{"title":"","pic_url":"https://staging-teach.cdn.ireadabc.com/756e5187e7a6b5e61787c50c334854b0.png","audio_url":"https://staging-teach.cdn.ireadabc.com/8d3ee4a95da6a168257684ac3c777bb5.mp3","radioValue":"B"},"right":{"title":"blackboard","pic_url":"","audio_url":"https://staging-teach.cdn.ireadabc.com/8d3ee4a95da6a168257684ac3c777bb5.mp3","radioValue":"A"},"radioValue":"C"},{"cardId":"","word":"door","left":{"title":"","pic_url":"https://staging-teach.cdn.ireadabc.com/f402c0e33787d675a0ad42663b83c135.png","audio_url":"https://staging-teach.cdn.ireadabc.com/33e687867dcd891c05742212e8c5615b.mp3","radioValue":"B"},"right":{"title":"door","pic_url":"","audio_url":"https://staging-teach.cdn.ireadabc.com/33e687867dcd891c05742212e8c5615b.mp3","radioValue":"A"},"radioValue":"C"},{"cardId":"","word":"floor","left":{"title":"","pic_url":"https://staging-teach.cdn.ireadabc.com/b4085c5165282349e84f179e2bb9b2be.png","audio_url":"https://staging-teach.cdn.ireadabc.com/d15b182ae861be17f32c3ce79347265b.mp3","radioValue":"B"},"right":{"title":"floor","pic_url":"","audio_url":"https://staging-teach.cdn.ireadabc.com/d15b182ae861be17f32c3ce79347265b.mp3","radioValue":"A"},"radioValue":"C"},{"cardId":"","word":"wall","left":{"title":"","pic_url":"https://staging-teach.cdn.ireadabc.com/c21e3376f88e1e308d0341fd6a1d400e.png","audio_url":"https://staging-teach.cdn.ireadabc.com/e0c0be1bf8111d9a1c614236061b8e53.mp3","radioValue":"B"},"right":{"title":"wall","pic_url":"","audio_url":"https://staging-teach.cdn.ireadabc.com/e0c0be1bf8111d9a1c614236061b8e53.mp3","radioValue":"A"},"radioValue":"C"},{"cardId":"","word":"window","left":{"title":"","pic_url":"https://staging-teach.cdn.ireadabc.com/3fe69924ffdb933aef9b525d8cc1a797.png","audio_url":"https://staging-teach.cdn.ireadabc.com/7b80232856b0eec557e34ce4f8ad966f.mp3","radioValue":"B"},"right":{"title":"window","pic_url":"","audio_url":"https://staging-teach.cdn.ireadabc.com/7b80232856b0eec557e34ce4f8ad966f.mp3","radioValue":"A"},"radioValue":"C"}]]],"countDownNumber":7,"answerTime":30}}
...@@ -71,64 +71,64 @@ export function setSprNodeMaxLen(sprNode, maxW, maxH) { ...@@ -71,64 +71,64 @@ export function setSprNodeMaxLen(sprNode, maxW, maxH) {
} }
export function localPosTolocalPos(baseNode, targetNode) { export function localPosTolocalPos(baseNode, targetNode) {
const worldPos = targetNode.parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y)); const worldPos = targetNode.parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y));
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y)); const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos; return localPos;
} }
export function worldPosToLocalPos(worldPos, baseNode) { export function worldPosToLocalPos(worldPos, baseNode) {
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y)); const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos; return localPos;
} }
export function getScaleRateBy2Node(baseNode, targetNode, maxFlag = true) { export function getScaleRateBy2Node(baseNode, targetNode, maxFlag = true) {
const worldRect1 = targetNode.getBoundingBoxToWorld(); const worldRect1 = targetNode.getBoundingBoxToWorld();
const worldRect2 = baseNode.getBoundingBoxToWorld(); const worldRect2 = baseNode.getBoundingBoxToWorld();
const sx = worldRect1.width / worldRect2.width; const sx = worldRect1.width / worldRect2.width;
const sy = worldRect1.height / worldRect2.height; const sy = worldRect1.height / worldRect2.height;
if (maxFlag) { if (maxFlag) {
return Math.max(sx, sy); return Math.max(sx, sy);
} else { } else {
return Math.min(sx, sy); return Math.min(sx, sy);
} }
} }
export function getDistance (start, end){ export function getDistance(start, end) {
var pos = cc.v2(start.x - end.x, start.y - end.y); var pos = cc.v2(start.x - end.x, start.y - end.y);
var dis = Math.sqrt(pos.x*pos.x + pos.y*pos.y); var dis = Math.sqrt(pos.x * pos.x + pos.y * pos.y);
return dis; return dis;
} }
export function playAudioByUrl(audio_url, cb=null) { export function playAudioByUrl(audio_url, cb = null) {
if (audio_url) { if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => { cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8); const audioId = cc.audioEngine.play(audioClip, false, 0.8);
if (cb) { if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => { cc.audioEngine.setFinishCallback(audioId, () => {
cb(); cb();
}); });
} }
}); });
} }
} }
export function btnClickAnima(btn, time=0.15, rate=1.05) { export function btnClickAnima(btn, time = 0.15, rate = 1.05) {
btn.tmpScale = btn.scale; btn.tmpScale = btn.scale;
btn.on(cc.Node.EventType.TOUCH_START, () => { btn.on(cc.Node.EventType.TOUCH_START, () => {
cc.tween(btn) cc.tween(btn)
.to(time / 2, {scale: btn.scale * rate}) .to(time / 2, { scale: btn.scale * rate })
.start() .start()
}) })
btn.on(cc.Node.EventType.TOUCH_CANCEL, () => { btn.on(cc.Node.EventType.TOUCH_CANCEL, () => {
cc.tween(btn) cc.tween(btn)
.to(time / 2, {scale: btn.tmpScale}) .to(time / 2, { scale: btn.tmpScale })
.start() .start()
}) })
btn.on(cc.Node.EventType.TOUCH_END, () => { btn.on(cc.Node.EventType.TOUCH_END, () => {
cc.tween(btn) cc.tween(btn)
.to(time / 2, {scale: btn.tmpScale}) .to(time / 2, { scale: btn.tmpScale })
.start() .start()
}) })
} }
...@@ -179,7 +179,7 @@ export async function asyncDelay(time) { ...@@ -179,7 +179,7 @@ export async function asyncDelay(time) {
try { try {
cc.tween(cc.find('Canvas')) cc.tween(cc.find('Canvas'))
.delay(time) .delay(time)
.call(()=>{ .call(() => {
resolve(null); resolve(null);
}) })
.start(); .start();
...@@ -325,19 +325,19 @@ export async function asyncTweenBy(node, duration, obj, ease = undefined) { ...@@ -325,19 +325,19 @@ export async function asyncTweenBy(node, duration, obj, ease = undefined) {
export function showTrebleFirework(baseNode, rabbonList) { export function showTrebleFirework(baseNode, rabbonList) {
const middle = new FireworkSettings(baseNode, rabbonList); const middle = new FireworkSettings(baseNode, rabbonList);
middle.pos = cc.v2(0, -400); middle.pos = cc.v2(0, -800);
middle.side = cc.v2(0, 1000); middle.side = cc.v2(0, 1800);
middle.range = 200; middle.range = 200;
middle.number = 100; middle.number = 100;
middle.scalseRange = 0.4; middle.scalseRange = 0.4;
const left = FireworkSettings.copy(middle); const left = FireworkSettings.copy(middle);
left.pos = cc.v2(-600, -400); left.pos = cc.v2(-600, -800);
left.side = cc.v2(200, 1000); left.side = cc.v2(200, 1800);
const right = FireworkSettings.copy(middle); const right = FireworkSettings.copy(middle);
right.pos = cc.v2(600, -400); right.pos = cc.v2(600, -800);
right.side = cc.v2(-200, 1000); right.side = cc.v2(-200, 1800);
showFireworks(middle); showFireworks(middle);
showFireworks(left); showFireworks(left);
...@@ -354,4 +354,27 @@ export function onHomeworkFinish() { ...@@ -354,4 +354,27 @@ export function onHomeworkFinish() {
} else { } else {
console.log('onHomeworkFinish'); console.log('onHomeworkFinish');
} }
}
export function Between(a, b, c) {
return [a, b, c].sort()[1];
}
export async function asyncPlayDragonBoneAnimation(node, animationName, time = 1, onFrameEvent = null) {
return new Promise((resolve, reject) => {
const dragonDisplay = node.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.timeScale = 1;
dragonDisplay.once(dragonBones.EventObject.COMPLETE, () => {
resolve(null);
});
dragonDisplay.on(dragonBones.EventObject.FRAME_EVENT, ({ name }) => {
if (onFrameEvent && typeof (onFrameEvent) == 'function') {
onFrameEvent(name);
}
});
dragonDisplay.playAnimation(animationName, time);
});
} }
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "e1b4d971-9876-4832-803a-5a321964a78b", "uuid": "51460c31-1688-4636-a9ec-8b48b49d2747",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
"height": 720, "height": 720,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"bg": { "bg_bg": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "8288e3d4-4c75-4b27-8f01-f7014417f4dd", "uuid": "b0f4ef9a-af92-4234-932b-f7c2f9d02327",
"rawTextureUuid": "e1b4d971-9876-4832-803a-5a321964a78b", "rawTextureUuid": "51460c31-1688-4636-a9ec-8b48b49d2747",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{
"ver": "2.3.5",
"uuid": "7d567aea-a713-4e9e-87c4-0d6835a1d74b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 815,
"height": 488,
"platformSettings": {},
"subMetas": {
"bg_goodjob": {
"ver": "1.0.4",
"uuid": "70bca413-b2e8-4732-97fd-1debbcdda313",
"rawTextureUuid": "7d567aea-a713-4e9e-87c4-0d6835a1d74b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 815,
"height": 488,
"rawWidth": 815,
"rawHeight": 488,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c5850b84-b5c2-4545-889d-c986e2a7dbc5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 803,
"height": 333,
"platformSettings": {},
"subMetas": {
"bg_lose": {
"ver": "1.0.4",
"uuid": "942be0ff-5149-4ae2-9886-58d40bb26f6b",
"rawTextureUuid": "c5850b84-b5c2-4545-889d-c986e2a7dbc5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 803,
"height": 333,
"rawWidth": 803,
"rawHeight": 333,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "22897d96-247d-4e31-a572-a9a97c1f5065",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 89,
"height": 42,
"platformSettings": {},
"subMetas": {
"bg_lowerright": {
"ver": "1.0.4",
"uuid": "22d551c5-cb4d-413b-9aa3-21b57189844e",
"rawTextureUuid": "22897d96-247d-4e31-a572-a9a97c1f5065",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 89,
"height": 42,
"rawWidth": 89,
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "dffacdcf-0a60-48c4-9292-503f1ea791cc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1260,
"height": 65,
"platformSettings": {},
"subMetas": {
"bg_progress": {
"ver": "1.0.4",
"uuid": "61807862-1eaa-4a7c-bba9-6be28124352e",
"rawTextureUuid": "dffacdcf-0a60-48c4-9292-503f1ea791cc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 3,
"trimX": 0,
"trimY": 0,
"width": 1260,
"height": 59,
"rawWidth": 1260,
"rawHeight": 65,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ee437f3a-d817-43be-b9d7-0138171b05c6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1260,
"height": 65,
"platformSettings": {},
"subMetas": {
"bg_progressbar": {
"ver": "1.0.4",
"uuid": "f67f167e-6b51-4fc0-9b6f-6f6ad9fc3485",
"rawTextureUuid": "ee437f3a-d817-43be-b9d7-0138171b05c6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1260,
"height": 65,
"rawWidth": 1260,
"rawHeight": 65,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "9a79969a-0506-48d4-bc98-3c05d109b027", "uuid": "7f221d95-9bce-4653-8b13-c7184ce570cf",
"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": 61, "width": 36,
"height": 67, "height": 24,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_left": { "bg_sahua": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5", "uuid": "c2668d79-45be-43f9-9eba-b34af58f9a97",
"rawTextureUuid": "9a79969a-0506-48d4-bc98-3c05d109b027", "rawTextureUuid": "7f221d95-9bce-4653-8b13-c7184ce570cf",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 61, "width": 36,
"height": 67, "height": 24,
"rawWidth": 61, "rawWidth": 36,
"rawHeight": 67, "rawHeight": 24,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "38e187ee-c5a9-42dc-8b13-d3b44b068636",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 803,
"height": 333,
"platformSettings": {},
"subMetas": {
"bg_tryagain": {
"ver": "1.0.4",
"uuid": "8d9a0139-7e89-4ab9-8b6e-39793e1e0d84",
"rawTextureUuid": "38e187ee-c5a9-42dc-8b13-d3b44b068636",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 803,
"height": 333,
"rawWidth": 803,
"rawHeight": 333,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c6fc11e1-b228-489c-95ae-1e47ec860fe0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 217,
"height": 134,
"platformSettings": {},
"subMetas": {
"bg_upperleft": {
"ver": "1.0.4",
"uuid": "699487dc-4734-4339-8161-fdb7a5b82c0b",
"rawTextureUuid": "c6fc11e1-b228-489c-95ae-1e47ec860fe0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 217,
"height": 134,
"rawWidth": 217,
"rawHeight": 134,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "cfcb3f55-161a-48c4-9dc3-d4898edca8ba",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 815,
"height": 488,
"platformSettings": {},
"subMetas": {
"bg_win": {
"ver": "1.0.4",
"uuid": "8e727d1e-09fe-4150-babd-b5a120288bc2",
"rawTextureUuid": "cfcb3f55-161a-48c4-9dc3-d4898edca8ba",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 815,
"height": 488,
"rawWidth": 815,
"rawHeight": 488,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "78bc3378-a708-419d-a622-0f9ab147816d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 406,
"height": 130,
"platformSettings": {},
"subMetas": {
"btn_doitagain": {
"ver": "1.0.4",
"uuid": "ebb1b1d7-fde0-4f88-809e-f83ddb88b736",
"rawTextureUuid": "78bc3378-a708-419d-a622-0f9ab147816d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 406,
"height": 130,
"rawWidth": 406,
"rawHeight": 130,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "11406ee2-fa6f-463e-858b-50fc7a4e2c10",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 106,
"height": 80,
"platformSettings": {},
"subMetas": {
"btn_laba": {
"ver": "1.0.4",
"uuid": "02e0f221-017e-4c57-9aac-5cc79d071f52",
"rawTextureUuid": "11406ee2-fa6f-463e-858b-50fc7a4e2c10",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 106,
"height": 80,
"rawWidth": 106,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "21d90441-d055-4678-bd87-421a0425f53f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 106,
"height": 80,
"platformSettings": {},
"subMetas": {
"btn_laba1": {
"ver": "1.0.4",
"uuid": "809e5b6b-c40e-4623-aa5e-132ce66620f3",
"rawTextureUuid": "21d90441-d055-4678-bd87-421a0425f53f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 18,
"offsetY": 0,
"trimX": 36,
"trimY": 0,
"width": 70,
"height": 80,
"rawWidth": 106,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "504311ab-569b-4dbb-bbea-4aa69c2c81ba",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 106,
"height": 80,
"platformSettings": {},
"subMetas": {
"btn_laba2": {
"ver": "1.0.4",
"uuid": "0402cedd-8995-49e8-9807-4d87183c9543",
"rawTextureUuid": "504311ab-569b-4dbb-bbea-4aa69c2c81ba",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 4,
"offsetY": 0,
"trimX": 8,
"trimY": 0,
"width": 98,
"height": 80,
"rawWidth": 106,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "eaa3ceba-7824-4c04-98d3-c3255df3f6ce",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 106,
"height": 80,
"platformSettings": {},
"subMetas": {
"btn_laba3": {
"ver": "1.0.4",
"uuid": "3db1ddc2-3cfc-4ebd-b1ee-858915186b38",
"rawTextureUuid": "eaa3ceba-7824-4c04-98d3-c3255df3f6ce",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 106,
"height": 80,
"rawWidth": 106,
"rawHeight": 80,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "4d68b6e0-d93b-49d4-b34e-bf42e306ee13",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 332,
"height": 152,
"platformSettings": {},
"subMetas": {
"btn_restart": {
"ver": "1.0.4",
"uuid": "6a28ea69-2203-442e-b75d-1a4139d8eccb",
"rawTextureUuid": "4d68b6e0-d93b-49d4-b34e-bf42e306ee13",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 332,
"height": 152,
"rawWidth": 332,
"rawHeight": 152,
"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.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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