Commit 18a17dc3 authored by 杨一航's avatar 杨一航

feat:add logic

parent 117b56ff
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541", "uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": false, "isBundle": true,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
"compressionType": {}, "compressionType": {},
......
{
"ver": "1.1.2",
"uuid": "f9d315fe-ed32-4732-9081-a10ff8b14882",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.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 { playAudio, playAudioByUrl } from "../script/util";
const { ccclass, property } = cc._decorator;
@ccclass
export default class AudioBar extends cc.Component {
@property(cc.Node)
audioIcon: cc.Node = null;
private _clipUrl: string;
onLoad() {
this.node.on("click", this._playClip, this);
}
set url(url: string) {
this._clipUrl = url;
}
_playClip() {
this.node.stopAllActions();
this.audioIcon.active = true;
playAudioByUrl(this._clipUrl, this._stopAni.bind(this));
cc.tween(this.audioIcon).blink(800, 1000).start();
}
_stopAni() {
this.node.stopAllActions();
this.audioIcon.active = false;
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "8b57c66f-4962-4ba9-b7b0-09226e766822",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.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 utils = require("../../../bin/utils");
import { playAudio } from "../script/util";
const { ccclass, property } = cc._decorator;
@ccclass
export default class Cake extends cc.Component {
@property(cc.Node)
cakes: Array<cc.Node> = [];
@property(cc.Node)
lbRoot: cc.Node = null;
@property(cc.Node)
lbNode: cc.Node = null;
@property(cc.Node)
top: cc.Node = null;
@property(cc.Node)
candle: cc.Node = null;
@property(cc.AudioClip)
candleClip: cc.AudioClip = null;
private _word: string[];
private _widths = [310, 280, 250, 220, 190];
// LIFE-CYCLE CALLBACKS:
onLoad() {
}
init(word: Array<string>,) {
this._word = word;
for (let i = 0; i < this.cakes.length; ++i) {
let cakeNode = this.cakes[i];
cakeNode.active = false;
}
this.lbRoot.removeAllChildren();
let height = 0;
let index = 0;
for (let i = word.length - 1; i >= 0; --i) {
let cakeNode = this.cakes[i];
cakeNode.active = true;
let width = this._widths[index]
let scale = width / cakeNode.width;
cakeNode.width = width;
cakeNode.height = cakeNode.height * scale;
cakeNode.y = height;
let lbNode = cc.instantiate(this.lbNode);
lbNode.parent = this.lbRoot;
lbNode.y = height + cakeNode.height * scale * 0.5;
lbNode.x = 0;
lbNode.getComponent(cc.Label).string = word[i];
height += (cakeNode.height * 0.8) * scale;
index++;
this.top.x = 0;
this.top.y = height;
console.log("height===" + height);
}
this.top.active = false;
}
insert(txt: string, index: number) {
this._word.splice(index, 0, txt);
this.init(this._word);
this.top.active = true;
this.candle.getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1);
playAudio(this.candleClip);
console.log("insert done");
}
start() {
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "1e895229-fac9-4708-8a8a-6f84704bd4a1",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
const { ccclass, property } = cc._decorator;
@ccclass
export default class CakeBar extends cc.Component {
@property(cc.Node)
Cake: cc.Node = null;
init(total: number) {
for (let i = 0; i < total; ++i) {
let name = "cake_" + i;
let node = cc.instantiate(this.Cake);
node.name = name;
node.parent = this.node;
node.zIndex = i;
}
this.Cake.active = false;
}
updateUI(index: number, state: number) {
let node = this.node.getChildByName("cake_" + index);
node.getChildByName("fall").active = state == 2;
node.getChildByName("in").active = state == 0;
node.getChildByName("done").active = state == 1;
}
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start() {
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "6916bba6-4e31-4b3c-8570-0a5733144508",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.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
const { ccclass, property } = cc._decorator;
@ccclass
export default class Candle extends cc.Component {
@property(cc.ProgressBar)
proBar: cc.ProgressBar = null;
@property(dragonBones.ArmatureDisplay)
fire: dragonBones.ArmatureDisplay = null;
@property(dragonBones.ArmatureDisplay)
fireEnd: dragonBones.ArmatureDisplay = null;
@property(cc.SpriteFrame)
skin: Array<cc.SpriteFrame> = [];
private _endCall: any;
private _totalTime: number;
private _fireOn: boolean;
private _costTime: number;
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start() {
this._fireOn = false;
this.fire.node.active = true;
this.fireEnd.node.active = false;
this.proBar.progress = 1;
}
setSkin(type: number) {
this.proBar.barSprite.spriteFrame = this.skin[type];
}
fireOn(time: number, endCall) {
this._totalTime = time;
this._costTime = 0;
this._endCall = endCall;
this._fireOn = true;
}
fireStop() {
this._fireOn = false;
}
update(dt) {
if (this._fireOn) {
this._costTime += dt;
this.proBar.progress = 1 - this._costTime / this._totalTime;
if (this.proBar.progress < 0.20) {
this.fire.node.active = false;
this.fireEnd.node.active = true;
}
if (this.proBar.progress <= 0) {
this._fireOn = false;
this._endCall && this._endCall();
this._endCall = null;
this.node.active = false;
}
}
}
}
{
"ver": "1.0.8",
"uuid": "9acadda5-083e-4fff-9397-7f16c6f3ddde",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"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": "audioRoot",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
}
],
"_active": true,
"_components": [
{
"__id__": 8
},
{
"__id__": 9
},
{
"__id__": 10
}
],
"_prefab": {
"__id__": 11
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"height": 96
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
544.529,
30.405,
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": "voiceIcon1",
"_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": 37,
"height": 46
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-21,
-4,
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__": "8d62d6c4-ea33-4431-84be-ff42de8cf82c"
},
"_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__": "72e10335-6d78-426b-b387-5442c05cc4bc"
},
"fileId": "7cE1QhDPlGppMSSRcpVXKO",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "voiceIcon2",
"_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": 48,
"height": 46
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-21,
-4,
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__": "fca77e13-211d-432a-ac6f-61a1bd58d833"
},
"_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__": "72e10335-6d78-426b-b387-5442c05cc4bc"
},
"fileId": "75T4I9wtNJdoZDSsZsOCPs",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d0fd74e1-7a9a-43ac-b447-e9bca9cb81b6"
},
"_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.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_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": ""
},
{
"__type__": "8b57cZvSWJLqbewCSJudmgi",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"audioIcon": {
"__id__": 5
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "72e10335-6d78-426b-b387-5442c05cc4bc"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "72e10335-6d78-426b-b387-5442c05cc4bc",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"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": "cake",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 7
},
{
"__id__": 10
},
{
"__id__": 13
},
{
"__id__": 16
},
{
"__id__": 19
},
{
"__id__": 22
},
{
"__id__": 26
}
],
"_active": true,
"_components": [
{
"__id__": 28
}
],
"_prefab": {
"__id__": 29
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 666
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_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": "top",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 6
},
"_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": [
311.843,
4.392,
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": "cake_fire_ske",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": {
"__id__": 5
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 194,
"height": 88
},
"_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__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "newAnimation",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 1,
"premultipliedAlpha": false,
"_armatureKey": "ccffc2b0-bba6-4a36-982b-bdfb731d0479#159f619d-d44d-41d1-8d4d-25350ac407b1",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "ccffc2b0-bba6-4a36-982b-bdfb731d0479"
},
"_N$dragonAtlasAsset": {
"__uuid__": "159f619d-d44d-41d1-8d4d-25350ac407b1"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d6a47707-ac66-484f-bbb0-2530e7fe376e"
},
"fileId": "ec6eX9paFLcaavAcIfQ0Rh",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d6a47707-ac66-484f-bbb0-2530e7fe376e"
},
"fileId": "00/FUKM1NGo7y9RYbW9oPK",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "cake_1",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
}
],
"_prefab": {
"__id__": 9
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 308,
"height": 171
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
495,
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__": 7
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3cdeefcf-6612-4d15-afaf-c9dbd5e332ab"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d6a47707-ac66-484f-bbb0-2530e7fe376e"
},
"fileId": "3dLCRd6lZDKoCXK5MjZ+eG",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "cake_2",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 302,
"height": 174
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
370,
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__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "092bf378-072b-4b08-9056-ddaa4dfee00c"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d6a47707-ac66-484f-bbb0-2530e7fe376e"
},
"fileId": "8fSW/9IGBKXYvdWGWDhrpG",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "cake_3",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
}
],
"_prefab": {
"__id__": 15
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 302,
"height": 174
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
246,
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__": 13
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "092bf378-072b-4b08-9056-ddaa4dfee00c"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d6a47707-ac66-484f-bbb0-2530e7fe376e"
},
"fileId": "0eSusaiWdJWYIEy8/Mjr5r",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "cake_4",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
}
],
"_prefab": {
"__id__": 18
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 308,
"height": 171
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
125,
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__": 16
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a38eadd8-c587-405b-87a5-477f2c22b64c"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d6a47707-ac66-484f-bbb0-2530e7fe376e"
},
"fileId": "47IjnXf/lCN5qqEY/1o7Tr",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "cake_5",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
}
],
"_prefab": {
"__id__": 21
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 302,
"height": 174
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_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__": 19
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "092bf378-072b-4b08-9056-ddaa4dfee00c"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d6a47707-ac66-484f-bbb0-2530e7fe376e"
},
"fileId": "26kygFTOBK/qU2yShaDInL",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "lb",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
},
{
"__id__": 24
}
],
"_prefab": {
"__id__": 25
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 16,
"height": 125.62
},
"_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.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 60,
"_lineHeight": 87.9,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "d5659f7b-26fb-43dc-8876-ae0c6c1ba6f0"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 104,
"g": 11,
"b": 11,
"a": 255
},
"_width": 8,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d6a47707-ac66-484f-bbb0-2530e7fe376e"
},
"fileId": "65/IaGU4BMNKAUgRXVB5T8",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "lbRoot",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 27
},
"_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.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d6a47707-ac66-484f-bbb0-2530e7fe376e"
},
"fileId": "c70EmE1gtB4LCG0duldXQc",
"sync": false
},
{
"__type__": "1e895Ip+slHCIqKb4RwS9Sh",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"cakes": [
{
"__id__": 7
},
{
"__id__": 10
},
{
"__id__": 13
},
{
"__id__": 16
},
{
"__id__": 19
}
],
"lbRoot": {
"__id__": 26
},
"lbNode": {
"__id__": 22
},
"top": {
"__id__": 2
},
"candle": {
"__id__": 3
},
"candleClip": {
"__uuid__": "90561212-7c65-4493-8a3b-470f40fcd48e"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d6a47707-ac66-484f-bbb0-2530e7fe376e"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "d6a47707-ac66-484f-bbb0-2530e7fe376e",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"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": "cakeBar",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [
{
"__id__": 14
},
{
"__id__": 15
}
],
"_prefab": {
"__id__": 16
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 50
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"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": "cake",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
},
{
"__id__": 6
},
{
"__id__": 9
}
],
"_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": 34,
"height": 31
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
17,
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": "fall",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": {
"__id__": 5
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 39
},
"_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__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "dce94100-7130-4ad0-8ae1-3a72d9791537"
},
"_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__": "acdb05df-5414-4c39-9509-9139f0792246"
},
"fileId": "84MdOmiMpHrr0E9O5fEagA",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "in",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
}
],
"_prefab": {
"__id__": 8
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 39
},
"_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__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a89880a3-2dbe-4f7e-94e8-6c2656b4e176"
},
"_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__": "acdb05df-5414-4c39-9509-9139f0792246"
},
"fileId": "b2J1cgrFNOYqQU2abEWzLs",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "done",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
}
],
"_prefab": {
"__id__": 11
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 42,
"height": 39
},
"_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__": 9
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "2d82ca6b-32d9-4356-a4cd-73976c028ded"
},
"_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__": "acdb05df-5414-4c39-9509-9139f0792246"
},
"fileId": "050oFiY5BO65wj7GZo/sE7",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f02dcf60-6d58-46ef-9c2e-ea917354d355"
},
"_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__": "acdb05df-5414-4c39-9509-9139f0792246"
},
"fileId": "b3peDn2XRJe4ikaltMnK2A",
"sync": false
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 300,
"height": 50
},
"_resize": 0,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 10,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": ""
},
{
"__type__": "6916bumTjFLPIVwClczFEUI",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"Cake": {
"__id__": 2
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "acdb05df-5414-4c39-9509-9139f0792246"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "acdb05df-5414-4c39-9509-9139f0792246",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"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": "candle",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [
{
"__id__": 19
}
],
"_prefab": {
"__id__": 20
},
"_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": "New ProgressBar",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
}
],
"_active": true,
"_components": [
{
"__id__": 17
}
],
"_prefab": {
"__id__": 18
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 333
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_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": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 4
}
],
"_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": 37,
"height": 333
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_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": "root",
"_objFlags": 0,
"_parent": {
"__id__": 3
},
"_children": [
{
"__id__": 5
},
{
"__id__": 9
}
],
"_active": true,
"_components": [
{
"__id__": 13
}
],
"_prefab": {
"__id__": 14
},
"_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
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
333,
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": "cake_timeout_ske",
"_objFlags": 0,
"_parent": {
"__id__": 4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 8
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 47,
"height": 140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
4,
94,
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__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "newAnimation",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "ce6623cf-d701-40b7-955a-27c43e3a1b24#fe821564-4988-4f7f-b461-f0f650170776",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "ce6623cf-d701-40b7-955a-27c43e3a1b24"
},
"_N$dragonAtlasAsset": {
"__uuid__": "fe821564-4988-4f7f-b461-f0f650170776"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": -94,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "b35bf7df-6c4e-4d4e-a3f2-a9a884e46774"
},
"fileId": "e4wxxLPQhCNYxg1tpBsVMO",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "cake_fire_ske",
"_objFlags": 0,
"_parent": {
"__id__": 4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
},
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 126,
"height": 106
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
2,
28,
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__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "newAnimation",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 0,
"premultipliedAlpha": false,
"_armatureKey": "ebcb21ce-ab2d-4cb7-af3b-b720462664a0#5576ef19-e194-43ab-ab30-c5741ca54c78",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "ebcb21ce-ab2d-4cb7-af3b-b720462664a0"
},
"_N$dragonAtlasAsset": {
"__uuid__": "5576ef19-e194-43ab-ab30-c5741ca54c78"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": -28,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "b35bf7df-6c4e-4d4e-a3f2-a9a884e46774"
},
"fileId": "76Fwl6ulVCQKBO89Dax3kN",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
},
"_enabled": true,
"alignMode": 2,
"_target": null,
"_alignFlags": 1,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "b35bf7df-6c4e-4d4e-a3f2-a9a884e46774"
},
"fileId": "d4ra3m90ZH3YjO4TZgbqgr",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ee3b9969-63ce-496c-bfab-1b279d879d72"
},
"_type": 2,
"_sizeMode": 0,
"_fillType": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 1,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "b35bf7df-6c4e-4d4e-a3f2-a9a884e46774"
},
"fileId": "0fcyP72DZHB4qYlhqc42Ka",
"sync": false
},
{
"__type__": "cc.ProgressBar",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_N$totalLength": 333,
"_N$barSprite": {
"__id__": 15
},
"_N$mode": 1,
"_N$progress": 1,
"_N$reverse": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "b35bf7df-6c4e-4d4e-a3f2-a9a884e46774"
},
"fileId": "64iitiLo5FdIzR+enusHEM",
"sync": false
},
{
"__type__": "9acad2lCD5P/5OXfxbG893e",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"proBar": {
"__id__": 17
},
"fire": {
"__id__": 10
},
"fireEnd": {
"__id__": 6
},
"skin": [
{
"__uuid__": "ee3b9969-63ce-496c-bfab-1b279d879d72"
},
{
"__uuid__": "c65e60d6-c92d-4c4c-bc24-23d44a57ffb0"
}
],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "b35bf7df-6c4e-4d4e-a3f2-a9a884e46774"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "b35bf7df-6c4e-4d4e-a3f2-a9a884e46774",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"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": "choseNode",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 6
},
{
"__id__": 10
}
],
"_active": true,
"_components": [
{
"__id__": 14
},
{
"__id__": 15
}
],
"_prefab": {
"__id__": 16
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 250,
"height": 146
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1382.52,
214.193,
0,
0,
0,
0,
1,
0.83,
0.83,
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": "cake",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 4
}
],
"_prefab": {
"__id__": 5
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 249,
"height": 146
},
"_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__": "a38eadd8-c587-405b-87a5-477f2c22b64c"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0.5,
"_right": 0.5,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 328,
"_originalHeight": 200,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0d898f4a-8450-413b-9ca4-44b51f2ad63b"
},
"fileId": "61k1cjoq1FVaH04f5lMxey",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "edg",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
},
{
"__id__": 8
}
],
"_prefab": {
"__id__": 9
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 273,
"height": 171
},
"_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__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f1b9a3fb-cfd9-4ff4-9bc0-34d61c701ad4"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": -11.5,
"_right": -11.5,
"_top": -12.5,
"_bottom": -12.5,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 328,
"_originalHeight": 200,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0d898f4a-8450-413b-9ca4-44b51f2ad63b"
},
"fileId": "c9syy+hPtDEKWG2QqOBaBH",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "lb",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 12
}
],
"_prefab": {
"__id__": 13
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 48.7,
"height": 125.62
},
"_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.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "a",
"_N$string": "a",
"_fontSize": 60,
"_lineHeight": 87.9,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "d5659f7b-26fb-43dc-8876-ae0c6c1ba6f0"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 104,
"g": 11,
"b": 11,
"a": 255
},
"_width": 8,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0d898f4a-8450-413b-9ca4-44b51f2ad63b"
},
"fileId": "69O7/O305DdIhYR20k69UG",
"sync": false
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_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": ""
},
{
"__type__": "71414keL0RN+6eKRoiSLCgR",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"cake": {
"__id__": 3
},
"cover": {
"__id__": 7
},
"lb": {
"__id__": 11
},
"cakeList": [
{
"__uuid__": "3cdeefcf-6612-4d15-afaf-c9dbd5e332ab"
},
{
"__uuid__": "ac326b90-5d42-4381-b7c7-461f06db356d"
},
{
"__uuid__": "092bf378-072b-4b08-9056-ddaa4dfee00c"
},
{
"__uuid__": "a38eadd8-c587-405b-87a5-477f2c22b64c"
},
{
"__uuid__": "c986a886-2129-4823-a2ca-e8776ea823ae"
}
],
"coverList": [
{
"__uuid__": "bf197c78-1b20-4f7f-b0d7-6d7f4d10ad85"
},
{
"__uuid__": "48306438-0966-47c2-b33c-9abe6128ac04"
},
{
"__uuid__": "b2192789-9c72-4ea0-90f1-2c7eaea89d0e"
},
{
"__uuid__": "f1b9a3fb-cfd9-4ff4-9bc0-34d61c701ad4"
},
{
"__uuid__": "d69900ea-9583-489e-914d-e1a474925998"
}
],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0d898f4a-8450-413b-9ca4-44b51f2ad63b"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
{
"ver": "1.2.9",
"uuid": "0d898f4a-8450-413b-9ca4-44b51f2ad63b",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.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
const { ccclass, property } = cc._decorator;
@ccclass
export default class ChoseNode extends cc.Component {
@property(cc.Sprite)
cake: cc.Sprite = null;
@property(cc.Sprite)
cover: cc.Sprite = null;
@property(cc.Label)
lb: cc.Label = null;
@property(cc.SpriteFrame)
cakeList: Array<cc.SpriteFrame> = [];
@property(cc.SpriteFrame)
coverList: Array<cc.SpriteFrame> = [];
private _isAnswer: boolean;
private _clickCall: Function;
// LIFE-CYCLE CALLBACKS:
onLoad() {
this.cover.node.active = false;
}
onEnable() {
this.node.on("click", this._onClickCake, this);
}
onDisable() {
this.node.off("click", this._onClickCake, this);
}
_onClickCake() {
if (this._isAnswer) {
this.cover.node.active = true;
cc.tween(this.cover).delay(0.5).hide().start();
}
this._clickCall && this._clickCall(this.node, this._isAnswer);
}
init(txt: string, isAnswer: boolean, clickCall: Function) {
this.node.active = true;
this.lb.string = txt;
this._isAnswer = isAnswer;
this._clickCall = clickCall;
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "7141491e-2f44-4dfb-a78a-4688922c2811",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -78,19 +78,40 @@ ...@@ -78,19 +78,40 @@
"__id__": 7 "__id__": 7
}, },
{ {
"__id__": 14 "__id__": 15
},
{
"__id__": 17
},
{
"__id__": 23
},
{
"__id__": 28
},
{
"__id__": 39
},
{
"__id__": 43
},
{
"__id__": 47
},
{
"__id__": 48
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 24 "__id__": 49
}, },
{ {
"__id__": 25 "__id__": 50
}, },
{ {
"__id__": 26 "__id__": 51
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -317,7 +338,7 @@ ...@@ -317,7 +338,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "8288e3d4-4c75-4b27-8f01-f7014417f4dd" "__uuid__": "4faf536b-c863-4e59-9f2e-aa4e19ffb701"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -335,7 +356,7 @@ ...@@ -335,7 +356,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "bottomPart", "_name": "desk",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
...@@ -345,11 +366,21 @@ ...@@ -345,11 +366,21 @@
"__id__": 8 "__id__": 8
}, },
{ {
"__id__": 11 "__id__": 10
},
{
"__id__": 12
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 13
},
{
"__id__": 14
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -361,8 +392,8 @@ ...@@ -361,8 +392,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 1280,
"height": 0 "height": 35
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -373,8 +404,8 @@ ...@@ -373,8 +404,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
635.132, 0,
-356.326, -342.5,
0, 0,
0, 0,
0, 0,
...@@ -396,11 +427,11 @@ ...@@ -396,11 +427,11 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "8c7k8ep/ZFNpO263+1QHz9" "_id": "edrKW1HstP+ZFOGawQTnFf"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_left", "_name": "cakePiece",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 7
...@@ -410,9 +441,6 @@ ...@@ -410,9 +441,6 @@
"_components": [ "_components": [
{ {
"__id__": 9 "__id__": 9
},
{
"__id__": 10
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -426,8 +454,8 @@ ...@@ -426,8 +454,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 61, "width": 314,
"height": 67 "height": 44
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -438,8 +466,8 @@ ...@@ -438,8 +466,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-148.464, 327.617,
34, 5.698,
0, 0,
0, 0,
0, 0,
...@@ -461,7 +489,7 @@ ...@@ -461,7 +489,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "5ad2wLQLxIN5Eg7OHecSH6" "_id": "71UdCiAlBOfLB92oOrib+J"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -479,7 +507,7 @@ ...@@ -479,7 +507,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "ce19457d-e8f3-4c38-ae3e-d4b99208ddb5" "__uuid__": "d60a976d-1824-4848-8947-eb07496f4c41"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -493,93 +521,89 @@ ...@@ -493,93 +521,89 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "84mqOgJ3JNqZrYVTEU8CjE" "_id": "e3yweqEHJMobWMIpaHxkeA"
}, },
{ {
"__type__": "cc.Button", "__type__": "cc.Node",
"_name": "", "_name": "audioRoot",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 8 "__id__": 7
}, },
"_enabled": true, "_children": [],
"_normalMaterial": null, "_active": false,
"_grayMaterial": null, "_components": [],
"duration": 0.1, "_prefab": {
"zoomScale": 1.2, "__id__": 11
"clickEvents": [], },
"_N$interactable": true, "_opacity": 255,
"_N$enableAutoGrayEffect": false, "_color": {
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
"g": 255, "g": 255,
"b": 255, "b": 255,
"a": 255 "a": 255
}, },
"_N$pressedColor": { "_contentSize": {
"__type__": "cc.Color", "__type__": "cc.Size",
"r": 211, "width": 120,
"g": 211, "height": 96
"b": 211,
"a": 255
}, },
"pressedColor": { "_anchorPoint": {
"__type__": "cc.Color", "__type__": "cc.Vec2",
"r": 211, "x": 0.5,
"g": 211, "y": 0.5
"b": 211,
"a": 255
}, },
"_N$hoverColor": { "_trs": {
"__type__": "cc.Color", "__type__": "TypedArray",
"r": 255, "ctor": "Float64Array",
"g": 255, "array": [
"b": 255, 544.529,
"a": 255 30.405,
0,
0,
0,
0,
1,
1,
1,
1
]
}, },
"hoverColor": { "_eulerAngles": {
"__type__": "cc.Color", "__type__": "cc.Vec3",
"r": 255, "x": 0,
"g": 255, "y": 0,
"b": 255, "z": 0
"a": 255
}, },
"_N$disabledColor": { "_skewX": 0,
"__type__": "cc.Color", "_skewY": 0,
"r": 124, "_is3DNode": false,
"g": 124, "_groupIndex": 0,
"b": 124, "groupIndex": 0,
"a": 255 "_id": "f3UQKVChVCtp5gQWu/RNfn"
}, },
"_N$normalSprite": null, {
"_N$pressedSprite": null, "__type__": "cc.PrefabInfo",
"pressedSprite": null, "root": {
"_N$hoverSprite": null, "__id__": 10
"hoverSprite": null, },
"_N$disabledSprite": null, "asset": {
"_N$target": null, "__uuid__": "72e10335-6d78-426b-b387-5442c05cc4bc"
"_id": "bcYN/4EKBJhbIAfovo9Ah1" },
"fileId": "",
"sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn_right", "_name": "candleRoot",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 7 "__id__": 7
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [],
{
"__id__": 12
},
{
"__id__": 13
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -591,8 +615,8 @@ ...@@ -591,8 +615,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 60, "width": 0,
"height": 66 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -603,8 +627,8 @@ ...@@ -603,8 +627,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-47.164, -562.632,
34, 5.686,
0, 0,
0, 0,
0, 0,
...@@ -626,14 +650,14 @@ ...@@ -626,14 +650,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "46i3stdzpHX6zQHTGnRsNE" "_id": "88aic1F49FXI4/g4cEl9+f"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 7
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -644,7 +668,7 @@ ...@@ -644,7 +668,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "e5a2dbaa-a677-4a32-90d7-a1b057d7fb59" "__uuid__": "ba1abe78-c4af-4ac1-bbfe-78ab715a9f1f"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -658,96 +682,49 @@ ...@@ -658,96 +682,49 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "42Sh8QS/BHn4WiGyPQPKPt" "_id": "4dwhY4p2tHtre0FmYxt3sI"
}, },
{ {
"__type__": "cc.Button", "__type__": "cc.Widget",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 7
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "alignMode": 1,
"_grayMaterial": null, "_target": null,
"duration": 0.1, "_alignFlags": 4,
"zoomScale": 1.2, "_left": 0,
"clickEvents": [], "_right": 0,
"_N$interactable": true, "_top": 0,
"_N$enableAutoGrayEffect": false, "_bottom": 0,
"_N$transition": 0, "_verticalCenter": 0,
"transition": 0, "_horizontalCenter": 0,
"_N$normalColor": { "_isAbsLeft": true,
"__type__": "cc.Color", "_isAbsRight": true,
"r": 255, "_isAbsTop": true,
"g": 255, "_isAbsBottom": true,
"b": 255, "_isAbsHorizontalCenter": true,
"a": 255 "_isAbsVerticalCenter": true,
}, "_originalWidth": 0,
"_N$pressedColor": { "_originalHeight": 0,
"__type__": "cc.Color", "_id": "4ccn5TfCJOO5bFoS6iZcEe"
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "1aj32fYY1IxLesa77E70Qu"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "res", "_name": "barRoot",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
}, },
"_children": [ "_children": [],
{ "_active": true,
"__id__": 15 "_components": [
},
{
"__id__": 18
},
{ {
"__id__": 21 "__id__": 16
} }
], ],
"_active": false,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -759,20 +736,20 @@ ...@@ -759,20 +736,20 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 100,
"height": 0 "height": 30
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0,
"y": 0.5 "y": 0.5
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 490,
0, 325,
0, 0,
0, 0,
0, 0,
...@@ -794,22 +771,56 @@ ...@@ -794,22 +771,56 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "0aAzbH6R1E+6AmGRrkKa5O" "_id": "0fMeew0HJGeLieJzuMlnvj"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Widget",
"_name": "font", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "node": {
"__id__": 14 "__id__": 15
}, },
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 33,
"_left": 0,
"_right": 50,
"_top": 20,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "281+HPDxxCZbdPo/C5UCYu"
},
{
"__type__": "cc.Node",
"_name": "bottom",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [ "_children": [
{ {
"__id__": 16 "__id__": 18
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 21
},
{
"__id__": 22
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -821,8 +832,8 @@ ...@@ -821,8 +832,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 483,
"height": 0 "height": 115
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -833,8 +844,8 @@ ...@@ -833,8 +844,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, -398.5,
0, 302.5,
0, 0,
0, 0,
0, 0,
...@@ -856,20 +867,23 @@ ...@@ -856,20 +867,23 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "9bLfcYeeNKrr524vzWchiM" "_id": "ccCfkT+OxATKe8c5SdkW4E"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "BRLNSDB", "_name": "lb",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 15 "__id__": 17
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 17 "__id__": 19
},
{
"__id__": 20
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -883,8 +897,8 @@ ...@@ -883,8 +897,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 400,
"height": 0 "height": 54.4
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -896,12 +910,12 @@ ...@@ -896,12 +910,12 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
18,
0, 0,
0, 0,
0, 0,
0, 0.026176948307873153,
0, 0.9996573249755573,
1,
1, 1,
1, 1,
1 1
...@@ -911,60 +925,145 @@ ...@@ -911,60 +925,145 @@
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 0, "y": 0,
"z": 0 "z": 3
}, },
"_skewX": 0, "_skewX": 0,
"_skewY": 0, "_skewY": 0,
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "cfMLGsq0BMhJARv+ySMAxS" "_id": "e6ik3svBZDfJG6Nqp6UdJK"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 16 "__id__": 18
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "", "_string": "",
"_N$string": "", "_N$string": "",
"_fontSize": 40, "_fontSize": 48,
"_lineHeight": 40, "_lineHeight": 50,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": { "_N$file": {
"__uuid__": "c551970e-b095-45f3-9f1d-25cde8b8deb1" "__uuid__": "d5659f7b-26fb-43dc-8876-ae0c6c1ba6f0"
}, },
"_isSystemFontUsed": false, "_isSystemFontUsed": false,
"_spacingX": 0, "_spacingX": 0,
"_batchAsBitmap": false, "_batchAsBitmap": false,
"_styleFlags": 0, "_styleFlags": 0,
"_underlineHeight": 0, "_underlineHeight": 0,
"_N$horizontalAlign": 0, "_N$horizontalAlign": 1,
"_N$verticalAlign": 0, "_N$verticalAlign": 1,
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 2,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "9bNHNPu5lC7rQYyr8ai/sY" "_id": "95w6JmNINCbZ9zyEhshF61"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 182,
"g": 94,
"b": 23,
"a": 255
},
"_width": 6,
"_id": "e1W6iHGANPOpDHDL7A8PxM"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8ca325bc-9591-4eef-86bb-d1c6804e72ea"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "32rT+VqxtDtZEmjgjAUTHZ"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "27c2lUotVFt6dNq0uQ1AUy"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "img", "_name": "cackRoot",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 2
}, },
"_children": [ "_children": [
{ {
"__id__": 19 "__id__": 24
}
],
"_active": false,
"_components": [
{
"__id__": 27
} }
], ],
"_active": true,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -976,20 +1075,20 @@ ...@@ -976,20 +1075,20 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 400,
"height": 0 "height": 99
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, -350,
0, 0,
0, 0,
0, 0,
...@@ -1011,20 +1110,23 @@ ...@@ -1011,20 +1110,23 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "53LUHHG2pEr79fyrvazXJs" "_id": "d8GJnSi3ZJTbVZ3OsHIfts"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "icon", "_name": "lb_word",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 18 "__id__": 23
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 20 "__id__": 25
},
{
"__id__": 26
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1038,8 +1140,8 @@ ...@@ -1038,8 +1140,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 138, "width": 84.14,
"height": 141 "height": 62.4
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1051,7 +1153,7 @@ ...@@ -1051,7 +1153,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 52,
0, 0,
0, 0,
0, 0,
...@@ -1073,21 +1175,78 @@ ...@@ -1073,21 +1175,78 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "1blU2OArJIfoC9XfupGxJG" "_id": "635yXqr4ZG/Z6mGYPT5PWq"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "the",
"_N$string": "the",
"_fontSize": 48,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "d5659f7b-26fb-43dc-8876-ae0c6c1ba6f0"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "970gysomFBu6LQ6WDXjRHq"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 4,
"g": 41,
"b": 88,
"a": 255
},
"_width": 6,
"_id": "a0s5YiLdBLhaSGjDhRi4do"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 19 "__id__": 23
}, },
"_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__": "43470752-0f43-444a-bea9-56a1f14ef443"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1101,22 +1260,26 @@ ...@@ -1101,22 +1260,26 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "03GEWUEZJGyKormWgIWCtM" "_id": "f9SlvBVNZPBIxixPLeLi70"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "audio", "_name": "tvRoot",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 14 "__id__": 2
}, },
"_children": [ "_children": [
{ {
"__id__": 22 "__id__": 29
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [
{
"__id__": 38
}
],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -1128,20 +1291,20 @@ ...@@ -1128,20 +1291,20 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 400,
"height": 0 "height": 99
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, -350,
0, 0,
0, 0,
0, 0,
...@@ -1163,20 +1326,30 @@ ...@@ -1163,20 +1326,30 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "d9f+b0lmZGSJJae6zrADhp" "_id": "95IfIPygpAqbsDK0UhR6Yj"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "btn", "_name": "evaluation_bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 21 "__id__": 28
}, },
"_children": [], "_children": [
{
"__id__": 30
},
{
"__id__": 31
},
{
"__id__": 35
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 23 "__id__": 37
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1190,20 +1363,20 @@ ...@@ -1190,20 +1363,20 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 789,
"height": 0 "height": 492
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0.5 "y": 0
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 89,
0, 0,
0, 0,
0, 0,
...@@ -1225,30 +1398,845 @@ ...@@ -1225,30 +1398,845 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "e87DSaFCVJfb2PAUkf4/o7" "_id": "efmE3FmftJ6a1yA/2lRM6S"
}, },
{ {
"__type__": "cc.AudioSource", "__type__": "cc.Node",
"_name": "", "_name": "center",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 22 "__id__": 29
}, },
"_enabled": true, "_children": [],
"_clip": { "_active": true,
"__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b" "_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
}, },
"_volume": 1, "_contentSize": {
"_mute": false, "__type__": "cc.Size",
"_loop": false, "width": 789,
"_firstlyEnabled": true, "height": 492
"playOnLoad": false,
"preload": false,
"_id": "dey05oKrBIspvsDa6pOIQz"
}, },
{ "_anchorPoint": {
"__type__": "cc.Canvas", "__type__": "cc.Vec2",
"_name": "", "x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
246,
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": "7cLj5XdCdABIrvvAuymIL6"
},
{
"__type__": "cc.Node",
"_name": "centerBtn",
"_objFlags": 0,
"_parent": {
"__id__": 29
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 32
},
{
"__id__": 33
},
{
"__id__": 34
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 789,
"height": 492
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
246,
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": "38e5vLtGxHFIkId3iUGkxP"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "c88PHgq/ZEFajUS2vYQf69"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
},
"_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": "656/5ThjpP5pzGYveMPlOK"
},
{
"__type__": "38a22FB72FKLZarwAivSQnN",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
},
"_enabled": true,
"clickAudio": {
"__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b"
},
"_id": "16nxQphaNNTom2kTcNNFYz"
},
{
"__type__": "cc.Node",
"_name": "excellent_ske",
"_objFlags": 0,
"_parent": {
"__id__": 29
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 713,
"height": 487
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
261,
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": "3aKDHB7s5GBr1aFqzVJCje"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "newAnimation",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "dc942ca8-fbe2-4184-8fe2-004c763e9376#a2529d44-8b98-48dd-993e-a30477a0e0a7",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "dc942ca8-fbe2-4184-8fe2-004c763e9376"
},
"_N$dragonAtlasAsset": {
"__uuid__": "a2529d44-8b98-48dd-993e-a30477a0e0a7"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "aauam3tLdJc7bpWIIEHJrj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "73607c1e-90e0-4c5a-9094-3ea46bbf85c1"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "8eLyXsQQ5AHqcj9HU8jlFx"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "43470752-0f43-444a-bea9-56a1f14ef443"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "fdvs4ppm5K57S1ZJDJ+TU0"
},
{
"__type__": "cc.Node",
"_name": "cover",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 40
},
{
"__id__": 41
},
{
"__id__": 42
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "6akXDY/3lAUp9UHoMEmBa3"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f70546ea-856a-4e13-8233-4edd2dfebdaf"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "62TYBo/CpEcLYzhaRQ9JiY"
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"_id": "01+Y/GzuFOHJLQR+96yvFP"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 720,
"_id": "1eVyG9uw1NPrtTKxb4VizP"
},
{
"__type__": "cc.Node",
"_name": "play",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 44
},
{
"__id__": 45
},
{
"__id__": 46
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 456,
"height": 102
},
"_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,
0
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "ff/4S7qYBBhr6nw8taCRJl"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e8b43a0d-dd9d-4166-a08c-c72c81a95e4a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "fblbsrLupOdrGovsnR/qjG"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_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": "dbG5Z2NIRH3L0ER6rq5hDZ"
},
{
"__type__": "38a22FB72FKLZarwAivSQnN",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
},
"_enabled": true,
"clickAudio": {
"__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b"
},
"_id": "89hAyk/zpNO5O7CWQX8kAj"
},
{
"__type__": "cc.Node",
"_name": "choseARoot",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 250,
"height": 146
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1382.52,
214.193,
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": "25v4QvQXpDJYuBb6Z5QgX6"
},
{
"__type__": "cc.Node",
"_name": "choseBRoot",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 250,
"height": 146
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1369.538,
-38.944,
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": "02pPCHWE9B+4m45HyUbOhM"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 2 "__id__": 2
...@@ -1298,6 +2286,66 @@ ...@@ -1298,6 +2286,66 @@
"__id__": 2 "__id__": 2
}, },
"_enabled": true, "_enabled": true,
"candlePrefab": {
"__uuid__": "b35bf7df-6c4e-4d4e-a3f2-a9a884e46774"
},
"cakePrefab": {
"__uuid__": "d6a47707-ac66-484f-bbb0-2530e7fe376e"
},
"chosePrefab": {
"__uuid__": "0d898f4a-8450-413b-9ca4-44b51f2ad63b"
},
"cakeRatePrefab": {
"__uuid__": "acdb05df-5414-4c39-9509-9139f0792246"
},
"audioPrefab": {
"__uuid__": "72e10335-6d78-426b-b387-5442c05cc4bc"
},
"cover": {
"__id__": 39
},
"title": {
"__id__": 19
},
"startNode": {
"__id__": 46
},
"audioRoot": {
"__id__": 10
},
"cakrBarRoot": {
"__id__": 15
},
"cakeRoot": {
"__id__": 23
},
"candleRoot": {
"__id__": 12
},
"tvRoot": {
"__id__": 28
},
"tvCenter": {
"__id__": 30
},
"tvCenterBtn": {
"__id__": 34
},
"excellent": {
"__id__": 36
},
"lb_word": {
"__id__": 25
},
"choseARoot": {
"__id__": 47
},
"choseBRoot": {
"__id__": 48
},
"cakePiece": {
"__id__": 8
},
"_id": "e49cc409dd1e46e0ad24b1" "_id": "e49cc409dd1e46e0ad24b1"
} }
] ]
\ No newline at end of file
import { asyncDelay, onHomeworkFinish } from "../script/util"; import { asyncDelay, asyncLoadDragonBoneAnime, asyncTweenBy, asyncTweenTo, onHomeworkFinish } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent"; import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
import Cake from "../prefabs/Cake";
import AudioButton from "../script/AudioButton";
import { defaultData } from "../script/defaultData";
import ChoseNode from "../prefabs/choseNode";
import CakeBar from "../prefabs/CakeBar";
import AudioBar from "../prefabs/AudioBar";
import Candle from "../prefabs/Candle";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class SceneComponent extends MyCocosSceneComponent { export default class SceneComponent extends MyCocosSceneComponent {
@property(cc.Prefab)
candlePrefab: cc.Prefab = null;
@property(cc.Prefab)
cakePrefab: cc.Prefab = null;
@property(cc.Prefab)
chosePrefab: cc.Prefab = null;
@property(cc.Prefab)
cakeRatePrefab: cc.Prefab = null;
@property(cc.Prefab)
audioPrefab: cc.Prefab = null;
@property(cc.Node)
cover: cc.Node = null
@property(cc.Label)
title: cc.Label = null
@property(AudioButton)
startNode: AudioButton = null
@property(cc.Node)
audioRoot: cc.Node = null
@property(cc.Node)
cakrBarRoot: cc.Node = null
@property(cc.Node)
cakeRoot: cc.Node = null
@property(cc.Node)
candleRoot: cc.Node = null
@property(cc.Node)
tvRoot: cc.Node = null
@property(cc.Node)
tvCenter: cc.Node = null
@property(AudioButton)
tvCenterBtn: AudioButton = null
@property(dragonBones.ArmatureDisplay)
excellent: dragonBones.ArmatureDisplay = null;
@property(cc.Node)
nictTry: cc.Node = null;
@property(cc.Label)
lb_word: cc.Label = null
@property(cc.Node)
choseARoot: cc.Node = null
@property(cc.Node)
choseBRoot: cc.Node = null;
@property(cc.Node)
cakePiece: cc.Node = null;
private _defaultFadeIn = 0.5;
private _defaultFadeOut = 0.5;
private _cake: Cake;
private _audioBar: AudioBar;
private _questionIndex: number;
private _nowRightLetter: string;
private _nowRightIndex: number;
private _canAnswer: boolean;
private _choseNodeA: ChoseNode;
private _choseNodeB: ChoseNode;
private _totalQuestion: number;
private _cakeBar: CakeBar;
private _nowData: { text: string; audio: string; dragonBoneData: { skeJsonData: { url: string; name: string; }; texJsonData: { url: string; name: string; }; texPngData: { url: string; name: string; }; }; waitTime: number; choosewaitTime: number; testWaitTime: number; rightLetter: string; wrongLetter: string; } | { text: string; audio: string; dragonBoneData: { skeJsonData: { url: string; name: string; }; texJsonData: { url: string; name: string; }; texPngData: { url: string; name: string; }; }; choosewaitTime: number; testWaitTime: number; rightLetter: string; wrongLetter: string; waitTime?: undefined; };
private _txtAni: cc.Node;
private _candle: Candle;
private _coursewareDone: boolean;
addPreloadImage() { addPreloadImage() {
// TODO 根据自己的配置预加载图片资源 // TODO 根据自己的配置预加载图片资源
this._imageResList.push({ url: this.data.pic_url }); this._imageResList.push({ url: this.data.pic_url });
...@@ -21,175 +110,403 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -21,175 +110,403 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
onLoadEnd() { async onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考 // TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this.initData(); await this.initData();
this.initView(); this.initView();
this.initListener(); this.initListener();
} }
_cantouch = null; _cantouch = null;
initData() { async initData() {
// 所有全局变量 默认都是null // 所有全局变量 默认都是null
this._cantouch = true; this._cantouch = true;
this._totalQuestion = defaultData.questions.length;
await new Promise((resolve) => {
cc.assetManager.loadBundle("cake_template_test", (ero) => {
console.log("budle loaded");
!ero && resolve(null);
});
})
console.log("init data");
} }
initView() { initView() {
this.initBg(); this.initBg();
this.initPic(); this.initPic();
this.initBtn(); this.initBtn();
this.initIcon(); // this.initIcon();
} }
initBg() { initBg() {
const bgNode = cc.find('Canvas/bg'); const bgNode = cc.find('Canvas/bg');
bgNode.scale = this._mapScaleMax; bgNode.scale = this._mapScaleMax;
this.cover.active = true;
this.cakeRoot.active = false;
this.cakePiece.active = false
this.title.string = defaultData.title;
this.tvRoot.active = false;
this.candleRoot.active = false;
this.excellent.node.active = false;
this.nictTry.active = false;
} }
pic1 = null; pic1 = null;
pic2 = null; pic2 = null;
initPic() { initPic() {
const canvas = cc.find('Canvas'); let choseA = cc.instantiate(this.chosePrefab);
const maxW = canvas.width * 0.7; choseA.parent = this.choseARoot;
choseA.x = 0;
this.getSprNodeByUrl(this.data.pic_url, (sprNode) => { choseA.y = 0;
const picNode1 = sprNode; this._choseNodeA = choseA.getComponent(ChoseNode)
picNode1.scale = maxW / picNode1.width;
picNode1.baseX = picNode1.x; let choseB = cc.instantiate(this.chosePrefab);
canvas.addChild(picNode1); choseB.parent = this.choseBRoot;
this.pic1 = picNode1; choseB.x = 0;
choseB.y = 0;
const labelNode = new cc.Node(); this._choseNodeB = choseB.getComponent(ChoseNode)
labelNode.color = cc.Color.YELLOW;
const label = labelNode.addComponent(cc.Label); let cakeBar = cc.instantiate(this.cakeRatePrefab);
label.string = this.data.text; cakeBar.parent = this.cakrBarRoot;
label.fontSize = 60; cakeBar.y = 0;
label.lineHeight = 60; cakeBar.x = 0;
label.font = cc.find('Canvas/res/font/BRLNSDB').getComponent('cc.Label').font; this._cakeBar = cakeBar.getComponent(CakeBar);
picNode1.addChild(labelNode); this._cakeBar.init(this._totalQuestion);
});
let audioNode = cc.instantiate(this.audioPrefab);
this.getSprNodeByUrl(this.data.pic_url_2, (sprNode) => { audioNode.parent = this.audioRoot;
const picNode2 = sprNode; audioNode.y = 0;
picNode2.scale = maxW / picNode2.width; audioNode.x = 0;
canvas.addChild(picNode2); this._audioBar = audioNode.getComponent(AudioBar);
picNode2.x = canvas.width;
picNode2.baseX = picNode2.x; let candleNode = cc.instantiate(this.candlePrefab);
this.pic2 = picNode2; candleNode.parent = this.candleRoot;
audioNode.y = 0;
const labelNode = new cc.Node(); audioNode.x = 0;
const label = labelNode.addComponent(cc.RichText); this._candle = candleNode.getComponent(Candle);
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() { initIcon() {
const iconNode = this.getSprNode('icon'); // const iconNode = this.getSprNode('icon');
iconNode.zIndex = 5; // iconNode.zIndex = 5;
iconNode.anchorX = 1; // iconNode.anchorX = 1;
iconNode.anchorY = 1; // iconNode.anchorY = 1;
iconNode.parent = cc.find('Canvas'); // iconNode.parent = cc.find('Canvas');
iconNode.x = iconNode.parent.width / 2 - 10; // iconNode.x = iconNode.parent.width / 2 - 10;
iconNode.y = iconNode.parent.height / 2 - 10; // iconNode.y = iconNode.parent.height / 2 - 10;
iconNode.on(cc.Node.EventType.TOUCH_START, () => { // iconNode.on(cc.Node.EventType.TOUCH_START, () => {
this.playAudioByUrl(this.data.audio_url); // this.playAudioByUrl(this.data.audio_url);
}) // })
} }
// 游戏结束时需要调用这个方法通知系统作业完成
// onHomeworkFinish();
curPage = null; curPage = null;
initBtn() { initBtn() {
this.startNode.onceClick(this._startAndRemoveCover, this);
this.tvCenterBtn.onClick(this._replayAni, this);
}
async _startAndRemoveCover() {
cc.tween(this.startNode.node).delay(0.2).hide().start();
this.curPage = 0; await asyncTweenTo(this.cover, this._defaultFadeOut, { opacity: 0 });
const bottomPart = cc.find('Canvas/bottomPart'); this.startNode.node.active = false;
bottomPart.zIndex = 5; // 提高层级 this._questionIndex = 0;
this._initQuestionByIndex();
}
bottomPart.x = bottomPart.parent.width / 2; _replayAni() {
bottomPart.y = -bottomPart.parent.height / 2;
const leftBtnNode = bottomPart.getChildByName('btn_left'); console.log("_replayAni");
//节点中添加了button组件 则可以添加click事件监听 if (this._txtAni) {
leftBtnNode.on('click', () => { this._txtAni.getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1);
if (!this._cantouch) {
return;
} }
if (this.curPage == 0) {
return;
} }
this.curPage = 0
this.leftMove();
this.playLocalAudio('btn'); _initQuestionByIndex() {
}) this._canAnswer = false;
if (this._txtAni) {
this._txtAni.parent = null;
this._txtAni.destroy();
this._txtAni = null;
}
this._nowData = defaultData.questions[this._questionIndex];
this._cakeBar.updateUI(this._questionIndex, 0);
this.initNodes(this._nowData);
const rightBtnNode = bottomPart.getChildByName('btn_right'); // this.testDragonB();
//节点中添加了button组件 则可以添加click事件监听
rightBtnNode.on('click', () => {
if (!this._cantouch) {
return;
} }
if (this.curPage == 1) {
return;
updateCakeBar() {
} }
this.curPage = 1 async initNodes(data: any) {
this.rightMove();
this.cover.active = true;
this.candleRoot.x = - cc.winSize.width;
this.candleRoot.active = true;
this._candle.setSkin(0);
this.audioRoot.x = cc.winSize.width + 400;
this.audioRoot.active = false;
let word: string = data.text;
let rightLetter: string = data.rightLetter;
let wrongLetter: string = data.wrongLetter;
this._nowRightLetter = rightLetter;
this.lb_word.string = word;
if (!this._cake) {
let cake = cc.instantiate(this.cakePrefab);
cake.parent = this.cakeRoot;
cake.y = 100;
cake.x = 0;
this._cake = cake.getComponent(Cake);
}
this._nowRightIndex = word.indexOf(rightLetter);
let cakeWords = word.split("")
cakeWords.splice(this._nowRightIndex, 1);
console.log(cakeWords);
this._cake.init(cakeWords);
// 游戏结束时需要调用这个方法通知系统作业完成 this.cakeRoot.y = -this._designSize.height / 2
onHomeworkFinish(); this.cakeRoot.x = cc.winSize.width;
this.cakeRoot.active = true;
let rigthTop = Math.random() > 0.5;
this.choseARoot.x = 1.5 * cc.winSize.width - 200;
this.choseARoot.y = 200;
this._choseNodeA.init(rigthTop ? rightLetter : wrongLetter, rigthTop, this._onClickAnswer.bind(this));
this.choseBRoot.x = 1.5 * cc.winSize.width - 200;
this.choseBRoot.y = 0;
this._choseNodeB.init(!rigthTop ? rightLetter : wrongLetter, !rigthTop, this._onClickAnswer.bind(this));
this.playLocalAudio('btn'); asyncTweenBy(this.choseARoot, 1, { x: -cc.winSize.width })
asyncTweenBy(this.choseBRoot, 1, { x: -cc.winSize.width })
await asyncTweenTo(this.cakeRoot, 1, { x: 0 })
this._audioBar.url = this._nowData.audio;
this.playAudioByUrl(this._nowData.audio, async () => {
this._canAnswer = true;
this.audioRoot.active = true;
cc.tween(this.audioRoot).to(0.5, { x: 550, y: 30 }).start();
cc.tween(this.candleRoot).to(0.5, { x: -550 }).call(() => {
this._candle.fireOn(this._nowData.choosewaitTime, this._choseTimeOut.bind(this));
this.cover.active = false;
}).start();
}) })
} }
leftMove() { _choseTimeOut() {
this._cantouch = false; console.log("_choseTimeOut");
const len = this.pic1.parent.width; }
cc.tween(this.pic1)
.to(1, { x: this.pic1.baseX }, { easing: 'cubicInOut' })
.start();
cc.tween(this.pic2) async _onClickAnswer(node, isAnswer: boolean) {
.to(1, { x: this.pic2.baseX }, { easing: 'cubicInOut' })
.call(() => { if (!this._canAnswer) return;
this._cantouch = true; this._canAnswer = false;
})
.start(); if (isAnswer) {
this._candle.fireStop();
await this.playLocalAudio("effect_chose_right", true);
await asyncTweenTo(node.parent, 0.3, { x: 0, y: -100 })
node.active = false;
this._cake.insert(this._nowRightLetter, this._nowRightIndex);
this._cakeBar.updateUI(this._questionIndex, 1);
await asyncDelay(3);
} else {
await this.playLocalAudio("effect_cake_drop", true);
await asyncTweenTo(node.parent, 0.18, { x: 200, y: -300 })
node.active = false;
this.cakePiece.active = true;
this._cakeBar.updateUI(this._questionIndex, 2);
await asyncDelay(3);
} }
rightMove() { this.nextStep(isAnswer)
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) {},
async nextStep(isAnswer) {
if (isAnswer) {
console.log("start evolution");
asyncTweenTo(this.candleRoot, 0.5, { x: -cc.winSize.width })
asyncTweenTo(this.choseARoot, 0.5, { x: cc.winSize.width })
asyncTweenTo(this.choseBRoot, 0.5, { x: cc.winSize.width })
await Promise.all([asyncTweenTo(this.audioRoot, 0.5, { x: cc.winSize.width }),
await this._setDragonTxt()
])
this.tvRoot.y = -cc.winSize.height;
this.tvRoot.x = 0;
this.tvRoot.active = true;
await asyncTweenTo(this.tvRoot, 0.5, { y: -this._designSize.height / 2 });
this._txtAni.getComponent(dragonBones.ArmatureDisplay).playAnimation("newAnimation", 1);
this.playAudioByUrl(defaultData.guideAudio)
this.candleRoot.x = - cc.winSize.width;
this.candleRoot.active = true;
this._candle.setSkin(1);
await asyncTweenTo(this.candleRoot, 0.5, { x: -550 })
this._startCourseware();
} else {
this._toNextQueston();
}
}
_toNextQueston() {
this._questionIndex++;
if (this._questionIndex >= this._totalQuestion) {
this.endQuestion();
} else {
this._initQuestionByIndex()
}
}
async _startCourseware() {
this._coursewareDone = false;
if (window["courseware"]?.startTest) {
window["courseware"]?.startTest(this._nowData.text);
} else {
console.log("web 模拟录音开始");
}
this._candle.fireOn(this._nowData.testWaitTime, this._coursewareStoped.bind(this))
await asyncDelay(this._nowData.testWaitTime);
this._coursewareStoped();
}
async _coursewareStoped() {
if (this._coursewareDone) return;
this._coursewareDone = true;
this.cover.active = true;
cc.tween(this.cover).to(0.5, { opacity: 255 }).start();
await asyncDelay(0.5);
if (window["courseware"]?.stopTest) {
window["courseware"]?.stopTest(this._coursewareEnd.bind(this));
} else {
await asyncDelay(3);
console.log("web 模拟录音评测 结果");
this._coursewareEnd(Math.random() > 0.5 ? 100 : 70)
}
}
async _coursewareEnd(score: number) {
if (score >= 80) {
console.log("good");
this.excellent.node.active = true;
this.excellent.playAnimation("newAnimation", 1);
this.playLocalAudio("effect_evaluation_excellent")
await asyncDelay(1);
this.excellent.node.active = false;
cc.tween(this.cover).to(0.5, { opacity: 0 }).start();
await asyncDelay(0.5);
this.cover.active = false;
asyncTweenTo(this.cakeRoot, 0.5, { x: cc.winSize.width })
await asyncTweenTo(this.tvRoot, 0.5, { x: -cc.winSize.width })
this._toNextQueston();
} else {
this.nictTry.y = cc.winSize.height;
this.nictTry.active = true;
cc.tween(this.nictTry).
to(0.5, { y: -cc.winSize.height / 10 }, { easing: "bounceIn" }).
call(() => {
this.playLocalAudio("effect_evaluation_nicetry")
}).
to(0.3, { y: 0 }, { easing: "bounceOut" }).
delay(1).
to(0.5, { y: -cc.winSize.height }).call(async () => {
console.log("come on");
this.nictTry.active = false;
cc.tween(this.cover).to(0.5, { opacity: 0 }).start();
await asyncDelay(0.5);
this.cover.active = false;
asyncTweenTo(this.cakeRoot, 0.5, { x: cc.winSize.width })
await asyncTweenTo(this.tvRoot, 0.5, { x: -cc.winSize.width })
this._toNextQueston();
}).start();
console.log("come on");
}
}
async _setDragonTxt() {
console.log(this._nowData);
this._txtAni =
await asyncLoadDragonBoneAnime(this.tvCenter,
{
skeJsonData: { url: this._nowData.dragonBoneData.skeJsonData.url },
texJsonData: { url: this._nowData.dragonBoneData.texJsonData.url },
texPngData: { url: this._nowData.dragonBoneData.texPngData.url }
}
)
}
endQuestion() {
console.log("endQuestion");
}
initListener() { initListener() {
} }
playLocalAudio(audioName) { playLocalAudio(audioName, notWaitDone?: boolean) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const id = cc.audioEngine.playEffect(audio.clip, false); cc.assetManager.getBundle("cake_template_test").load("/audios/" + audioName, (ero: Error, asset: cc.AudioClip) => {
if (!ero) {
let id = cc.audioEngine.playEffect(asset, false);
if (notWaitDone) {
resolve(null)
} else {
cc.audioEngine.setFinishCallback(id, () => { cc.audioEngine.setFinishCallback(id, () => {
resolve(id); resolve(null);
}); });
}
} else {
cc.error(ero);
}
})
}) })
} }
} }
import { playAudio } from "./util";
const { ccclass, property, requireComponent } = cc._decorator;
@ccclass
@requireComponent(cc.Button)
export default class AudioButton extends cc.Component {
@property(cc.AudioClip)
clickAudio: cc.AudioClip = null;
onClick(callback: Function, target) {
this.node.on("click", () => {
this.clickAudio && playAudio(this.clickAudio);
callback.call(target);
}, this);
}
onceClick(callback: Function, target) {
this.node.once("click", () => {
this.clickAudio && playAudio(this.clickAudio);
callback.call(target);
}, this);
}
}
{
"ver": "1.0.8",
"uuid": "38a22141-ef61-4a2d-96ab-c008af4909cd",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
export const defaultData = { export const defaultData = {
"pic_url": "http://staging-teach.cdn.ireadabc.com/ed94332a503c31e0908bd4c6923a2665.png", "questions": [{
"pic_url_2": "http://staging-teach.cdn.ireadabc.com/5fb60317ade0195d35ad8034d5370a7f.png", "text": "dog",
"text": "This is a test label.", "audio": "http://staging-teach.cdn.ireadabc.com/dfb27b510e121a1045a3b7613a530e43.mp3",
"audio_url": "http://staging-teach.cdn.ireadabc.com/f47f1d7b5c160fe1c59500d180346240.mp3" "dragonBoneData": {
"skeJsonData": {
"url": "http://staging-teach.cdn.ireadabc.com/19d1a7f807cb34e8706d2d3b0324278b.json",
"name": "right_ske.json"
},
"texJsonData": {
"url": "http://staging-teach.cdn.ireadabc.com/8593091ce08cf9fd7c2d86f332b6cd6c.json",
"name": "right_tex.json"
},
"texPngData": {
"url": "http://staging-teach.cdn.ireadabc.com/d623e6d625ef102dbc5420b2f37fa52f.png",
"name": "right_tex.png"
}
},
"waitTime": 12,
"choosewaitTime": 5,
"testWaitTime": 3,
"rightLetter": "d",
"wrongLetter": "b"
}, {
"text": "apple",
"audio": "http://staging-teach.cdn.ireadabc.com/7c18e0838dcf0707f885842ed09e1579.mp3",
"dragonBoneData": {
"skeJsonData": {
"url": "http://staging-teach.cdn.ireadabc.com/703a41d6c7afe6fe653014d585ef0d58.json",
"name": "d1_ske.json"
},
"texJsonData": {
"url": "http://staging-teach.cdn.ireadabc.com/02bbebdc4a9f4a35d9ec285f61fca19c.json",
"name": "d1_tex.json"
},
"texPngData": {
"url": "http://staging-teach.cdn.ireadabc.com/ba2041fb4f69c37be52b76f5fb274c09.png",
"name": "d1_tex.png"
}
},
"choosewaitTime": 5,
"testWaitTime": 3,
"rightLetter": "a",
"wrongLetter": "e"
}],
"title": "whats you name",
"guideAudio": "http://staging-teach.cdn.ireadabc.com/40468ef6d120d03f83541b9344c6f9ea.mp3"
} }
\ No newline at end of file
...@@ -94,13 +94,13 @@ export function getScaleRateBy2Node(baseNode, targetNode, maxFlag = true) { ...@@ -94,13 +94,13 @@ export function getScaleRateBy2Node(baseNode, targetNode, maxFlag = true) {
} }
} }
export function getDistance (start, end){ export function getDistance(start, end) {
var pos = cc.v2(start.x - end.x, start.y - end.y); var pos = cc.v2(start.x - end.x, start.y - end.y);
var dis = Math.sqrt(pos.x*pos.x + pos.y*pos.y); var dis = Math.sqrt(pos.x * pos.x + pos.y * pos.y);
return dis; return dis;
} }
export function playAudioByUrl(audio_url, cb=null) { export function playAudioByUrl(audio_url, cb = null) {
if (audio_url) { if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => { cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8); const audioId = cc.audioEngine.play(audioClip, false, 0.8);
...@@ -114,21 +114,21 @@ export function playAudioByUrl(audio_url, cb=null) { ...@@ -114,21 +114,21 @@ export function playAudioByUrl(audio_url, cb=null) {
} }
export function btnClickAnima(btn, time=0.15, rate=1.05) { export function btnClickAnima(btn, time = 0.15, rate = 1.05) {
btn.tmpScale = btn.scale; btn.tmpScale = btn.scale;
btn.on(cc.Node.EventType.TOUCH_START, () => { btn.on(cc.Node.EventType.TOUCH_START, () => {
cc.tween(btn) cc.tween(btn)
.to(time / 2, {scale: btn.scale * rate}) .to(time / 2, { scale: btn.scale * rate })
.start() .start()
}) })
btn.on(cc.Node.EventType.TOUCH_CANCEL, () => { btn.on(cc.Node.EventType.TOUCH_CANCEL, () => {
cc.tween(btn) cc.tween(btn)
.to(time / 2, {scale: btn.tmpScale}) .to(time / 2, { scale: btn.tmpScale })
.start() .start()
}) })
btn.on(cc.Node.EventType.TOUCH_END, () => { btn.on(cc.Node.EventType.TOUCH_END, () => {
cc.tween(btn) cc.tween(btn)
.to(time / 2, {scale: btn.tmpScale}) .to(time / 2, { scale: btn.tmpScale })
.start() .start()
}) })
} }
...@@ -179,7 +179,7 @@ export async function asyncDelay(time) { ...@@ -179,7 +179,7 @@ export async function asyncDelay(time) {
try { try {
cc.tween(cc.find('Canvas')) cc.tween(cc.find('Canvas'))
.delay(time) .delay(time)
.call(()=>{ .call(() => {
resolve(null); resolve(null);
}) })
.start(); .start();
...@@ -355,3 +355,72 @@ export function onHomeworkFinish() { ...@@ -355,3 +355,72 @@ export function onHomeworkFinish() {
console.log('onHomeworkFinish'); console.log('onHomeworkFinish');
} }
} }
export async function asyncLoadDragonBoneAnime(node, { skeJsonData: { url: skeJsonDataUrl }, texJsonData: { url: texJsonDataUrl }, texPngData: { url: texPngDataUrl } }): Promise<cc.Node> {
if (!texPngDataUrl || !texJsonDataUrl || !texPngDataUrl
|| texPngDataUrl == '' || texJsonDataUrl == '' || texPngDataUrl == '') {
return;
}
return new Promise((resolve, reject) => {
if (node.animaNode) {
node.animaNode.removeFromParent();
}
const animaNode = new cc.Node();
animaNode.name = 'animaNode';
animaNode.parent = node;
animaNode.active = true;
node.animaNode = animaNode;
const dragonDisplay = animaNode.addComponent(dragonBones.ArmatureDisplay);
const loadTexture = new Promise((resolve, reject) => {
cc.assetManager.loadRemote(texPngDataUrl, (error, texture) => {
if (error) {
reject(error);
}
resolve(texture);
});
});
const loadTexJsonData = new Promise((resolve, reject) => {
cc.assetManager.loadAny({ url: texJsonDataUrl }, (error, atlasJson) => {
if (error) {
reject(error);
}
resolve(atlasJson);
});
});
const loadSkeJsonData = new Promise((resolve, reject) => {
cc.assetManager.loadAny({ url: skeJsonDataUrl }, (error, dragonBonesJson) => {
if (error) {
reject(error);
}
resolve(dragonBonesJson);
});
});
Promise.all([loadTexture, loadTexJsonData, loadSkeJsonData]).then(([texture, atlasJson, dragonBonesJson]) => {
const atlas = new dragonBones.DragonBonesAtlasAsset();
atlas.atlasJson = JSON.stringify(atlasJson);
//@ts-ignore
atlas.texture = texture;
const asset = new dragonBones.DragonBonesAsset();
asset.dragonBonesJson = JSON.stringify(dragonBonesJson);
dragonDisplay.dragonAtlasAsset = atlas;
dragonDisplay.dragonAsset = asset;
//@ts-ignore
let armatureNames = dragonBonesJson.armature.map(data => data.name);
if (armatureNames.length > 0) {
dragonDisplay.armatureName = armatureNames[0];
}
resolve(animaNode);
});
});
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "17a53d56-b596-4b96-a221-9399edf9f4c4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 779,
"height": 350,
"platformSettings": {},
"subMetas": {
"WL-nicetry": {
"ver": "1.0.4",
"uuid": "9b6da2ce-b57a-4359-be31-f2650a8d70f5",
"rawTextureUuid": "17a53d56-b596-4b96-a221-9399edf9f4c4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 779,
"height": 350,
"rawWidth": 779,
"rawHeight": 350,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a8205389-3f19-49e2-9559-a68b5b152b9e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 314,
"height": 44,
"platformSettings": {},
"subMetas": {
"cakePiece": {
"ver": "1.0.4",
"uuid": "d60a976d-1824-4848-8947-eb07496f4c41",
"rawTextureUuid": "a8205389-3f19-49e2-9559-a68b5b152b9e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 314,
"height": 44,
"rawWidth": 314,
"rawHeight": 44,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "50ccb7f7-222a-44ce-b6d5-dcbf591300e1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 720,
"height": 199,
"platformSettings": {},
"subMetas": {
"comeon": {
"ver": "1.0.4",
"uuid": "3f321347-a19d-4bc7-afaa-72188d163811",
"rawTextureUuid": "50ccb7f7-222a-44ce-b6d5-dcbf591300e1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 720,
"height": 199,
"rawWidth": 720,
"rawHeight": 199,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 720, "height": 720,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"opacity_half": { "cover": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "f70546ea-856a-4e13-8233-4edd2dfebdaf", "uuid": "f70546ea-856a-4e13-8233-4edd2dfebdaf",
"rawTextureUuid": "03fd4c3f-44f9-4976-8e95-d7bff0a04633", "rawTextureUuid": "03fd4c3f-44f9-4976-8e95-d7bff0a04633",
......
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