Commit afc17203 authored by 杨一航's avatar 杨一航

feat: done

parent 9935700b
......@@ -23,6 +23,10 @@ export default class CakeBar extends cc.Component {
node.getChildByName("fall").active = state == 2;
node.getChildByName("in").active = state == 0;
node.getChildByName("done").active = state == 1;
if (state == 1) {
node.opacity = 0;
cc.tween(node).to(0.5, { opacity: 127, scale: 1.2 }).to(0.5, { opacity: 255, scale: 1 }).start();
}
}
......
......@@ -41,7 +41,11 @@ export default class Candle extends cc.Component {
}
setSkin(type: number) {
this.node.active = true;
this.fire.node.active = true;
this.fireEnd.node.active = false;
this.proBar.barSprite.spriteFrame = this.skin[type];
this.proBar.progress = 1;
}
fireOn(time: number, endCall) {
......
......@@ -43,12 +43,12 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"width": 34,
"height": 50
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"x": 1,
"y": 0.5
},
"_trs": {
......@@ -129,7 +129,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
17,
-17,
0,
0,
0,
......@@ -162,7 +162,7 @@
"__id__": 2
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 4
......@@ -269,7 +269,7 @@
"__id__": 2
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 7
......@@ -376,7 +376,7 @@
"__id__": 2
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 10
......@@ -528,10 +528,10 @@
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 300,
"width": 34,
"height": 50
},
"_resize": 0,
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
......
......@@ -42,6 +42,49 @@ export const defaultData = {
"testWaitTime": 3,
"rightLetter": "a",
"wrongLetter": "e"
},
{
"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"
}, {
"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"
......
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