Commit 80e88d37 authored by huoshizhe's avatar huoshizhe

feat: ZD04

parent 6151e8e4
...@@ -5,6 +5,12 @@ ...@@ -5,6 +5,12 @@
/publish/publish/play /publish/publish/play
/publish/publish/form /publish/publish/form
/publish/publish/android /publish/publish/android
/publish/publish/web_desktop
/publish/publish/ios /publish/publish/ios
/publish/publish/*.zip /publish/publish/*.zip
/node_modules /publish/publish/config.json
\ No newline at end of file /publish/publish/Release*
/node_modules
/play/build_android
/play/build_ios
/play/build_web_desktop
\ No newline at end of file
# cocos-generator
cocos creator技术框架下的H5互动模板框架脚手架,基于cocos creator实现快速开发基于绘玩云的H5互动课件。
# 使用简介
## 前期准备
* git下载 https://git-scm.com/downloads
* nodejs下载 https://nodejs.org/zh-cn/download/
* 谷歌浏览器下载 https://www.google.cn/chrome/
都下载最新版就行,然后默认安装就可以
## 生成项目
* 登录绘玩云课件开发平台:http://staging-teach.ireadabc.com/
* 点击“登录账号,查看我的课件”
* 输入测试的用户名/密码:developers/12345678
* 在右上角“个人中心”的下拉菜单里,点击“我的模板” 菜单,然后点击“新建模板”, 填写必要的信息,在“技术选型”一项上选择“Cocos”
* 点击“确定”后,列表页就会出现一个新生成的模板项目
* 在项目的卡片下找到“开发”按钮,则会弹出相对应的git地址
## 获取并启动项目
```
// xxx 是上面项目对应的Git地址
git clone xxx
cd 项目名称/
npm install
// 打开Cocos Creator, 点击项目(Project)=> 添加(Add) 在打开的对话框里面选择进入clone下来的项目,选择play文件夹,然后打开
// 进行常规的Cocos开发
```
## 本地调试
### 普通模板
* 找到 Cocos Creator 的安装目录下 Creator/2.4.5/CocosCreator.app/Contents/Resources/static/preview-templates/index.jade 文件
* 在引入JS的位置添加如下代码:
```
script(type='text/javascript' charset='utf-8' src='//staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js')
```
* 打开浏览器:http://staging-teach.ireadabc.com/template_ci/debug
* 点击右上角齿轮,选择技术选型、调试模式选择“普通”
### 互动模板
* 找到 Cocos Creator 的安装目录下 Creator/2.4.5/CocosCreator.app/Contents/Resources/static/preview-templates/index.jade 文件
* 在引入JS的位置添加如下代码:
```
script(type='text/javascript' charset='utf-8' src='//staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air_online_open.js')
```
* 打开浏览器:http://staging-teach.ireadabc.com/template_ci/debug
* 点击右上角齿轮,选择技术选型、调试模式选择“互动”
* 左侧老师、右侧学生
\ No newline at end of file
This diff is collapsed.
@import '../style/common_mixin.css';
.model-content {
width: 100%;
height: 100%;
}
.radioPaire {
float: left;
margin: 3px;
border-style: dashed;
border-color: #000;
border-width: 1px;
}
.border {
border-radius: 20px;
border-style: dashed;
padding: 20px;
margin: 20px;
/*width: 500px; */
/*//border-radius: 20px;*/
/*//border-width: 2px;*/
/*//border-color: #000000;*/
}
.border-lite {
border: 2px dashed #ddd;
border-radius: 0.5rem;
padding: 10px;
margin: 10px;
}
<div class="model-content"> <div class="model-content">
<div class="card-config">
<div style="padding: 10px;"> <div *ngFor="let item of dataArray; let i = index" class="card-item" style="padding: 0.5vw;" >
<div class="card-item-content border">
<div style="width: 300px;" align='center'> <div class="card-item-content">
<span>图1: </span> <div class="title" >
<app-upload-image-with-preview 第-<strong>{{ i + 1 }}</strong>-题
[picUrl]="item.pic_url" </div>
(imageUploaded)="onImageUploadSuccess($event, 'pic_url')">
</app-upload-image-with-preview>
</div>
<div style="width: 300px; margin-top: 5px;" align='center'>
<span>图2: </span>
<app-upload-image-with-preview
[picUrl]="item.pic_url_2"
(imageUploaded)="onImageUploadSuccess($event, 'pic_url_2')">
</app-upload-image-with-preview>
</div>
<div style="width: 300px; margin-top: 15px;"> <div class="section" >
<span>文本: </span> <div class="section-title" >
<input type="text" nz-input [(ngModel)]="item.text" (blur)="save()"> 问题
</div> </div>
<div class="section-content">
<div style="flex:1">
<div style="display: flex; margin-bottom: 10px;">
<div style="flex:1">
文字
</div>
<div style="flex:5">
<input type="text" nz-input placeholder="" [(ngModel)]="item.question.text" (blur)="saveItem()" style="width: 250px;" />
</div>
</div>
<div style="margin-top: 5px"> <div style="display: flex; margin-bottom: 10px;">
<span>音频: </span> <div style="flex:1">
<app-audio-recorder 音频
[audioUrl]="item.audio_url" </div>
(audioUploaded)="onAudioUploadSuccess($event, 'audio_url')" <div style="flex:5">
></app-audio-recorder> <app-audio-recorder [audioUrl]="item.question.audio_url" (audioUploaded)="onAudioUploadSuccessByItem($event, item.question)" ></app-audio-recorder>
</div> </div>
</div>
<div style="display: flex; margin-bottom: 10px;">
<div style="flex:1">
时间
</div>
<div style="flex:5">
<input type="text" nz-input placeholder="" [(ngModel)]="item.time" (blur)="saveItem()" style="width: 80px;" /><span style="margin-left: 10px;"></span>
</div>
</div>
</div>
</div>
</div>
<div class="section" >
<div style="text-align: right; padding-right: 20px;">
<button style="margin-bottom: 10px;" nz-button nzType="danger" (click)="deleteItem(i)" >
<span>删除本题</span>
</button>
</div>
</div>
</div>
</div>
</div>
<div class="card-item" style="padding: 0.5vw;" >
<button nz-button nzType="primary" class="add-btn" (click)="addItem()">
<i nz-icon nzType="plus-circle" nzTheme="outline"></i>
新建卡片组
</button>
</div>
</div> </div>
</div> </div>
@import "../style/common_mixin";
.model-content {
.card-config {
width: 100%;
height: 100%;
margin-left: 10px;
display: flex;
flex-wrap: wrap;
.card-item{
flex:1;
.border {
border-radius: 20px;
border-style: dashed;
padding:20px;
width: 800px;
}
.card-item-content{
.title {
font-size: 24px;
width: 100%;
text-align: center;
}
.section{
border-top: 1px solid ;
padding: 10px 0;
.section-title{
font-size: 24px;
width: 100%;
}
.section-content{
display: flex;
margin: 5px 0 10px 0;
}
}
.pic-sound-box {
width: 50%;
display: flex;
flex-direction: column;
}
.add-btn-box {
display: flex;
align-items: center;
justify-content: center;
height: 20vw;
padding: 10px;
padding-top: 5vw;
}
}
}
}
}
import { Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, ApplicationRef, ChangeDetectorRef } from '@angular/core'; import {Component, EventEmitter, Input, OnDestroy, OnChanges, OnInit, Output, ApplicationRef} from '@angular/core';
import { JsonPipe } from '@angular/common';
@Component({ @Component({
selector: 'app-form', selector: 'app-form',
templateUrl: './form.component.html', templateUrl: './form.component.html',
styleUrls: ['./form.component.css'] styleUrls: ['./form.component.scss']
}) })
export class FormComponent implements OnInit, OnChanges, OnDestroy {
// 储存数据用 export class FormComponent implements OnInit, OnChanges, OnDestroy {
saveKey = "test_001";
// 储存对象
item;
constructor(private appRef: ApplicationRef, private changeDetectorRef: ChangeDetectorRef) { dataArray = [];
_item: any;
KEY = 'ZD04';
set item(item) {
this._item = item;
} }
get item() {
createShell() { return this._item;
this.item.wordList.push({
word: '',
audio: '',
backWord: '',
backWordAudio: '',
});
this.save();
} }
removeShell(idx) { @Output()
this.item.wordList.splice(idx, 1); update = new EventEmitter();
this.save(); constructor(private appRef: ApplicationRef) {
} }
ngOnInit() { ngOnInit() {
this.item = {}; this.item = {};
this.item.contentObj = {};
// 获取存储的数据 const getData = (<any> window).courseware.getData;
(<any>window).courseware.getData((data) => { getData((data) => {
if (data) { if (data) {
this.item = data; this.item = data;
} else {
this.item = {};
}
if ( !this.item.contentObj ) {
this.item.contentObj = {};
} }
this.init(); this.init();
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh(); this.refresh();
this.saveItem();
}, this.saveKey); }, this.KEY);
} }
ngOnChanges() { ngOnChanges() {
} }
ngOnDestroy() { ngOnDestroy() {
} }
init() { init() {
if (this.item.contentObj.dataArray) {
this.dataArray = this.item.contentObj.dataArray;
} else {
this.dataArray = this.getDefaultPicArr();
this.item.contentObj.dataArray = this.dataArray;
}
}
cardItemData(){
return {
time: 5,
question:{
text:"",
audio_url:""
},
};
}
cardChoiceData(){
return { isText: true, text: "", image_url: "" }
} }
getDefaultPicArr() {
let arr = [];
return arr;
}
/**
* 储存图片数据
* @param e
*/
onImageUploadSuccess(e, key) {
this.item[key] = e.url; initData() {
this.save();
} }
/** deleteItem(index) {
* 储存音频数据 if (index !== -1) {
* @param e this.dataArray.splice(index, 1);
*/ }
onAudioUploadSuccess(e, key) { this.save();
this.item[key] = e.url; }
deleteChoice(questionIndex, choiceIndex){
if (questionIndex !== -1 && choiceIndex !== -1) {
this.dataArray[questionIndex].choice.incorrect.splice(choiceIndex, 1);
}
this.save(); this.save();
} }
addChoice(questionIndex) {
let item = this.cardChoiceData();
this.dataArray[questionIndex].choice.incorrect.push(item);
this.saveItem();
}
onWordAudioUploadSuccess(e, idx) { onImageUploadSuccessByItem(e, item) {
this.item.wordList[idx].audio = e.url; item.image_url = e.url
this.save();
}
onAudioUploadSuccessByItem(e, item) {
item.audio_url = e.url;
this.save();
}
onTitleAudioUploadSuccess(e) {
this.item.contentObj.titleAudio_url = e.url;
this.save(); this.save();
} }
addItem() {
let item = this.cardItemData();
this.dataArray.push(item);
this.saveItem();
}
radioClick(it, radioValue) {
it.radioValue = radioValue;
onBackWordAudioUploadSuccess(e, idx) { this.saveItem();
this.item.wordList[idx].backWordAudio = e.url; }
clickCheckBox() {
this.saveItem();
}
saveItem() {
this.save(); this.save();
} }
/**
* 储存数据
*/
save() { save() {
(<any>window).courseware.setData(this.item, null, this.saveKey); (<any> window).courseware.setData(this.item, null, this.KEY);
this.refresh(); this.refresh();
//console.log(this.item)
console.log('this.item = ' + JSON.stringify(this.item)); console.log('this.item = ' + JSON.stringify(this.item));
} }
/**
* 刷新 渲染页面
*/
refresh() { refresh() {
setTimeout(() => { setTimeout(() => {
this.appRef.tick(); this.appRef.tick();
}, 1); }, 1);
} }
} }
\ No newline at end of file
This diff is collapsed.
{ {"ver":"1.1.2","uuid":"c35bb2f6-f24a-4850-ae44-643f2fdc7541","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
"ver": "1.1.2", \ No newline at end of file
"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": "5b64c213-7008-4deb-8733-b8bc4787e2ed",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.130612, "duration": 0.5774,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "0de01648-bb35-4437-82e3-c4348ebc5cb3",
"downloadMode": 0,
"duration": 2.336,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "082e4b12-5a20-4c60-b5a6-3f1a8e6e1dbf",
"downloadMode": 0,
"duration": 0.938688,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "02149cf3-2005-4a8b-aeed-c4cb4765ec02",
"downloadMode": 0,
"duration": 1.802449,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "e8289b48-a58a-4e09-ac11-49f262242ebd",
"downloadMode": 0,
"duration": 3.0885,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "3023237b-577b-4876-b528-5e3096a25304",
"downloadMode": 0,
"duration": 0.313469,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "da36de83-153e-47c1-a679-737aeaf7092c",
"downloadMode": 0,
"duration": 0.767083,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "4bda48c7-82c1-41fe-befc-a190cb24e145",
"downloadMode": 0,
"duration": 0.115,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "6a1dde8c-dedd-42ad-9d5e-38a9eb040277",
"downloadMode": 0,
"duration": 0.326,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "ada99876-7c10-44a6-b969-f11044cd391f",
"downloadMode": 0,
"duration": 4,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "829a6c4a-0472-4df0-9481-e305d3f2238c",
"downloadMode": 0,
"duration": 3.787755,
"subMetas": {}
}
\ No newline at end of file
{"frameRate":24,"name":"zd-cloud","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-115.4,"y":-43.01,"width":226,"height":86},"bone":[{"name":"root"},{"name":"zd-cloud1","parent":"root","transform":{"x":-2.3951,"y":-0.0058}}],"slot":[{"name":"zd-cloud","parent":"zd-cloud1"}],"skin":[{"slot":[{"name":"zd-cloud","display":[{"name":"zd-cloud"}]}]}],"animation":[{"duration":240,"playTimes":0,"name":"newAnimation","bone":[{"name":"zd-cloud1","translateFrame":[{"duration":120,"tweenEasing":0,"x":440.14},{"tweenEasing":0,"x":-427.06},{"duration":119,"tweenEasing":0,"x":440.14},{"duration":0,"x":-427.06}]}],"slot":[{"name":"zd-cloud","colorFrame":[{"duration":30,"tweenEasing":0,"value":{"aM":0}},{"duration":91,"tweenEasing":0},{"duration":30,"tweenEasing":0,"value":{"aM":0}},{"duration":89}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"canvas":{"width":1400,"height":300}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "6770a4b4-c164-4642-a4a8-8a6c056c34ba",
"subMetas": {}
}
\ No newline at end of file
{"name":"zd-cloud","imagePath":"zd-cloud_tex.png","height":128,"SubTexture":[{"name":"zd-cloud","x":1,"height":86,"y":1,"width":226}],"width":256}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "5da48cd4-b88c-408c-ba22-30368a050482",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "578ddcda-02bb-466b-826c-25c019350f11",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 128,
"platformSettings": {},
"subMetas": {
"zd-cloud_tex": {
"ver": "1.0.4",
"uuid": "15d54a51-30a6-40e6-af09-5658fcf0f250",
"rawTextureUuid": "578ddcda-02bb-466b-826c-25c019350f11",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -14,
"offsetY": 20,
"trimX": 1,
"trimY": 1,
"width": 226,
"height": 86,
"rawWidth": 256,
"rawHeight": 128,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "284c5160-ccd7-4a83-94dc-76b12716394a",
"subMetas": {}
}
\ No newline at end of file
{"name":"zd-deedback-final","imagePath":"zd-deedback-final_tex.png","SubTexture":[{"name":"Oval 2 Copy 2","x":231,"height":12,"y":104,"width":12},{"name":"Oval 2 Copy 3","x":241,"height":11,"y":30,"width":11},{"name":"Oval 2 Copy 4","x":241,"height":12,"y":16,"width":12},{"name":"Oval 2 Copy 5","x":244,"height":9,"y":56,"width":9},{"name":"Oval 2 Copy 6","x":244,"height":11,"y":43,"width":11},{"name":"Oval 2 Copy","x":91,"height":12,"y":43,"width":12},{"name":"Oval 2","x":241,"height":13,"y":1,"width":13},{"name":"Path 11 Copy","x":1,"height":70,"y":152,"width":81},{"name":"Path 11","x":1,"height":38,"y":112,"width":215},{"name":"Path 12 Copy 2","x":218,"height":40,"y":43,"width":24},{"name":"Path 12 Copy","x":1,"height":109,"y":1,"width":88},{"name":"Path 12","x":91,"height":40,"y":1,"width":148},{"name":"Star Copy 2","x":231,"height":17,"y":85,"width":18},{"name":"Star Copy 3","x":175,"height":25,"y":85,"width":26},{"name":"Star Copy 4","x":203,"height":25,"y":85,"width":26},{"name":"Star Copy 6","x":91,"height":25,"y":85,"width":26},{"name":"Star Copy","x":119,"height":25,"y":85,"width":26},{"name":"Star","x":147,"height":25,"y":85,"width":26}],"height":256,"width":256}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "35bd6e33-c572-4849-8f58-2ebec2b8fdc6",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2f8cf376-b417-491b-977b-25b36e65b88e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 256,
"platformSettings": {},
"subMetas": {
"zd-deedback-final_tex": {
"ver": "1.0.4",
"uuid": "f6bd5594-9af7-46b6-b24a-18ff62be7bbf",
"rawTextureUuid": "2f8cf376-b417-491b-977b-25b36e65b88e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 16.5,
"trimX": 1,
"trimY": 1,
"width": 254,
"height": 221,
"rawWidth": 256,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{"frameRate":24,"name":"zd-fall","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-38.98,"y":10.31,"width":79.18,"height":88.63},"bone":[{"name":"root"},{"name":"bone","parent":"root","transform":{"y":28.15}},{"name":"Rectangle 10","parent":"bone","transform":{"x":-27.05,"y":-5.45}},{"name":"Rectangle 10 Copy 2","parent":"bone","transform":{"x":33.6,"y":-7.1}},{"name":"Rectangle 10 Copy","parent":"bone","transform":{"x":7.9,"y":17.5}},{"name":"Rectangle 10 Copy 3","parent":"bone","transform":{"x":-13.4,"y":65.05}}],"slot":[{"name":"Rectangle 10","parent":"Rectangle 10"},{"name":"Rectangle 10 Copy 3","parent":"Rectangle 10 Copy 3"},{"name":"Rectangle 10 Copy 2","parent":"Rectangle 10 Copy 2"},{"name":"Rectangle 10 Copy","parent":"Rectangle 10 Copy"}],"skin":[{"slot":[{"name":"Rectangle 10 Copy","display":[{"name":"Rectangle 10 Copy","transform":{"x":0.84,"y":0.67}}]},{"name":"Rectangle 10","display":[{"name":"Rectangle 10","transform":{"x":1.07,"y":0.61}}]},{"name":"Rectangle 10 Copy 3","display":[{"name":"Rectangle 10 Copy 3","transform":{"x":0.53,"y":0.24}}]},{"name":"Rectangle 10 Copy 2","display":[{"name":"Rectangle 10 Copy 2","transform":{"x":0.6,"y":0.75}}]}]}],"animation":[{"duration":48,"playTimes":0,"name":"newAnimation","bone":[{"name":"Rectangle 10","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"y":92.53},{"duration":2,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"y":92.53},{"duration":2}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"rotate":157.15},{"duration":2,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"rotate":157.15},{"duration":2}]},{"name":"Rectangle 10 Copy 2","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"y":106.65},{"duration":2,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"y":106.65},{"duration":2}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"rotate":174.11},{"duration":2,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"rotate":174.11},{"duration":2}]},{"name":"Rectangle 10 Copy","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"y":105.23},{"duration":2,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"y":105.23},{"duration":2}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"rotate":162.37},{"duration":2,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"rotate":162.37},{"duration":2}]},{"name":"Rectangle 10 Copy 3","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"y":102.02},{"duration":2,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"y":102.02},{"duration":2}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"rotate":-66.79},{"duration":2,"tweenEasing":0},{"duration":12,"tweenEasing":0},{"duration":10,"tweenEasing":0,"rotate":-66.79},{"duration":2}]}],"slot":[{"name":"Rectangle 10","colorFrame":[{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":10,"tweenEasing":0,"value":{"aM":0}},{"duration":2,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":10,"tweenEasing":0,"value":{"aM":0}},{"duration":2,"tweenEasing":0,"value":{"aM":0}},{"duration":0}]},{"name":"Rectangle 10 Copy 3","colorFrame":[{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":10,"tweenEasing":0,"value":{"aM":0}},{"duration":2,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":10,"tweenEasing":0,"value":{"aM":0}},{"duration":2,"tweenEasing":0,"value":{"aM":0}},{"duration":0}]},{"name":"Rectangle 10 Copy 2","colorFrame":[{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":10,"tweenEasing":0,"value":{"aM":0}},{"duration":2,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":10,"tweenEasing":0,"value":{"aM":0}},{"duration":2,"tweenEasing":0,"value":{"aM":0}},{"duration":0}]},{"name":"Rectangle 10 Copy","colorFrame":[{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":10,"tweenEasing":0,"value":{"aM":0}},{"duration":2,"tweenEasing":0,"value":{"aM":0}},{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":10,"tweenEasing":0,"value":{"aM":0}},{"duration":2,"tweenEasing":0,"value":{"aM":0}},{"duration":0}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"canvas":{"y":98,"width":140,"height":195}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "f2788e90-4573-475c-8c3e-2104ded63346",
"subMetas": {}
}
\ No newline at end of file
{"name":"zd-fall","imagePath":"zd-fall_tex.png","height":32,"SubTexture":[{"name":"Rectangle 10","x":1,"height":26,"y":1,"width":26},{"name":"Rectangle 10 Copy 3","x":43,"height":11,"y":18,"width":11},{"name":"Rectangle 10 Copy 2","x":29,"height":12,"y":18,"width":12},{"name":"Rectangle 10 Copy","x":29,"height":15,"y":1,"width":15}],"width":64}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "34c49e94-e882-42c8-89b1-1565a37f1a06",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "08b609dc-6708-43c6-82b6-42e215fab994",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 32,
"platformSettings": {},
"subMetas": {
"zd-fall_tex": {
"ver": "1.0.4",
"uuid": "eb8adb2c-f28d-44f5-bd80-ddc415127208",
"rawTextureUuid": "08b609dc-6708-43c6-82b6-42e215fab994",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -4.5,
"offsetY": 0.5,
"trimX": 1,
"trimY": 1,
"width": 53,
"height": 29,
"rawWidth": 64,
"rawHeight": 32,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{"frameRate":24,"name":"zd-good","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-291.17,"y":-141.58,"width":580.28,"height":201.23},"bone":[{"name":"root","transform":{"y":199.1678}},{"name":"Good","parent":"root","transform":{"x":0.6,"y":-203.85}},{"name":"Star Copy 6","parent":"root","transform":{"x":12,"y":-298.2}},{"name":"Star Copy 632","parent":"root","transform":{"x":131.7,"y":-151.95}},{"name":"Oval 2","parent":"root","transform":{"x":182.95,"y":-174.75}},{"name":"Star Copy 6321","parent":"root","transform":{"x":274.75,"y":-257.05}},{"name":"Star Copy 62","parent":"root","transform":{"x":187.4,"y":-252}},{"name":"Oval 21","parent":"root","transform":{"x":246.4,"y":-306.15}},{"name":"Oval 211","parent":"root","transform":{"x":98.5,"y":-282.2}},{"name":"Star Copy 63","parent":"root","transform":{"x":-143.4,"y":-180.3}},{"name":"Oval 211111","parent":"root","transform":{"x":-217.8,"y":-165.1}},{"name":"Star Copy 631","parent":"root","transform":{"x":-278.6,"y":-239.5}},{"name":"Oval 21111","parent":"root","transform":{"x":-140.05,"y":-249.7}},{"name":"Star Copy 61","parent":"root","transform":{"x":-59.75,"y":-275}},{"name":"Oval 2111","parent":"root","transform":{"x":36.95,"y":-334.95}}],"slot":[{"name":"Star Copy 6","parent":"Star Copy 6"},{"name":"Oval 2","parent":"Oval 2"},{"name":"Good","parent":"Good"},{"name":"Star Copy 61","parent":"Star Copy 61"},{"name":"Star Copy 62","parent":"Star Copy 62"},{"name":"Star Copy 63","parent":"Star Copy 63"},{"name":"Star Copy 631","parent":"Star Copy 631"},{"name":"Star Copy 632","parent":"Star Copy 632"},{"name":"Star Copy 6321","parent":"Star Copy 6321"},{"name":"Oval 21","parent":"Oval 21"},{"name":"Oval 211","parent":"Oval 211"},{"name":"Oval 2111","parent":"Oval 2111"},{"name":"Oval 21111","parent":"Oval 21111"},{"name":"Oval 211111","parent":"Oval 211111"}],"skin":[{"slot":[{"name":"Star Copy 632","display":[{"name":"Star Copy 6","transform":{"x":-0.2,"y":-0.07}}]},{"name":"Star Copy 6321","display":[{"name":"Star Copy 6","transform":{"x":1.36,"y":0.55}}]},{"name":"Star Copy 6","display":[{"name":"Star Copy 6","transform":{"x":0.68,"y":1.25}}]},{"name":"Good","display":[{"name":"Good","transform":{"x":-1.93,"y":-9.27}}]},{"name":"Oval 2111","display":[{"name":"Oval 2","transform":{"x":0.19,"y":1.2,"scX":0.7232,"scY":0.7232}}]},{"name":"Oval 21111","display":[{"name":"Oval 2","transform":{"x":-0.04,"y":0.86,"scX":0.7232,"scY":0.7232}}]},{"name":"Oval 21","display":[{"name":"Oval 2","transform":{"x":0.36,"y":1.14,"scX":0.7232,"scY":0.7232}}]},{"name":"Oval 211","display":[{"name":"Oval 2","transform":{"x":0.4,"y":0.21,"scX":0.7232,"scY":0.7232}}]},{"name":"Oval 211111","display":[{"name":"Oval 2","transform":{"x":0.95,"y":1.17,"scX":0.8337,"scY":0.8337}}]},{"name":"Star Copy 61","display":[{"name":"Star Copy 6","transform":{"x":-0.61,"y":-0.54,"scX":0.6831,"scY":0.6831}}]},{"name":"Oval 2","display":[{"name":"Oval 2","transform":{"x":-0.33,"y":-0.49,"scX":0.7232,"scY":0.7232}}]},{"name":"Star Copy 62","display":[{"name":"Star Copy 6","transform":{"x":-0.14,"y":0.37,"scX":0.6636,"scY":0.6636}}]},{"name":"Star Copy 63","display":[{"name":"Star Copy 6","transform":{"x":1.39,"y":1.43}}]},{"name":"Star Copy 631","display":[{"name":"Star Copy 6","transform":{"x":0.43,"y":-0.35}}]}]}],"animation":[{"duration":28,"playTimes":0,"name":"newAnimation","bone":[{"name":"Good","scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Star Copy 6","translateFrame":[{"duration":8,"tweenEasing":0,"x":-6.05,"y":80.35},{"duration":20}],"rotateFrame":[{"duration":8,"tweenEasing":0},{"duration":14,"tweenEasing":0},{"duration":6,"rotate":-119.11}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Star Copy 632","translateFrame":[{"duration":8,"tweenEasing":0,"x":-129,"y":-50.1},{"duration":20}],"rotateFrame":[{"duration":8,"tweenEasing":0},{"duration":14,"tweenEasing":0},{"duration":6,"rotate":-142.17}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Oval 2","translateFrame":[{"duration":8,"tweenEasing":0,"x":-182.73,"y":-29.65},{"duration":20}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Star Copy 6321","translateFrame":[{"duration":8,"tweenEasing":0,"x":-271.68,"y":52.04},{"duration":20}],"rotateFrame":[{"duration":8,"tweenEasing":0},{"duration":14,"tweenEasing":0},{"duration":6,"rotate":-142.17}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Star Copy 62","translateFrame":[{"duration":8,"tweenEasing":0,"x":-192.11,"y":48.35},{"duration":20}],"rotateFrame":[{"duration":8,"tweenEasing":0},{"duration":14,"tweenEasing":0},{"duration":6,"rotate":-142.17}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Oval 21","translateFrame":[{"duration":8,"tweenEasing":0,"x":-242.91,"y":96.21},{"duration":20}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Oval 211","translateFrame":[{"duration":8,"tweenEasing":0,"x":-96.81,"y":71.4},{"duration":20}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Star Copy 63","translateFrame":[{"duration":8,"tweenEasing":0,"x":139.44,"y":-17.58},{"duration":20}],"rotateFrame":[{"duration":8,"tweenEasing":0},{"duration":14,"tweenEasing":0},{"duration":6,"rotate":130.43}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Oval 211111","translateFrame":[{"duration":8,"tweenEasing":0,"x":209.41,"y":-43.38},{"duration":20}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Star Copy 631","translateFrame":[{"duration":8,"tweenEasing":0,"x":270.65,"y":17.3},{"duration":20}],"rotateFrame":[{"duration":8,"tweenEasing":0},{"duration":14,"tweenEasing":0},{"duration":6,"rotate":130.43}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Oval 21111","translateFrame":[{"duration":8,"tweenEasing":0,"x":143.4,"y":27.26},{"duration":20}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Star Copy 61","translateFrame":[{"duration":8,"tweenEasing":0,"x":52.04,"y":62.32},{"duration":20}],"rotateFrame":[{"duration":8,"tweenEasing":0},{"duration":14,"tweenEasing":0},{"duration":6,"rotate":130.43}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Oval 2111","translateFrame":[{"duration":8,"tweenEasing":0,"x":-37.97,"y":126.58},{"duration":20}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]}],"slot":[{"name":"Star Copy 6","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Oval 2","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Good","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Star Copy 61","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Star Copy 62","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Star Copy 63","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Star Copy 631","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Star Copy 632","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Star Copy 6321","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Oval 21","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Oval 211","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Oval 2111","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Oval 21111","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Oval 211111","colorFrame":[{"duration":22,"tweenEasing":0},{"duration":6,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"canvas":{"width":800,"height":420}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "f58d3045-3f3f-4d34-bd4b-43aa4f9f9ca2",
"subMetas": {}
}
\ No newline at end of file
{"name":"zd-good","imagePath":"zd-good_tex.png","height":128,"SubTexture":[{"name":"Star Copy 6","x":229,"height":25,"y":1,"width":26},{"name":"Oval 2","x":229,"height":14,"y":28,"width":14},{"name":"Good","x":1,"height":74,"y":1,"width":226}],"width":256}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "d7914aec-f9a3-4838-8a98-803230a76ce3",
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f", "uuid": "64f940b2-313c-4ff6-bf13-17165d57dd9e",
"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": 256,
"height": 336, "height": 128,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"1orange": { "zd-good_tex": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "43d1e79d-6de8-4dcb-b8ce-d767df7913aa", "uuid": "f0f1fdd4-9144-44f0-bc28-2af36de97aee",
"rawTextureUuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f", "rawTextureUuid": "64f940b2-313c-4ff6-bf13-17165d57dd9e",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": -0.5, "offsetY": 26,
"trimX": 0, "trimX": 1,
"trimY": 1, "trimY": 1,
"width": 366, "width": 254,
"height": 335, "height": 74,
"rawWidth": 366, "rawWidth": 256,
"rawHeight": 336, "rawHeight": 128,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{"frameRate":24,"name":"zd-nicetry","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-380.93,"y":-47.18,"width":771.05,"height":89},"bone":[{"name":"root","transform":{"y":201.9159}},{"name":"Nice Try","parent":"root","transform":{"x":-2.55,"y":-204.3}},{"name":"Path 26","parent":"root","transform":{"x":378,"y":-193.45}},{"name":"Path 26 Copy","parent":"root","transform":{"x":-372.9,"y":-229.2}}],"slot":[{"name":"Path 26 Copy","parent":"Path 26 Copy"},{"name":"Path 26","parent":"Path 26"},{"name":"Nice Try","parent":"Nice Try"}],"skin":[{"slot":[{"name":"Path 26 Copy","display":[{"name":"Path 26 Copy","transform":{"x":91.97,"y":2.81}}]},{"name":"Nice Try","display":[{"name":"Nice Try","transform":{"x":4.86,"y":-0.3}}]},{"name":"Path 26","display":[{"name":"Path 26","transform":{"x":-167.88,"y":1.99}}]}]}],"animation":[{"duration":28,"playTimes":0,"name":"newAnimation","bone":[{"name":"Nice Try","scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":20}]},{"name":"Path 26","translateFrame":[{"duration":8,"tweenEasing":0,"x":-382.1,"y":-11.58},{"duration":12,"tweenEasing":0,"x":-203.74},{"duration":8}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":12,"tweenEasing":0},{"duration":8,"tweenEasing":0},{"duration":0,"x":0.01}]},{"name":"Path 26 Copy","translateFrame":[{"duration":8,"tweenEasing":0,"x":369.64,"y":23.45},{"duration":12,"tweenEasing":0,"x":196.26},{"duration":8}],"scaleFrame":[{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":12,"tweenEasing":0},{"duration":8,"tweenEasing":0},{"duration":0,"x":0.01}]}],"slot":[{"name":"Path 26","colorFrame":[{"duration":7,"tweenEasing":0,"value":{"aM":0}},{"tweenEasing":0,"value":{"aM":0}},{"duration":12,"tweenEasing":0},{"duration":8,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Nice Try","colorFrame":[{"duration":20,"tweenEasing":0},{"duration":8,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"Path 26 Copy","colorFrame":[{"duration":7,"tweenEasing":0,"value":{"aM":0}},{"tweenEasing":0,"value":{"aM":0}},{"duration":12,"tweenEasing":0},{"duration":8,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"canvas":{"width":800,"height":420}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "b1e54085-091c-473e-b988-02b645c4e3ff",
"subMetas": {}
}
\ No newline at end of file
{"name":"zd-nicetry","imagePath":"zd-nicetry_tex.png","height":256,"SubTexture":[{"name":"Path 26 Copy","x":1,"height":26,"y":120,"width":200},{"name":"Path 26","x":1,"height":26,"y":92,"width":360},{"name":"Nice Try","x":1,"height":89,"y":1,"width":380}],"width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "39baf818-c28d-41d4-89c0-f2fa1fb40244",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "1119b974-ca60-40f6-b8fe-4bd435fdd7f0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 256,
"platformSettings": {},
"subMetas": {
"zd-nicetry_tex": {
"ver": "1.0.4",
"uuid": "3dc32dd2-1b64-4526-ae31-5b2469aae179",
"rawTextureUuid": "1119b974-ca60-40f6-b8fe-4bd435fdd7f0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -65,
"offsetY": 54.5,
"trimX": 1,
"trimY": 1,
"width": 380,
"height": 145,
"rawWidth": 512,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "61109d45-751f-462a-bfef-98db5ba5281f",
"subMetas": {}
}
\ No newline at end of file
{"name":"zd-perfect","imagePath":"zd-perfect_tex.png","height":256,"SubTexture":[{"name":"Oval 2 Copy 2","x":471,"height":12,"y":196,"width":12},{"name":"Oval 2 Copy 3","x":500,"height":11,"y":194,"width":11},{"name":"Oval 2 Copy 4","x":486,"height":12,"y":181,"width":12},{"name":"Oval 2 Copy 5","x":302,"height":9,"y":78,"width":9},{"name":"Oval 2 Copy 6","x":500,"height":11,"y":181,"width":11},{"name":"Oval 2 Copy","x":486,"height":12,"y":195,"width":12},{"name":"Oval 2","x":471,"height":13,"y":181,"width":13},{"name":"Path 11 Copy","x":368,"height":70,"y":112,"width":81},{"name":"Path 11","x":1,"height":38,"y":78,"width":215},{"name":"Path 12 Copy 2","x":451,"height":40,"y":112,"width":24},{"name":"Path 12 Copy","x":313,"height":109,"y":1,"width":88},{"name":"Path 12","x":218,"height":40,"y":112,"width":148},{"name":"Star Copy 2","x":451,"height":17,"y":181,"width":18},{"name":"Star Copy 3","x":218,"height":25,"y":78,"width":26},{"name":"Star Copy 4","x":479,"height":25,"y":154,"width":26},{"name":"Star Copy 6","x":451,"height":25,"y":154,"width":26},{"name":"Star Copy","x":274,"height":25,"y":78,"width":26},{"name":"Star","x":246,"height":25,"y":78,"width":26},{"name":"Perfect","x":1,"height":75,"y":1,"width":310}],"width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "f3a4ece2-474b-4d09-8f97-93e391e7991f",
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "18d07592-51a9-421e-8972-0f67b68d29e1", "uuid": "1a247095-21a9-46b7-b98c-bdda035dd851",
"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": 144, "width": 512,
"height": 144, "height": 256,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"icon": { "zd-perfect_tex": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a", "uuid": "eff25a8a-26cd-47d7-9fdc-e6514bf3a9f4",
"rawTextureUuid": "18d07592-51a9-421e-8972-0f67b68d29e1", "rawTextureUuid": "1a247095-21a9-46b7-b98c-bdda035dd851",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": -0.5, "offsetY": 23.5,
"trimX": 3, "trimX": 1,
"trimY": 2, "trimY": 1,
"width": 138, "width": 510,
"height": 141, "height": 207,
"rawWidth": 144, "rawWidth": 512,
"rawHeight": 144, "rawHeight": 256,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{"frameRate":24,"name":"zd-talk","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-182.92,"y":-185.61,"width":371,"height":371},"bone":[{"name":"root"},{"name":"圆5","parent":"root"},{"name":"bone","parent":"root"}],"slot":[{"name":"圆4","parent":"bone"},{"name":"圆5","parent":"圆5"}],"skin":[{"slot":[{"name":"圆4","display":[{"name":"圆4","transform":{"x":2.58,"y":-0.11}}]},{"name":"圆5","display":[{"name":"圆5","transform":{"x":2.58,"y":-0.14}}]}]}],"animation":[{"duration":24,"playTimes":0,"name":"newAnimation","bone":[{"name":"圆5","scaleFrame":[{"duration":23,"tweenEasing":0,"x":0.01,"y":0.01},{"tweenEasing":0,"x":1.24,"y":1.24},{"duration":0,"x":0.01,"y":0.01}]},{"name":"bone","scaleFrame":[{"duration":17,"tweenEasing":0,"x":0.27,"y":0.27},{"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":0,"x":0.27,"y":0.27}]}],"slot":[{"name":"圆5","colorFrame":[{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"圆4","colorFrame":[{"tweenEasing":0,"value":{"aM":0}},{"duration":13,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"tweenEasing":0},{"tweenEasing":0},{"duration":0,"value":{"aM":0}}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"canvas":{"width":390,"height":390}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "a1f6782d-f5ba-4be6-ae5a-dbb57bf72408",
"subMetas": {}
}
\ No newline at end of file
{"name":"zd-talk","imagePath":"zd-talk_tex.png","height":512,"SubTexture":[{"name":"圆4","x":1,"height":371,"y":1,"width":371},{"name":"圆5","x":374,"height":299,"y":1,"width":299}],"width":1024}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "47a246a7-4493-4509-9826-811f21dba895",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3b5bdb32-0599-4571-b490-af0be697e34b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 512,
"platformSettings": {},
"subMetas": {
"zd-talk_tex": {
"ver": "1.0.4",
"uuid": "e4f61681-fd25-4b0c-9f9d-a938b7a6f6f5",
"rawTextureUuid": "3b5bdb32-0599-4571-b490-af0be697e34b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -175,
"offsetY": 69.5,
"trimX": 1,
"trimY": 1,
"width": 672,
"height": 371,
"rawWidth": 1024,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{"frameRate":24,"name":"zd-timedown","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-204,"y":-204,"width":408,"height":408},"bone":[{"name":"root"},{"name":"bone","parent":"root"},{"name":"bone1","parent":"root"},{"name":"bone2","parent":"root"},{"name":"bone3","parent":"root"},{"name":"bone4","parent":"root"},{"name":"bone5","parent":"root"}],"slot":[{"name":"圆3","parent":"bone1"},{"name":"圆2","parent":"bone2"},{"name":"圆1","parent":"bone"},{"name":"3","parent":"bone4"},{"name":"2","parent":"bone3"},{"name":"1","parent":"bone5"}],"skin":[{"slot":[{"name":"圆3","display":[{"name":"圆3"}]},{"name":"圆2","display":[{"name":"圆2"}]},{"name":"圆1","display":[{"name":"圆1"}]},{"name":"3","display":[{"name":"3"}]},{"name":"2","display":[{"name":"2"}]},{"name":"1","display":[{"name":"1"}]}]}],"animation":[{"duration":72,"playTimes":0,"name":"newAnimation","bone":[{"name":"bone","scaleFrame":[{"duration":15,"tweenEasing":0,"x":0.35,"y":0.35},{"tweenEasing":0},{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":15,"tweenEasing":0,"x":0.35,"y":0.35},{"tweenEasing":0},{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":15,"tweenEasing":0,"x":0.35,"y":0.35},{"tweenEasing":0},{"duration":8,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":0,"x":0.35,"y":0.35}]},{"name":"bone1","scaleFrame":[{"duration":23,"tweenEasing":0,"x":0.01,"y":0.01},{"tweenEasing":0,"x":1.74,"y":1.74},{"duration":23,"tweenEasing":0,"x":0.01,"y":0.01},{"tweenEasing":0,"x":1.74,"y":1.74},{"duration":23,"tweenEasing":0,"x":0.01,"y":0.01},{"tweenEasing":0,"x":1.74,"y":1.74},{"duration":0,"x":0.01,"y":0.01}]},{"name":"bone2","scaleFrame":[{"duration":19,"tweenEasing":0,"x":0.22,"y":0.22},{"tweenEasing":0,"x":1.24,"y":1.24},{"duration":4,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":19,"tweenEasing":0,"x":0.22,"y":0.22},{"tweenEasing":0,"x":1.24,"y":1.24},{"duration":4,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":19,"tweenEasing":0,"x":0.22,"y":0.22},{"tweenEasing":0,"x":1.24,"y":1.24},{"duration":4,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":0,"x":0.22,"y":0.22}]},{"name":"bone3","scaleFrame":[{"duration":24,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":16,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":7,"tweenEasing":0},{"tweenEasing":0},{"duration":24,"x":0.01,"y":0.01}]},{"name":"bone4","scaleFrame":[{"duration":15,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":8,"tweenEasing":0},{"tweenEasing":0},{"duration":48,"x":0.01,"y":0.01}]},{"name":"bone5","scaleFrame":[{"duration":48,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":16,"tweenEasing":0,"x":0.01,"y":0.01},{"duration":7,"tweenEasing":0},{"tweenEasing":0},{"duration":0,"x":0.01,"y":0.01}]}],"slot":[{"name":"圆3","colorFrame":[{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"圆2","colorFrame":[{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]},{"name":"圆1","colorFrame":[{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":4,"tweenEasing":0,"value":{"aM":0}},{"duration":16,"tweenEasing":0},{"duration":4,"tweenEasing":0},{"duration":0,"value":{"aM":0}}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"canvas":{"width":420,"height":420}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "f926ab7b-a298-440a-aec6-e4f31e63cfa4",
"subMetas": {}
}
\ No newline at end of file
{"name":"zd-timedown","imagePath":"zd-timedown_tex.png","height":512,"SubTexture":[{"name":"圆3","x":737,"height":234,"y":1,"width":234},{"name":"圆2","x":411,"height":324,"y":1,"width":324},{"name":"圆1","x":1,"height":408,"y":1,"width":408},{"name":"3","x":737,"height":200,"y":237,"width":127},{"name":"2","x":866,"height":198,"y":237,"width":125},{"name":"1","x":993,"height":201,"y":237,"width":28}],"width":1024}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "62ed0b86-9655-424e-8735-59c6b99860fc",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0b7da031-89c6-4b68-a571-76cc006a8646",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 512,
"platformSettings": {},
"subMetas": {
"zd-timedown_tex": {
"ver": "1.0.4",
"uuid": "28178702-9e7f-42a4-8714-650cb9617a7d",
"rawTextureUuid": "0b7da031-89c6-4b68-a571-76cc006a8646",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": 36.5,
"trimX": 1,
"trimY": 1,
"width": 1020,
"height": 437,
"rawWidth": 1024,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{ {
"ver": "1.1.0", "ver": "1.1.0",
"uuid": "c551970e-b095-45f3-9f1d-25cde8b8deb1", "uuid": "c79b0682-bf4f-4ad3-b1c0-7ddda6d7e705",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
This diff is collapsed.
{ {
"ver": "1.2.9", "ver": "1.2.9",
"uuid": "57ea7c61-9b8b-498a-b024-c98ee9124beb", "uuid": "62c55203-2f2d-4170-8a46-e076d723068a",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"autoReleaseAssets": true, "autoReleaseAssets": true,
"subMetas": {} "subMetas": {}
......
This diff is collapsed.
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "f4ede462-f8d7-4069-ba80-915611c058ca", "uuid": "6cbfa50e-6ac1-48fb-944f-92481baa5ca8",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
import { playDragonBoneAnimation } from "../script/util";
cc.Class({
extends: cc.Component,
name: "CompleteUI",
properties: {
stars:{
default:[],
type: cc.Node
},
lists: {
default: [],
type: cc.Node,
},
animate_node:{
default:null,
type: cc.Node,
},
template_node:{
default:null,
type: cc.Node,
}
},
onLoad:function(){
this.animate_node.active = false;
let replay = this.node.getChildByName('replay_btn');
replay.on('click', ()=>{
this.node.active = false;
scene.tapReplay();
});
},
ctor: function () {
},
show:function(){
this.node.opacity = 0;
this.node.active = true;
this.animate_node.active = true;
playDragonBoneAnimation(this.animate_node, 'feedback-final');
let ar = scene._result;
let col, item, lbl, lbls=[];
for(let i = 0; i < 3; i++){
col = this.lists[i];
col.removeAllChildren();
for(let j = 0; j < ar[i].length; j++){
item = cc.instantiate(this.template_node);
lbl = item.getComponent(cc.Label);
item.x = 0;
lbl.string = ar[i][j];
lbls.push(lbl)
col.addChild(item);
}
}
console.log(ar);
console.log(lbls);
cc.tween(this.node)
.delay(0.1)
.call(()=>{
let maxw = 0;
let item;
for (let i = 0; i < lbls.length; i++) {
maxw = Math.max(lbls[i].node.width, maxw);
}
let rate = 106/maxw;
let neww = 24 * rate;
for (let i = 0; i < lbls.length; i++) {
lbls[i].fontSize = neww;
}
this.node.opacity = 150;
})
.to(0.2, {opacity: 255})
.start();
var maxCount = scene._words.length;
var starNum = 3;
if (ar[2].length > maxCount/2){
starNum = 0;
}
else if (ar[2].length > 0){
starNum = 1;
}
else if (ar[1].length > 0){
starNum = 2;
}
for (let i = 0; i < 3; i++)
this.stars[i].active = i < starNum;
},
});
{
"ver": "1.0.8",
"uuid": "fa5d65a9-fe28-4a3f-afc1-e161d4d7787c",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
export const defaultData = { export const defaultData = {
"pic_url": "http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png", "contentObj": {
"pic_url_2": "http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png", "dataArray": [
"text": "This is a test label.", {
"audio_url": "http://staging-teach.cdn.ireadabc.com/f47f1d7b5c160fe1c59500d180346240.mp3" "time": 5,
"question": {
"text": "a",
"audio_url": "http://staging-teach.cdn.ireadabc.com/dd360bbbcf5817eea26ac5fa3341ef5d.mp3"
}
},
{
"time": 5,
"question": {
"text": "background",
"audio_url": "http://staging-teach.cdn.ireadabc.com/738ef124b1882d10b31d59fb2fbd7eb7.mp3"
}
},
{
"time": 5,
"question": {
"text": "position",
"audio_url": "http://staging-teach.cdn.ireadabc.com/f228f396d2007fc20ab07763ebeda22e.mp3"
}
},
{
"time": 5,
"question": {
"text": "scale",
"audio_url": "http://staging-teach.cdn.ireadabc.com/a812f773f22fdb5fa0de04bc7979f6d7.mp3"
}
},
{
"time": 5,
"question": {
"text": "rotation",
"audio_url": "http://staging-teach.cdn.ireadabc.com/43349451985083b94a58c6870b49f115.mp3"
}
}
]
}
} }
\ No newline at end of file
import { playDragonBoneAnimation } from "./util";
cc.Class({
extends: cc.Component,
name: "Evaluate",
properties: {
items: {
default: [],
type: cc.Node,
},
},
onLoad:function(){
//this.node.active = false;
},
ctor: function () {
},
setEvaluate:function(idx, cb = null){
this.node.active = true;
for(let i = 0; i < this.items.length; i++){
this.items[i].active = false;
}
this.items[idx].active = true;
playDragonBoneAnimation(this.items[idx], 'newAnimation');
cc.tween(this.node)
.delay(1)
.call(()=>{
this.node.active = false;
cb && cb();
})
.start();
}
});
{
"ver": "1.0.8",
"uuid": "87f08978-a32c-4efc-a86e-f8b87259d539",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import { RandomInt, playDragonBoneAnimation } from "../script/util";
cc.Class({
extends: cc.Component,
name: "MikeButton",
properties: {
db_item:{
default:null,
type:cc.Node
},
button:{
default:null,
type:cc.Button
}
},
ctor: function () {
},
onLoad:function(){
this.node.on(cc.Node.EventType.TOUCH_START, this.tapStart, this);
this.node.on(cc.Node.EventType.TOUCH_END, this.tapEnd, this);
this._down = 0;
this._up = 0;
},
tapStart(event){
if (this.button.interactable == false)
return;
this.db_item.active = true;
console.log(scene._words[scene._count].word);
if (window && window.courseware) {
window.courseware.startTest(scene._words[scene._count].word);
}
scene.tapMikeStart();
},
tapEnd(event){
if (this.button.interactable == false)
return;
this.db_item.active = false;
let data;
scene.fallAnimation();
if (window && window.courseware) {
window.courseware.stopTest((result)=>{
// data = result;
data = JSON.parse(result);
this.handleData(data);
});
}
else{
data = '{ "result" : { "overall" : 62 } }';
data = JSON.parse(data);
data.result.overall = RandomInt(60, 100);
cc.tween(this)
.delay(2)
.call(()=>{
this.handleData(data);
})
.start();
return;
}
},
handleData(data){
let v = 2;
if (data&&data.result&&data.result.overall){
if (data.result.overall > 85) v = 0;
else if (data.result.overall > 70) v = 1;
}
scene.tapMikeEnd(v);
}
});
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "e6d236be-6454-474b-83ed-273efb9715ee",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
cc.sys.capabilities["touches"] = true;
!(function (global) { !(function (global) {
"use strict"; "use strict";
......
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;
...@@ -71,64 +86,64 @@ export function setSprNodeMaxLen(sprNode, maxW, maxH) { ...@@ -71,64 +86,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()
}) })
} }
......
cc.Class({
extends: cc.Component,
name: "WordItem",
properties: {
word: {
default: null,
type: cc.Label,
},
horn:{
default:null,
type:cc.Button
},
db_item:{
default:null,
type:cc.Node
},
body:{
default:null,
type:cc.Node
}
},
ctor: function () {
},
onLoad:function(){
},
});
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "c1e18cbb-936d-43d5-abfe-10d040d47495",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"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.
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