Commit 4c9504c2 authored by LWD's avatar LWD

代码提交

parent ce304201
export class Course {
sheepfoldArr: Array<Sheepfold> = [];
sheepArr: Array<Sheep> = [];
title: string;
audio_url: string;
}
export class Sheepfold {
id: string;
word: string;
// audioUrl: string;
picUrl: string;
// /**P-图片,T-文字 */
// contentType = 'T';
}
export class Sheep {
sheepfoldId: string;
word: string;
picUrl: string;
// /**P-图片,T-文字 */
// contentType = 'T';
// audioUrl: string;
}
\ No newline at end of file
...@@ -6,30 +6,3 @@ ...@@ -6,30 +6,3 @@
height: 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">
<nz-card nzTitle="课程练习内容编辑" style="margin:5vw;" nzType="inner">
<div style="padding: 10px;"> <nz-divider nzText="标题" nzOrientation="left"></nz-divider>
<div nz-row>
<div style="width: 300px;" align='center'> <div style="width: 300px; margin-top: 15px;">
<span>图1: </span> <span>点击输入标题: </span>
<app-upload-image-with-preview <input type="text" nz-input [(ngModel)]="item.title" (blur)="save()">
[picUrl]="item.pic_url" </div>
(imageUploaded)="onImageUploadSuccess($event, 'pic_url')"> </div>
</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;"> <nz-form-control [nzSpan]="18">
<span>文本: </span> <span>标题声音: </span>
<input type="text" nz-input [(ngModel)]="item.text" (blur)="save()"> <app-audio-recorder [audioUrl]="item.audio_url"
</div> (audioUploaded)="onAudioUploadSuccess($event, item, 'audio_url')">
</app-audio-recorder>
</nz-form-control>
<nz-divider nzText="类别" nzOrientation="left"></nz-divider>
<!-- <div nz-row>
<nz-form-item>
<nz-form-label [nzSpan]="6" nzFor="add-btn" nzNoColon=true>龙巢</nz-form-label>
<nz-form-control [nzXs]='24' [nzSm]='12' [nzMd]='12' [nzLg]='6'>
<button nz-button nzType="dashed" class="add-btn" id="add-btn"
[disabled]="item.sheepfoldArr.length==2" (click)="addSheepfold()">
<i nz-icon nzType="plus-circle" nzTheme="outline"></i>添加
</button>
</nz-form-control>
</nz-form-item>
</div> -->
<div nz-row>
<div *ngFor="let data of item.sheepfoldArr;let i = index" style="margin: 2vw;">
<div nz-col [nzXs]='24' [nzSm]='12' [nzMd]='12' [nzLg]='9'>
<nz-card nzTitle="类别-{{i + 1}}" style="height: 150px; margin: 1vw;">
<nz-form-item>
<nz-form-label [nzSpan]="6" nzFor="{{i}}.word">标题</nz-form-label>
<nz-form-control [nzSpan]="12">
<input nz-input type="text" id="{{i}}.word" placeholder="请输入标题" [(ngModel)]="data.word"
(blur)="save()">
</nz-form-control>
</nz-form-item>
</nz-card>
</div>
<div style="margin-top: 5px"> </div>
<span>音频: </span> </div>
<app-audio-recorder <nz-divider nzText="选项" nzOrientation="left"></nz-divider>
[audioUrl]="item.audio_url" <div nz-row>
(audioUploaded)="onAudioUploadSuccess($event, 'audio_url')" <nz-form-item>
></app-audio-recorder> <nz-form-label [nzSpan]="6" nzFor="add-btn" nzNoColon=true>选项</nz-form-label>
</div> <nz-form-control [nzXs]='24' [nzSm]='12' [nzMd]='12' [nzLg]='6'>
<button nz-button nzType="dashed" class="add-btn" id="sheep-add-btn" (click)="addSheep()">
<i nz-icon nzType="plus-circle" nzTheme="outline"></i>添加
</button>
</nz-form-control>
</nz-form-item>
</div>
</div> <div nz-row>
<div *ngFor="let data of item.sheepArr;let i = index" style="margin: 1vw;">
</div> <div nz-col [nzXs]='24' [nzSm]='12' [nzMd]='12' [nzLg]='8'>
<nz-card nzTitle="选项-{{i + 1}}" [nzExtra]="extraTemplate1" style="height: 400px; margin: 1vw;">
<nz-form-item>
<nz-form-label [nzSpan]="6">类别</nz-form-label>
<nz-form-control [nzSpan]="12">
<nz-radio-group [(ngModel)]="data.sheepfoldId"
(ngModelChange)="setSheepfoldId($event, data)">
<label nz-radio [nzValue]="option.id"
*ngFor="let option of item.sheepfoldArr; let j = index">类别-{{j +
1}}({{option.word}})</label>
</nz-radio-group>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="6" nzFor="{{i}}.picUrl">图片</nz-form-label>
<nz-form-control [nzSpan]="12">
<app-upload-image-with-preview style="width: 100%" [picUrl]="data.picUrl"
(imageUploaded)="onImageUploadSuccess($event, data, 'picUrl')">
</app-upload-image-with-preview>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="6" nzFor="{{i}}.word">文本</nz-form-label>
<nz-form-control [nzSpan]="12">
<input nz-input type="text" id="{{i}}.word" placeholder="请录入内容" [(ngModel)]="data.word"
(blur)="save()">
</nz-form-control>
</nz-form-item>
</nz-card>
<ng-template #extraTemplate1>
<button style="margin: 10px;" nz-button nzType="danger" (click)="delSheep(i)">
<span>删除</span>
</button>
</ng-template>
</div>
</div>
</div>
</nz-card>
</div>
\ No newline at end of file
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 { Sheepfold, Sheep, Course } from './Course';
@Component({ @Component({
selector: 'app-form', selector: 'app-form',
templateUrl: './form.component.html', templateUrl: './form.component.html',
styleUrls: ['./form.component.css'] styleUrls: ['./form.component.css']
}) })
export class FormComponent implements OnInit, OnChanges, OnDestroy { export class FormComponent implements OnInit, OnChanges, OnDestroy {
// 储存数据用 // 储存数据用
saveKey = "test_001"; saveKey = "LST07";
// 储存对象 // 储存对象
item; item;
constructor(private appRef: ApplicationRef, private changeDetectorRef: ChangeDetectorRef) {
constructor(private appRef: ApplicationRef, private changeDetectorRef: ChangeDetectorRef) {
}
}
createShell() {
this.item.wordList.push({
word: '', ngOnInit() {
audio: '', this.item = new Course();
backWord: '',
backWordAudio: '', // 获取存储的数据
}); (<any>window).courseware.getData((data) => {
this.save(); if (data) {
} this.item = data;
}
removeShell(idx) { console.log(data);
this.item.wordList.splice(idx, 1); this.init();
this.save(); this.changeDetectorRef.markForCheck();
} this.changeDetectorRef.detectChanges();
this.refresh();
ngOnInit() {
}, this.saveKey);
this.item = {}; console.log(this.item);
}
// 获取存储的数据
(<any>window).courseware.getData((data) => {
ngOnChanges() {
if (data) { }
this.item = data;
} ngOnDestroy() {
}
this.init();
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh(); init() {
if (!this.item) {
}, this.saveKey); this.item = new Course();
} }
if (this.item && (this.item.sheepfoldArr.length < 1)) {
ngOnChanges() { for (var i = 0; i < 2; i++) {
} this.addSheepfold();
}
ngOnDestroy() { }
} }
init() {
/**
} * 储存图片数据
* @param e
*/
/** onImageUploadSuccess(e, item, key) {
* 储存图片数据
* @param e item[key] = e.url;
*/ this.save();
onImageUploadSuccess(e, key) { }
this.item[key] = e.url; /**
this.save(); * 储存音频数据
} * @param e
*/
/** onAudioUploadSuccess(e, item, key) {
* 储存音频数据
* @param e item[key] = e.url;
*/ this.save();
onAudioUploadSuccess(e, key) { }
this.item[key] = e.url;
this.save();
}
/**
onWordAudioUploadSuccess(e, idx) { * 储存数据
this.item.wordList[idx].audio = e.url; */
this.save(); save() {
} (<any>window).courseware.setData(this.item, null, this.saveKey);
this.refresh();
onBackWordAudioUploadSuccess(e, idx) { console.log(this.item);
this.item.wordList[idx].backWordAudio = e.url;
this.save(); console.log(JSON.stringify(this.item));
} }
/** /**
* 储存数据 * 刷新 渲染页面
*/ */
save() { refresh() {
(<any>window).courseware.setData(this.item, null, this.saveKey); setTimeout(() => {
this.appRef.tick();
this.refresh(); }, 1);
console.log('this.item = ' + JSON.stringify(this.item)); }
}
randomChar() {
/** var x = "0123456789qwertyuioplkjhgfdsazxcvbnm";
* 刷新 渲染页面 var tmp = "";
*/ var timestamp = new Date().getTime();
refresh() { for (var i = 0; i < 6; i++) {
setTimeout(() => { tmp += x.charAt(Math.ceil(Math.random() * 100000000) % x.length);
this.appRef.tick(); }
}, 1);
} return timestamp + tmp;
}
}
\ No newline at end of file addSheepfold() {
let sheepfold = new Sheepfold();
sheepfold.id = this.randomChar();
this.item.sheepfoldArr.push(sheepfold);
this.save();
}
delSheepfold(index) {
if (index !== -1) {
this.item.sheepfoldArr.splice(index, 1);
this.save();
}
}
addSheep() {
let sheep = new Sheep();
this.item.sheepArr.push(sheep);
this.save();
}
delSheep(index) {
if (index !== -1) {
this.item.sheepArr.splice(index, 1);
this.save();
}
}
setSheepfoldId(event, item) {
item.sheepfoldId = event;
this.save();
}
setContentType(e, item) {
item['contentType'] = e;
if ("T" == e) {
item['picUrl'] = "";
}
else if ("P" == e) {
item['word'] = "";
}
this.save();
}
}
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541", "uuid": "d3ad24ed-9c8b-421d-934f-f93f1acf3060",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "f0680ae0-c079-45ef-abd7-9e63d90b982b", "uuid": "1da4a1eb-1b7f-4c66-b682-afb2bb2c25f8",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.130612, "duration": 0.141083,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "897db934-b5dd-4d83-b482-45c92812366e",
"downloadMode": 0,
"duration": 4.179592,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "6c4277af-aebb-470b-bce6-5215a5edee90",
"downloadMode": 0,
"duration": 1.688,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "8e061c88-bf21-44e1-8360-13bd6085b2bf",
"downloadMode": 0,
"duration": 1.044898,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "e84b4934-1211-4c2b-86c8-b0cb8ff50ab2",
"downloadMode": 0,
"duration": 0.19325,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "326dee4a-6daf-4748-86a3-acecad20fc07",
"downloadMode": 0,
"duration": 0.20898,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "4cd1a303-1f39-40a3-9127-5afcad88e2af",
"downloadMode": 0,
"duration": 3.343673,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "be885015-b019-4b28-8900-dcb6b18752f3",
"downloadMode": 0,
"duration": 1.3865,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "ae65e299-f876-41c4-838d-8baa87f66f83",
"downloadMode": 0,
"duration": 0.216,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "a9d1d994-0776-4dcf-9bb7-eac5dbee2854",
"downloadMode": 0,
"duration": 3.787755,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "24c4d28a-b9c9-4d73-8bd6-bd2101ffba7c",
"downloadMode": 0,
"duration": 0.556563,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "c533d5b8-bf5c-48ce-aa60-ccc7195ec880",
"downloadMode": 0,
"duration": 0.938688,
"subMetas": {}
}
\ No newline at end of file
{"name":"正确效果","isGlobal":0,"version":"5.5","armature":[{"name":"Armature","ik":[],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"slot":[{"name":"圆","color":{},"parent":"圆"},{"name":"星1","color":{},"z":1,"parent":"星1"},{"name":"星2","color":{},"z":2,"parent":"星2"},{"name":"星3","color":{},"z":3,"parent":"星3"},{"name":"星4","color":{},"z":4,"parent":"星4"},{"name":"星6","color":{},"z":5,"parent":"星6"},{"name":"星7","displayIndex":1,"color":{},"z":6,"parent":"星7"},{"name":"星8","color":{},"z":7,"parent":"星8"},{"name":"星9","color":{},"z":8,"parent":"星9"},{"name":"星61","color":{},"z":9,"parent":"星61"},{"name":"星31","color":{},"z":10,"parent":"星31"},{"name":"星11","color":{},"z":11,"parent":"星11"},{"name":"星71","displayIndex":1,"color":{},"z":12,"parent":"星71"},{"name":"星72","displayIndex":1,"color":{},"z":13,"parent":"星72"},{"name":"星711","displayIndex":1,"color":{},"z":14,"parent":"星711"}],"bone":[{"name":"root","transform":{}},{"name":"圆","transform":{"scX":0.1,"scY":0.1,"skX":-89.6569,"skY":-89.6569},"length":41,"parent":"root"},{"name":"星6","transform":{"x":0.1442,"y":-31.5107},"parent":"root"},{"name":"星8","transform":{"x":41.1298,"y":-39.776,"skX":135,"skY":135},"parent":"root"},{"name":"星3","transform":{"x":24.7785,"y":-4.3335},"parent":"root"},{"name":"星2","transform":{"x":24.8087,"y":-25.5917},"parent":"root"},{"name":"星4","transform":{"x":7.0488,"y":8.8215},"parent":"root"},{"name":"星7","transform":{"x":-20.4814,"y":5.3537,"skX":-135,"skY":-135},"parent":"root"},{"name":"星9","transform":{"x":-33.2434,"y":-13.9017,"skX":-45,"skY":-45},"parent":"root"},{"name":"星1","transform":{"x":-18.8442,"y":-17.612,"skX":180,"skY":180},"parent":"root"},{"name":"星61","transform":{"x":23.0639,"scX":0.7,"y":-38.5822,"scY":0.7,"skX":32.5617,"skY":32.5617},"parent":"root"},{"name":"星31","transform":{"x":3.6733,"scX":0.8,"y":-5.783,"scY":0.8,"skX":17.0044,"skY":17.0044},"parent":"root"},{"name":"星11","transform":{"x":0.7025,"y":-9.1509,"skX":-14.3406,"skY":-14.3406},"parent":"root"},{"name":"星71","transform":{"x":-2.2132,"scX":0.6,"y":16.0506,"scY":0.6,"skX":136.3452,"skY":136.3452},"parent":"root"},{"name":"星72","transform":{"x":-18.9634,"y":-7.9725,"skX":73.3148,"skY":73.3148},"parent":"root"},{"name":"星711","transform":{"x":-8.6825,"scX":0.8,"y":26.0182,"scY":0.8,"skX":-87.3096,"skY":-87.3096},"parent":"root"}],"aabb":{"x":-64,"height":128.32128078297362,"y":-72.32128078297362,"width":128},"frameRate":24,"animation":[{"name":"newAnimation","frame":[],"duration":26,"slot":[{"name":"圆","colorFrame":[{"duration":4},{"duration":8,"tweenEasing":0},{"color":{"aM":0},"duration":14}],"displayFrame":[]},{"name":"星1","colorFrame":[{"duration":4},{"duration":18,"tweenEasing":0},{"color":{"aM":0},"duration":4}],"displayFrame":[]},{"name":"星2","colorFrame":[{"duration":4},{"duration":20,"tweenEasing":0},{"color":{"aM":0},"duration":2}],"displayFrame":[]},{"name":"星3","colorFrame":[{"duration":4},{"duration":14,"tweenEasing":0},{"color":{"aM":0},"duration":8}],"displayFrame":[]},{"name":"星4","colorFrame":[{"duration":4},{"duration":22,"tweenEasing":0},{"color":{"aM":0},"duration":0}],"displayFrame":[]},{"name":"星6","colorFrame":[{"duration":4},{"duration":14,"tweenEasing":0},{"color":{"aM":0},"duration":8}],"displayFrame":[]},{"name":"星7","colorFrame":[{"duration":4},{"duration":20,"tweenEasing":0},{"color":{"aM":0},"duration":2}],"displayFrame":[]},{"name":"星8","colorFrame":[{"duration":4},{"duration":18,"tweenEasing":0},{"color":{"aM":0},"duration":4}],"displayFrame":[]},{"name":"星9","colorFrame":[{"duration":4},{"duration":16,"tweenEasing":0},{"color":{"aM":0},"duration":6}],"displayFrame":[]},{"name":"星61","colorFrame":[{"duration":7},{"duration":11,"tweenEasing":0},{"color":{"aM":0},"duration":8}],"displayFrame":[]},{"name":"星31","colorFrame":[{"duration":7},{"duration":11,"tweenEasing":0},{"color":{"aM":0},"duration":8}],"displayFrame":[]},{"name":"星11","colorFrame":[{"duration":7},{"duration":15,"tweenEasing":0},{"color":{"aM":0},"duration":4}],"displayFrame":[]},{"name":"星71","colorFrame":[{"duration":7},{"duration":17,"tweenEasing":0},{"color":{"aM":0},"duration":2}],"displayFrame":[]},{"name":"星72","colorFrame":[{"duration":7},{"duration":17,"tweenEasing":0},{"color":{"aM":0},"duration":2}],"displayFrame":[]},{"name":"星711","colorFrame":[{"duration":7},{"duration":17,"tweenEasing":0},{"color":{"aM":0},"duration":2}],"displayFrame":[]}],"bone":[{"name":"root","scaleFrame":[],"translateFrame":[],"rotateFrame":[]},{"name":"圆","scaleFrame":[{"duration":4,"tweenEasing":0},{"x":10,"duration":22,"y":10}],"translateFrame":[],"rotateFrame":[]},{"name":"星6","scaleFrame":[{"duration":4},{"duration":14,"tweenEasing":0},{"x":0.6,"duration":8,"y":0.6}],"translateFrame":[{"duration":4,"curve":[0,0,0.5,1]},{"x":38.3058,"duration":3,"tweenEasing":0,"y":-60.5579},{"x":38.3058,"duration":19,"y":-89.2535}],"rotateFrame":[{"duration":4,"curve":[0,0,0.5,1]},{"rotate":42.9161,"duration":22}]},{"name":"星8","scaleFrame":[],"translateFrame":[{"duration":4,"tweenEasing":0},{"x":65.1904,"duration":22,"y":-16.9062}],"rotateFrame":[{"duration":4,"tweenEasing":0},{"rotate":-280.7822,"duration":22}]},{"name":"星3","scaleFrame":[{"duration":4},{"duration":14,"tweenEasing":0},{"x":0.7,"duration":8,"y":0.7}],"translateFrame":[{"duration":4,"tweenEasing":0},{"x":77.9671,"duration":22,"y":38.7037}],"rotateFrame":[{"duration":4,"tweenEasing":0},{"rotate":74.0647,"duration":22}]},{"name":"星2","scaleFrame":[{"duration":4},{"duration":20,"tweenEasing":0},{"x":0.9,"duration":2,"y":0.9}],"translateFrame":[{"duration":4,"curve":[0,0,0.5,1]},{"x":73.3471,"duration":22,"y":22.5}],"rotateFrame":[{"duration":4,"curve":[0,0,0.5,1]},{"rotate":104.5284,"duration":22}]},{"name":"星4","scaleFrame":[],"translateFrame":[{"duration":4,"curve":[0,0,0.5,1]},{"x":61.4575,"duration":22,"y":98.3431}],"rotateFrame":[{"duration":4,"curve":[0,0,0.5,1]},{"rotate":-117.9757,"duration":22}]},{"name":"星7","scaleFrame":[{"duration":4},{"duration":20,"tweenEasing":0},{"x":0.6,"duration":2,"y":0.6}],"translateFrame":[{"duration":4,"tweenEasing":0},{"x":-57.0486,"duration":22,"y":81.3916}],"rotateFrame":[{"duration":4,"tweenEasing":0},{"rotate":88.876,"duration":22}]},{"name":"星9","scaleFrame":[{"duration":4},{"duration":16,"tweenEasing":0},{"x":0.9,"duration":6,"y":0.9}],"translateFrame":[{"duration":4,"curve":[0,0,0.5,1]},{"x":-71.6637,"duration":22,"y":-21.9835}],"rotateFrame":[{"rotate":45,"duration":4,"curve":[0,0,0.5,1]},{"duration":22}]},{"name":"星1","scaleFrame":[{"duration":4},{"duration":18,"tweenEasing":0},{"x":0.6,"duration":4,"y":0.6}],"translateFrame":[{"duration":4,"curve":[0,0,0.5,1]},{"x":-49.7215,"duration":22,"y":-72.3329}],"rotateFrame":[{"duration":4,"curve":[0,0,0.5,1]},{"rotate":-285.7677,"duration":22}]},{"name":"星61","scaleFrame":[{"duration":7},{"duration":11,"tweenEasing":0},{"x":0.6,"duration":8,"y":0.6}],"translateFrame":[{"duration":7,"curve":[0,0,0.5,1]},{"x":83.4688,"duration":19,"y":-84.797}],"rotateFrame":[{"duration":7,"curve":[0,0,0.5,1]},{"rotate":42.9161,"duration":19}]},{"name":"星31","scaleFrame":[{"duration":7},{"duration":11,"tweenEasing":0},{"x":0.7,"duration":8,"y":0.7}],"translateFrame":[{"duration":7,"tweenEasing":0},{"x":81.2468,"duration":19,"y":-25.1106}],"rotateFrame":[{"duration":7,"tweenEasing":0},{"rotate":74.0647,"duration":19}]},{"name":"星11","scaleFrame":[{"duration":7},{"duration":15,"tweenEasing":0},{"x":0.6,"duration":4,"y":0.6}],"translateFrame":[{"duration":7,"curve":[0,0,0.5,1]},{"x":-17.132,"duration":19,"y":-85.5193}],"rotateFrame":[{"duration":7,"curve":[0,0,0.5,1]},{"rotate":73.2489,"duration":19}]},{"name":"星71","scaleFrame":[{"duration":7},{"duration":17,"tweenEasing":0},{"x":0.6,"duration":2,"y":0.6}],"translateFrame":[{"duration":7,"tweenEasing":0},{"x":-35.332,"duration":19,"y":93.2033}],"rotateFrame":[{"duration":7,"tweenEasing":0},{"rotate":88.876,"duration":19}]},{"name":"星72","scaleFrame":[{"duration":7},{"duration":17,"tweenEasing":0},{"x":0.6,"duration":2,"y":0.6}],"translateFrame":[{"duration":7,"tweenEasing":0},{"x":-87.0726,"duration":19,"y":22.0384}],"rotateFrame":[{"duration":7,"tweenEasing":0},{"rotate":88.876,"duration":19}]},{"name":"星711","scaleFrame":[{"duration":7},{"duration":17,"tweenEasing":0},{"x":0.6,"duration":2,"y":0.6}],"translateFrame":[{"duration":7,"tweenEasing":0},{"x":32.2728,"duration":19,"y":59.8038}],"rotateFrame":[{"duration":7,"tweenEasing":0},{"rotate":88.876,"duration":19}]}],"playTimes":0,"ffd":[],"ik":[]}],"type":"Armature","skin":[{"name":"","slot":[{"name":"星4","display":[{"name":"1/星4","transform":{"x":1.1,"y":0.1},"type":"image","path":"1/星4"}]},{"name":"圆","display":[{"name":"1/圆","transform":{"skX":89.6569,"skY":89.6569},"type":"image","path":"1/勾"}]},{"name":"星61","display":[{"name":"1/星6","transform":{"x":1.55,"y":0.3},"type":"image","path":"1/星6"}]},{"name":"星31","display":[{"name":"1/星3","transform":{"x":0.8,"y":-0.15},"type":"image","path":"1/星3"}]},{"name":"星3","display":[{"name":"1/星3","transform":{"x":0.8,"y":-0.15},"type":"image","path":"1/星3"}]},{"name":"星11","display":[{"name":"1/星1","transform":{"x":-0.65,"y":-0.55,"skX":180,"skY":180},"type":"image","path":"1/星1"}]},{"name":"星71","display":[{"name":"1/星7","transform":{"x":-51.937,"y":13.4704,"skX":135,"skY":135},"type":"image","path":"1/星7"},{"name":"1/星5","transform":{"x":0.3889,"y":0.0354,"skX":135,"skY":135},"type":"image","path":"1/星5"}]},{"name":"星2","display":[{"name":"1/星2","transform":{"x":0.65,"y":1.1},"type":"image","path":"1/星2"}]},{"name":"星72","display":[{"name":"1/星7","transform":{"x":-51.937,"y":13.4704,"skX":135,"skY":135},"type":"image","path":"1/星7"},{"name":"1/星5","transform":{"x":0.3889,"y":0.0354,"skX":135,"skY":135},"type":"image","path":"1/星5"}]},{"name":"星8","display":[{"name":"1/星8","transform":{"x":0.0707,"y":-0.495,"skX":-135,"skY":-135},"type":"image","path":"1/星8"}]},{"name":"星9","display":[{"name":"1/星9","transform":{"x":0.2475,"y":0.3889,"skX":45,"skY":45},"type":"image","path":"1/星9"}]},{"name":"星711","display":[{"name":"1/星7","transform":{"x":-51.937,"y":13.4704,"skX":135,"skY":135},"type":"image","path":"1/星7"},{"name":"1/星5","transform":{"x":0.3889,"y":0.0354,"skX":135,"skY":135},"type":"image","path":"1/星5"}]},{"name":"星1","display":[{"name":"1/星1","transform":{"x":-0.65,"y":-0.55,"skX":180,"skY":180},"type":"image","path":"1/星1"}]},{"name":"星7","display":[{"name":"1/星7","transform":{"x":-51.937,"y":13.4704,"skX":135,"skY":135},"type":"image","path":"1/星7"},{"name":"1/星5","transform":{"x":0.3889,"y":0.0354,"skX":135,"skY":135},"type":"image","path":"1/星5"}]},{"name":"星6","display":[{"name":"1/星6","transform":{"x":1.55,"y":0.3,"skX":0.1937,"skY":0.1937},"type":"image","path":"1/星6"}]}]}]}],"frameRate":24}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "bf718d00-23b5-4393-8285-ef7a241b9afa",
"subMetas": {}
}
\ No newline at end of file
{"name":"正确效果","SubTexture":[{"name":"1/勾","x":1,"height":112,"y":1,"width":128},{"name":"1/星1","x":196,"height":59,"y":72,"width":57},{"name":"1/星2","x":1,"height":45,"y":192,"width":43},{"name":"1/星3","x":131,"height":64,"y":72,"width":63},{"name":"1/星4","x":201,"height":45,"y":1,"width":45},{"name":"1/星6","x":131,"height":69,"y":1,"width":68},{"name":"1/星7","x":1,"height":40,"y":115,"width":37},{"name":"1/星5","x":196,"height":57,"y":133,"width":56},{"name":"1/星8","x":78,"height":33,"y":115,"width":32},{"name":"1/星9","x":40,"height":37,"y":115,"width":36}],"imagePath":"正确效果_tex.png","height":256,"width":256}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "2a1c4975-20c7-425f-a159-537a0e44fbcb",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ff0f9fe1-277f-4d06-9a86-2b838f49e899",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 256,
"platformSettings": {},
"subMetas": {
"正确效果_tex": {
"ver": "1.0.4",
"uuid": "ef344e8b-5ff7-495c-8441-7891c9963a6f",
"rawTextureUuid": "ff0f9fe1-277f-4d06-9a86-2b838f49e899",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": 9,
"trimX": 1,
"trimY": 1,
"width": 252,
"height": 236,
"rawWidth": 256,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "455577d8-9fe9-451b-8bb0-241ffe3d08ef",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "eff_sahua",
"_objFlags": 0,
"_native": "",
"_duration": 2.5,
"sample": 8,
"speed": 1,
"wrapMode": 1,
"curveData": {
"paths": {
"1": {
"props": {
"opacity": [
{
"frame": 0,
"value": 0
},
{
"frame": 0.125,
"value": 255
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.25,
"value": 0
}
],
"position": [
{
"frame": 0.125,
"value": [
0,
0
],
"motionPath": []
},
{
"frame": 1.25,
"value": [
-369,
-212
],
"motionPath": []
}
],
"angle": [
{
"frame": 0.125,
"value": 0
},
{
"frame": 1.25,
"value": 180
}
]
}
},
"2": {
"props": {
"opacity": [
{
"frame": 0.25,
"value": 0
},
{
"frame": 0.375,
"value": 255
},
{
"frame": 1.25,
"value": 255
},
{
"frame": 1.5,
"value": 0
}
],
"position": [
{
"frame": 0.375,
"value": [
0,
0
]
},
{
"frame": 1.5,
"value": [
-308,
-294
]
}
],
"angle": [
{
"frame": 0.375,
"value": 0
},
{
"frame": 1.5,
"value": 180
}
]
}
},
"3": {
"props": {
"opacity": [
{
"frame": 0.5,
"value": 0
},
{
"frame": 0.625,
"value": 255
},
{
"frame": 1.5,
"value": 255
},
{
"frame": 1.75,
"value": 0
}
],
"position": [
{
"frame": 0.625,
"value": [
0,
0
]
},
{
"frame": 1.75,
"value": [
-161,
-422
]
}
],
"angle": [
{
"frame": 0.625,
"value": 0
},
{
"frame": 1.75,
"value": 180
}
]
}
},
"4": {
"props": {
"opacity": [
{
"frame": 0.875,
"value": 0
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.875,
"value": 255
},
{
"frame": 2.125,
"value": 0
}
],
"position": [
{
"frame": 1,
"value": [
0,
0,
0
]
},
{
"frame": 2.125,
"value": [
-335,
-340.142,
0
]
}
],
"angle": [
{
"frame": 1,
"value": 0
},
{
"frame": 2.125,
"value": 180
}
]
}
},
"5": {
"props": {
"opacity": [
{
"frame": 0,
"value": 0
},
{
"frame": 0.125,
"value": 255
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.25,
"value": 0
}
],
"position": [
{
"frame": 0.125,
"value": [
0,
0
],
"motionPath": []
},
{
"frame": 1.25,
"value": [
280,
-272
],
"motionPath": []
}
],
"angle": [
{
"frame": 0.125,
"value": 0
},
{
"frame": 1.25,
"value": 180
}
]
}
},
"6": {
"props": {
"opacity": [
{
"frame": 0.25,
"value": 0
},
{
"frame": 0.375,
"value": 255
},
{
"frame": 1.25,
"value": 255
},
{
"frame": 1.5,
"value": 0
}
],
"position": [
{
"frame": 0.375,
"value": [
0,
0
]
},
{
"frame": 1.5,
"value": [
351,
-196
]
}
],
"angle": [
{
"frame": 0.375,
"value": 0
},
{
"frame": 1.5,
"value": 180
}
]
}
},
"7": {
"props": {
"opacity": [
{
"frame": 0.5,
"value": 0
},
{
"frame": 0.625,
"value": 255
},
{
"frame": 1.5,
"value": 255
},
{
"frame": 1.75,
"value": 0
}
],
"position": [
{
"frame": 0.625,
"value": [
0,
0
]
},
{
"frame": 1.75,
"value": [
435,
-141
]
}
],
"angle": [
{
"frame": 0.625,
"value": 0
},
{
"frame": 1.75,
"value": 180
}
]
}
},
"8": {
"props": {
"opacity": [
{
"frame": 0.875,
"value": 0
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.875,
"value": 255
},
{
"frame": 2.125,
"value": 0
}
],
"position": [
{
"frame": 1,
"value": [
0,
0
]
},
{
"frame": 2.125,
"value": [
249,
-607
]
}
],
"angle": [
{
"frame": 1,
"value": 0
},
{
"frame": 2.125,
"value": 180
}
]
}
},
"9": {
"props": {
"opacity": [
{
"frame": 0,
"value": 0
},
{
"frame": 0.125,
"value": 255
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.25,
"value": 0
}
],
"position": [
{
"frame": 0.125,
"value": [
0,
0
],
"motionPath": []
},
{
"frame": 1.25,
"value": [
-222,
-499
],
"motionPath": []
}
],
"angle": [
{
"frame": 0.125,
"value": 0
},
{
"frame": 1.25,
"value": 180
}
]
}
},
"10": {
"props": {
"opacity": [
{
"frame": 0.25,
"value": 0
},
{
"frame": 0.375,
"value": 255
},
{
"frame": 1.25,
"value": 255
},
{
"frame": 1.5,
"value": 0
}
],
"position": [
{
"frame": 0.375,
"value": [
0,
0
]
},
{
"frame": 1.5,
"value": [
351,
-393
]
}
],
"angle": [
{
"frame": 0.375,
"value": 0
},
{
"frame": 1.5,
"value": 180
}
]
}
},
"11": {
"props": {
"opacity": [
{
"frame": 0.625,
"value": 0
},
{
"frame": 0.75,
"value": 255
},
{
"frame": 1.625,
"value": 255
},
{
"frame": 1.875,
"value": 0
}
],
"position": [
{
"frame": 0.75,
"value": [
0,
0
]
},
{
"frame": 1.875,
"value": [
-359,
-99
]
}
],
"angle": [
{
"frame": 0.75,
"value": 0
},
{
"frame": 1.875,
"value": 180
}
]
}
},
"12": {
"props": {
"opacity": [
{
"frame": 0.875,
"value": 0
},
{
"frame": 1,
"value": 255
},
{
"frame": 2.125,
"value": 255
},
{
"frame": 2.5,
"value": 0
}
],
"position": [
{
"frame": 1,
"value": [
0,
0
],
"motionPath": []
},
{
"frame": 2.5,
"value": [
171,
-424
],
"motionPath": []
}
],
"angle": [
{
"frame": 1,
"value": 0
},
{
"frame": 2.5,
"value": 180
}
]
}
},
"13": {
"props": {
"opacity": [
{
"frame": 0,
"value": 0
},
{
"frame": 0.125,
"value": 255
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.25,
"value": 0
}
],
"position": [
{
"frame": 0.125,
"value": [
0,
0,
0
]
},
{
"frame": 1.25,
"value": [
186,
-208
],
"motionPath": []
}
],
"angle": [
{
"frame": 0.125,
"value": 0
},
{
"frame": 1.25,
"value": 180
}
]
}
},
"14": {
"props": {
"opacity": [
{
"frame": 0,
"value": 0
},
{
"frame": 0.125,
"value": 255
},
{
"frame": 1.625,
"value": 255
},
{
"frame": 1.875,
"value": 0
}
],
"position": [
{
"frame": 0.125,
"value": [
0,
0,
0
]
},
{
"frame": 1.875,
"value": [
150,
-443
]
}
],
"angle": [
{
"frame": 0.125,
"value": 0
},
{
"frame": 1.875,
"value": 180
}
]
}
},
"15": {
"props": {
"opacity": [
{
"frame": 0.375,
"value": 0
},
{
"frame": 0.5,
"value": 255
},
{
"frame": 1.375,
"value": 255
},
{
"frame": 1.625,
"value": 0
}
],
"position": [
{
"frame": 0.5,
"value": [
0,
0,
0
]
},
{
"frame": 1.625,
"value": [
-204.867,
-257.913,
0
]
}
],
"angle": [
{
"frame": 0.5,
"value": 0
},
{
"frame": 1.625,
"value": 180
}
]
}
}
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.0",
"uuid": "ac5cd74f-7311-4fae-a586-f37a87e61455",
"subMetas": {}
}
\ No newline at end of file
{
"__type__": "cc.AnimationClip",
"_name": "eff_welldown",
"_objFlags": 0,
"_native": "",
"_duration": 2,
"sample": 4,
"speed": 1,
"wrapMode": 1,
"curveData": {
"paths": {
"1": {
"props": {
"position": [
{
"frame": 0.25,
"value": [
50,
50,
0
]
},
{
"frame": 1.25,
"value": [
500,
0,
0
]
}
],
"opacity": [
{
"frame": 0,
"value": 0
},
{
"frame": 0.25,
"value": 255
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.25,
"value": 0
}
],
"angle": [
{
"frame": 0,
"value": 0
},
{
"frame": 1.25,
"value": 360
}
]
}
},
"2": {
"props": {
"position": [
{
"frame": 0.5,
"value": [
0,
0,
0
]
},
{
"frame": 1.5,
"value": [
500,
-300,
0
]
}
],
"opacity": [
{
"frame": 0.25,
"value": 0
},
{
"frame": 0.5,
"value": 255
},
{
"frame": 1.25,
"value": 255
},
{
"frame": 1.5,
"value": 0
}
],
"angle": [
{
"frame": 0.25,
"value": 0
},
{
"frame": 1.5,
"value": 360
}
]
}
},
"3": {
"props": {
"position": [
{
"frame": 0.75,
"value": [
0,
0,
0
]
},
{
"frame": 2,
"value": [
-167.884,
-461.671,
0
]
}
],
"opacity": [
{
"frame": 0.5,
"value": 0
},
{
"frame": 0.75,
"value": 255
},
{
"frame": 1.75,
"value": 255
},
{
"frame": 2,
"value": 0
}
],
"angle": [
{
"frame": 0.5,
"value": 0
},
{
"frame": 2,
"value": 360
}
]
}
},
"4": {
"props": {
"position": [
{
"frame": 0.25,
"value": [
-50,
-100,
0
]
},
{
"frame": 1.25,
"value": [
-470.48,
-173.571,
0
]
}
],
"opacity": [
{
"frame": 0,
"value": 0
},
{
"frame": 0.25,
"value": 255
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.25,
"value": 0
}
],
"angle": [
{
"frame": 0,
"value": 0
},
{
"frame": 1.25,
"value": 360
}
]
}
},
"5": {
"props": {
"position": [
{
"frame": 0.75,
"value": [
0,
0,
0
]
},
{
"frame": 1.75,
"value": [
-583.699,
269.428,
0
]
}
],
"opacity": [
{
"frame": 0.5,
"value": 0
},
{
"frame": 0.75,
"value": 255
},
{
"frame": 1.5,
"value": 255
},
{
"frame": 1.75,
"value": 0
}
],
"angle": [
{
"frame": 0.5,
"value": 0
},
{
"frame": 1.75,
"value": 360
}
]
}
},
"6": {
"props": {
"position": [
{
"frame": 0.5,
"value": [
0,
0,
0
]
},
{
"frame": 1.5,
"value": [
-374.144,
395.161,
0
]
}
],
"opacity": [
{
"frame": 0.25,
"value": 0
},
{
"frame": 0.5,
"value": 255
},
{
"frame": 1.25,
"value": 255
},
{
"frame": 1.5,
"value": 0
}
],
"angle": [
{
"frame": 0.25,
"value": 0
},
{
"frame": 1.5,
"value": 360
}
]
}
},
"7": {
"props": {
"position": [
{
"frame": 0.25,
"value": [
61,
70,
0
]
},
{
"frame": 1.25,
"value": [
92.864,
443.059,
0
]
}
],
"opacity": [
{
"frame": 0,
"value": 0
},
{
"frame": 0.25,
"value": 255
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.25,
"value": 0
}
],
"angle": [
{
"frame": 0,
"value": 0
},
{
"frame": 1.25,
"value": 360
}
]
}
},
"8": {
"props": {
"position": [
{
"frame": 1,
"value": [
0,
0,
0
]
},
{
"frame": 2,
"value": [
314.394,
353.25,
0
]
}
],
"opacity": [
{
"frame": 0.75,
"value": 0
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.75,
"value": 255
},
{
"frame": 2,
"value": 0
}
],
"angle": [
{
"frame": 0.75,
"value": 0
},
{
"frame": 2,
"value": 360
}
]
}
},
"9": {
"props": {
"position": [
{
"frame": 0.25,
"value": [
0,
0,
0
]
},
{
"frame": 1.25,
"value": [
-326.246,
-167.644,
0
]
}
],
"opacity": [
{
"frame": 0,
"value": 0
},
{
"frame": 0.25,
"value": 255
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.25,
"value": 0
}
],
"angle": [
{
"frame": 0,
"value": 0
},
{
"frame": 1.25,
"value": 360
}
]
}
},
"10": {
"props": {
"position": [
{
"frame": 1,
"value": [
0,
0,
0
]
},
{
"frame": 2,
"value": [
188.661,
347.263,
0
]
}
],
"opacity": [
{
"frame": 0.75,
"value": 0
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.75,
"value": 255
},
{
"frame": 2,
"value": 0
}
],
"angle": [
{
"frame": 0.75,
"value": 0
},
{
"frame": 2,
"value": 360
}
]
}
},
"11": {
"props": {
"position": [
{
"frame": 0.75,
"value": [
0,
0,
0
]
},
{
"frame": 1.75,
"value": [
-350.195,
-359.237,
0
]
}
],
"opacity": [
{
"frame": 0.5,
"value": 0
},
{
"frame": 0.75,
"value": 255
},
{
"frame": 1.5,
"value": 255
},
{
"frame": 1.75,
"value": 0
}
],
"angle": [
{
"frame": 0.5,
"value": 0
},
{
"frame": 1.75,
"value": 360
}
]
}
},
"12": {
"props": {
"position": [
{
"frame": 0.25,
"value": [
-60,
80,
0
]
},
{
"frame": 1.25,
"value": [
251.579,
248.754,
0
]
}
],
"opacity": [
{
"frame": 0,
"value": 0
},
{
"frame": 0.25,
"value": 255
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.25,
"value": 0
}
],
"angle": [
{
"frame": 0,
"value": 0
},
{
"frame": 1.25,
"value": 360
}
]
}
},
"13": {
"props": {
"position": [
{
"frame": 1,
"value": [
0,
0,
0
]
},
{
"frame": 2,
"value": [
-224.462,
317.326,
0
]
}
],
"opacity": [
{
"frame": 0.75,
"value": 0
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.75,
"value": 255
},
{
"frame": 2,
"value": 0
}
],
"angle": [
{
"frame": 0.75,
"value": 0
},
{
"frame": 2,
"value": 360
}
]
}
},
"14": {
"props": {
"position": [
{
"frame": 0.25,
"value": [
60,
-80,
0
]
},
{
"frame": 1.25,
"value": [
158.725,
335.288,
0
]
}
],
"opacity": [
{
"frame": 0,
"value": 0
},
{
"frame": 0.25,
"value": 255
},
{
"frame": 1,
"value": 255
},
{
"frame": 1.25,
"value": 0
}
],
"angle": [
{
"frame": 0,
"value": 0
},
{
"frame": 1.25,
"value": 360
}
]
}
},
"15": {
"props": {
"position": [
{
"frame": 0.75,
"value": [
0,
0,
0
]
},
{
"frame": 1.75,
"value": [
182.674,
-275.415,
0
]
}
],
"opacity": [
{
"frame": 0.5,
"value": 0
},
{
"frame": 0.75,
"value": 255
},
{
"frame": 1.5,
"value": 255
},
{
"frame": 1.75,
"value": 0
}
],
"angle": [
{
"frame": 0.5,
"value": 0
},
{
"frame": 1.75,
"value": 360
}
]
}
},
"lb_welldone": {
"props": {
"scale": [
{
"frame": 0,
"value": {
"__type__": "cc.Vec2",
"x": 0,
"y": 1
}
},
{
"frame": 0.25,
"value": {
"__type__": "cc.Vec2",
"x": 1,
"y": 1
}
},
{
"frame": 0.5,
"value": {
"__type__": "cc.Vec2",
"x": 0,
"y": 1
}
},
{
"frame": 0.75,
"value": {
"__type__": "cc.Vec2",
"x": 1,
"y": 1
}
}
]
}
}
}
},
"events": []
}
\ No newline at end of file
{
"ver": "2.1.0",
"uuid": "ce2d6cce-f4b4-4f14-b57c-f026dc181a88",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "61fcc759-2eb5-4e50-a2f3-0cc3393881d8",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "4fe6019f-f84c-439f-97b8-a4cfe2ddc7ca",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "f0214b38-1b2a-41ef-aa3e-1d6949fd3b12",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "1fc51dd0-d295-4a33-8b99-adcb5978c932",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "5c0041d0-ccbd-4069-bc12-73a47695ed52",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "a777fdf7-eb0b-41df-b0f7-ada8ed99b97d",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "node_eff",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
},
{
"__id__": 8
},
{
"__id__": 11
},
{
"__id__": 14
},
{
"__id__": 17
},
{
"__id__": 20
},
{
"__id__": 23
},
{
"__id__": 26
},
{
"__id__": 29
},
{
"__id__": 32
},
{
"__id__": 35
},
{
"__id__": 38
},
{
"__id__": 41
},
{
"__id__": 44
},
{
"__id__": 47
}
],
"_active": true,
"_components": [
{
"__id__": 50
},
{
"__id__": 51
}
],
"_prefab": {
"__id__": 52
},
"_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": ""
},
{
"__type__": "cc.Node",
"_name": "lb_welldone",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 652,
"height": 105
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "04f73d5e-ffe4-45eb-9e9e-2413b32266a9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "35Tyw/P31GdIO3gK5IBrbS",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "1",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "76m/1YoXhKuLw/wo3pf/Np",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "2",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "fe0+rb/NdGvZJ+82PToAHV",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "3",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
}
],
"_prefab": {
"__id__": 13
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "05I9Q0wcNCX7VelH7HyzIJ",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "4",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
}
],
"_prefab": {
"__id__": 16
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "75F78+Bb1A/LuyTYLiB5pf",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "5",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
}
],
"_prefab": {
"__id__": 19
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "e6KZjHeZxCDJHAE3HHqAZM",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "6",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
}
],
"_prefab": {
"__id__": 22
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "aaCZGxbvtCZr7M96nARYBC",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "7",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
}
],
"_prefab": {
"__id__": 25
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "89VfwaCwNMm6ZNNf/QcepQ",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "8",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 27
}
],
"_prefab": {
"__id__": 28
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "71mfBcU+hAHIOKuyR4nVOB",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "9",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 30
}
],
"_prefab": {
"__id__": 31
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "b36x1JLelErbYfGF0+OIOQ",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "10",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
}
],
"_prefab": {
"__id__": 34
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "2007RB/yROS7T9pAnLMUyO",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "11",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
}
],
"_prefab": {
"__id__": 37
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "86yRQTftpHHoE3o/n11Zrg",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "12",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 39
}
],
"_prefab": {
"__id__": 40
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "ecz6dAtJdOLoaMFFJn7RuH",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "13",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
}
],
"_prefab": {
"__id__": 43
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "7ay8+OihNLD7RC2UiwXQmm",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "14",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 45
}
],
"_prefab": {
"__id__": 46
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "3520pMhBlGxJitYgHAHJQf",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "15",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 48
}
],
"_prefab": {
"__id__": 49
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 41
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72726b06-efbb-49a1-906e-3d0b4f8f812a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "0ciXghXNpARaE1WPm2o5ps",
"sync": false
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_defaultClip": {
"__uuid__": "ce2d6cce-f4b4-4f14-b57c-f026dc181a88"
},
"_clips": [
{
"__uuid__": "ce2d6cce-f4b4-4f14-b57c-f026dc181a88"
}
],
"playOnLoad": false,
"_id": ""
},
{
"__type__": "872dfN0oZxGYp09H4Uym11J",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"eff_welldown": {
"__id__": 50
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "c020c4aa-c261-4e24-ae6e-a564a5bb6865"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "c020c4aa-c261-4e24-ae6e-a564a5bb6865",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
[ [
{ {
"__type__": "cc.SceneAsset", "__type__": "cc.Prefab",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"_native": "", "_native": "",
"scene": { "data": {
"__id__": 1 "__id__": 1
} },
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
}, },
{ {
"__type__": "cc.Scene", "__type__": "cc.Node",
"_name": "paperBase",
"_objFlags": 0, "_objFlags": 0,
"_parent": null, "_parent": null,
"_children": [ "_children": [
{ {
"__id__": 2 "__id__": 2
},
{
"__id__": 10
},
{
"__id__": 18
},
{
"__id__": 26
},
{
"__id__": 34
} }
], ],
"_active": false, "_active": true,
"_components": [], "_components": [],
"_prefab": null, "_prefab": {
"__id__": 42
},
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -35,15 +53,15 @@ ...@@ -35,15 +53,15 @@
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0.5,
"y": 0 "y": 0.5
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, -255,
0, -187,
0, 0,
0, 0,
0, 0,
...@@ -54,15 +72,22 @@ ...@@ -54,15 +72,22 @@
1 1
] ]
}, },
"_is3DNode": true, "_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"autoReleaseAssets": true, "_id": ""
"_id": "57ea7c61-9b8b-498a-b024-c98ee9124beb"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Canvas", "_name": "quadBase",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
...@@ -70,31 +95,14 @@ ...@@ -70,31 +95,14 @@
"_children": [ "_children": [
{ {
"__id__": 3 "__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
},
{
"__id__": 14
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [],
{ "_prefab": {
"__id__": 24 "__id__": 9
}, },
{ "_opacity": 200,
"__id__": 25
},
{
"__id__": 26
}
],
"_prefab": null,
"_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
...@@ -104,8 +112,8 @@ ...@@ -104,8 +112,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1280, "width": 0,
"height": 720 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -116,8 +124,8 @@ ...@@ -116,8 +124,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
640, 0,
360, 0,
0, 0,
0, 0,
0, 0,
...@@ -139,23 +147,29 @@ ...@@ -139,23 +147,29 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "a5esZu+45LA5mBpvttspPD" "_id": ""
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "Main Camera", "_name": "quad",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [
{
"__id__": 4
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 4 "__id__": 7
} }
], ],
"_prefab": null, "_prefab": {
"__id__": 8
},
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -166,8 +180,8 @@ ...@@ -166,8 +180,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1280, "width": 29,
"height": 720 "height": 29
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -178,10 +192,10 @@ ...@@ -178,10 +192,10 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-291,
-280,
0, 0,
0, 0,
362.85545494732423,
0,
0, 0,
0, 0,
1, 1,
...@@ -201,71 +215,37 @@ ...@@ -201,71 +215,37 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "e1WoFrQ79G7r4ZuQE3HlNb" "_id": ""
},
{
"__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", "__type__": "cc.Node",
"_name": "bg", "_name": "paper",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 3
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 6 "__id__": 5
} }
], ],
"_prefab": null, "_prefab": {
"__id__": 6
},
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
"g": 255, "g": 226,
"b": 255, "b": 0,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1280, "width": 29,
"height": 720 "height": 29
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -299,14 +279,14 @@ ...@@ -299,14 +279,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "32MJMZ2HRGF4BOf533Avyi" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 5 "__id__": 4
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -317,7 +297,7 @@ ...@@ -317,7 +297,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "8288e3d4-4c75-4b27-8f01-f7014417f4dd" "__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -331,27 +311,81 @@ ...@@ -331,27 +311,81 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "97/S6HDq9MeqgmV1Zwnhbb" "_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "4ecZYdeTdBPbZNEum8uKku",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "43S9KKiqdAmrXrqKsQOhM+",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "786B4MTVxBFa4Sqm6ee7JZ",
"sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "bottomPart", "_name": "quadBase",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 1
}, },
"_children": [ "_children": [
{
"__id__": 8
},
{ {
"__id__": 11 "__id__": 11
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [],
"_prefab": null, "_prefab": {
"_opacity": 255, "__id__": 17
},
"_opacity": 200,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
...@@ -373,8 +407,8 @@ ...@@ -373,8 +407,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
635.132, 0,
-356.326, 0,
0, 0,
0, 0,
0, 0,
...@@ -396,26 +430,29 @@ ...@@ -396,26 +430,29 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "8c7k8ep/ZFNpO263+1QHz9" "_id": ""
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_left", "_name": "quad",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 10
}, },
"_children": [], "_children": [
{
"__id__": 12
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 9 "__id__": 15
},
{
"__id__": 10
} }
], ],
"_prefab": null, "_prefab": {
"__id__": 16
},
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -426,8 +463,8 @@ ...@@ -426,8 +463,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 61, "width": 29,
"height": 67 "height": 29
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -438,8 +475,8 @@ ...@@ -438,8 +475,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-148.464, -291,
34, -211,
0, 0,
0, 0,
0, 0,
...@@ -461,138 +498,37 @@ ...@@ -461,138 +498,37 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "5ad2wLQLxIN5Eg7OHecSH6" "_id": ""
},
{
"__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", "__type__": "cc.Node",
"_name": "btn_right", "_name": "paper",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 11
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 12
},
{ {
"__id__": 13 "__id__": 13
} }
], ],
"_prefab": null, "_prefab": {
"__id__": 14
},
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 74,
"g": 255, "g": 205,
"b": 255, "b": 225,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 60, "width": 29,
"height": 66 "height": 29
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -603,8 +539,8 @@ ...@@ -603,8 +539,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-47.164, 0,
34, 0,
0, 0,
0, 0,
0, 0,
...@@ -626,14 +562,14 @@ ...@@ -626,14 +562,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "46i3stdzpHX6zQHTGnRsNE" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 12
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -644,7 +580,7 @@ ...@@ -644,7 +580,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59" "__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -658,98 +594,81 @@ ...@@ -658,98 +594,81 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "42Sh8QS/BHn4WiGyPQPKPt" "_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "b32g8d/oVAcpoZ1EdKHhxB",
"sync": false
}, },
{ {
"__type__": "cc.Button", "__type__": "cc.MeshRenderer",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 11
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_materials": [
"_grayMaterial": null, {
"duration": 0.1, "__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
"zoomScale": 1.2, }
"clickEvents": [], ],
"_N$interactable": true, "_mesh": {
"_N$enableAutoGrayEffect": false, "__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
"_N$transition": 0, },
"transition": 0, "_receiveShadows": false,
"_N$normalColor": { "_shadowCastingMode": 0,
"__type__": "cc.Color", "_enableAutoBatch": false,
"r": 255, "textures": [],
"g": 255, "_id": ""
"b": 255, },
"a": 255 {
}, "__type__": "cc.PrefabInfo",
"_N$pressedColor": { "root": {
"__type__": "cc.Color", "__id__": 1
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
}, },
"_N$hoverColor": { "asset": {
"__type__": "cc.Color", "__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
"r": 255,
"g": 255,
"b": 255,
"a": 255
}, },
"hoverColor": { "fileId": "30hJgP4uFIfqJ3vdMzYF6g",
"__type__": "cc.Color", "sync": false
"r": 255, },
"g": 255, {
"b": 255, "__type__": "cc.PrefabInfo",
"a": 255 "root": {
"__id__": 1
}, },
"_N$disabledColor": { "asset": {
"__type__": "cc.Color", "__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
"r": 124,
"g": 124,
"b": 124,
"a": 255
}, },
"_N$normalSprite": null, "fileId": "11TGHbg09BG5OPaxqrOMBR",
"_N$pressedSprite": null, "sync": false
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "1aj32fYY1IxLesa77E70Qu"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "res", "_name": "quadBase",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 1
}, },
"_children": [ "_children": [
{ {
"__id__": 15 "__id__": 19
},
{
"__id__": 18
},
{
"__id__": 21
} }
], ],
"_active": false, "_active": true,
"_components": [], "_components": [],
"_prefab": null, "_prefab": {
"_opacity": 255, "__id__": 25
},
"_opacity": 200,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
...@@ -794,23 +713,29 @@ ...@@ -794,23 +713,29 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "0aAzbH6R1E+6AmGRrkKa5O" "_id": ""
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "font", "_name": "quad",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 18
}, },
"_children": [ "_children": [
{ {
"__id__": 16 "__id__": 20
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [
"_prefab": null, {
"__id__": 23
}
],
"_prefab": {
"__id__": 24
},
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -821,8 +746,8 @@ ...@@ -821,8 +746,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 29,
"height": 0 "height": 29
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -833,8 +758,8 @@ ...@@ -833,8 +758,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, -291,
0, -141,
0, 0,
0, 0,
0, 0,
...@@ -856,35 +781,37 @@ ...@@ -856,35 +781,37 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "9bLfcYeeNKrr524vzWchiM" "_id": ""
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "BRLNSDB", "_name": "paper",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 15 "__id__": 19
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 17 "__id__": 21
} }
], ],
"_prefab": null, "_prefab": {
"__id__": 22
},
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 233,
"g": 255, "g": 143,
"b": 255, "b": 253,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 29,
"height": 0 "height": 29
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -918,55 +845,113 @@ ...@@ -918,55 +845,113 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "cfMLGsq0BMhJARv+ySMAxS" "_id": ""
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 16 "__id__": 20
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "", "_spriteFrame": {
"_N$string": "", "__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
"_fontSize": 40, },
"_lineHeight": 40, "_type": 0,
"_enableWrapText": true, "_sizeMode": 1,
"_N$file": { "_fillType": 0,
"__uuid__": "c551970e-b095-45f3-9f1d-25cde8b8deb1" "_fillCenter": {
}, "__type__": "cc.Vec2",
"_isSystemFontUsed": false, "x": 0,
"_spacingX": 0, "y": 0
"_batchAsBitmap": false, },
"_styleFlags": 0, "_fillStart": 0,
"_underlineHeight": 0, "_fillRange": 0,
"_N$horizontalAlign": 0, "_isTrimmedMode": true,
"_N$verticalAlign": 0, "_atlas": null,
"_N$fontFamily": "Arial", "_id": ""
"_N$overflow": 0, },
"_N$cacheMode": 0, {
"_id": "9bNHNPu5lC7rQYyr8ai/sY" "__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "22NHJV2KVJCpDphLLi4HHV",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "d3r3nK4pVC361K7j6uLw48",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "aah8YaqZtBe51A/MyO+q5y",
"sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "img", "_name": "quadBase",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 1
}, },
"_children": [ "_children": [
{ {
"__id__": 19 "__id__": 27
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [],
"_prefab": null, "_prefab": {
"_opacity": 255, "__id__": 33
},
"_opacity": 200,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
...@@ -1011,23 +996,29 @@ ...@@ -1011,23 +996,29 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "53LUHHG2pEr79fyrvazXJs" "_id": ""
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "icon", "_name": "quad",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 18 "__id__": 26
}, },
"_children": [], "_children": [
{
"__id__": 28
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 20 "__id__": 31
} }
], ],
"_prefab": null, "_prefab": {
"__id__": 32
},
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -1038,8 +1029,72 @@ ...@@ -1038,8 +1029,72 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 138, "width": 29,
"height": 141 "height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291,
-72,
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": ""
},
{
"__type__": "cc.Node",
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 27
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
}
],
"_prefab": {
"__id__": 30
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 253,
"g": 182,
"b": 82,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1073,21 +1128,25 @@ ...@@ -1073,21 +1128,25 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "1blU2OArJIfoC9XfupGxJG" "_id": ""
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 19 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a" "__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1101,24 +1160,81 @@ ...@@ -1101,24 +1160,81 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "03GEWUEZJGyKormWgIWCtM" "_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "61RSGo3apKlKFkObWG602+",
"sync": false
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "54ye+gdmxLPo0D0gTfdk8+",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "1bguL+oWhFkoVjDOzFPTmA",
"sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "audio", "_name": "quadBase",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 1
}, },
"_children": [ "_children": [
{ {
"__id__": 22 "__id__": 35
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [],
"_prefab": null, "_prefab": {
"_opacity": 255, "__id__": 41
},
"_opacity": 200,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
...@@ -1163,23 +1279,29 @@ ...@@ -1163,23 +1279,29 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "b823DIVC9L+Ihc3T9Bt7m3" "_id": ""
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn", "_name": "quad",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 21 "__id__": 34
}, },
"_children": [], "_children": [
{
"__id__": 36
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 23 "__id__": 39
} }
], ],
"_prefab": null, "_prefab": {
"__id__": 40
},
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
...@@ -1190,8 +1312,72 @@ ...@@ -1190,8 +1312,72 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 29,
"height": 0 "height": 29
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291,
-2,
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": ""
},
{
"__type__": "cc.Node",
"_name": "paper",
"_objFlags": 0,
"_parent": {
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
}
],
"_prefab": {
"__id__": 38
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 254,
"g": 83,
"b": 108,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 29,
"height": 29
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1225,79 +1411,104 @@ ...@@ -1225,79 +1411,104 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "3d0p0/uJZJIoRva5Br2iqv" "_id": ""
}, },
{ {
"__type__": "cc.AudioSource", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 22 "__id__": 36
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_materials": [
"__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b" {
}, "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"_volume": 1, }
"_mute": false, ],
"_loop": false, "_srcBlendFactor": 770,
"_firstlyEnabled": true, "_dstBlendFactor": 771,
"playOnLoad": false, "_spriteFrame": {
"preload": false, "__uuid__": "e73ee213-5760-4419-a7ca-7ef48e02f398"
"_id": "0adN50f61DlbmppsPkOnjX" },
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
}, },
{ {
"__type__": "cc.Canvas", "__type__": "cc.PrefabInfo",
"_name": "", "root": {
"_objFlags": 0, "__id__": 1
"node": {
"__id__": 2
}, },
"_enabled": true, "asset": {
"_designResolution": { "__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
"__type__": "cc.Size",
"width": 1280,
"height": 720
}, },
"_fitWidth": false, "fileId": "1eKJgwUG9FloGkH70G7Pnd",
"_fitHeight": false, "sync": false
"_id": "59Cd0ovbdF4byw5sbjJDx7"
}, },
{ {
"__type__": "cc.Widget", "__type__": "cc.MeshRenderer",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 2 "__id__": 35
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "_materials": [
"_target": null, {
"_alignFlags": 45, "__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
"_left": 0, }
"_right": 0, ],
"_top": 0, "_mesh": {
"_bottom": 0, "__uuid__": "e93d3fa9-8c21-4375-8a21-14ba84066c77"
"_verticalCenter": 0, },
"_horizontalCenter": 0, "_receiveShadows": false,
"_isAbsLeft": true, "_shadowCastingMode": 0,
"_isAbsRight": true, "_enableAutoBatch": false,
"_isAbsTop": true, "textures": [],
"_isAbsBottom": true, "_id": ""
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
}, },
{ {
"__type__": "f4edeRi+NdAabqAkVYRwFjK", "__type__": "cc.PrefabInfo",
"_name": "", "root": {
"_objFlags": 0, "__id__": 1
"node": {
"__id__": 2
}, },
"_enabled": true, "asset": {
"_id": "e687yyoRBIzZAOVRL8Sseh" "__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "39EFfmtY9F86JGwwG3nIG+",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "29s4DQbk1MLpWu8HFU9ceA",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2"
},
"fileId": "",
"sync": false
} }
] ]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "8b78aa33-0eb9-4b52-ae1b-3abacd0ee4f2",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"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.
{
"ver": "1.1.2",
"uuid": "7488de23-e223-4a1c-9a61-a332a676694e",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
// 全局环境预声明
window.g = window.g || {}; // 全局
\ No newline at end of file
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "c41b0e51-55d7-443c-af3a-b22c3dd9b9e5", "uuid": "a9bcccd1-c2b7-4db1-8744-3c0fcb95b824",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
/**
* eff_welldown
*/
var eff_well = cc.Class({
extends: cc.Component,
properties: {
eff_welldown: {
default: null,
type: cc.Animation,
displayName: "撒花特效"
},
},
ctor: function () {
eff_well.inst = this;
g.eff_well = eff_well;
},
//显示特效
showEff: function () {
this.node.active = true;
this.eff_welldown.play();
//播放撒花音效
g.speaker.inst.play_congratulation();
setTimeout(() => {
this.node.active = false;
}, 2000)
}
});
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "ade7af40-d56d-4087-bbc6-2888fef55353", "uuid": "872df374-a19c-4662-9d3d-1f85329b5d49",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
g.utils = {
// 范围随机
randFromTo: function (_min, _max) {
var min = parseFloat(_min);
var max = parseFloat(_max);
return (min + Math.random() * (max - min));
},
// 范围随机一个整数
// 例:1~3,返回的可能值为:1、2、3
randFromTo_Int: function (min, max) {
var val = this.randFromTo(min, max + 1 - 0.0001);
return Math.floor(val);
},
// 深拷贝
deepCopy: function (src) {
var cpy = src instanceof Array ? [] : {};
for (var i in src) {
cpy[i] = typeof src[i] === 'object' ? this.deepCopy(src[i]) : src[i];
}
return cpy;
},
//生成唯一标识
generateUUID: function () {
var d = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c == 'x' ? r : (r & 0x3 | 0x8)).toString(16);
});
return uuid;
},
deletList: function (list, val) {
var index = list(val);
if (index > -1) {
this.splice(index, 1);
}
}
}
export function getPosByAngle(angle, len) {
const radian = angle * Math.PI / 180;
const x = Math.sin(radian) * len;
const y = Math.cos(radian) * len;
return { x, y };
}
export function getAngleByPos(px, py, mx, my) {
const x = Math.abs(px - mx);
const y = Math.abs(py - my);
const z = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
const cos = y / z;
const radina = Math.acos(cos); // 用反三角函数求弧度
let angle = Math.floor(180 / (Math.PI / radina) * 100) / 100; // 将弧度转换成角度
if (mx > px && my > py) {// 鼠标在第四象限
angle = 180 - angle;
}
if (mx === px && my > py) {// 鼠标在y轴负方向上
angle = 180;
}
if (mx > px && my === py) {// 鼠标在x轴正方向上
angle = 90;
}
if (mx < px && my > py) {// 鼠标在第三象限
angle = 180 + angle;
}
if (mx < px && my === py) {// 鼠标在x轴负方向
angle = 270;
}
if (mx < px && my < py) {// 鼠标在第二象限
angle = 360 - angle;
}
// console.log('angle: ', angle);
return angle;
}
export function exchangeNodePos(baseNode, targetNode) {
return baseNode.convertToNodeSpaceAR(targetNode._parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y)));
}
export function RandomInt(a, b = 0) {
let max = Math.max(a, b);
let min = Math.min(a, b);
return Math.floor(Math.random() * (max - min) + min);
}
export function Between(a, b, c) {
return [a, b, c].sort((a, b) => a - b)[1];
}
export function randomSortByArr(arr) {
const newArr = [];
const tmpArr = arr.concat();
while (tmpArr.length > 0) {
const randomIndex = Math.floor(tmpArr.length * Math.random());
newArr.push(tmpArr[randomIndex]);
tmpArr.splice(randomIndex, 1);
}
return newArr;
}
export async function asyncTweenTo(node, duration, obj, ease = undefined) {
return new Promise((resolve, reject) => {
cc.tween(node)
.to(duration, obj, ease)
.call(() => {
resolve();
})
.start();
});
}
export async function asyncTweenBy(node, duration, obj, ease = undefined) {
return new Promise((resolve, reject) => {
cc.tween(node)
.by(duration, obj, ease)
.call(() => {
resolve();
})
.start();
});
}
export async function asyncPlayDragonBoneAnimation(node, animationName, time = 1, onFrameEvent) {
return new Promise((resolve, reject) => {
node.getComponent(dragonBones.ArmatureDisplay)
.once(dragonBones.EventObject.COMPLETE, () => {
resolve();
});
node.getComponent(dragonBones.ArmatureDisplay)
.on(dragonBones.EventObject.FRAME_EVENT, ({ name }) => {
if (onFrameEvent && typeof (onFrameEvent) == 'function') {
onFrameEvent(name);
}
});
node.getComponent(dragonBones.ArmatureDisplay)
.playAnimation(animationName, time);
});
}
export async function asyncPlayEffectByUrl(url, loop = false) {
return new Promise((resolve, reject) => {
cc.assetManager.loadRemote(url, (err, clip) => {
console.log(clip);
cc.audioEngine.playEffect(clip, loop);
resolve();
});
});
}
export async function jelly(node) {
return new Promise((resolve, reject) => {
cc.tween(node)
.to(0.1, { scaleX: 0.9, scaleY: 1.1 })
.to(0.1, { scaleX: 1.1, scaleY: 0.9 })
.to(0.1, { scaleX: 1, scaleY: 1 })
.call(resolve)
.start();
});
}
export async function asyncDelay(time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve();
}, time * 1000);
})
}
export async function showFireworks(baseNode, nodeList, pos = cc.v2(0, 0), side = cc.v2(0, 100), range = 50, number = 100) {
new Array(number).fill(' ').forEach(async (_, i) => {
let rabbonNode = new cc.Node();
rabbonNode.parent = baseNode;
rabbonNode.x = pos.x;
rabbonNode.y = pos.y;
rabbonNode.angle = 60 * Math.random() - 30;
let node = cc.instantiate(nodeList[RandomInt(nodeList.length)]);
node.parent = rabbonNode;
node.active = true;
node.x = 0;
node.y = 0;
node.angle = 0;
const rate = Math.random();
const angle = Math.PI * (Math.random() * 2 - 1);
await asyncTweenBy(rabbonNode, 0.3, {
x: side.x * rate + Math.cos(angle) * range * rate,
y: side.y * rate + Math.sin(angle) * range * rate
}, {
easing: 'quadIn'
});
cc.tween(rabbonNode)
.by(8, { y: -2000 })
.start();
rabbonFall(rabbonNode);
await asyncDelay(Math.random());
cc.tween(node)
.by(0.15, { x: -10, angle: -10 })
.by(0.3, { x: 20, angle: 20 })
.by(0.15, { x: -10, angle: -10 })
.union()
.repeatForever()
.start();
cc.tween(rabbonNode)
.delay(5)
.to(0.3, { opacity: 0 })
.call(() => {
node.stopAllActions();
node.active = false;
node.parent = null;
node = null;
})
.start();
});
}
async function rabbonFall(node) {
const time = 1 + Math.random();
const offsetX = RandomInt(-200, 200) * time;
await asyncTweenBy(node, time, { x: offsetX, angle: offsetX * 60 / 200 });
rabbonFall(node);
}
\ No newline at end of file
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "f4ede462-f8d7-4069-ba80-915611c058ca", "uuid": "3cf09c30-536f-42ae-83bb-cbb3c5cd93eb",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
/**
* 适配
*/
cc.Class({
extends: cc.Component,
properties: {
UIMax: {
default: [],
type: cc.Node,
displayName: "等比放大"
},
topUI: {
default: [],
type: cc.Widget,
},
bgScaleMax: {
default: [],
type: cc.Node,
displayName: "背景适配"
},
nodeUIOffset: {
default: [],
type: cc.Node,
displayName: "节点偏移"
},
canvasView: {
default: null,
type: cc.Canvas,
displayName: "根节点"
},
isCanvas: {
default: false,
}
},
onLoad: function () { //开启适配
this.widgetList = [];
this.scheduleOnce(function () {
if (!this.isCanvas) {
this.init();
} else {
var canvaSize = this.findCanvas();
var w = (canvaSize.width) / 720;
var h = (canvaSize.height) / 1280;
this.MaxSize = w / h > 1 ? w / h : h / w;
this.setUIMax(this.MaxSize);
this.settopUI(this.MaxSize);
this.setBgScale();
this.setUiPositon();
var scene = cc.director.getScene();
var list = scene.getComponentsInChildren(cc.Widget)
for (var i in list) {
list[i].updateAlignment();
}
}
}, 0);
g.event_mgr.reg("adjustUI", () => {
this.setBgScale();
this.setUiPositon();
});
this.MaxSize = 1;
},
init: function () {
var canvaSize = this.findCanvas();
var diff = canvaSize.width / canvaSize.height;
var bili = 750 / 1334;
if (diff > bili) {
this.canvasView.fitWidth = false;
this.canvasView.fitHeight = true;
} else if (diff < bili) {
this.canvasView.fitWidth = true;
this.canvasView.fitHeight = false;
} else {
this.canvasView.fitWidth = true;
this.canvasView.fitHeight = true;
}
var w = (canvaSize.width) / 750;
var h = (canvaSize.height) / 1334;
this.MaxSize = w / h > 1 ? w / h : h / w;
g.data_mgr.MaxSize = this.MaxSize;
this.setUIMax(this.MaxSize);
this.settopUI(this.MaxSize);
this.setBgScale();
this.setUiPositon();
var scene = cc.director.getScene();
var list = scene.getComponentsInChildren(cc.Widget)
for (var i in list) {
list[i].updateAlignment();
}
},
onDestroy: function () {
g.event_pump.unReg("adjustUI");
},
settopUI: function (s) {
if (!g.data_mgr.phoneInfo) {
return;
}
var top = g.data_mgr.phoneInfo;
top = top * s;
for (var i in this.topUI) {
if (this.topUI[i].perTop == undefined) {
this.topUI[i].perTop = this.topUI[i].top;
} else {
this.topUI[i].top = this.topUI[i].perTop;
}
this.topUI[i].top += top;
console.log(this.topUI[i].top);
}
},
//背景适配
setBgScale: function () {
for (var i in this.bgScaleMax) {
// 1. 先找到 SHOW_ALL 模式适配之后,本节点的实际宽高以及初始缩放值
let scaleForShowAll = Math.min(
cc.view.getCanvasSize().width / this.bgScaleMax[i].width,
cc.view.getCanvasSize().height / this.bgScaleMax[i].height
);
let realWidth = this.bgScaleMax[i].width * scaleForShowAll;
let realHeight = this.bgScaleMax[i].height * scaleForShowAll;
// 2. 基于第一步的数据,再做缩放适配
this.bgScaleMax[i].scale = Math.max(
cc.view.getCanvasSize().width / realWidth,
cc.view.getCanvasSize().height / realHeight
);
}
},
//适配节点位置
setUiPositon: function () {
for (var i in this.nodeUIOffset) {
// 1. 先找到 SHOW_ALL 模式适配之后,本节点的实际宽高以及初始缩放值
let srcScaleForShowAll = Math.min(
cc.view.getCanvasSize().width / 1280,
cc.view.getCanvasSize().height / 720
);
let realWidth = 1280 * srcScaleForShowAll;
let realHeight = 720 * srcScaleForShowAll;
// 2. 基于第一步的数据,再做节点宽高重置
this.nodeUIOffset[i].width = 1280 * (cc.view.getCanvasSize().width / realWidth);
this.nodeUIOffset[i].height = 720 * (cc.view.getCanvasSize().height / realHeight);
}
},
setUIMax: function (size) {
for (var i in this.UIMax) {
if (this.UIMax[i].perScale == undefined) {
this.UIMax[i].perScale = this.UIMax[i].scaleX;
} else {
this.UIMax[i].scaleX = this.UIMax[i].perScale;
this.UIMax[i].scaleY = this.UIMax[i].perScale;
}
this.UIMax[i].scaleX *= size;
this.UIMax[i].scaleY *= size;
}
},
findCanvas: function () {
if (cc.sys.isNative) {
return {
width: cc.view.getFrameSize().width,
height: cc.view.getFrameSize().height
};
} else {
return {
width: cc.game.canvas.clientWidth,
height: cc.game.canvas.clientHeight
};
}
}
});
{
"ver": "1.0.8",
"uuid": "0e963fa9-ea21-492e-a9ae-92a33a8c7456",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "b62d4b1c-d7ed-4c6e-8f1f-f8695a087353",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
cc.Class({
extends: cc.Component,
properties: {
setAnswerId: {
default: "",
displayName: "类型ID"
},
labTitle: {
default: null,
type: cc.Label,
displayName: "标题"
},
},
onLoad() {
this.labTitle.string = g.data_mgr.getSheepfold(this.setAnswerId).word;
this.Event();
},
Event() {
this.m_uuid = g.utils.generateUUID(); //生成一个唯一Id
g.event_mgr.reg("reSetGame", () => {
this.node.getChildByName("Layout").removeAllChildren()
}, this.m_uuid);
},
start() {
},
setAABB() {
var node = this.node
let svLeftBottomPoint = node.parent.convertToWorldSpaceAR(
cc.v2(
node.x - node.width / 2,
node.y - node.height / 2,
)
);
console.log("世界坐标目标点" + svLeftBottomPoint);
// 求出 ScrollView 可视区域在世界坐标系中的矩形(碰撞盒)
let svBBoxRect = cc.rect(
svLeftBottomPoint.x,
svLeftBottomPoint.y,
node.width,
node.height
);
// console.log(Id + ":" + svLeftBottomPoint.x + "," + svLeftBottomPoint.y);
return svBBoxRect
},
});
{
"ver": "1.0.8",
"uuid": "ac02de71-2a2f-4afb-abfa-6ac661b996b7",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// Learn cc.Class:
// - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import { asyncDelay, RandomInt, showFireworks } from "../common/utils";
var effect = cc.Class({
extends: cc.Component,
properties: {
},
ctor: function () {
effect.inst = this;
g.effect = effect;
},
showEffect: function () {
const bg = cc.find('Canvas/bg/connent');
this.showAllFirework(bg, cc.find('paperBase').children);
g.speaker.inst.play_congratulation();
},
showEffect2: function () {
const bg = cc.find('Canvas/bg/connent');
showFireworks(bg, cc.find('RibbonNodeBase').children, cc.v2(0, -400), cc.v2(0, 1000), 200, 200
);
showFireworks(bg, cc.find('RibbonNodeBase').children, cc.v2(-600, -400), cc.v2(200, 1000), 200, 200
);
showFireworks(bg, cc.find('RibbonNodeBase').children, cc.v2(600, -400), cc.v2(-200, 1000), 200, 200
);
},
async showOneFirework(pos, parentNode, nodeList) {
for (let i = 0; i < 3; i++) {
this.showFirework(pos, parentNode, nodeList, 200, 200, 15);
await asyncDelay(0.1);
}
},
async showAllFirework(parentNode, nodeList) {
for (let i = 0; i < 6; i++) {
this.showFirework(cc.v2(0, -parentNode.height / 2), parentNode, nodeList, parentNode.width * 2 / 3, parentNode.height * 1.3);
await asyncDelay(0.1);
}
},
showFirework(pos, parentNode, nodeList, width = 200, height = 200, number = 30) {
for (let i = 0; i < number; i++) {
const quad = this.createQuads(pos, parentNode, nodeList);
const targetX = RandomInt(width / 2, -width / 2);
const targetY = RandomInt(height);
cc.tween(quad)
.by(0.5, { x: targetX })
.by(3, { x: targetX * 2 })
.start();
cc.tween(quad)
.by(0.5, { y: targetY }, { easing: 'quadOut' })
.to(4, { y: -parentNode.height * 2 }, { easing: 'quadIn' })
.removeSelf()
.start();
cc.tween(quad)
.delay(1)
.to(1.5, { opacity: 0 })
.start();
}
},
createQuads(pos, parentNode, nodeList) {
const quadBase = cc.instantiate(nodeList[RandomInt(nodeList.length)]);
quadBase.x = pos.x;
quadBase.y = pos.y;
quadBase.z = pos.z;
quadBase.angle = RandomInt(180);
quadBase.parent = parentNode;
const quad = quadBase.getChildByName('quad');
quad.x = 0;
quad.y = 0;
quad.angle = RandomInt(180);
const paper = quad.getChildByName('paper');
paper.scaleX = Math.random() * 0.5 + 0.5;
paper.scaleY = Math.random() * 0.5 + 0.5;
quadBase.scaleX = Math.random();
cc.tween(quadBase)
.to((1 - quadBase.scaleX) * 0.3, { scaleX: 1 })
.call(() => {
const time = Math.random() * 0.2;
cc.tween(quadBase)
.to(0.1 + time, { scaleX: -1 })
.to(0.1 + time, { scaleX: 1 })
.union()
.repeatForever()
.start();
})
.start();
return quadBase;
},
});
{
"ver": "1.0.8",
"uuid": "0df3ab6c-e62c-47f8-a791-56073deccaed",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
var TouchDragger = cc.Class({
extends: cc.Component,
properties: {
MaxHeight: {
default: "",
displayName: "最大高度"
},
MaxWidth: {
default: "",
displayName: "最大宽度"
},
grid: {
default: null,
type: cc.Prefab,
displayName: "格子预制体"
},
hGrid: {
default: "",
displayName: "单个高度"
},
wGrid: {
default: "",
displayName: "单个宽度"
}
},
ctor: function () {
TouchDragger.inst = this;
g.TouchDragger = TouchDragger;
},
onLoad: function () {
this.arMap = [];
this.isEnd = false;
//是否是第一次执行移动
this.isFirstMove = true;
//初始化格子数据
this.initGridInfo(g.data_mgr.challengeData.IngredientList);
},
start: function () {
this.node.on(cc.Node.EventType.TOUCH_START, this.touchBegan, this);
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.touchMove, this);
this.node.on(cc.Node.EventType.TOUCH_END, this.touchEnd, this);
this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.touchCancel, this);
},
//触摸开始
touchBegan: function (event) {
if (this.isEnd) return;
this.isMove = false;
var posScreen = event.getLocation();//点击事件获取位置
var posNode = this.node.parent.convertToNodeSpaceAR(posScreen);
this.iposBegan = this.getFormatIPos(posNode);
this.iposMove = cc.v2(-1, -1);
if (this.iposBegan.x == -1) return;
var ndBegan = this.arMap[this.iposBegan.y][this.iposBegan.x];
if (!ndBegan.active) {
return;
}
ndBegan.runAction(this.getAction("scale"));
ndBegan.zIndex = 1;
this.deltaPos = ndBegan.x + ndBegan.y;
},
//触摸移动
touchMove: function (event) {
if (this.isEnd || (GodGuide && GodGuide.getTask())) return;
if (this.iposBegan.x == -1) return;
var posScreen = event.getLocation(); //点击事件获取位置
var posNode = this.node.parent.convertToNodeSpaceAR(posScreen);
var iposTouch = this.getFormatIPos(posNode);
if (this.isFirstMove == true) {
this.iposBegan = this.getFormatIPos(posNode);
this.isFirstMove = false;
};
var delta = event.getDelta();
var ndBegan = this.arMap[this.iposBegan.y][this.iposBegan.x];
if (!ndBegan.active) {
return;
}
ndBegan.x += delta.x;
ndBegan.y += delta.y;
var deltaPos = ndBegan.x + ndBegan.y;
if (Math.abs(this.deltaPos - deltaPos) > 10) {
this.isMove = true;
}
this.iposMove = iposTouch;
},
//触摸结束
touchEnd: function (event) {
if (this.isEnd) return;
if (this.iposBegan.x == -1) return;
var ndBegan = this.arMap[this.iposBegan.y][this.iposBegan.x];
if (!ndBegan.active) {
this.isMove = false;
return;
}
if (!this.isMove) {
cc.log("点击了");
ndBegan.stopAllActions();
ndBegan.setScale(1);
ndBegan.runAction(cc.moveTo(0.1, this.getGridOriginPos(this.iposBegan)));
ndBegan.callback && ndBegan.callback();
return
}
this.isFirstMove = true;
this.arMap[this.iposBegan.y][this.iposBegan.x].zIndex = 0;
if (this.iposBegan.x == -1 || this.iposMove.x >= 0 && this.iposMove.y >= 0) {
ndBegan.stopAllActions();
ndBegan.setScale(1);
ndBegan.runAction(cc.moveTo(0.1, this.getGridOriginPos(this.iposMove)));
if (this.iposMove.x != -1) {
var ndMove = this.arMap[this.iposMove.y][this.iposMove.x];
ndMove.stopAllActions();
ndMove.runAction(cc.moveTo(0.1, this.getGridOriginPos(this.iposBegan)));
this.arMap[this.iposMove.y][this.iposMove.x] = ndBegan;
this.arMap[this.iposBegan.y][this.iposBegan.x] = ndMove;
}
} else {
ndBegan.stopAllActions();
ndBegan.setScale(1);
ndBegan.runAction(cc.moveTo(0.1, this.getGridOriginPos(this.iposBegan)));
if (this.iposMove.x != -1) {
var ndMove = this.arMap[this.iposMove.y][this.iposMove.x];
ndMove.stopAllActions();
ndMove.runAction(cc.moveTo(0.1, this.getGridOriginPos(this.iposMove)));
}
}
this.isMove = false;
},
//触摸取消
touchCancel: function (event) {
this.arMap[this.iposBegan.y][this.iposBegan.x].zIndex = 0;
var ndBegan = this.arMap[this.iposBegan.y][this.iposBegan.x];
ndBegan.stopAllActions();
ndBegan.setScale(1);
ndBegan.runAction(cc.moveTo(0.1, this.getGridOriginPos(this.iposBegan)));
if (this.iposMove.x != -1) {
var ndMove = this.arMap[this.iposMove.y][this.iposMove.x];
ndMove.stopAllActions();
ndMove.runAction(cc.moveTo(0.1, this.getGridOriginPos(this.iposMove)));
}
this.isMove = false;
},
//初始化格子数据
initGridInfo: function (list) {
for (var i = this.MaxHeight - 1; i >= 0; --i) {
this.arMap[i] = [];
for (var j = 0; j < this.MaxWidth; ++j) {
var ndGrid = cc.instantiate(this.grid);
ndGrid.parent = this.node;
//获得节点的位置
ndGrid.position = this.getGridOriginPos(cc.v2(j, i));
this.arMap[i][j] = ndGrid;
// ndGrid.getComponent("grid").updateUI(3, 30);
var num = (this.MaxHeight - i - 1) * this.MaxWidth + j;
ndGrid.active = list[num] != undefined;
ndGrid.getComponent("grid").updateUI(list[num], 0);
}
}
},
//获得动作
getAction: function (name) {
if (name === "scale") {
return cc.repeatForever(cc.sequence(cc.scaleTo(0.15, 1.3)
, cc.scaleTo(0.3, 1)));
}
else if (name === "rotate") {
return cc.repeatForever(cc.sequence(cc.rotateBy(0.15, 30), cc.rotateBy(0.3, -60), cc.rotateBy(0.15, 30)));
}
return null;
},
//获得直角坐标
getFormatIPos: function (pos) {
var ipos = cc.v2(Math.floor((pos.x - this.node.x) / this.wGrid), Math.floor((pos.y - this.node.y) / this.hGrid));
if (ipos.x < 0 || ipos.x >= this.MaxWidth || ipos.y < 0 || ipos.y >= this.MaxHeight) {
ipos.x = -1;
}
return ipos;
},
//获得格子起始坐标
getGridOriginPos: function (ipos) {
return cc.v2(10 + (ipos.x + 0.5) * this.wGrid, 10 + (ipos.y + 0.5) * this.hGrid);
},
});
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "ccc66642-cf0e-4b1b-ae3d-c4b18f4fe53a",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
/**
* 游戏主逻辑
*/
var game = cc.Class({
extends: cc.Component,
properties: {
Item_0: {
default: [],
type: cc.Node,
displayName: "预制体"
},
contentArr_2: {
default: [],
type: cc.Node,
displayName: "底下内容2"
},
contentArr_1: {
default: [],
type: cc.Node,
displayName: "目标位置"
},
lb_title: {
default: null,
type: cc.Label,
displayName: "大标题"
},
//先分有几种类型
contType: {
default: [],
type: cc.Node,
displayName: "底下内容2"
}
},
ctor: function () {
game.inst = this;
g.game = game;
},
// 生命周期 onLoad
onLoad() {
//初始化游戏
this.initGame();
if (window.addEventListener) {
window.addEventListener('resize', this.scaleEventCallBack, false)
} else if (window.attachEvent) {
window.attachEvent('resize', this.scaleEventCallBack, false)
}
},
//屏幕缩放
scaleEventCallBack: function () {
g.event_mgr.send("adjustUI");
},
//初始化游戏
initGame: function () {
//获得数据
g.res_mgr.getFormData();
},
setAABB(Id) {
var node = this.contentArr_1[Id]
let svLeftBottomPoint = node.parent.convertToWorldSpaceAR(
cc.v2(
node.x - node.anchorX * node.width / 2,
node.y - node.anchorY * node.height / 2
)
);
// 求出 ScrollView 可视区域在世界坐标系中的矩形(碰撞盒)
let svBBoxRect = cc.rect(
svLeftBottomPoint.x - 120,
svLeftBottomPoint.y - 100,
node.width,
node.height
);
// console.log(Id + ":" + svLeftBottomPoint.x + "," + svLeftBottomPoint.y);
return svBBoxRect
},
//检查当前缩放倍数
checkScale: function (num) {
var scale = 1;
if (num > 2 && num <= 4) {
scale = 0.74
}
if (num > 4) {
scale = 0.65
}
return scale;
},
//添加节点
addItem: function () {
let itemArr = g.data_mgr.getSheepArr();
this.idx = this.checkNodeParent();
g.data_mgr.nowNum = itemArr.length;
itemArr.sort(function () { return Math.random() > 0.5 ? -1 : 1; })
for (var i = 0; i < itemArr.length; i++) {
let newItem_0 = cc.instantiate(this.Item_0[itemArr.length > 14 ? 0 : 1]);
//更新子项
var com = newItem_0.getChildByName("item").getComponent("item");
let itemInfo = itemArr[i];
com.updateUI(itemInfo);
newItem_0.active = true;
//设置类别
let sheepInfo = g.data_mgr.getSheep(i);
newItem_0.getChildByName("item").type = this.checkType(sheepInfo.sheepfoldId);
newItem_0.parent = this.contentArr_2[this.idx];
};
},
//检测放到哪个节点底下
checkNodeParent: function () {
//获取到总列表
var itemArr = g.data_mgr.getSheepArr();
//
if (itemArr.length <= 7) {
this.contentArr_2[1].active = true;
var idx = 1;
} else {
this.contentArr_2[0].active = true;
var idx = 0;
}
return idx;
},
//检查类别
checkType: function (Id) {
for (var i in g.data_mgr.getSheepfoldArr()) {
var sheepfoldInfo = g.data_mgr.getSheepfoldArr()[i];
if (Id == sheepfoldInfo.id) {
return ~~i + 1;
}
}
return -1;
},
//设置目标节点类型
setOptionType: function () {
//设置类型
this.OptionType = g.data_mgr.getSheepfoldArr().length - 3;
},
//更新界面信息
UpdataUi: function () {
//设置目标节点类型
this.setOptionType();
//设置大标题
this.lb_title.string = g.data_mgr.getTitle();
//设置类型
this.contType[this.OptionType].active = true;
//重置UI界面
this.resetUI();
//添加项
this.addItem();
},
//播放标题音效
playAudioTitle: function () {
//获得播放路径
var path = g.data_mgr.data.audio_url;
g.res_mgr.playAudioByUrl(path, (url) => {
g.snd_mgr.playEffect(url, null);
});
},
//重置UI界面
resetUI: function () {
//移除所有子节点
this.contentArr_2[0].removeAllChildren();
this.contentArr_2[1].removeAllChildren();
//移除所有子节点
g.event_mgr.send("reSetGame");
},
//重新开始
onBtnReStart: function () {
g.speaker.inst.play_btn();
//移除所有计时器
this.unscheduleAllCallbacks();
//初始化界面
this.UpdataUi();
g.speaker.inst.play_restart();
},
//游戏开始
gameStart: function () {
console.log("游戏开始:" + g.data_mgr);
//播放一个上面的音乐
this.setAudioInfo(1);
},
checkAnswer(caller, option_i) {
if (caller == undefined) {
return;
}
if (option_i != -1) {
let nodOption = this.contType[this.OptionType].children[option_i - 1]
if (nodOption) {
let AABB = nodOption.getComponent("DragGameOptionObject").setAABB();
let callerAABB = this.getCallerAABB(caller);
var isIntersect = AABB.containsRect(callerAABB);//判断是否被包含
console.log(isIntersect)
if (isIntersect) {
return nodOption;
}
return false
}
}
},
getCallerAABB(caller) {
let svLeftBottomPoint = caller.parent.convertToWorldSpaceAR(
cc.v2(
caller.x,
caller.y
)
);
var posNode_1 = cc.rect(
svLeftBottomPoint.x,
svLeftBottomPoint.y,
0,
0
);
return posNode_1
},
});
{
"ver": "1.0.8",
"uuid": "8b0b794c-7f5e-4e94-82b8-d1c85bc69eb8",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
/**
* item
*/
cc.Class({
extends: cc.Component,
properties: {
Item_name: {
default: null,
type: cc.Label,
displayName: "名字"
},
Item_redName: {
default: null,
type: cc.Label,
displayName: "红色名字"
},
Item_photo: {
default: null,
type: cc.Node,
displayName: "图片"
},
Item_complete: {
default: null,
type: cc.Node,
displayName: "完成显示"
},
},
start: function () {
this.node.on(cc.Node.EventType.TOUCH_START, this.touchBegan, this);
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.touchMove, this);
this.node.on(cc.Node.EventType.TOUCH_END, this.touchEnd, this);
this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.touchCancel, this);
},
//触摸开始
touchBegan: function (event) {
this.isMove = false;
this.deltaPos = this.node.x + this.node.y;
},
//触摸移动
touchMove: function (event) {
if (this.node.isComplent || this._isRotate) {
return
}
var delta = event.getDelta();
this.node.x += delta.x;
this.node.y += delta.y;
var deltaPos = this.node.x + this.node.y;
if (Math.abs(this.deltaPos - deltaPos) > 10) {
this.isMove = true;
}
},
//触摸结束
touchEnd: function (event) {
//获得世界坐标
var posScreen = event.getLocation(); //点击事件获取位置
var posNode = this.node.convertToNodeSpaceAR(posScreen);
console.log("世界坐标" + posNode);
if (!this.isMove) {
cc.log("点击了");
this.onBtnRotate();
//回到原来的位置
this.node.x = 0;
this.node.y = 0;
return
}
var answer = g.game.inst.checkAnswer(this.node, this.node.type);
if (answer) {
this.setItemState(answer);
} else {
this.errorEffect();
}
},
setItemState: function (content) {
this.Item_complete.active = true;
this.node.isComplent = true;
g.data_mgr.nowNum -= 1;
if (g.data_mgr.nowNum == 0) {
setTimeout(() => {
g.speaker.inst.play_congratulation();
g.effect.inst.showEffect2();
}, 500)
}
g.speaker.inst.play_good();
var newItem_temp = cc.instantiate(g.game.inst.Item_0[2]);
content.getChildByName("db").active = true;
content.getChildByName("db").getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1);
if (this.node.width >= 150) {
this.node.scale = 0.6;
this.node.x = 0;
}
this.node.parent = newItem_temp;
newItem_temp.parent = content.getChildByName("Layout");
this.node.x = 0;
this.node.y = 0;
},
errorEffect: function () {
g.speaker.inst.play_error();
this.node.getChildByName("red").active = true;
cc.tween(this.node)
.to(0.1, { scaleY: 0.9, scaleX: 1.1 })
.to(0.15, { scaleY: 1.1, scaleX: 0.9 })
.to(0.1, { scaleY: 1, scaleX: 1 })
.start()
setTimeout(() => {
this.node.getChildByName("red").active = false;
//回到原来的位置
this.node.x = 0;
this.node.y = 0;
}, 500)
},
//触摸取消
touchCancel: function (event) {
//回到原来的位置
this.node.x = 0;
this.node.y = 0;
this.isMove = false;
},
//更新界面ui
updateUI: function (Info) {
//当前数据
this.itemInfo = Info;
//初始化数据
this.InitData();
//是否已经完成了
this.node.isComplent = false;
},
//点击翻面
onBtnRotate: function () {
//翻面音效
g.speaker.inst.play_btn();
var scaleX = this.node.scaleY;
this._isRotate = true;
setTimeout(() => {
this._isRotate = false;
}, 600)
cc.tween(this.node)
.to(0.3, { scaleX: 0 })
.call(() => {
if (this.Item_name.node.active) {
this.Item_name.node.active = false;
this.Item_photo.active = true;
this.Item_redName.node.active = false;
} else {
this.Item_name.node.active = true;
this.Item_photo.active = false;
this.Item_redName.node.active = true;
}
})
.to(0.3, { scaleX: scaleX })
.start();
},
//初始化信息
InitData: function () {
//设置图片
g.res_mgr.getSpriteFrimeByUrl(this.itemInfo.picUrl, (list) => {
this.Item_photo.getComponent(cc.Sprite).spriteFrame = list;
this.photoScare(this.Item_photo, g.game.inst.idx);
// this.photoScare(this.nodeState[2].getChildByName("spt_item"), 1);
});
//设置名字
this.Item_name.string = this.itemInfo.word;
//设置红色名字
this.Item_redName.string = this.itemInfo.word;
},
//图片适配
photoScare: function (node, type) {
var maxNum = type == 0 ? 50 : 75;
let maxSize = Math.min(maxNum / node.height, maxNum / node.width);
if (node.perScale == undefined) {
node.perScale = node.scaleX;
} else {
node.scaleX = node.perScale;
node.scaleY = node.perScale;
}
node.scaleX *= maxSize;
node.scaleY *= maxSize;
},
});
{
"ver": "1.0.8",
"uuid": "e729b387-9d1a-47a4-9d3d-076fd1ddc360",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -5,9 +5,7 @@ ...@@ -5,9 +5,7 @@
* 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";
var Op = Object.prototype; var Op = Object.prototype;
...@@ -80,9 +78,9 @@ cc.sys.capabilities["touches"] = true; ...@@ -80,9 +78,9 @@ cc.sys.capabilities["touches"] = true;
// .constructor.prototype properties for functions that return Generator // .constructor.prototype properties for functions that return Generator
// objects. For full spec compliance, you may wish to configure your // objects. For full spec compliance, you may wish to configure your
// minifier not to mangle the names of these two functions. // minifier not to mangle the names of these two functions.
function Generator() { } function Generator() {}
function GeneratorFunction() { } function GeneratorFunction() {}
function GeneratorFunctionPrototype() { } function GeneratorFunctionPrototype() {}
// This is a polyfill for %IteratorPrototype% for environments that // This is a polyfill for %IteratorPrototype% for environments that
// don't natively support it. // don't natively support it.
...@@ -94,8 +92,8 @@ cc.sys.capabilities["touches"] = true; ...@@ -94,8 +92,8 @@ cc.sys.capabilities["touches"] = true;
var getProto = Object.getPrototypeOf; var getProto = Object.getPrototypeOf;
var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
if (NativeIteratorPrototype && if (NativeIteratorPrototype &&
NativeIteratorPrototype !== Op && NativeIteratorPrototype !== Op &&
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
// This environment has a native %IteratorPrototype%; use it instead // This environment has a native %IteratorPrototype%; use it instead
// of the polyfill. // of the polyfill.
IteratorPrototype = NativeIteratorPrototype; IteratorPrototype = NativeIteratorPrototype;
...@@ -111,24 +109,24 @@ cc.sys.capabilities["touches"] = true; ...@@ -111,24 +109,24 @@ cc.sys.capabilities["touches"] = true;
// Helper for defining the .next, .throw, and .return methods of the // Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method. // Iterator interface in terms of a single ._invoke method.
function defineIteratorMethods(prototype) { function defineIteratorMethods(prototype) {
["next", "throw", "return"].forEach(function (method) { ["next", "throw", "return"].forEach(function(method) {
prototype[method] = function (arg) { prototype[method] = function(arg) {
return this._invoke(method, arg); return this._invoke(method, arg);
}; };
}); });
} }
runtime.isGeneratorFunction = function (genFun) { runtime.isGeneratorFunction = function(genFun) {
var ctor = typeof genFun === "function" && genFun.constructor; var ctor = typeof genFun === "function" && genFun.constructor;
return ctor return ctor
? ctor === GeneratorFunction || ? ctor === GeneratorFunction ||
// For the native GeneratorFunction constructor, the best we can // For the native GeneratorFunction constructor, the best we can
// do is to check its .name property. // do is to check its .name property.
(ctor.displayName || ctor.name) === "GeneratorFunction" (ctor.displayName || ctor.name) === "GeneratorFunction"
: false; : false;
}; };
runtime.mark = function (genFun) { runtime.mark = function(genFun) {
if (Object.setPrototypeOf) { if (Object.setPrototypeOf) {
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
} else { } else {
...@@ -145,7 +143,7 @@ cc.sys.capabilities["touches"] = true; ...@@ -145,7 +143,7 @@ cc.sys.capabilities["touches"] = true;
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `hasOwn.call(value, "__await")` to determine if the yielded value is // `hasOwn.call(value, "__await")` to determine if the yielded value is
// meant to be awaited. // meant to be awaited.
runtime.awrap = function (arg) { runtime.awrap = function(arg) {
return { __await: arg }; return { __await: arg };
}; };
...@@ -158,16 +156,16 @@ cc.sys.capabilities["touches"] = true; ...@@ -158,16 +156,16 @@ cc.sys.capabilities["touches"] = true;
var result = record.arg; var result = record.arg;
var value = result.value; var value = result.value;
if (value && if (value &&
typeof value === "object" && typeof value === "object" &&
hasOwn.call(value, "__await")) { hasOwn.call(value, "__await")) {
return Promise.resolve(value.__await).then(function (value) { return Promise.resolve(value.__await).then(function(value) {
invoke("next", value, resolve, reject); invoke("next", value, resolve, reject);
}, function (err) { }, function(err) {
invoke("throw", err, resolve, reject); invoke("throw", err, resolve, reject);
}); });
} }
return Promise.resolve(value).then(function (unwrapped) { return Promise.resolve(value).then(function(unwrapped) {
// When a yielded Promise is resolved, its final value becomes // When a yielded Promise is resolved, its final value becomes
// the .value of the Promise<{value,done}> result for the // the .value of the Promise<{value,done}> result for the
// current iteration. If the Promise is rejected, however, the // current iteration. If the Promise is rejected, however, the
...@@ -193,7 +191,7 @@ cc.sys.capabilities["touches"] = true; ...@@ -193,7 +191,7 @@ cc.sys.capabilities["touches"] = true;
function enqueue(method, arg) { function enqueue(method, arg) {
function callInvokeWithMethodAndArg() { function callInvokeWithMethodAndArg() {
return new Promise(function (resolve, reject) { return new Promise(function(resolve, reject) {
invoke(method, arg, resolve, reject); invoke(method, arg, resolve, reject);
}); });
} }
...@@ -233,16 +231,16 @@ cc.sys.capabilities["touches"] = true; ...@@ -233,16 +231,16 @@ cc.sys.capabilities["touches"] = true;
// Note that simple async functions are implemented on top of // Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of // AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator. // the final result produced by the iterator.
runtime.async = function (innerFn, outerFn, self, tryLocsList) { runtime.async = function(innerFn, outerFn, self, tryLocsList) {
var iter = new AsyncIterator( var iter = new AsyncIterator(
wrap(innerFn, outerFn, self, tryLocsList) wrap(innerFn, outerFn, self, tryLocsList)
); );
return runtime.isGeneratorFunction(outerFn) return runtime.isGeneratorFunction(outerFn)
? iter // If outerFn is a generator, return the full iterator. ? iter // If outerFn is a generator, return the full iterator.
: iter.next().then(function (result) { : iter.next().then(function(result) {
return result.done ? result.value : iter.next(); return result.done ? result.value : iter.next();
}); });
}; };
function makeInvokeMethod(innerFn, self, context) { function makeInvokeMethod(innerFn, self, context) {
...@@ -368,7 +366,7 @@ cc.sys.capabilities["touches"] = true; ...@@ -368,7 +366,7 @@ cc.sys.capabilities["touches"] = true;
var info = record.arg; var info = record.arg;
if (!info) { if (! info) {
context.method = "throw"; context.method = "throw";
context.arg = new TypeError("iterator result is not an object"); context.arg = new TypeError("iterator result is not an object");
context.delegate = null; context.delegate = null;
...@@ -416,11 +414,11 @@ cc.sys.capabilities["touches"] = true; ...@@ -416,11 +414,11 @@ cc.sys.capabilities["touches"] = true;
// iterator prototype chain incorrectly implement this, causing the Generator // iterator prototype chain incorrectly implement this, causing the Generator
// object to not be returned from this call. This ensures that doesn't happen. // object to not be returned from this call. This ensures that doesn't happen.
// See https://github.com/facebook/regenerator/issues/274 for more details. // See https://github.com/facebook/regenerator/issues/274 for more details.
Gp[iteratorSymbol] = function () { Gp[iteratorSymbol] = function() {
return this; return this;
}; };
Gp.toString = function () { Gp.toString = function() {
return "[object Generator]"; return "[object Generator]";
}; };
...@@ -455,7 +453,7 @@ cc.sys.capabilities["touches"] = true; ...@@ -455,7 +453,7 @@ cc.sys.capabilities["touches"] = true;
this.reset(true); this.reset(true);
} }
runtime.keys = function (object) { runtime.keys = function(object) {
var keys = []; var keys = [];
for (var key in object) { for (var key in object) {
keys.push(key); keys.push(key);
...@@ -525,7 +523,7 @@ cc.sys.capabilities["touches"] = true; ...@@ -525,7 +523,7 @@ cc.sys.capabilities["touches"] = true;
Context.prototype = { Context.prototype = {
constructor: Context, constructor: Context,
reset: function (skipTempReset) { reset: function(skipTempReset) {
this.prev = 0; this.prev = 0;
this.next = 0; this.next = 0;
// Resetting context._sent for legacy support of Babel's // Resetting context._sent for legacy support of Babel's
...@@ -543,15 +541,15 @@ cc.sys.capabilities["touches"] = true; ...@@ -543,15 +541,15 @@ cc.sys.capabilities["touches"] = true;
for (var name in this) { for (var name in this) {
// Not sure about the optimal order of these conditions: // Not sure about the optimal order of these conditions:
if (name.charAt(0) === "t" && if (name.charAt(0) === "t" &&
hasOwn.call(this, name) && hasOwn.call(this, name) &&
!isNaN(+name.slice(1))) { !isNaN(+name.slice(1))) {
this[name] = undefined; this[name] = undefined;
} }
} }
} }
}, },
stop: function () { stop: function() {
this.done = true; this.done = true;
var rootEntry = this.tryEntries[0]; var rootEntry = this.tryEntries[0];
...@@ -563,7 +561,7 @@ cc.sys.capabilities["touches"] = true; ...@@ -563,7 +561,7 @@ cc.sys.capabilities["touches"] = true;
return this.rval; return this.rval;
}, },
dispatchException: function (exception) { dispatchException: function(exception) {
if (this.done) { if (this.done) {
throw exception; throw exception;
} }
...@@ -581,7 +579,7 @@ cc.sys.capabilities["touches"] = true; ...@@ -581,7 +579,7 @@ cc.sys.capabilities["touches"] = true;
context.arg = undefined; context.arg = undefined;
} }
return !!caught; return !! caught;
} }
for (var i = this.tryEntries.length - 1; i >= 0; --i) { for (var i = this.tryEntries.length - 1; i >= 0; --i) {
...@@ -623,22 +621,22 @@ cc.sys.capabilities["touches"] = true; ...@@ -623,22 +621,22 @@ cc.sys.capabilities["touches"] = true;
} }
}, },
abrupt: function (type, arg) { abrupt: function(type, arg) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) { for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i]; var entry = this.tryEntries[i];
if (entry.tryLoc <= this.prev && if (entry.tryLoc <= this.prev &&
hasOwn.call(entry, "finallyLoc") && hasOwn.call(entry, "finallyLoc") &&
this.prev < entry.finallyLoc) { this.prev < entry.finallyLoc) {
var finallyEntry = entry; var finallyEntry = entry;
break; break;
} }
} }
if (finallyEntry && if (finallyEntry &&
(type === "break" || (type === "break" ||
type === "continue") && type === "continue") &&
finallyEntry.tryLoc <= arg && finallyEntry.tryLoc <= arg &&
arg <= finallyEntry.finallyLoc) { arg <= finallyEntry.finallyLoc) {
// Ignore the finally entry if control is not jumping to a // Ignore the finally entry if control is not jumping to a
// location outside the try/catch block. // location outside the try/catch block.
finallyEntry = null; finallyEntry = null;
...@@ -657,13 +655,13 @@ cc.sys.capabilities["touches"] = true; ...@@ -657,13 +655,13 @@ cc.sys.capabilities["touches"] = true;
return this.complete(record); return this.complete(record);
}, },
complete: function (record, afterLoc) { complete: function(record, afterLoc) {
if (record.type === "throw") { if (record.type === "throw") {
throw record.arg; throw record.arg;
} }
if (record.type === "break" || if (record.type === "break" ||
record.type === "continue") { record.type === "continue") {
this.next = record.arg; this.next = record.arg;
} else if (record.type === "return") { } else if (record.type === "return") {
this.rval = this.arg = record.arg; this.rval = this.arg = record.arg;
...@@ -676,7 +674,7 @@ cc.sys.capabilities["touches"] = true; ...@@ -676,7 +674,7 @@ cc.sys.capabilities["touches"] = true;
return ContinueSentinel; return ContinueSentinel;
}, },
finish: function (finallyLoc) { finish: function(finallyLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) { for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i]; var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) { if (entry.finallyLoc === finallyLoc) {
...@@ -687,7 +685,7 @@ cc.sys.capabilities["touches"] = true; ...@@ -687,7 +685,7 @@ cc.sys.capabilities["touches"] = true;
} }
}, },
"catch": function (tryLoc) { "catch": function(tryLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) { for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i]; var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) { if (entry.tryLoc === tryLoc) {
...@@ -705,7 +703,7 @@ cc.sys.capabilities["touches"] = true; ...@@ -705,7 +703,7 @@ cc.sys.capabilities["touches"] = true;
throw new Error("illegal catch attempt"); throw new Error("illegal catch attempt");
}, },
delegateYield: function (iterable, resultName, nextLoc) { delegateYield: function(iterable, resultName, nextLoc) {
this.delegate = { this.delegate = {
iterator: values(iterable), iterator: values(iterable),
resultName: resultName, resultName: resultName,
...@@ -725,5 +723,5 @@ cc.sys.capabilities["touches"] = true; ...@@ -725,5 +723,5 @@ cc.sys.capabilities["touches"] = true;
// In sloppy mode, unbound `this` refers to the global object, fallback to // In sloppy mode, unbound `this` refers to the global object, fallback to
// Function constructor if we're in global strict mode. That is sadly a form // Function constructor if we're in global strict mode. That is sadly a form
// of indirect eval which violates Content Security Policy. // of indirect eval which violates Content Security Policy.
(function () { return this })() || Function("return this")() (function() { return this })() || Function("return this")()
); );
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "b54300af-b8e5-4b4e-aa2f-9ac1cef7b598", "uuid": "e5afe4a3-c16b-4f1d-acd8-c5eb68d573b3",
"isPlugin": true, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
"loadPluginInEditor": false, "loadPluginInEditor": false,
......
/**
* 音效
*/
var speaker = cc.Class({
extends: cc.Component,
properties: {
eff_btn: {
default: null,
type: cc.AudioClip,
displayName: "点击音效"
},
eff_congratulation: {
default: null,
type: cc.AudioClip,
displayName: "撒花音效"
},
eff_error: {
default: null,
type: cc.AudioClip,
displayName: "点击错误音效"
},
eff_good: {
default: null,
type: cc.AudioClip,
displayName: "点击正确音效"
},
eff_showPop: {
default: null,
type: cc.AudioClip,
displayName: "显示弹窗音效"
},
eff_start: {
default: null,
type: cc.AudioClip,
displayName: "游戏开始音效"
},
eff_open: {
default: null,
type: cc.AudioClip,
displayName: "拉开窗帘"
},
eff_restart: {
default: null,
type: cc.AudioClip,
displayName: "重新开始"
},
},
ctor: function () {
speaker.inst = this;
g.speaker = speaker;
},
//点击按钮
play_btn: function () {
g.snd_mgr.playEffect(this.eff_btn);
},
//撒花音效
play_congratulation: function () {
g.snd_mgr.playEffect(this.eff_congratulation);
},
//答错
play_error: function () {
g.snd_mgr.playEffect(this.eff_error);
},
//答对
play_good: function (cb) {
g.snd_mgr.playEffect(this.eff_good, cb);
},
//显示弹窗
play_showPop: function () {
g.snd_mgr.playEffect(this.eff_showPop);
},
//游戏开始
play_start: function (cb) {
g.snd_mgr.playEffect(this.eff_start, cb);
},
//拉开窗帘
play_open: function () {
g.snd_mgr.playEffect(this.eff_open);
},
//重新开始
play_restart: function () {
g.snd_mgr.playEffect(this.eff_restart);
},
});
{
"ver": "1.0.8",
"uuid": "ab52071c-b063-4dc5-8f90-7b771a4d0e68",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "739e697c-eeb0-400c-b62d-7d1da103d577",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
/**
* 数据管理器
*/
g.data_mgr = {
data: null,//表所有数据
nowNum: null,//剩余个数
//获得默认数据
getDefaultData() {
const dataJson = {
"sheepfoldArr": [
{ "id": "162373800016117r8ti", "word": "标题1" },
{ "id": "1623738000162o9u566", "word": "标题2" },
{ "id": "3", "word": "标题3" },
{ "id": "4", "word": "标题4" },
{ "id": "4", "word": "标题4" }
],
"sheepArr": [
{ "sheepfoldId": "162373800016117r8ti", "word": "aaa", "picUrl": "http://staging-teach.cdn.ireadabc.com/77d34b5a7f2895e9319d4485a84a1b2b.png" },
{ "word": "aa", "sheepfoldId": "1623738000162o9u566", "picUrl": "http://staging-teach.cdn.ireadabc.com/be3debcc0598cfdde8a9e1ad2324743e.png" },
{ "word": "12", "sheepfoldId": "4", "picUrl": "http://staging-teach.cdn.ireadabc.com/be3debcc0598cfdde8a9e1ad2324743e.png" },
{ "word": "3", "sheepfoldId": "3", "picUrl": "http://staging-teach.cdn.ireadabc.com/be3debcc0598cfdde8a9e1ad2324743e.png" },
{ "sheepfoldId": "1623738000162o9u566", "picUrl": "http://staging-teach.cdn.ireadabc.com/be3debcc0598cfdde8a9e1ad2324743e.png", "word": "fgsdfg" },
{ "sheepfoldId": "162373800016117r8ti", "picUrl": "http://staging-teach.cdn.ireadabc.com/77d34b5a7f2895e9319d4485a84a1b2b.png", "word": "gdfa" }],
"title": "asdfa",
"audio_url": "http://staging-teach.cdn.ireadabc.com/032ce2b956871f7bc7b200d0ebbb7afc.mp3"
}
const data = dataJson;
// const data = JSON.parse(dataJson);
// const data = [];
return data;
},
//获得标题
getTitle() {
return this.data.title;
},
//获得表单信息
getSheepfoldArr() {
return this.data.sheepfoldArr;
},
//获得表单信息
getSheepfold(num) {
return this.data.sheepfoldArr[num];
},
//获得所有选项
getSheepArr() {
return this.data.sheepArr;
},
//获得单项信息
getSheep(num) {
return this.data.sheepArr[num];
},
//获取当前整页数据
getPageInfo: function () {
return this.data.contentObj.pageArr[this.pageId].pageInfo;
},
//获得整条数据
getResultInfo: function (id) {
var pageInfo = this.data.contentObj.pageArr[this.pageId].pageInfo;
return pageInfo[id];
},
//处理数据
proGameData: function () {
this.preload();
console.log("数据处理完毕:");
},
preload() {
cc.assetManager.loadAny(null, null, null, (err, data) => {
//结束回调
this.loadEnd();
if (window && window["air"]) {
window["air"].hideAirClassLoading();
}
cc.debug.setDisplayStats(false);
});
},
loadEnd() {
//更新游戏界面信息
g.game.inst.UpdataUi();
g.game.inst.isLoadEnd = true;
},
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "91e03520-a8ad-4317-a914-1850e6e64926",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// 事件汞
let eventList = {}; // 响应列表(元素结构:eventName,[[target:cb]])
g.event_mgr = {
// 注册事件-响应 入参:事件名、响应、目标名
reg: function (eventName, cb, target) {
var event = eventList[eventName];
if (!event) {
event = eventList[eventName] = {};
}
event[target] = cb;
},
// 注销事件-响应 入参:事件名、目标名
unReg: function (eventName, target) {
var event = eventList[eventName];
if (event) {
if (event[target]) {
event[target] = null;
}
}
},
unRegName: function (eventName) {
eventList[eventName] = {};
},
// 广播事件 入参:事件名、参数
send: function (eventName, params) {
var event = eventList[eventName];
if (event) {
for (var target in event) {
var cb = event[target];
if (cb) {
cb(params);
}
}
}
},
getReglist: function () {
return eventList;
}
};
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "b8bf01c9-341f-4994-91ea-ff45a2f9d150",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// localStorage封装
g.local_storage = {
// 背景音乐音量
getMusicVolume: function () {
var vol = cc.sys.localStorage.getItem("music");
return vol;
},
setMusicVolume: function (vol) {
cc.sys.localStorage.setItem('music', vol)
},
// 音效音量
getEffectsVolume: function () {
var vol = cc.sys.localStorage.getItem("effect");
return vol;
},
setEffectsVolume: function (vol) {
cc.sys.localStorage.setItem('effect', vol);
},
};
{
"ver": "1.0.8",
"uuid": "0d515142-090e-49ac-aea8-19c7b34f8cb4",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
/**
* 资源管理器
*/
g.res_mgr = {
//获得表数据数据
getFormData() {
console.log('初始化数据');
try {
window.courseware.getData((res) => {
//存入数据管理器
g.data_mgr.data = res;
//数据处理
g.data_mgr.proGameData();
console.log("获得表单数据:" + res);
});
} catch (error) {
//console.error('没有查找到courseware.getData方法', error);
//获得默认数据
g.data_mgr.data = g.data_mgr.getDefaultData();
//数据处理
g.data_mgr.proGameData();
}
},
//得到图片资源
getSpriteFrimeByUrl(url, cb) {
cc.assetManager.loadRemote(url, cc.SpriteFrame, (e, sp) => {
const spriteFrame = new cc.SpriteFrame(sp)
cb && cb(spriteFrame);
});
},
playAudioByUrl(audio_url, cb) {
if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
cb && cb(audioClip);
});
}
},
//加载龙骨
loadSpine(animationDisplay, Info) {
if (Info.type == 'Image') {
return;
}
cc.assetManager.loadAny([{ url: Info.tex_json, ext: '.txt' }, { url: Info.ske_json, ext: '.txt' }], (error, assets) => {
if (error) {
console.log(error)
}
else {
cc.assetManager.loadRemote(Info.tex_png, (error, texture) => {
if (error) {
console.log(error)
}
else {
var atlas = new dragonBones.DragonBonesAtlasAsset();
atlas._uuid = Info.tex_json;
atlas.atlasJson = assets[0];
atlas.texture = texture;
var asset = new dragonBones.DragonBonesAsset();
asset._uuid = Info.ske_json;
asset.dragonBonesJson = assets[1];
animationDisplay.dragonAtlasAsset = atlas;
animationDisplay.dragonAsset = asset;
let data = asset._dragonBonesJsonData.armature[0];
if (!data) {
return;
}
animationDisplay.armatureName = data.name;
g.data_mgr.dragonName = data.animation[0].name;
animationDisplay.node.active = true;
}
});
}
});
},
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "7121d1fd-fef5-46f9-ae16-ffc9aa7f5e16",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// 声音管理器
g.snd_mgr = {
bgmId: -1, // 背景音乐的音频ID
effIds: [], // 音效的音频ID列表(由cc.audioEngine保证音频ID不重复)
bgmVol: 1, // 背景音乐音量
neweffId: null, //保存上一个音效ID
effVol: 1, // 音效音量
pausebgVol: 1,
pauseeffVol: 1,
sndNativeUrls: {},
newsnd: null,
init: function () {
var local_storage = g.local_storage;
var music_vol = local_storage.getMusicVolume();
var effect_vol = local_storage.getEffectsVolume();
music_vol != undefined && music_vol + "" != "" && this.setMusicVolume(music_vol);
effect_vol != undefined && effect_vol + "" != "" && this.setEffectsVolume(effect_vol);
},
delAudId: function (id) {
if (id == this.bgmId) {
this.bgmId = -1;
return;
}
for (var i = 0; i < this.effIds.length; ++i) {
if (this.effIds[i] == id) {
this.effIds.splice(i, 1);
return;
}
}
},
playMusic: function (snd, _loop, finishCB) {
if (!snd) return;
this.newsnd = snd;
var loop = _loop ? false : true; // 除非指定为false,否则默认为true
// if (g.configs.platform == "vo") {
// this.bgmId = cc.audioEngine.play(snd, loop);
// return;
// }
this.bgmId = cc.audioEngine.playMusic(snd, loop);
// 播放完成回调
if (finishCB) {
cc.audioEngine.setFinishCallback(this.bgmId, function () {
finishCB();
});
}
},
playEffect: function (snd, finishCB) {
if (!snd || this.effVol == 0) return;
var id = cc.audioEngine.playEffect(snd, false); // 音效限定不能重复播放
this.playaudioEffect(id, finishCB);
},
//播放音效
playaudioEffect: function (id, finishCB) {
var self = this;
this.neweffId = id;
this.effIds.push(id);
// 播放完记得删ID
cc.audioEngine.setFinishCallback(id, function () {
self.delAudId(id);
finishCB && finishCB();
});
},
pauseVolume: function () {
cc.audioEngine.stopAll();
},
resumeVolume: function () {
if (this.newsnd != null) {
cc.audioEngine.playMusic(this.newsnd)
}
},
setMusicVolume: function (percent) {
this.bgmVol = percent;
cc.audioEngine.setMusicVolume(~~percent);
},
setEffectsVolume: function (percent) {
this.effVol = percent;
cc.audioEngine.setEffectsVolume(~~percent);
cc.audioEngine.setMusicVolume(~~this.bgmVol);
},
};
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "fb034e6e-0e2d-4e5e-8a3a-b9a12ff90a0d",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "9a79969a-0506-48d4-bc98-3c05d109b027", "uuid": "4f778c67-bd48-4376-9378-cb16739258db",
"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": { "3": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5", "uuid": "23e0b0fe-51e8-4468-8f63-be136f646dc0",
"rawTextureUuid": "9a79969a-0506-48d4-bc98-3c05d109b027", "rawTextureUuid": "4f778c67-bd48-4376-9378-cb16739258db",
"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": "56d2223c-07c0-4715-a592-b607902a0e17",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 29,
"height": 29,
"platformSettings": {},
"subMetas": {
"Img_paper": {
"ver": "1.0.4",
"uuid": "e73ee213-5760-4419-a7ca-7ef48e02f398",
"rawTextureUuid": "56d2223c-07c0-4715-a592-b607902a0e17",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 29,
"height": 29,
"rawWidth": 29,
"rawHeight": 29,
"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": "3d37dd11-82ee-4b16-84f2-edaa2512d255",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg": { "bg": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "8288e3d4-4c75-4b27-8f01-f7014417f4dd", "uuid": "add33536-3cb4-41fa-942b-28c25913bafe",
"rawTextureUuid": "e1b4d971-9876-4832-803a-5a321964a78b", "rawTextureUuid": "3d37dd11-82ee-4b16-84f2-edaa2512d255",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f", "uuid": "f425de01-bf87-4009-9848-02da14f7e6b2",
"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": 1280,
"height": 336, "height": 720,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"1orange": { "bg_2": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "43d1e79d-6de8-4dcb-b8ce-d767df7913aa", "uuid": "b8cc1d07-221f-4f98-a6f3-e7e36e13624f",
"rawTextureUuid": "efa5fa09-a4dd-4bfc-ab7e-17c19f85408f", "rawTextureUuid": "f425de01-bf87-4009-9848-02da14f7e6b2",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": -0.5, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 1, "trimY": 0,
"width": 366, "width": 1280,
"height": 335, "height": 720,
"rawWidth": 366, "rawWidth": 1280,
"rawHeight": 336, "rawHeight": 720,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "f59901e3-76d1-45da-b36f-d3f0a7c6cef3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 36,
"height": 24,
"platformSettings": {},
"subMetas": {
"bg_sahua": {
"ver": "1.0.4",
"uuid": "130348e9-f1a0-4858-8d2a-dfd298bc57f1",
"rawTextureUuid": "f59901e3-76d1-45da-b36f-d3f0a7c6cef3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 36,
"height": 24,
"rawWidth": 36,
"rawHeight": 24,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "fc6370a0-82fd-4898-a797-6662def91593",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 548,
"height": 398,
"platformSettings": {},
"subMetas": {
"connent_1": {
"ver": "1.0.4",
"uuid": "7336489a-cf3f-42c1-9810-6677b958df0e",
"rawTextureUuid": "fc6370a0-82fd-4898-a797-6662def91593",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 548,
"height": 398,
"rawWidth": 548,
"rawHeight": 398,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b9684ac2-fd64-4d23-bf37-9e87dc0b229f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 520,
"height": 370,
"platformSettings": {},
"subMetas": {
"connent_2": {
"ver": "1.0.4",
"uuid": "d57838ee-9381-4ad6-86a1-b7e56ef37c63",
"rawTextureUuid": "b9684ac2-fd64-4d23-bf37-9e87dc0b229f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 520,
"height": 370,
"rawWidth": 520,
"rawHeight": 370,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2d293516-23d5-4571-8796-58c20ca11442",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 488,
"height": 308,
"platformSettings": {},
"subMetas": {
"connent_3": {
"ver": "1.0.4",
"uuid": "4ef17b9f-5f8f-4b95-b62f-2fad213f8bb9",
"rawTextureUuid": "2d293516-23d5-4571-8796-58c20ca11442",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 488,
"height": 308,
"rawWidth": 488,
"rawHeight": 308,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "66a78f75-1416-4399-82c0-c00285b2734c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 520,
"height": 370,
"platformSettings": {},
"subMetas": {
"connent_4": {
"ver": "1.0.4",
"uuid": "5b44835f-0fe4-4214-8407-3a52a45c952c",
"rawTextureUuid": "66a78f75-1416-4399-82c0-c00285b2734c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 520,
"height": 370,
"rawWidth": 520,
"rawHeight": 370,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "d582359e-924e-4ee9-9964-1fc4bb417e71", "uuid": "56e453f1-51dd-4d08-b319-dc671f58c19e",
"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": 376,
"height": 67, "height": 413,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"btn_right": { "frame1": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59", "uuid": "1b566307-5d19-4a00-a38c-5e4b7f1332b6",
"rawTextureUuid": "d582359e-924e-4ee9-9964-1fc4bb417e71", "rawTextureUuid": "56e453f1-51dd-4d08-b319-dc671f58c19e",
"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": 376,
"height": 66, "height": 413,
"rawWidth": 61, "rawWidth": 376,
"rawHeight": 67, "rawHeight": 413,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "d3c21513-1f2a-4de4-9439-d9013e9677ef",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 279,
"height": 414,
"platformSettings": {},
"subMetas": {
"frame2": {
"ver": "1.0.4",
"uuid": "4ef009d7-b734-4590-b46b-e1dbdbab8526",
"rawTextureUuid": "d3c21513-1f2a-4de4-9439-d9013e9677ef",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 279,
"height": 414,
"rawWidth": 279,
"rawHeight": 414,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9d320ba3-2636-4760-9c59-7416390ebcd3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 218,
"height": 414,
"platformSettings": {},
"subMetas": {
"frame3": {
"ver": "1.0.4",
"uuid": "e8d63466-f3b8-4d84-aed7-e1c94a02c1b6",
"rawTextureUuid": "9d320ba3-2636-4760-9c59-7416390ebcd3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 218,
"height": 414,
"rawWidth": 218,
"rawHeight": 414,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0dcb46f1-69e4-437e-a4af-1d0f6d1e9605",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 178,
"height": 414,
"platformSettings": {},
"subMetas": {
"frame4": {
"ver": "1.0.4",
"uuid": "b49d4aab-ee23-4524-a185-69f612f16191",
"rawTextureUuid": "0dcb46f1-69e4-437e-a4af-1d0f6d1e9605",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 178,
"height": 414,
"rawWidth": 178,
"rawHeight": 414,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "57c01134-cfe8-4c44-b87d-8214f18b3462",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 120,
"height": 63,
"platformSettings": {},
"subMetas": {
"item_bg": {
"ver": "1.0.4",
"uuid": "b4b3adb0-395b-4a27-bbbb-7b8f6bbc8cc4",
"rawTextureUuid": "57c01134-cfe8-4c44-b87d-8214f18b3462",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 120,
"height": 63,
"rawWidth": 120,
"rawHeight": 63,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "824dddb5-6d27-48f4-99aa-a4c123c9f848",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 154,
"height": 86,
"platformSettings": {},
"subMetas": {
"item_bg2": {
"ver": "1.0.4",
"uuid": "18f1dd43-5fb1-48a2-96ad-ec7a1b5d83e9",
"rawTextureUuid": "824dddb5-6d27-48f4-99aa-a4c123c9f848",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 154,
"height": 86,
"rawWidth": 154,
"rawHeight": 86,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6ba3f108-a477-4fb0-85eb-3483d09cfb16",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 84,
"height": 45,
"platformSettings": {},
"subMetas": {
"item_bg3": {
"ver": "1.0.4",
"uuid": "7cc1176f-4e77-4587-bad7-3ef22aacbb7e",
"rawTextureUuid": "6ba3f108-a477-4fb0-85eb-3483d09cfb16",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 84,
"height": 45,
"rawWidth": 84,
"rawHeight": 45,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "18d07592-51a9-421e-8972-0f67b68d29e1", "uuid": "e6878831-be28-481a-ae47-295bb7ec0e59",
"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": 144, "width": 72,
"height": 144, "height": 73,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"icon": { "prop_1": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "6fbc30a8-3c49-44ae-8ba4-7f56f385b78a", "uuid": "3f8b5930-2b6f-4ebf-8d24-4e0ea93fa0dd",
"rawTextureUuid": "18d07592-51a9-421e-8972-0f67b68d29e1", "rawTextureUuid": "e6878831-be28-481a-ae47-295bb7ec0e59",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": -0.5, "offsetY": 0,
"trimX": 3, "trimX": 1,
"trimY": 2, "trimY": 1,
"width": 138, "width": 70,
"height": 141, "height": 71,
"rawWidth": 144, "rawWidth": 72,
"rawHeight": 144, "rawHeight": 73,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{
"ver": "2.3.5",
"uuid": "342b35ae-d6d0-4221-a4e1-098813b75f13",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 36,
"height": 42,
"platformSettings": {},
"subMetas": {
"reStart": {
"ver": "1.0.4",
"uuid": "e0f45385-06ab-42bb-9f92-c2088daa3615",
"rawTextureUuid": "342b35ae-d6d0-4221-a4e1-098813b75f13",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 36,
"height": 42,
"rawWidth": 36,
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3d5e4555-2504-42af-ab99-01c97b0dc3d3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 658,
"height": 15,
"platformSettings": {},
"subMetas": {
"sptCloud1": {
"ver": "1.0.4",
"uuid": "e34842b6-a9db-4271-89ca-78d7ac01aed6",
"rawTextureUuid": "3d5e4555-2504-42af-ab99-01c97b0dc3d3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 658,
"height": 15,
"rawWidth": 658,
"rawHeight": 15,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c40f429c-b172-40a0-bc18-6f5aa60d52ab",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 113,
"height": 35,
"platformSettings": {},
"subMetas": {
"sptCloud2": {
"ver": "1.0.4",
"uuid": "d49df5d6-f064-41e5-9024-45165b6ed8ca",
"rawTextureUuid": "c40f429c-b172-40a0-bc18-6f5aa60d52ab",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 113,
"height": 35,
"rawWidth": 113,
"rawHeight": 35,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b1721737-0d43-462d-9158-025c939aa4c2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 314,
"height": 43,
"platformSettings": {},
"subMetas": {
"sptCloud3": {
"ver": "1.0.4",
"uuid": "403aae32-cf99-4ffa-8c2c-7adb6da25768",
"rawTextureUuid": "b1721737-0d43-462d-9158-025c939aa4c2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 314,
"height": 43,
"rawWidth": 314,
"rawHeight": 43,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8fee4dee-8d50-41fd-a1ff-30a9deee77b1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 251,
"height": 37,
"platformSettings": {},
"subMetas": {
"sptCloud4": {
"ver": "1.0.4",
"uuid": "1d05082f-9fc8-457c-9985-daa0ef4b7280",
"rawTextureUuid": "8fee4dee-8d50-41fd-a1ff-30a9deee77b1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 251,
"height": 37,
"rawWidth": 251,
"rawHeight": 37,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2672068e-07c8-457d-aaea-e9b15df70a93",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 290,
"height": 106,
"platformSettings": {},
"subMetas": {
"sptCloud5": {
"ver": "1.0.4",
"uuid": "672f7439-893d-4dff-b0b8-cd80d4b493fb",
"rawTextureUuid": "2672068e-07c8-457d-aaea-e9b15df70a93",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 290,
"height": 106,
"rawWidth": 290,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "844eb37d-d3fb-420c-bbad-b3945e26973e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 87,
"platformSettings": {},
"subMetas": {
"top_frame": {
"ver": "1.0.4",
"uuid": "ab23c2df-4942-4fcf-9443-592af1d01ed2",
"rawTextureUuid": "844eb37d-d3fb-420c-bbad-b3945e26973e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 512,
"height": 87,
"rawWidth": 512,
"rawHeight": 87,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
import { onHomeworkFinish } from "../script/util";
import { defaultData } from "../script/defaultData";
cc.Class({
extends: cc.Component,
properties: {
},
// 生命周期 onLoad
onLoad() {
this.initSceneData();
this.initSize();
},
_imageResList: null,
_audioResList: null,
_animaResList: null,
initSceneData() {
this._imageResList = [];
this._audioResList = [];
this._animaResList = [];
},
_designSize: null, // 设计分辨率
_frameSize: null, // 屏幕分辨率
_mapScaleMin: null, // 场景中常用缩放(取大值)
_mapScaleMax: null, // 场景中常用缩放(取小值)
_cocosScale: null, // cocos 自缩放 (较少用到)
initSize() {
// 注意cc.winSize只有在适配后(修改fitHeight/fitWidth后)才能获取到正确的值,因此使用cc.getFrameSize()来获取初始的屏幕大小
let screen_size = cc.view.getFrameSize().width / cc.view.getFrameSize().height
let design_size = cc.Canvas.instance.designResolution.width / cc.Canvas.instance.designResolution.height
let f = screen_size >= design_size
cc.Canvas.instance.fitHeight = f
cc.Canvas.instance.fitWidth = !f
const frameSize = cc.view.getFrameSize();
this._frameSize = frameSize;
this._designSize = cc.view.getDesignResolutionSize();
let sx = cc.winSize.width / frameSize.width;
let sy = cc.winSize.height / frameSize.height;
this._cocosScale = Math.min(sx, sy);
sx = frameSize.width / this._designSize.width;
sy = frameSize.height / this._designSize.height;
this._mapScaleMin = Math.min(sx, sy) * this._cocosScale;
this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;
},
// 生命周期 start
start() {
let getData = this.getData.bind(this);
if (window && window.courseware) {
getData = window.courseware.getData;
}
getData((data) => {
console.log('data:', data);
this.data = data || this.getDefaultData();
this.data = JSON.parse(JSON.stringify(this.data))
this.preloadItem()
})
},
getData(func) {
if (window && window.courseware) {
window.courseware.getData(func, 'scene');
return;
}
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.getData(func);
return;
}
func(this.getDefaultData());
},
getDefaultData() {
return defaultData;
},
preloadItem() {
this.addPreloadImage();
this.addPreloadAudio();
this.addPreloadAnima();
this.preload();
},
addPreloadImage() {
this._imageResList.push({ url: this.data.pic_url });
this._imageResList.push({ url: this.data.pic_url_2 });
},
addPreloadAudio() {
this._audioResList.push({ url: this.data.audio_url });
},
addPreloadAnima() {
},
preload() {
const preloadArr = this._imageResList.concat(this._audioResList).concat(this._animaResList);
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
this.loadEnd();
if (window && window["air"]) {
window["air"].hideAirClassLoading();
}
cc.debug.setDisplayStats(false);
});
},
loadEnd() {
this.initData();
this.initAudio();
this.initView();
// this.initListener();
},
_cantouch: null,
initData() {
// 所有全局变量 默认都是null
this._cantouch = true;
},
audioBtn: null,
initAudio() {
const audioNode = cc.find('Canvas/res/audio');
const getAudioByResName = (resName) => {
return audioNode.getChildByName(resName).getComponent(cc.AudioSource);
}
this.audioBtn = getAudioByResName('btn');
},
initView() {
this.initBg();
this.initPic();
this.initBtn();
this.initIcon();
},
initBg() {
const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax;
},
pic1: null,
pic2: null,
initPic() {
const canvas = cc.find('Canvas');
const maxW = canvas.width * 0.7;
this.getSprNodeByUrl(this.data.pic_url, (sprNode) => {
const picNode1 = sprNode;
picNode1.scale = maxW / picNode1.width;
picNode1.baseX = picNode1.x;
canvas.addChild(picNode1);
this.pic1 = picNode1;
const labelNode = new cc.Node();
labelNode.color = cc.Color.YELLOW;
const label = labelNode.addComponent(cc.Label);
label.string = this.data.text;
label.fontSize = 60;
label.lineHeight = 60;
label.font = cc.find('Canvas/res/font/BRLNSDB').getComponent('cc.Label').font;
picNode1.addChild(labelNode);
});
this.getSprNodeByUrl(this.data.pic_url_2, (sprNode) => {
const picNode2 = sprNode;
picNode2.scale = maxW / picNode2.width;
canvas.addChild(picNode2);
picNode2.x = canvas.width;
picNode2.baseX = picNode2.x;
this.pic2 = picNode2;
const labelNode = new cc.Node();
const label = labelNode.addComponent(cc.RichText);
const size = 60
label.font = cc.find('Canvas/res/font/BRLNSDB').getComponent(cc.Label).font;
label.string = `<outline color=#751e00 width=4><size=${size}><color=#ffffff>${this.data.text}</color></size></outline>`
label.lineHeight = size;
picNode2.addChild(labelNode);
});
},
initIcon() {
const iconNode = this.getSprNode('icon');
iconNode.zIndex = 5;
iconNode.anchorX = 1;
iconNode.anchorY = 1;
iconNode.parent = cc.find('Canvas');
iconNode.x = iconNode.parent.width / 2 - 10;
iconNode.y = iconNode.parent.height / 2 - 10;
iconNode.on(cc.Node.EventType.TOUCH_START, () => {
this.playAudioByUrl(this.data.audio_url);
})
},
curPage: null,
initBtn() {
this.curPage = 0;
const bottomPart = cc.find('Canvas/bottomPart');
bottomPart.zIndex = 5; // 提高层级
bottomPart.x = bottomPart.parent.width / 2;
bottomPart.y = -bottomPart.parent.height / 2;
const leftBtnNode = bottomPart.getChildByName('btn_left');
//节点中添加了button组件 则可以添加click事件监听
leftBtnNode.on('click', () => {
if (!this._cantouch) {
return;
}
if (this.curPage == 0) {
return;
}
this.curPage = 0
this.leftMove();
// 游戏结束时需要调用这个方法通知系统作业完成
onHomeworkFinish();
cc.audioEngine.play(this.audioBtn.clip, false, 0.8)
})
const rightBtnNode = bottomPart.getChildByName('btn_right');
//节点中添加了button组件 则可以添加click事件监听
rightBtnNode.on('click', () => {
if (!this._cantouch) {
return;
}
if (this.curPage == 1) {
return;
}
this.curPage = 1
this.rightMove();
cc.audioEngine.play(this.audioBtn.clip, false, 0.5)
})
},
leftMove() {
this._cantouch = false;
const len = this.pic1.parent.width;
cc.tween(this.pic1)
.to(1, { x: this.pic1.baseX }, { easing: 'cubicInOut' })
.start();
cc.tween(this.pic2)
.to(1, { x: this.pic2.baseX }, { easing: 'cubicInOut' })
.call(() => {
this._cantouch = true;
})
.start();
},
rightMove() {
this._cantouch = false;
const len = this.pic1.parent.width;
cc.tween(this.pic1)
.to(1, { x: this.pic1.baseX - len }, { easing: 'cubicInOut' })
.start();
cc.tween(this.pic2)
.to(1, { x: this.pic2.baseX - len }, { easing: 'cubicInOut' })
.call(() => {
this._cantouch = true;
})
.start();
},
// update (dt) {},
// ------------------------------------------------
getSprNode(resName) {
const sf = cc.find('Canvas/res/img/' + resName).getComponent(cc.Sprite).spriteFrame;
const node = new cc.Node();
node.addComponent(cc.Sprite).spriteFrame = sf;
return node;
},
getSpriteFrimeByUrl(url, cb) {
cc.loader.load({ url }, (err, img) => {
const spriteFrame = new cc.SpriteFrame(img)
if (cb) {
cb(spriteFrame);
}
})
},
getSprNodeByUrl(url, cb) {
const node = new cc.Node();
const spr = node.addComponent(cc.Sprite);
this.getSpriteFrimeByUrl(url, (sf) => {
spr.spriteFrame = sf;
if (cb) {
cb(node);
}
})
},
playAudioByUrl(audio_url, cb = null) {
if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
});
}
},
// ------------------------------------------
});
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
export function getPosByAngle(angle, len) {
const radian = angle * Math.PI / 180;
const x = Math.sin(radian) * len;
const y = Math.cos(radian) * len;
return { x, y };
}
export function getAngleByPos(px, py, mx, my) {
const x = Math.abs(px - mx);
const y = Math.abs(py - my);
const z = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
const cos = y / z;
const radina = Math.acos(cos); // 用反三角函数求弧度
let angle = Math.floor(180 / (Math.PI / radina) * 100) / 100; // 将弧度转换成角度
if (mx > px && my > py) {// 鼠标在第四象限
angle = 180 - angle;
}
if (mx === px && my > py) {// 鼠标在y轴负方向上
angle = 180;
}
if (mx > px && my === py) {// 鼠标在x轴正方向上
angle = 90;
}
if (mx < px && my > py) {// 鼠标在第三象限
angle = 180 + angle;
}
if (mx < px && my === py) {// 鼠标在x轴负方向
angle = 270;
}
if (mx < px && my < py) {// 鼠标在第二象限
angle = 360 - angle;
}
// console.log('angle: ', angle);
return angle;
}
export function exchangeNodePos(baseNode, targetNode) {
return baseNode.convertToNodeSpaceAR(targetNode._parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y)));
}
export function RandomInt(a, b = 0) {
let max = Math.max(a, b);
let min = Math.min(a, b);
return Math.floor(Math.random() * (max - min) + min);
}
export function randomSortByArr(arr) {
const newArr = [];
const tmpArr = arr.concat();
while (tmpArr.length > 0) {
const randomIndex = Math.floor(tmpArr.length * Math.random());
newArr.push(tmpArr[randomIndex]);
tmpArr.splice(randomIndex, 1);
}
return newArr;
}
export function setSprNodeMaxLen(sprNode, maxW, maxH) {
const sx = maxW / sprNode.width;
const sy = maxH / sprNode.height;
const s = Math.min(sx, sy);
sprNode.scale = Math.round(s * 1000) / 1000;
}
export function localPosTolocalPos(baseNode, targetNode) {
const worldPos = targetNode.parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y));
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos;
}
export function worldPosToLocalPos(worldPos, baseNode) {
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos;
}
export function getScaleRateBy2Node(baseNode, targetNode, maxFlag = true) {
const worldRect1 = targetNode.getBoundingBoxToWorld();
const worldRect2 = baseNode.getBoundingBoxToWorld();
const sx = worldRect1.width / worldRect2.width;
const sy = worldRect1.height / worldRect2.height;
if (maxFlag) {
return Math.max(sx, sy);
} else {
return Math.min(sx, sy);
}
}
export function getDistance (start, end){
var pos = cc.v2(start.x - end.x, start.y - end.y);
var dis = Math.sqrt(pos.x*pos.x + pos.y*pos.y);
return dis;
}
export function 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 function btnClickAnima(btn, time=0.15, rate=1.05) {
btn.tmpScale = btn.scale;
btn.on(cc.Node.EventType.TOUCH_START, () => {
cc.tween(btn)
.to(time / 2, {scale: btn.scale * rate})
.start()
})
btn.on(cc.Node.EventType.TOUCH_CANCEL, () => {
cc.tween(btn)
.to(time / 2, {scale: btn.tmpScale})
.start()
})
btn.on(cc.Node.EventType.TOUCH_END, () => {
cc.tween(btn)
.to(time / 2, {scale: btn.tmpScale})
.start()
})
}
export function getSpriteFrimeByUrl(url, cb) {
cc.loader.load({ url }, (err, img) => {
const spriteFrame = new cc.SpriteFrame(img)
if (cb) {
cb(spriteFrame);
}
})
}
export function getSprNode(resName) {
const sf = cc.find('Canvas/res/img/' + resName).getComponent(cc.Sprite).spriteFrame;
const node = new cc.Node();
node.addComponent(cc.Sprite).spriteFrame = sf;
return node;
}
export function getSprNodeByUrl(url, cb) {
const node = new cc.Node();
const spr = node.addComponent(cc.Sprite);
getSpriteFrimeByUrl(url, (sf) => {
spr.spriteFrame = sf;
if (cb) {
cb(spr);
}
})
}
export function playAudio(audioClip, cb = null) {
if (audioClip) {
const audioId = cc.audioEngine.playEffect(audioClip, false, 0.8);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
}
}
export async function asyncDelay(time) {
return new Promise((resolve, reject) => {
try {
setTimeout(() => {
resolve();
}, time * 1000);
} catch (e) {
reject(e);
}
})
}
export class FireworkSettings {
baseNode; // 父节点
nodeList; // 火花节点的array
pos; // 发射点
side; // 发射方向
range; // 扩散范围
number; // 发射数量
scalseRange; // 缩放范围
constructor(baseNode, nodeList,
pos = cc.v2(0, 0),
side = cc.v2(0, 100),
range = 50,
number = 100,
scalseRange = 0
) {
this.baseNode = baseNode;
this.nodeList = nodeList;
this.pos = pos;
this.side = side;
this.range = range;
this.number = number;
this.scalseRange = scalseRange;
}
static copy(firework) {
return new FireworkSettings(
firework.baseNode,
firework.nodeList,
firework.pos,
firework.side,
firework.range,
firework.number,
);
}
}
export async function showFireworks(fireworkSettings) {
const { baseNode, nodeList, pos, side, range, number, scalseRange } = fireworkSettings;
new Array(number).fill(' ').forEach(async (_, i) => {
let rabbonNode = new cc.Node();
rabbonNode.parent = baseNode;
rabbonNode.x = pos.x;
rabbonNode.y = pos.y;
rabbonNode.angle = 60 * Math.random() - 30;
let node = cc.instantiate(nodeList[RandomInt(nodeList.length)]);
node.parent = rabbonNode;
node.active = true;
node.x = 0;
node.y = 0;
node.angle = 0;
node.scale = (Math.random() - 0.5) * scalseRange + 1;
const rate = Math.random();
const angle = Math.PI * (Math.random() * 2 - 1);
await asyncTweenBy(rabbonNode, 0.3, {
x: side.x * rate + Math.cos(angle) * range * rate,
y: side.y * rate + Math.sin(angle) * range * rate
}, {
easing: 'quadIn'
});
cc.tween(rabbonNode)
.by(8, { y: -2000 })
.start();
cc.tween(rabbonNode)
.to(5, { scale: (Math.random() - 0.5) * scalseRange + 1 })
.start();
rabbonFall(rabbonNode);
await asyncDelay(Math.random());
cc.tween(node)
.by(0.15, { x: -10, angle: -10 })
.by(0.3, { x: 20, angle: 20 })
.by(0.15, { x: -10, angle: -10 })
.union()
.repeatForever()
.start();
cc.tween(rabbonNode)
.delay(5)
.to(0.3, { opacity: 0 })
.call(() => {
node.stopAllActions();
node.active = false;
node.parent = null;
node = null;
})
.start();
});
}
async function rabbonFall(node) {
const time = 1 + Math.random();
const offsetX = RandomInt(-200, 200) * time;
await asyncTweenBy(node, time, { x: offsetX, angle: offsetX * 60 / 200 });
rabbonFall(node);
}
export async function asyncTweenTo(node, duration, obj, ease = undefined) {
return new Promise((resolve, reject) => {
try {
cc.tween(node)
.to(duration, obj, ease)
.call(() => {
resolve();
})
.start();
} catch (e) {
reject(e);
}
});
}
export async function asyncTweenBy(node, duration, obj, ease = undefined) {
return new Promise((resolve, reject) => {
try {
cc.tween(node)
.by(duration, obj, ease)
.call(() => {
resolve();
})
.start();
} catch (e) {
reject(e);
}
});
}
export function showTrebleFirework(baseNode, rabbonList) {
const middle = new FireworkSettings(baseNode, rabbonList);
middle.pos = cc.v2(0, -400);
middle.side = cc.v2(0, 1000);
middle.range = 200;
middle.number = 100;
middle.scalseRange = 0.4;
const left = FireworkSettings.copy(middle);
left.pos = cc.v2(-600, -400);
left.side = cc.v2(200, 1000);
const right = FireworkSettings.copy(middle);
right.pos = cc.v2(600, -400);
right.side = cc.v2(-200, 1000);
showFireworks(middle);
showFireworks(left);
showFireworks(right);
}
export function onHomeworkFinish() {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
if (middleLayerComponent.role == 'student') {
middleLayerComponent.onHomeworkFinish(() => { });
}
} else {
console.log('onHomeworkFinish');
}
}
\ No newline at end of file
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"optimizeHotUpdate": false, "optimizeHotUpdate": false,
"md5Cache": false, "md5Cache": false,
"nativeMd5Cache": true, "nativeMd5Cache": true,
"encryptJs": true, "encryptJs": false,
"xxteaKey": "af95a0f7-a8da-4f", "xxteaKey": "af95a0f7-a8da-4f",
"zipCompressJs": true, "zipCompressJs": true,
"fb-instant-games": {}, "fb-instant-games": {},
......
{ {
"last-module-event-record-time": 1600677246969, "last-module-event-record-time": 1623132204392,
"migrate-history": [ "migrate-history": [
"cloud-function" "cloud-function"
] ],
"group-list": [
"default"
],
"collision-matrix": [
[
true
]
],
"excluded-modules": [
"3D",
"3D Primitive",
"3D Physics/cannon.js",
"3D Physics/Builtin",
"3D Particle"
],
"preview-port": 7456,
"design-resolution-width": 960,
"design-resolution-height": 640,
"fit-width": false,
"fit-height": true,
"use-project-simulator-setting": false,
"simulator-orientation": false,
"use-customize-simulator": true,
"simulator-resolution": {
"width": 960,
"height": 640
},
"clear-simulator-cache": true,
"facebook": {
"appID": "",
"audience": {
"enable": false
},
"enable": false,
"live": {
"enable": false
}
},
"start-scene": "57ea7c61-9b8b-498a-b024-c98ee9124beb"
} }
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