Commit fe697c57 authored by linzhiguo's avatar linzhiguo

+ 飞进飞出

parent ce304201
export class WL02{
title : string;
audio_url : string;
time:string;
sitems : Array<SubItem> = [];
}
export class SubItem{
audio_url : string;
correct: string;
incorrect: string;
}
@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 style="padding: 10px;"> <nz-divider nzText="主题" nzOrientation="left"></nz-divider>
<div nz-row style="width: 800;">
<div style="width: 300px;" align='center'> <div style="display: flex; margin-bottom: 10px;">
<span>图1: </span> <div style="flex:1;margin-left: 10px;">
<app-upload-image-with-preview 标题
[picUrl]="item.pic_url" </div>
(imageUploaded)="onImageUploadSuccess($event, 'pic_url')"> <div style="flex:5">
</app-upload-image-with-preview> <input type="text" nz-input placeholder="" [(ngModel)]="item.title" (blur)="saveItem()" style="width: 160px;"/>
</div>
</div> </div>
<div style="width: 300px; margin-top: 5px;" align='center'> <div style="display: flex; margin-bottom: 10px;">
<span>图2: </span> <div style="flex:1;margin-left: 10px;">
<app-upload-image-with-preview 音频
[picUrl]="item.pic_url_2" </div>
(imageUploaded)="onImageUploadSuccess($event, 'pic_url_2')"> <div style="flex:5">
</app-upload-image-with-preview> <app-audio-recorder [audioUrl]="item.audio_url" (audioUploaded)="onAudioUploadSuccess($event, item, 'audio_url')" ></app-audio-recorder>
</div>
</div> </div>
<div style="width: 300px; margin-top: 15px;"> <div style="display: flex; margin-bottom: 10px;">
<span>文本: </span> <div style="flex:1; margin-left: 10px;">
<input type="text" nz-input [(ngModel)]="item.text" (blur)="save()"> 每道题限时(整数)
</div>
<div style="flex:5">
<input type="text" nz-input placeholder="" [(ngModel)]="item.time" (blur)="saveItem()" style="width: 160px;"/> s
</div>
</div> </div>
</div>
<nz-divider nzText="题目列表(最多16道题)" nzOrientation="left"></nz-divider>
<div class="card-config">
<div *ngFor="let data of item.sitems; let i = index" class="card-item" style="padding: 0.5vw;" >
<div class="card-item-content border">
<div class="card-item-content">
<div class="title" >
题目-<strong>{{ i + 1 }}</strong>
</div>
<div style="text-align: right; padding-right: 20px;">
<button nz-button nzType="danger" (click)="delSubItem(i)" >
<span>删除此题</span>
</button>
</div>
<div class="section" >
<div class="section-content">
<div style="flex-wrap:wrap; width: 800px;display: flex;" >
<div style="display: flex; margin-bottom: 10px;">
<div style="flex:1">
题干音频
</div>
<div style="flex:5">
<app-audio-recorder [audioUrl]="data.audio_url" (audioUploaded)="onAudioUploadSuccess($event, data, 'audio_url')" ></app-audio-recorder>
</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> <input type="text" nz-input placeholder="" [(ngModel)]="data.correct" (blur)="saveItem()"/>
</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)]="data.incorrect" (blur)="saveItem()"/>
</div>
</div>
</div>
<div style="flex:20">
</div>
</div>
</div>
</div>
</div> </div>
</div>
<div *ngIf="item.sitems.length < 16">
<div class="card-item" style="padding: 0.5vw;" >
<button nz-button nzType="primary" class="add-btn" (click)="addSubItem()">
<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: 360px;
}
.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, ChangeDetectorRef} from '@angular/core';
import { JsonPipe } from '@angular/common';
import { WL02, SubItem } from './WL02';
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"; saveKey = "WL02";
// 储存对象 // 储存对象
item; item;
constructor(private appRef: ApplicationRef, private changeDetectorRef: ChangeDetectorRef) {
}
createShell() { @Output()
this.item.wordList.push({ update = new EventEmitter();
word: '', constructor(private appRef: ApplicationRef, private changeDetectorRef: ChangeDetectorRef) {
audio: '',
backWord: '',
backWordAudio: '',
});
this.save();
}
removeShell(idx) {
this.item.wordList.splice(idx, 1);
this.save();
} }
ngOnInit() { ngOnInit() {
this.item = {}; //this.item = new Course();
this.item = new WL02();
this.item.time = 10;
this.item.sitems = new Array<SubItem>();
// 获取存储的数据 // 获取存储的数据
(<any>window).courseware.getData((data) => { (<any>window).courseware.getData((data) => {
if (data) { if (data) {
this.item = data; this.item = data;
} }
//console.log(data);
this.init(); this.init();
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges(); this.changeDetectorRef.detectChanges();
this.refresh(); this.refresh();
}, this.saveKey); }, this.saveKey);
//console.log(this.item);
} }
ngOnChanges() { ngOnChanges() {
} }
ngOnDestroy() { ngOnDestroy() {
} }
init() {
init() {
if(!this.item){
this.item = new WL02();
this.item.time = 10;
this.item.sitems = new Array<SubItem>();
}
} }
initData() {
/**
* 储存图片数据
* @param e
*/
onImageUploadSuccess(e, key) {
this.item[key] = e.url;
this.save();
} }
/** onImageUploadSuccess(e, item, key) {
* 储存音频数据 item[key] = e.url;
* @param e
*/
onAudioUploadSuccess(e, key) {
this.item[key] = e.url;
this.save(); this.save();
} }
onAudioUploadSuccess(e, item, key) {
onWordAudioUploadSuccess(e, idx) { item[key] = e.url;
this.item.wordList[idx].audio = e.url;
this.save(); this.save();
} }
onBackWordAudioUploadSuccess(e, idx) { saveItem() {
this.item.wordList[idx].backWordAudio = e.url;
this.save(); this.save();
} }
/**
* 储存数据
*/
save() { save() {
(<any>window).courseware.setData(this.item, null, this.saveKey); (<any>window).courseware.setData(this.item, null, this.saveKey);
this.refresh(); this.refresh();
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);
} }
} addSubItem(){
\ No newline at end of file let sitem = new SubItem();
if (!this.item.sitems)
this.item.sitems = new Array<SubItem>();
this.item.sitems.push(sitem);
this.save();
}
delSubItem(index){
if (index !== -1){
this.item.sitems.splice(index, 1);;
this.save();
}
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{"frameRate":24,"name":"WL01-flower(1)","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-616,"y":-323,"width":1156,"height":652},"bone":[{"name":"root"},{"name":"矢量智能对象_9","parent":"root","transform":{"x":-148.35,"y":-56.45}},{"name":"矢量智能对象_17","parent":"root","transform":{"x":-48.35,"y":227.35}},{"name":"矢量智能对象_11","parent":"root","transform":{"x":211.25,"y":79}},{"name":"矢量智能对象_1","parent":"root","transform":{"x":77.4,"y":-85.5}},{"name":"矢量智能对象_0","parent":"root","transform":{"x":283.8,"y":-111.3}},{"name":"矢量智能对象_10","parent":"root","transform":{"x":493.45,"y":-243.5}},{"name":"矢量智能对象_5","parent":"root","transform":{"x":-45.15,"y":-167.7}},{"name":"矢量智能对象_3","parent":"root","transform":{"x":101.6,"y":-303.2}},{"name":"矢量智能对象_4","parent":"root","transform":{"x":-241.9,"y":-245.15}},{"name":"矢量智能对象_6","parent":"root","transform":{"x":-428.95,"y":-141.9}},{"name":"矢量智能对象_7","parent":"root","transform":{"x":-583.75,"y":-183.85}},{"name":"矢量智能对象_8","parent":"root","transform":{"x":-493.45,"y":-16.15}},{"name":"矢量智能对象_15","parent":"root","transform":{"x":-557.95,"y":154.8}},{"name":"矢量智能对象_16","parent":"root","transform":{"x":-390.25,"y":232.2}},{"name":"矢量智能对象_14","parent":"root","transform":{"x":-267.7,"y":99.95}},{"name":"矢量智能对象_13","parent":"root","transform":{"x":287.05,"y":230.6}},{"name":"矢量智能对象_12","parent":"root","transform":{"x":474.1,"y":167.7}},{"name":"矢量智能对象","parent":"root","transform":{"x":404.75,"y":-11.3}},{"name":"矢量智能对象_2","parent":"root","transform":{"x":145.15,"y":-187.05}}],"slot":[{"name":"矢量智能对象_17","parent":"矢量智能对象_17"},{"name":"矢量智能对象_16","parent":"矢量智能对象_16"},{"name":"矢量智能对象_15","parent":"矢量智能对象_15"},{"name":"矢量智能对象_14","parent":"矢量智能对象_14"},{"name":"矢量智能对象_13","parent":"矢量智能对象_13"},{"name":"矢量智能对象_12","parent":"矢量智能对象_12"},{"name":"矢量智能对象_11","parent":"矢量智能对象_11"},{"name":"矢量智能对象_10","parent":"矢量智能对象_10"},{"name":"矢量智能对象_9","parent":"矢量智能对象_9"},{"name":"矢量智能对象_8","parent":"矢量智能对象_8"},{"name":"矢量智能对象_7","parent":"矢量智能对象_7"},{"name":"矢量智能对象_6","parent":"矢量智能对象_6"},{"name":"矢量智能对象_5","parent":"矢量智能对象_5"},{"name":"矢量智能对象_4","parent":"矢量智能对象_4"},{"name":"矢量智能对象_3","parent":"矢量智能对象_3"},{"name":"矢量智能对象_2","parent":"矢量智能对象_2"},{"name":"矢量智能对象_1","parent":"矢量智能对象_1"},{"name":"矢量智能对象_0","parent":"矢量智能对象_0"},{"name":"矢量智能对象","parent":"矢量智能对象"}],"skin":[{"slot":[{"name":"矢量智能对象_1","display":[{"name":"WL01-flower(1)/矢量智能对象_1","transform":{"x":2.6,"y":-1.5}}]},{"name":"矢量智能对象_9","display":[{"name":"WL01-flower(1)/矢量智能对象_9","transform":{"x":8.35,"y":2.95}}]},{"name":"矢量智能对象_14","display":[{"name":"WL01-flower(1)/矢量智能对象_14","transform":{"x":4.2,"y":3.55}}]},{"name":"矢量智能对象_11","display":[{"name":"WL01-flower(1)/矢量智能对象_11","transform":{"x":1.25,"y":4.5}}]},{"name":"矢量智能对象_16","display":[{"name":"WL01-flower(1)/矢量智能对象_16","transform":{"x":0.75,"y":-1.2}}]},{"name":"矢量智能对象_12","display":[{"name":"WL01-flower(1)/矢量智能对象_12","transform":{"x":5.9,"y":6.8}}]},{"name":"矢量智能对象_4","display":[{"name":"WL01-flower(1)/矢量智能对象_4","transform":{"x":1.4,"y":2.15}}]},{"name":"矢量智能对象","display":[{"name":"WL01-flower(1)/矢量智能对象","transform":{"x":4.25,"y":-0.7}}]},{"name":"矢量智能对象_6","display":[{"name":"WL01-flower(1)/矢量智能对象_6","transform":{"x":0.45,"y":-1.1}}]},{"name":"矢量智能对象_8","display":[{"name":"WL01-flower(1)/矢量智能对象_8","transform":{"x":1.45,"y":3.65}}]},{"name":"矢量智能对象_0","display":[{"name":"WL01-flower(1)/矢量智能对象_0","transform":{"x":6.7,"y":5.8}}]},{"name":"矢量智能对象_10","display":[{"name":"WL01-flower(1)/矢量智能对象_10","transform":{"x":2.05,"y":4.5}}]},{"name":"矢量智能对象_15","display":[{"name":"WL01-flower(1)/矢量智能对象_15","transform":{"x":1.45,"y":2.2}}]},{"name":"矢量智能对象_5","display":[{"name":"WL01-flower(1)/矢量智能对象_5","transform":{"x":5.65,"y":4.7}}]},{"name":"矢量智能对象_17","display":[{"name":"WL01-flower(1)/矢量智能对象_17","transform":{"x":7.35,"y":2.65}}]},{"name":"矢量智能对象_13","display":[{"name":"WL01-flower(1)/矢量智能对象_13","transform":{"x":3.95,"y":-0.6}}]},{"name":"矢量智能对象_3","display":[{"name":"WL01-flower(1)/矢量智能对象_3","transform":{"x":0.9,"y":1.2}}]},{"name":"矢量智能对象_7","display":[{"name":"WL01-flower(1)/矢量智能对象_7","transform":{"x":-2.25,"y":-0.15}}]},{"name":"矢量智能对象_2","display":[{"name":"WL01-flower(1)/矢量智能对象_2","transform":{"x":2.35,"y":1.05}}]}]}],"animation":[{"duration":72,"playTimes":0,"name":"normal","bone":[{"name":"矢量智能对象_9","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]},{"name":"矢量智能对象_17","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]},{"name":"矢量智能对象_11","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0,"rotate":89.87},{"duration":7,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"x":3,"y":3}]},{"name":"矢量智能对象_1","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0,"rotate":89.87},{"duration":7,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"x":3,"y":3}]},{"name":"矢量智能对象_0","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]},{"name":"矢量智能对象_10","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0,"rotate":89.87},{"duration":7,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"x":3,"y":3}]},{"name":"矢量智能对象_5","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]},{"name":"矢量智能对象_3","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0,"rotate":89.87},{"duration":7,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"x":3,"y":3}]},{"name":"矢量智能对象_4","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0,"rotate":89.87},{"duration":7,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"x":3,"y":3}]},{"name":"矢量智能对象_6","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]},{"name":"矢量智能对象_7","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]},{"name":"矢量智能对象_8","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0,"rotate":89.87},{"duration":7,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"x":3,"y":3}]},{"name":"矢量智能对象_15","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]},{"name":"矢量智能对象_16","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]},{"name":"矢量智能对象_14","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]},{"name":"矢量智能对象_13","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0,"rotate":89.87},{"duration":7,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":53,"tweenEasing":0},{"duration":7,"x":3,"y":3}]},{"name":"矢量智能对象_12","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]},{"name":"矢量智能对象","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]},{"name":"矢量智能对象_2","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"y":-960.55}],"rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0,"rotate":89.87},{"duration":0,"rotate":-118.81}],"scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":60,"tweenEasing":0},{"duration":0,"x":3,"y":3}]}],"slot":[{"name":"矢量智能对象_17","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":66}]},{"name":"矢量智能对象_16","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":66}]},{"name":"矢量智能对象_15","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":66}]},{"name":"矢量智能对象_14","colorFrame":[{"duration":12,"tweenEasing":0,"value":{"aM":0}},{"duration":60}]},{"name":"矢量智能对象_13","colorFrame":[{"duration":72,"value":{"aM":0}}]},{"name":"矢量智能对象_12","colorFrame":[{"duration":12,"tweenEasing":0,"value":{"aM":0}},{"duration":60}]},{"name":"矢量智能对象_11","colorFrame":[{"duration":12,"tweenEasing":0,"value":{"aM":0}},{"duration":60}]},{"name":"矢量智能对象_10","colorFrame":[{"duration":12,"tweenEasing":0,"value":{"aM":0}},{"duration":60}]},{"name":"矢量智能对象_9","colorFrame":[{"duration":12,"tweenEasing":0,"value":{"aM":0}},{"duration":60}]},{"name":"矢量智能对象_8","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":66}]},{"name":"矢量智能对象_7","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":66}]},{"name":"矢量智能对象_6","colorFrame":[{"duration":12,"tweenEasing":0,"value":{"aM":0}},{"duration":60}]},{"name":"矢量智能对象_5","colorFrame":[{"duration":12,"tweenEasing":0,"value":{"aM":0}},{"duration":60}]},{"name":"矢量智能对象_4","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":66}]},{"name":"矢量智能对象_3","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":66}]},{"name":"矢量智能对象_2","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":66}]},{"name":"矢量智能对象_1","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":66}]},{"name":"矢量智能对象_0","colorFrame":[{"duration":6,"tweenEasing":0,"value":{"aM":0}},{"duration":66}]},{"name":"矢量智能对象","colorFrame":[{"duration":12,"tweenEasing":0,"value":{"aM":0}},{"duration":60}]}]}],"defaultActions":[{"gotoAndPlay":"normal"}],"canvas":{"width":1280,"height":720}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "69844312-80d0-4de7-9098-b587a41dce64",
"subMetas": {}
}
\ No newline at end of file
{"width":512,"SubTexture":[{"width":210,"y":1,"height":198,"name":"WL01-flower(1)/矢量智能对象_17","x":1},{"width":79,"y":299,"height":74,"name":"WL01-flower(1)/矢量智能对象_16","x":248},{"width":47,"y":201,"height":44,"name":"WL01-flower(1)/矢量智能对象_15","x":157},{"width":157,"y":1,"height":147,"name":"WL01-flower(1)/矢量智能对象_14","x":213},{"width":58,"y":385,"height":54,"name":"WL01-flower(1)/矢量智能对象_13","x":144},{"width":120,"y":124,"height":113,"name":"WL01-flower(1)/矢量智能对象_12","x":372},{"width":157,"y":150,"height":147,"name":"WL01-flower(1)/矢量智能对象_11","x":213},{"width":89,"y":299,"height":84,"name":"WL01-flower(1)/矢量智能对象_10","x":157},{"width":154,"y":201,"height":145,"name":"WL01-flower(1)/矢量智能对象_9","x":1},{"width":128,"y":1,"height":121,"name":"WL01-flower(1)/矢量智能对象_8","x":372},{"width":60,"y":348,"height":56,"name":"WL01-flower(1)/矢量智能对象_7","x":82},{"width":47,"y":406,"height":44,"name":"WL01-flower(1)/矢量智能对象_6","x":82},{"width":79,"y":348,"height":74,"name":"WL01-flower(1)/矢量智能对象_5","x":1},{"width":47,"y":247,"height":44,"name":"WL01-flower(1)/矢量智能对象_4","x":157},{"width":45,"y":424,"height":42,"name":"WL01-flower(1)/矢量智能对象_3","x":1},{"width":45,"y":342,"height":42,"name":"WL01-flower(1)/矢量智能对象_2","x":389},{"width":58,"y":342,"height":54,"name":"WL01-flower(1)/矢量智能对象_1","x":329},{"width":107,"y":239,"height":101,"name":"WL01-flower(1)/矢量智能对象_0","x":372},{"width":58,"y":375,"height":54,"name":"WL01-flower(1)/矢量智能对象","x":248}],"height":512,"name":"WL01-flower(1)","imagePath":"WL01-flower(1)_tex.png"}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "8db93b59-84b6-460e-918b-5e68695ec600",
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f", "uuid": "f06f7289-a956-4aac-8242-f482aa66ae16",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 366, "width": 512,
"height": 336, "height": 512,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"1orange": { "WL01-flower(1)_tex": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "43d1e79d-6de8-4dcb-b8ce-d767df7913aa", "uuid": "4899d243-41fa-4e99-ad75-7e0741ad39f1",
"rawTextureUuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f", "rawTextureUuid": "f06f7289-a956-4aac-8242-f482aa66ae16",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": -5.5,
"offsetY": -0.5, "offsetY": 22.5,
"trimX": 0, "trimX": 1,
"trimY": 1, "trimY": 1,
"width": 366, "width": 499,
"height": 335, "height": 465,
"rawWidth": 366, "rawWidth": 512,
"rawHeight": 336, "rawHeight": 512,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{"frameRate":24,"name":"WL02-fiy","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-96,"y":-68,"width":176,"height":148},"bone":[{"name":"root"},{"length":72,"name":"bone","parent":"root","transform":{"x":19.1,"y":23,"skX":88.22,"skY":88.22}},{"length":37,"name":"图层_35","parent":"bone","transform":{"x":5.7785,"y":-8.8748,"skX":-86.7571,"skY":-86.7571}},{"length":74,"name":"图层_21","parent":"bone","transform":{"x":9.4748,"y":7.3979,"skX":105.7885,"skY":105.7885}},{"length":17,"name":"图层_36","parent":"图层_21","transform":{"x":47.8658,"y":22.0697,"skX":57.8641,"skY":57.8641}},{"length":12,"name":"图层_39","parent":"图层_21","transform":{"x":88.0084,"y":16.0743,"skX":52.7624,"skY":52.7624}},{"length":68,"name":"图层_32","parent":"图层_35","transform":{"x":14.1342,"y":-28.22,"skX":-74.3941,"skY":-74.3941}},{"length":70,"name":"图层_31","parent":"图层_35","transform":{"x":-1.2944,"y":-25.2252,"skX":-110.3974,"skY":-110.3974}},{"name":"图层_50","parent":"图层_21","transform":{"x":52.0878,"y":-31.6499,"skX":165.9916,"skY":165.9916}},{"name":"图层_54","parent":"图层_36","transform":{"x":30.4454,"y":1.4968}},{"name":"图层_37","parent":"图层_39","transform":{"x":25.5464,"y":-1.3323}}],"slot":[{"name":"图层_31","parent":"图层_31"},{"name":"图层_35","parent":"图层_35"},{"name":"图层_21","parent":"图层_21"},{"name":"图层_39","parent":"图层_39"},{"displayIndex":1,"name":"图层_37","parent":"图层_37"},{"name":"图层_36","parent":"图层_36"},{"name":"图层_32","parent":"图层_32"},{"name":"图层_54","parent":"图层_54"},{"name":"图层_50","parent":"图层_50"}],"skin":[{"slot":[{"name":"图层_50","display":[{"name":"苍蝇(1)01/图层_50","transform":{"x":1.2,"y":0.7}},{"name":"苍蝇(1)01/图层_18","transform":{"x":24.7,"y":-24.3}}]},{"name":"图层_39","display":[{"name":"苍蝇(1)01/图层_39","transform":{"x":19.38,"y":8.86,"skX":113.23,"skY":113.23}}]},{"name":"图层_31","display":[{"name":"苍蝇(1)01/图层_31","transform":{"x":35.85,"y":-3.56,"skX":108.93,"skY":108.93}}]},{"name":"图层_32","display":[{"name":"苍蝇(1)01/图层_32","transform":{"x":34.22,"y":-3.19,"skX":72.93,"skY":72.93}}]},{"name":"图层_21","display":[{"name":"苍蝇(1)01/图层_21","transform":{"x":41.4,"y":-1.36,"skX":165.99,"skY":165.99}}]},{"name":"图层_37","display":[{"name":"苍蝇(1)01/图层_37","transform":{"x":7.82,"y":-3.39,"skX":113.23,"skY":113.23}},{"name":"苍蝇(1)01/图层_55","transform":{"x":-2.88,"y":1.27,"skX":113.23,"skY":113.23}},{"name":"苍蝇(1)01/图层_56","transform":{"x":3.03,"y":-1.09,"skX":113.23,"skY":113.23}}]},{"name":"图层_54","display":[{"name":"苍蝇(1)01/图层_54","transform":{"x":-3.08,"y":0.73,"skX":108.13,"skY":108.13}},{"name":"苍蝇(1)01/图层_58","transform":{"x":8.38,"y":-14.99,"skX":108.13,"skY":108.13}},{"name":"苍蝇(1)01/图层_57","transform":{"x":1.15,"y":-7.36,"skX":108.13,"skY":108.13}}]},{"name":"图层_36","display":[{"name":"苍蝇(1)01/图层_36","transform":{"x":23.11,"y":5.57,"skX":108.13,"skY":108.13}}]},{"name":"图层_35","display":[{"name":"苍蝇(1)01/图层_35","transform":{"x":6.09,"y":9.35,"skX":-1.46,"skY":-1.46}}]}]}],"animation":[{"duration":24,"playTimes":0,"name":"normal","bone":[{"name":"bone","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"y":-16.99},{"duration":0}]},{"name":"图层_21","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-2.22},{"duration":0}]},{"name":"图层_32","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":0}]},{"name":"图层_31","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":0}]}],"slot":[{"name":"图层_37","displayFrame":[{"duration":24}]},{"name":"图层_54","displayFrame":[{"duration":24,"value":1}]},{"name":"图层_50","displayFrame":[{"duration":24,"value":1}]}]},{"duration":24,"playTimes":0,"name":"dizzy","bone":[{"name":"bone","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"y":-20.51},{"duration":0}],"rotateFrame":[{"duration":12,"tweenEasing":0,"rotate":12.77},{"duration":12,"tweenEasing":0,"rotate":19.12},{"duration":0,"rotate":12.77}]},{"name":"图层_21","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":-12.87},{"duration":0}]},{"name":"图层_32","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":0}]},{"name":"图层_31","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":0}]},{"name":"图层_54","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":180},{"duration":0}]},{"name":"图层_37","rotateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"rotate":180},{"duration":0}]}]},{"duration":24,"playTimes":0,"name":"laugh","bone":[{"name":"bone","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"y":-16.99},{"duration":0}]},{"name":"图层_21","rotateFrame":[{"duration":6,"tweenEasing":0},{"duration":6,"tweenEasing":0,"rotate":-17.3},{"duration":6,"tweenEasing":0,"rotate":-2.22},{"duration":6,"tweenEasing":0,"rotate":-17.9},{"duration":0}]},{"name":"图层_32","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":0}]},{"name":"图层_31","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":0}]}],"slot":[{"name":"图层_37","displayFrame":[{"duration":24}]},{"name":"图层_54","displayFrame":[{"duration":24,"value":1}]},{"name":"图层_50","displayFrame":[{"duration":24,"value":1}]}]},{"duration":20,"playTimes":0,"name":"scare","bone":[{"name":"bone","translateFrame":[{"duration":12,"tweenEasing":0},{"duration":8,"tweenEasing":0,"y":-1.68},{"duration":0}],"rotateFrame":[{"duration":12,"tweenEasing":0,"rotate":12.77},{"duration":8,"tweenEasing":0,"rotate":27.49},{"duration":0,"rotate":12.77}]},{"name":"图层_21","rotateFrame":[{"duration":10,"tweenEasing":0},{"duration":10,"tweenEasing":0,"rotate":3.15},{"duration":0}]},{"name":"图层_32","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":35.92},{"duration":0}]},{"name":"图层_31","rotateFrame":[{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":2,"tweenEasing":0},{"duration":2,"tweenEasing":0,"rotate":-29.04},{"duration":0}]},{"name":"图层_50","scaleFrame":[{"duration":2,"tweenEasing":0},{"duration":18,"x":0.3}]}],"slot":[{"name":"图层_37","displayFrame":[{"duration":2},{"duration":18,"value":2},{"duration":0}]},{"name":"图层_54","displayFrame":[{"duration":2,"value":1},{"duration":18,"value":2},{"duration":0,"value":1}]}]}],"defaultActions":[{"gotoAndPlay":"normal"}],"canvas":{"width":240,"height":180}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "b8430916-f888-43d8-a423-4facb4deef13",
"subMetas": {}
}
\ No newline at end of file
{"width":256,"SubTexture":[{"width":55,"y":107,"height":77,"name":"苍蝇(1)01/图层_31","x":77},{"width":74,"y":107,"height":84,"name":"苍蝇(1)01/图层_35","x":1},{"width":101,"y":1,"height":104,"name":"苍蝇(1)01/图层_21","x":1},{"width":54,"y":179,"height":53,"name":"苍蝇(1)01/图层_39","x":143},{"width":31,"y":35,"height":28,"name":"苍蝇(1)01/图层_55","x":196},{"width":8,"y":238,"height":7,"name":"苍蝇(1)01/图层_56","x":53},{"width":14,"y":238,"height":12,"name":"苍蝇(1)01/图层_37","x":1},{"width":64,"y":186,"height":66,"name":"苍蝇(1)01/图层_36","x":77},{"width":60,"y":107,"height":70,"name":"苍蝇(1)01/图层_32","x":134},{"width":39,"y":1,"height":32,"name":"苍蝇(1)01/图层_54","x":196},{"width":7,"y":238,"height":7,"name":"苍蝇(1)01/图层_57","x":63},{"width":12,"y":238,"height":14,"name":"苍蝇(1)01/图层_58","x":17},{"width":20,"y":238,"height":7,"name":"苍蝇(1)01/图层_50","x":31},{"width":67,"y":193,"height":43,"name":"苍蝇(1)01/图层_18","x":1}],"height":256,"name":"WL02-fiy","imagePath":"WL02-fiy_tex.png"}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "d8decd83-f3ec-4f0c-87b9-8b45948b3741",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b899fb91-da61-49af-bfa7-660fd09df1ab",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 256,
"platformSettings": {},
"subMetas": {
"WL02-fiy_tex": {
"ver": "1.0.4",
"uuid": "376fb951-5155-4439-8a06-f90d7140553b",
"rawTextureUuid": "b899fb91-da61-49af-bfa7-660fd09df1ab",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -10,
"offsetY": 1.5,
"trimX": 1,
"trimY": 1,
"width": 234,
"height": 251,
"rawWidth": 256,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{ {
"ver": "1.1.0", "ver": "1.1.0",
"uuid": "c551970e-b095-45f3-9f1d-25cde8b8deb1", "uuid": "954a1831-f11e-4448-b641-0e4a2d830e57",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
import { onHomeworkFinish } from "../script/util"; import { onHomeworkFinish, RandomInt, playAudio, playAudioByUrl, playDragonBoneAnimation } from "../script/util";
import { defaultData } from "../script/defaultData"; import { defaultData } from "../script/defaultData";
cc.Class({ cc.Class({
...@@ -6,6 +6,29 @@ cc.Class({ ...@@ -6,6 +6,29 @@ cc.Class({
extends: cc.Component, extends: cc.Component,
properties: { properties: {
flys:{
default:[],
type: cc.Node
},
flyVirus:{
default:[],
type: cc.Node
},
virusFalls:{
default:[],
type: cc.Node
},
virusOks:{
default:[],
type: cc.Node
},
titleText:{
default:null,
type: cc.Label
}
}, },
// 生命周期 onLoad // 生命周期 onLoad
...@@ -64,7 +87,69 @@ cc.Class({ ...@@ -64,7 +87,69 @@ cc.Class({
this.data = data || this.getDefaultData(); this.data = data || this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data)) this.data = JSON.parse(JSON.stringify(this.data))
this.preloadItem() this.preloadItem()
}) });
this.preView();
},
preView(){
for(let i = 0; i < 2; i ++){
this.setOrignPos(this.flys[i]);
this.setOrignPos(this.virusFalls[i]);
this.setTextVar(this.flyVirus[i]);
this.setTextVar(this.virusFalls[i]);
this.setTextVar(this.virusOks[i]);
}
this._area = cc.find('Canvas/bg/flag_area');
this._area.removeAllChildren();
let btn = cc.find('Canvas/bg/sound_button');
console.log(btn);
btn._sprite = btn.children[0];
console.log(btn._sprite);
btn._sprite.active = false;
btn.on('click', ()=>{
if (this._sound_button.active == false)
return;
let item = this.data[this._index];
if (item.audio_url && item.audio_url!=""){
playAudioByUrl(item.audio_url);
}
});
this._sound_button = btn;
this._flower = cc.find('Canvas/flower');
this._flower.active = false;
this.cleanFlys();
this._cup = cc.find('Canvas/bg/cup');
this._bad_water = this._cup.getChildByName('bad_water');
this._bad_water.active = false;
},
cleanFlys(){
this.flys[0].x = this.flys[0]._x + this._frameSize.width * 1.5;
this.flys[1].x = this.flys[1]._x + this._frameSize.width * 1.5;
this.virusFalls[0].active = false;
this.virusFalls[1].active = false;
this.virusOks[0].active = false;
this.virusOks[1].active = false;
},
setTextVar(node){
node._text = node.getChildByName('word').getComponent(cc.Label);
},
setOrignPos(node){
node._x = node.x;
node._y = node.y;
}, },
getData(func) { getData(func) {
...@@ -97,13 +182,11 @@ cc.Class({ ...@@ -97,13 +182,11 @@ cc.Class({
addPreloadImage() { addPreloadImage() {
this._imageResList.push({ url: this.data.pic_url });
this._imageResList.push({ url: this.data.pic_url_2 });
}, },
addPreloadAudio() { addPreloadAudio() {
this._audioResList.push({ url: this.data.audio_url });
}, },
addPreloadAnima() { addPreloadAnima() {
...@@ -126,241 +209,240 @@ cc.Class({ ...@@ -126,241 +209,240 @@ cc.Class({
loadEnd() { loadEnd() {
this.initData();
this.initAudio();
this.initView(); this.initView();
// this.initListener();
},
_cantouch: null,
initData() {
// 所有全局变量 默认都是null
this._cantouch = true;
}, },
audioBtn: null,
initAudio() {
const audioNode = cc.find('Canvas/res/audio');
const getAudioByResName = (resName) => { initView() {
return audioNode.getChildByName(resName).getComponent(cc.AudioSource);
}
this.audioBtn = getAudioByResName('btn');
}, this._index = 0;
this._time = this.data.time;
this.titleText.string = this.data.title;
let audio_url = this.data.audio_url;
let data = this.shuffle(this.data.sitems);
this.data = data;
initView() { this.updateArea();
this.updateItem();
this._cup._y = this._cup.y;
this.initBg(); if (audio_url && audio_url!=""){
this.initPic(); playAudioByUrl(audio_url, ()=>{
this.initBtn(); this.playGame();
this.initIcon(); });
}, }
else{
initBg() { this.playGame();
const bgNode = cc.find('Canvas/bg'); }
bgNode.scale = this._mapScaleMax; },
},
pic1: null,
pic2: null,
initPic() {
const canvas = cc.find('Canvas');
const maxW = canvas.width * 0.7;
this.getSprNodeByUrl(this.data.pic_url, (sprNode) => {
const picNode1 = sprNode;
picNode1.scale = maxW / picNode1.width;
picNode1.baseX = picNode1.x;
canvas.addChild(picNode1);
this.pic1 = picNode1;
const labelNode = new cc.Node();
labelNode.color = cc.Color.YELLOW;
const label = labelNode.addComponent(cc.Label);
label.string = this.data.text;
label.fontSize = 60;
label.lineHeight = 60;
label.font = cc.find('Canvas/res/font/BRLNSDB').getComponent('cc.Label').font;
picNode1.addChild(labelNode);
});
this.getSprNodeByUrl(this.data.pic_url_2, (sprNode) => { playGame(){
const picNode2 = sprNode; this._sound_button._sprite.active = true;
picNode2.scale = maxW / picNode2.width; let item = this.data[this._index];
canvas.addChild(picNode2); if (item.audio_url && item.audio_url!=""){
picNode2.x = canvas.width; playAudioByUrl(item.audio_url);
picNode2.baseX = picNode2.x; }
this.pic2 = picNode2; this.flyIn(()=>{
this.setTimer();
const labelNode = new cc.Node();
const label = labelNode.addComponent(cc.RichText);
const size = 60
label.font = cc.find('Canvas/res/font/BRLNSDB').getComponent(cc.Label).font;
label.string = `<outline color=#751e00 width=4><size=${size}><color=#ffffff>${this.data.text}</color></size></outline>`
label.lineHeight = size;
picNode2.addChild(labelNode);
}); });
}, },
initIcon() { setTimer(){
const iconNode = this.getSprNode('icon'); this._timer_ani = cc.tween(this.node)
iconNode.zIndex = 5; .delay(this._time)
iconNode.anchorX = 1; .call(()=>{
iconNode.anchorY = 1; this.flyOut();
iconNode.parent = cc.find('Canvas'); })
iconNode.x = iconNode.parent.width / 2 - 10; .start();
iconNode.y = iconNode.parent.height / 2 - 10;
iconNode.on(cc.Node.EventType.TOUCH_START, () => {
this.playAudioByUrl(this.data.audio_url);
})
}, },
curPage: null, updateArea(){
initBtn() { let area = this._area;
area.removeAllChildren();
let node = cc.find('res/img/flyswatter');
let data = this.data;
let lyt = area.getComponent(cc.Layout);
let width = area.width - lyt.paddingRight;
let padding_x = lyt.spacingX;
let item, len = data.length;
for(let i = 0; i < len; i++){
item = cc.instantiate(node);
area.addChild(item);
item.y = 0;
item.scale = this.between(0.5, (width/len - padding_x)/item.width, 1);
item.children[0].active = false;
}
this._index = 0;
},
this.curPage = 0; updateItem(){
const bottomPart = cc.find('Canvas/bottomPart'); this._tapped = false;
bottomPart.zIndex = 5; // 提高层级
bottomPart.x = bottomPart.parent.width / 2; let info = this.data[this._index];
bottomPart.y = -bottomPart.parent.height / 2; info.correct.length = Math.min(info.correct.length, 3);
info.incorrect.length = Math.min(info.incorrect.length, 3);
const leftBtnNode = bottomPart.getChildByName('btn_left'); let idxs = [info.correct, info.incorrect];
//节点中添加了button组件 则可以添加click事件监听 if (RandomInt(2) == 0){
leftBtnNode.on('click', () => { idxs = [info.incorrect, info.correct]
if (!this._cantouch) { }
return;
}
if (this.curPage == 0) {
return;
}
this.curPage = 0
this.leftMove();
// 游戏结束时需要调用这个方法通知系统作业完成 for(let i = 0; i < 2; i++){
onHomeworkFinish(); this.flyVirus[i]._text.string = idxs[i];
this.virusFalls[i]._text.string = idxs[i];
this.virusOks[i]._text.string = idxs[i];
}
},
cc.audioEngine.play(this.audioBtn.clip, false, 0.8) updateFlag(){
}) if (this._index >= this.data.length)
return;
let idx = this.data.length - this._index - 1;
let area = this._area
let flag = area.children[idx].getComponent(cc.Sprite);
flag.enabled = false;
let flag1 = flag.node.children[0];
flag1.active = true;
cc.tween(flag1)
.to(0.1, {scale: 1.2},{ easing: 'quadIn' })
.to(0.2, {scale: 0.8},{ easing: 'quadOut' })
.to(0.1, {scale: 1},{ easing: 'quadIn' })
.start();
},
const rightBtnNode = bottomPart.getChildByName('btn_right'); tryFinish(){
//节点中添加了button组件 则可以添加click事件监听 if (this._timer_ani){
rightBtnNode.on('click', () => { this._timer_ani.stop();
if (!this._cantouch) { this._timer_ani = null;
return; }
}
if (this.curPage == 1) {
return;
}
this.curPage = 1 this._index ++;
this.rightMove(); if (this._index >= this.data.length){
//this.playAudioByName('victory');
this._flower.active = true;
playDragonBoneAnimation(this._flower, 'normal');
return;
}
cc.audioEngine.play(this.audioBtn.clip, false, 0.5) this.cupMoveUp();
}) this.cleanFlys();
this.updateItem();
}, },
leftMove() { flyIn(cb){
this._cantouch = false; this.flyVirus[0].active = true;
const len = this.pic1.parent.width; this.flyVirus[1].active = true;
cc.tween(this.pic1)
.to(1, { x: this.pic1.baseX }, { easing: 'cubicInOut' })
.start();
cc.tween(this.pic2)
.to(1, { x: this.pic2.baseX }, { easing: 'cubicInOut' })
.call(() => {
this._cantouch = true;
})
.start();
},
rightMove() { cc.tween(this.flys[0])
this._cantouch = false; .to(0.8, {x: this.flys[0]._x})
const len = this.pic1.parent.width;
cc.tween(this.pic1)
.to(1, { x: this.pic1.baseX - len }, { easing: 'cubicInOut' })
.start(); .start();
cc.tween(this.pic2) cc.tween(this.flys[1])
.to(1, { x: this.pic2.baseX - len }, { easing: 'cubicInOut' }) .to(0.8, {x: this.flys[1]._x})
.call(() => { .call(()=>{
this._cantouch = true; cb && cb();
}) })
.start(); .start();
}, },
// update (dt) {},
flyOut(){
this._sound_button._sprite.active = false;
for(let i = 0; i < 2; i++){
this.flyVirus[i].active = false;
playDragonBoneAnimation(this.flys[i], 'laugh', 1, ()=>{
playDragonBoneAnimation(this.flys[i], 'normal', -1);
cc.tween(this.flys[i])
.to(0.8, {x: this.flys[i]._x - this._frameSize.width * 1.5})
.start();
});
this.virusFalls[i].active = true;
this.virusFalls[i].y = this.virusFalls[i]._y;
cc.tween(this.virusFalls[i])
.to(0.5, {y: this.virusFalls[i]._y -118},{ easing: 'quadIn' })
.start();
}
cc.tween(this.node)
.delay(0.5)
.call(()=>{
this.virusFalls[0].active = false;
this.virusFalls[1].active = false;
this.virusOks[0].active = true;
this.virusOks[1].active = true;
this._bad_water.active = true;
this.cupMoveDown();
})
.start();
},
fallCare(){
},
cupMoveUp(){
this.virusOks[0].active = false;
this.virusOks[1].active = false;
this._bad_water.active = false;
cc.tween(this._cup)
.to(0.8, {y: this._cup._y}, { easing: 'quadOut' })
.call(()=>{
this.playGame();
})
.start();
},
cupMoveDown(){
cc.tween(this._cup)
.delay(1)
.to(0.8, {y: this._cup._y - 200}, { easing: 'quadIn' })
.call(()=>{
this.tryFinish();
})
.start();
},
// ------------------------------------------
// ------------------------------------------------ // ------------------------------------------
getSprNode(resName) { shuffle(arr) {
const sf = cc.find('Canvas/res/img/' + resName).getComponent(cc.Sprite).spriteFrame; for (let i=arr.length-1; i>=0; i--) {
const node = new cc.Node(); let rIndex = Math.floor(Math.random()*(i+1));
node.addComponent(cc.Sprite).spriteFrame = sf; let temp = arr[rIndex];
return node; arr[rIndex] = arr[i];
arr[i] = temp;
}
return arr;
}, },
playAudioByName(audioName) {
getSpriteFrimeByUrl(url, cb) { return new Promise((resolve, reject) => {
cc.loader.load({ url }, (err, img) => { try {
const spriteFrame = new cc.SpriteFrame(img) const audioNode = cc.find('res/audio/'+audioName);
if (cb) { const audioClip = audioNode.getComponent(cc.AudioSource).clip;
cb(spriteFrame); playAudio(audioClip, resolve);
} catch (e) {
reject(e);
} }
}) });
}, },
getSprNodeByUrl(url, cb) { between(a, b, c) {
const node = new cc.Node(); return [a, b, c].sort()[1];
const spr = node.addComponent(cc.Sprite);
this.getSpriteFrimeByUrl(url, (sf) => {
spr.spriteFrame = sf;
if (cb) {
cb(node);
}
})
},
playAudioByUrl(audio_url, cb = null) {
if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
});
}
}, },
// ------------------------------------------
}); });
export const defaultData =
{
"sitems": [
{
"correct": "a",
"incorrect": "the",
"audio_url": "http://staging-teach.cdn.ireadabc.com/dd360bbbcf5817eea26ac5fa3341ef5d.mp3"
},
{
"audio_url": "http://staging-teach.cdn.ireadabc.com/738ef124b1882d10b31d59fb2fbd7eb7.mp3",
"correct": "b",
"incorrect": "eee"
},
{
"audio_url": "http://staging-teach.cdn.ireadabc.com/a812f773f22fdb5fa0de04bc7979f6d7.mp3",
"correct": "s",
"incorrect": "ddd"
}
],
"time": "3",
"audio_url": "http://staging-teach.cdn.ireadabc.com/a812f773f22fdb5fa0de04bc7979f6d7.mp3",
"title": "woijsjifwoiejf"
}
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;
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "d582359e-924e-4ee9-9964-1fc4bb417e71", "uuid": "f3586893-c9af-4a15-bb89-22b2cd2214fe",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
"premultiplyAlpha": false, "premultiplyAlpha": true,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 61, "width": 66,
"height": 67, "height": 105,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_right": { "air_0": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59", "uuid": "64584a25-0b5f-4475-acf8-96d2c4af4576",
"rawTextureUuid": "d582359e-924e-4ee9-9964-1fc4bb417e71", "rawTextureUuid": "f3586893-c9af-4a15-bb89-22b2cd2214fe",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": -0.5, "offsetX": 0,
"offsetY": 0.5, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 60, "width": 66,
"height": 66, "height": 105,
"rawWidth": 61, "rawWidth": 66,
"rawHeight": 67, "rawHeight": 105,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "0ae3b1ad-1320-41bb-93a0-7d787bc895de",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 102,
"height": 163,
"platformSettings": {},
"subMetas": {
"air_1": {
"ver": "1.0.4",
"uuid": "6ae8f594-379c-48cb-9004-10df6e4d1a0c",
"rawTextureUuid": "0ae3b1ad-1320-41bb-93a0-7d787bc895de",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 102,
"height": 163,
"rawWidth": 102,
"rawHeight": 163,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d0fd4ec5-58bf-4bd2-8769-7d16d7c96898",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "a0e475f7-598e-4937-85e9-71026b619bbf",
"rawTextureUuid": "d0fd4ec5-58bf-4bd2-8769-7d16d7c96898",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "e1b4d971-9876-4832-803a-5a321964a78b", "uuid": "1276353c-1214-4193-8668-ee0f2ad2fd65",
"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": { "bg1": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "8288e3d4-4c75-4b27-8f01-f7014417f4dd", "uuid": "dedb0572-e58c-4703-b5b0-57a90f0d6d60",
"rawTextureUuid": "e1b4d971-9876-4832-803a-5a321964a78b", "rawTextureUuid": "1276353c-1214-4193-8668-ee0f2ad2fd65",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "9a79969a-0506-48d4-bc98-3c05d109b027", "uuid": "db64fd99-728b-49ba-99cc-9f5b3314a455",
"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": 1280,
"height": 67, "height": 720,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_left": { "bg2": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5", "uuid": "446c3c6b-3ad5-43d0-bae5-27a215f3a281",
"rawTextureUuid": "9a79969a-0506-48d4-bc98-3c05d109b027", "rawTextureUuid": "db64fd99-728b-49ba-99cc-9f5b3314a455",
"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": 1280,
"height": 67, "height": 720,
"rawWidth": 61, "rawWidth": 1280,
"rawHeight": 67, "rawHeight": 720,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "c9531747-09e6-4c50-9e55-8f7df94c055e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 645,
"height": 160,
"platformSettings": {},
"subMetas": {
"cup": {
"ver": "1.0.4",
"uuid": "f41b953d-198a-4437-a871-c4198ef8ec9f",
"rawTextureUuid": "c9531747-09e6-4c50-9e55-8f7df94c055e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 645,
"height": 160,
"rawWidth": 645,
"rawHeight": 160,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3490beae-5126-4c4b-8add-48e1a5a98021",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 76,
"platformSettings": {},
"subMetas": {
"desk": {
"ver": "1.0.4",
"uuid": "b126504b-24cb-474c-9d5e-34dfcbac9dfe",
"rawTextureUuid": "3490beae-5126-4c4b-8add-48e1a5a98021",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 76,
"rawWidth": 1280,
"rawHeight": 76,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "24ee341c-7dfd-41c3-a941-dc45833b7e6d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 364,
"height": 308,
"platformSettings": {},
"subMetas": {
"flyswatter": {
"ver": "1.0.4",
"uuid": "fa9cb3c8-2996-484d-88a1-668a5b9c157b",
"rawTextureUuid": "24ee341c-7dfd-41c3-a941-dc45833b7e6d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 364,
"height": 308,
"rawWidth": 364,
"rawHeight": 308,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0644eafb-6e34-45d8-a62b-2e02abed4388",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 32,
"height": 46,
"platformSettings": {},
"subMetas": {
"icon_0": {
"ver": "1.0.4",
"uuid": "35e1bdd3-ea12-4be8-ae1c-aa4602266b0c",
"rawTextureUuid": "0644eafb-6e34-45d8-a62b-2e02abed4388",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 32,
"height": 46,
"rawWidth": 32,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c4d88804-0433-4caa-b21b-75b7fbd2dbc2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 40,
"height": 54,
"platformSettings": {},
"subMetas": {
"icon_1": {
"ver": "1.0.4",
"uuid": "020443b0-ca60-4a48-bde2-5ac11fb32c09",
"rawTextureUuid": "c4d88804-0433-4caa-b21b-75b7fbd2dbc2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 40,
"height": 54,
"rawWidth": 40,
"rawHeight": 54,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6300be7b-7614-4325-a43e-63663b61310f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 103,
"height": 95,
"platformSettings": {},
"subMetas": {
"icon_orange": {
"ver": "1.0.4",
"uuid": "64305c43-132e-408d-9de8-5bb16a7cbf0f",
"rawTextureUuid": "6300be7b-7614-4325-a43e-63663b61310f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 103,
"height": 95,
"rawWidth": 103,
"rawHeight": 95,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "584dd5ec-79b4-4106-ae28-e9badda3bb74",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 37,
"height": 46,
"platformSettings": {},
"subMetas": {
"sound": {
"ver": "1.0.4",
"uuid": "7f0c4726-754e-436f-b9ed-9320bbd0edb9",
"rawTextureUuid": "584dd5ec-79b4-4106-ae28-e9badda3bb74",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 37,
"height": 46,
"rawWidth": 37,
"rawHeight": 46,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3e879aa7-c737-4964-ba8c-ebc4532253f8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 444,
"height": 134,
"platformSettings": {},
"subMetas": {
"title": {
"ver": "1.0.4",
"uuid": "56e9bcab-89f8-4896-95db-4e35d887c777",
"rawTextureUuid": "3e879aa7-c737-4964-ba8c-ebc4532253f8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 444,
"height": 134,
"rawWidth": 444,
"rawHeight": 134,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d82e2d1a-8aee-4b46-9436-e7ac94dbca04",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 302,
"height": 176,
"platformSettings": {},
"subMetas": {
"virus_0": {
"ver": "1.0.4",
"uuid": "d175e9c9-f9de-4dbc-8759-652357567489",
"rawTextureUuid": "d82e2d1a-8aee-4b46-9436-e7ac94dbca04",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 302,
"height": 176,
"rawWidth": 302,
"rawHeight": 176,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "58962aa8-995d-47d6-b90f-868f8383b064",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 619,
"height": 108,
"platformSettings": {},
"subMetas": {
"water_0": {
"ver": "1.0.4",
"uuid": "25888753-774b-4e73-9075-d8d5068928ae",
"rawTextureUuid": "58962aa8-995d-47d6-b90f-868f8383b064",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 619,
"height": 108,
"rawWidth": 619,
"rawHeight": 108,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "52a5aa0a-75cc-4330-8e9b-2e86037fc3c5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 619,
"height": 108,
"platformSettings": {},
"subMetas": {
"water_1": {
"ver": "1.0.4",
"uuid": "8408f90e-edc7-404c-8460-9a154ac2e9a3",
"rawTextureUuid": "52a5aa0a-75cc-4330-8e9b-2e86037fc3c5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 619,
"height": 108,
"rawWidth": 619,
"rawHeight": 108,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
[
{
"__type__": "cc.SceneAsset",
"_name": "",
"_objFlags": 0,
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_is3DNode": true,
"_groupIndex": 0,
"groupIndex": 0,
"autoReleaseAssets": true,
"_id": "57ea7c61-9b8b-498a-b024-c98ee9124beb"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
},
{
"__id__": 14
}
],
"_active": true,
"_components": [
{
"__id__": 24
},
{
"__id__": 25
},
{
"__id__": 26
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
640,
360,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a5esZu+45LA5mBpvttspPD"
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
362.85545494732423,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e1WoFrQ79G7r4ZuQE3HlNb"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_alignWithScreen": true,
"_id": "81GN3uXINKVLeW4+iKSlim"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "32MJMZ2HRGF4BOf533Avyi"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8288e3d4-4c75-4b27-8f01-f7014417f4dd"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "97/S6HDq9MeqgmV1Zwnhbb"
},
{
"__type__": "cc.Node",
"_name": "bottomPart",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 8
},
{
"__id__": 11
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
635.132,
-356.326,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "8c7k8ep/ZFNpO263+1QHz9"
},
{
"__type__": "cc.Node",
"_name": "btn_left",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
},
{
"__id__": 10
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 61,
"height": 67
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-148.464,
34,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "5ad2wLQLxIN5Eg7OHecSH6"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "84mqOgJ3JNqZrYVTEU8CjE"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "bcYN/4EKBJhbIAfovo9Ah1"
},
{
"__type__": "cc.Node",
"_name": "btn_right",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 13
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 66
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-47.164,
34,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "46i3stdzpHX6zQHTGnRsNE"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "42Sh8QS/BHn4WiGyPQPKPt"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "1aj32fYY1IxLesa77E70Qu"
},
{
"__type__": "cc.Node",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 15
},
{
"__id__": 18
},
{
"__id__": 21
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "0aAzbH6R1E+6AmGRrkKa5O"
},
{
"__type__": "cc.Node",
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [
{
"__id__": 16
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9bLfcYeeNKrr524vzWchiM"
},
{
"__type__": "cc.Node",
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 15
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "cfMLGsq0BMhJARv+ySMAxS"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "c551970e-b095-45f3-9f1d-25cde8b8deb1"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "9bNHNPu5lC7rQYyr8ai/sY"
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [
{
"__id__": 19
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "53LUHHG2pEr79fyrvazXJs"
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 138,
"height": 141
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "1blU2OArJIfoC9XfupGxJG"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "03GEWUEZJGyKormWgIWCtM"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [
{
"__id__": 22
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b823DIVC9L+Ihc3T9Bt7m3"
},
{
"__type__": "cc.Node",
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 21
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "3d0p0/uJZJIoRva5Br2iqv"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_clip": {
"__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "0adN50f61DlbmppsPkOnjX"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_fitWidth": false,
"_fitHeight": false,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "f4edeRi+NdAabqAkVYRwFjK",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_id": "e687yyoRBIzZAOVRL8Sseh"
}
]
\ No newline at end of file
export const defaultData = {
"pic_url": "http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png",
"pic_url_2": "http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png",
"text": "This is a test label.",
"audio_url": "http://staging-teach.cdn.ireadabc.com/f47f1d7b5c160fe1c59500d180346240.mp3"
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 144,
"height": 144,
"platformSettings": {},
"subMetas": {
"icon": {
"ver": "1.0.4",
"uuid": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a",
"rawTextureUuid": "18d07592-51a9-421e-8972-0f67b68d29e1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 3,
"trimY": 2,
"width": 138,
"height": 141,
"rawWidth": 144,
"rawHeight": 144,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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