Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ET_07
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
ET_07
Commits
af7ca12e
Commit
af7ca12e
authored
Mar 16, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 标题音频
parent
065115a0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
11 deletions
+29
-11
Phonics.mp3
play/assets/ET_07/audios/Phonics.mp3
+0
-0
Phonics.mp3.meta
play/assets/ET_07/audios/Phonics.mp3.meta
+7
-0
ET_07.fire
play/assets/ET_07/scene/ET_07.fire
+14
-11
ET_07.js
play/assets/ET_07/scene/ET_07.js
+8
-0
No files found.
play/assets/ET_07/audios/Phonics.mp3
0 → 100644
View file @
af7ca12e
File added
play/assets/ET_07/audios/Phonics.mp3.meta
0 → 100644
View file @
af7ca12e
{
"ver": "2.0.1",
"uuid": "e841eaf5-0736-459e-9465-e4a1ab4e2efe",
"downloadMode": 0,
"duration": 0.862063,
"subMetas": {}
}
\ No newline at end of file
play/assets/ET_07/scene/ET_07.fire
View file @
af7ca12e
...
@@ -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.71
5,
-11.28
5,
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": "0
cmkDkD7tPTaJmRlEPOIha
"
"_id": "0
4cVOLcltK3KBjXt29A8pI
"
},
},
{
{
"__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"
},
},
...
...
play/assets/ET_07/scene/ET_07.js
View file @
af7ca12e
...
@@ -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
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment