Commit af7ca12e authored by 范雪寒's avatar 范雪寒

feat: 标题音频

parent 065115a0
{
"ver": "2.0.1",
"uuid": "e841eaf5-0736-459e-9465-e4a1ab4e2efe",
"downloadMode": 0,
"duration": 0.862063,
"subMetas": {}
}
\ No newline at end of file
...@@ -394,7 +394,7 @@ ...@@ -394,7 +394,7 @@
"array": [ "array": [
0, 0,
0, 0,
696.2844246426887, 700.6145516616109,
0, 0,
0, 0,
0, 0,
...@@ -629,7 +629,7 @@ ...@@ -629,7 +629,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 222.46, "width": 183.27,
"height": 63 "height": 63
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -641,7 +641,7 @@ ...@@ -641,7 +641,7 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
12.715, -11.285,
13.775, 13.775,
0, 0,
0, 0,
...@@ -694,7 +694,7 @@ ...@@ -694,7 +694,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 222.46, "width": 183.27,
"height": 69 "height": 69
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -706,7 +706,7 @@ ...@@ -706,7 +706,7 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-111.23, -91.635,
-34.5, -34.5,
0, 0,
0, 0,
...@@ -730,7 +730,7 @@ ...@@ -730,7 +730,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "222qZ77oxMRY8lTL1oHmc8" "_id": "03k4H5NDVHyr71C7aHraw6"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -748,8 +748,8 @@ ...@@ -748,8 +748,8 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_useOriginalSize": true, "_useOriginalSize": true,
"_string": "Alphabet", "_string": "Phonics",
"_N$string": "Alphabet", "_N$string": "Phonics",
"_fontSize": 50, "_fontSize": 50,
"_lineHeight": 50, "_lineHeight": 50,
"_enableWrapText": true, "_enableWrapText": true,
...@@ -766,7 +766,7 @@ ...@@ -766,7 +766,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "0cmkDkD7tPTaJmRlEPOIha" "_id": "04cVOLcltK3KBjXt29A8pI"
}, },
{ {
"__type__": "cc.LabelOutline", "__type__": "cc.LabelOutline",
...@@ -784,7 +784,7 @@ ...@@ -784,7 +784,7 @@
"a": 255 "a": 255
}, },
"_width": 3, "_width": 3,
"_id": "98pkzY7lxIOKdV50s4zs2g" "_id": "60zSIh3k5PxqgzhuoAuIbw"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
...@@ -796,7 +796,7 @@ ...@@ -796,7 +796,7 @@
"_enabled": true, "_enabled": true,
"_fontFamily": "Arial", "_fontFamily": "Arial",
"_isSystemFontUsed": false, "_isSystemFontUsed": false,
"_N$string": "<outline color=#d55b75 width=3>Alphabet</outline>", "_N$string": "<outline color=#d55b75 width=3>Phonics</outline>",
"_N$horizontalAlign": 0, "_N$horizontalAlign": 0,
"_N$fontSize": 50, "_N$fontSize": 50,
"_N$font": { "_N$font": {
...@@ -3824,6 +3824,9 @@ ...@@ -3824,6 +3824,9 @@
"switchAudio": { "switchAudio": {
"__uuid__": "5a3b64be-7289-4ebd-b1d7-475a5008f54a" "__uuid__": "5a3b64be-7289-4ebd-b1d7-475a5008f54a"
}, },
"titleAudio": {
"__uuid__": "e841eaf5-0736-459e-9465-e4a1ab4e2efe"
},
"bigA": { "bigA": {
"__uuid__": "eae5e895-cf63-4a96-9cca-1783eefc9a68" "__uuid__": "eae5e895-cf63-4a96-9cca-1783eefc9a68"
}, },
......
...@@ -7,6 +7,7 @@ cc.Class({ ...@@ -7,6 +7,7 @@ cc.Class({
properties: { properties: {
switchAudio: { default: null, type: cc.AudioClip }, switchAudio: { default: null, type: cc.AudioClip },
titleAudio: { default: null, type: cc.AudioClip },
bigA: { default: null, type: cc.AudioClip }, bigA: { default: null, type: cc.AudioClip },
bigB: { default: null, type: cc.AudioClip }, bigB: { default: null, type: cc.AudioClip },
bigC: { default: null, type: cc.AudioClip }, bigC: { default: null, type: cc.AudioClip },
...@@ -318,6 +319,13 @@ cc.Class({ ...@@ -318,6 +319,13 @@ cc.Class({
initListener() { initListener() {
console.log('initListener'); console.log('initListener');
const title = cc.find('Canvas/bg/title');
title.addComponent(cc.Button);
title.on('click', () => {
cc.audioEngine.play(this.titleAudio, false, 0.8);
});
const BtnBigLetter = cc.find('Canvas/bg/BtnBigLetter'); const BtnBigLetter = cc.find('Canvas/bg/BtnBigLetter');
const BtnSmallLetter = cc.find('Canvas/bg/BtnSmallLetter'); const BtnSmallLetter = cc.find('Canvas/bg/BtnSmallLetter');
......
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