Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_18
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
OP_18
Commits
542e567d
Commit
542e567d
authored
Mar 25, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 背景写活
parent
e8151da3
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
228 additions
and
426 deletions
+228
-426
.DS_Store
.DS_Store
+0
-0
OP_18.meta
assets/OP_18.meta
+15
-1
OP_18.fire
assets/OP_18/scene/OP_18.fire
+164
-418
OP_18.js
assets/OP_18/scene/OP_18.js
+37
-5
defaultData.js
assets/OP_18/script/defaultData.js
+1
-1
form.component.html
form/src/app/form/form.component.html
+11
-1
No files found.
.DS_Store
View file @
542e567d
No preview for this file type
assets/OP_18.meta
View file @
542e567d
{"ver":"1.1.2","uuid":"e9f579c0-59b7-4567-93ad-5b17f799e827","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "e9f579c0-59b7-4567-93ad-5b17f799e827",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/OP_18/scene/OP_18.fire
View file @
542e567d
This diff is collapsed.
Click to expand it.
assets/OP_18/scene/OP_18.js
View file @
542e567d
...
...
@@ -109,6 +109,8 @@ cc.Class({
this
.
_imageResList
.
push
({
url
:
this
.
data
.
dot_big_2_url
||
''
});
this
.
_imageResList
.
push
({
url
:
this
.
data
.
dot_small_1_url
||
''
});
this
.
_imageResList
.
push
({
url
:
this
.
data
.
dot_small_2_url
||
''
});
this
.
_imageResList
.
push
({
url
:
this
.
data
.
bg_pic_url
||
''
});
},
...
...
@@ -342,6 +344,10 @@ cc.Class({
initCatListener
()
{
const
content
=
cc
.
find
(
"
Canvas/content
"
);
content
.
zIndex
=
10
;
const
catBox
=
cc
.
find
(
"
Canvas/content/catFrame/catBox
"
)
catBox
.
on
(
'
touchstart
'
,
()
=>
{
if
(
this
.
isPlayTip
)
{
...
...
@@ -449,12 +455,38 @@ cc.Class({
initBg
()
{
const
bgNode
=
cc
.
find
(
'
Canvas/bg
'
);
bgNode
.
scale
=
this
.
_mapScaleMax
;
const
bg
=
new
cc
.
Node
();
this
.
canvas
.
addChild
(
bg
);
getSprNodeByUrl
(
this
.
data
.
bg_pic_url
,
(
spr
)
=>
{
// spr.node.parent = animNode.parent;
// spr.node.x = animNode.x;
// spr.node.y = animNode.y;
// spr.node.scale = animNode.scale;
// console.log(' spr.node.width: ', spr.node.width)
// console.log(' spr.node.height: ', spr.node.height)
bg
.
width
=
spr
.
node
.
width
;
bg
.
height
=
spr
.
node
.
height
;
spr
.
node
.
anchorX
=
1
;
spr
.
node
.
anchorY
=
0
;
bg
.
anchorX
=
1
;
bg
.
anchorY
=
0
;
bg
.
addChild
(
spr
.
node
);
const
canvas
=
cc
.
find
(
'
Canvas
'
);
bgNode
.
scale
=
Math
.
max
((
canvas
.
width
/
bgNode
.
width
),
(
canvas
.
height
/
bgNode
.
height
));
bg
.
scale
=
Math
.
max
((
canvas
.
width
/
bg
.
width
),
(
canvas
.
height
/
bg
.
height
));
bg
.
y
=
-
this
.
canvas
.
height
/
2
;
bg
.
x
=
this
.
canvas
.
width
/
2
;
})
// const bgNode = cc.find('Canvas/bg');
// bgNode.scale = this._mapScaleMax;
// const canvas = cc.find('Canvas');
// bgNode.scale = Math.max((canvas.width / bgNode.width), (canvas.height / bgNode.height));
},
...
...
assets/OP_18/script/defaultData.js
View file @
542e567d
export
const
defaultData
=
{
"
animArr
"
:[{
"
key
"
:
"
letter_big_0
"
,
"
title
"
:
"
大写彩色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/3854b249ba08fe0d7f7be94308eda238.json
"
,
"
name
"
:
"
D大彩_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/047c4030ce0956e7fa491bb10efa99d0.json
"
,
"
name
"
:
"
D大彩_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/fdeefde6344de8b50de4c1e97532de46.png
"
,
"
name
"
:
"
D大彩_tex.png
"
}},{
"
key
"
:
"
letter_big_1
"
,
"
title
"
:
"
大写黑色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/4a73aa0ed1abe9fe59cbc9396164ab0b.json
"
,
"
name
"
:
"
D大黑_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/264182a83f00f862662611adde7afc05.json
"
,
"
name
"
:
"
D大黑_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/444b96de33fb48ab6a488b058d81449d.png
"
,
"
name
"
:
"
D大黑_tex.png
"
}},{
"
key
"
:
"
letter_small_0
"
,
"
title
"
:
"
小写彩色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/4fbe3832ff08127bb2899c525f3c0918.json
"
,
"
name
"
:
"
D小彩_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/958bfb6722f4bf5f2b5d975e420cf23c.json
"
,
"
name
"
:
"
D小彩_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/489483bb7b433044f5736ac1f05d4bf2.png
"
,
"
name
"
:
"
D小彩_tex.png
"
}},{
"
key
"
:
"
letter_small_1
"
,
"
title
"
:
"
小写黑色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/f88764f49c73d2bdc7ab21d3f3f3c4bc.json
"
,
"
name
"
:
"
D小黑_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/403916dcfd80ce24069eddce10e0124c.json
"
,
"
name
"
:
"
D小黑_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/840b55ebf6ae75ec7cf011c48f3189ec.png
"
,
"
name
"
:
"
D小黑_tex.png
"
}}],
"
write_big_0_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/d4c2f72fd4238c48c1b19d747d0ce382.mp3
"
,
"
write_big_1_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/4c5a39defde0e90f3a53bf50db6943f4.mp3
"
,
"
write_big_2_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/a5652eadaf165869b2b551530921bb0d.mp3
"
,
"
write_small_0_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/d099918c85ac7afc33f169c9038f46d4.mp3
"
,
"
write_small_1_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/2f1ea180fb4d17dce34e8d7cc6cf9159.mp3
"
,
"
write_small_2_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/15147c1c4ae733303566baf84fae2840.mp3
"
,
"
finish_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/7fb349c67a76d2112a0604e624acaa97.mp3
"
,
"
tip_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/d5cdef3f02abe29b14ca8c16ad4e7543.mp3
"
,
"
letter
"
:
"
D
"
,
"
dot_small_2_url
"
:
"
https://staging-teach.cdn.ireadabc.com/8a8cbc71ad861b372418f36aef32a8cd.png
"
,
"
dot_small_1_url
"
:
"
https://staging-teach.cdn.ireadabc.com/80221b2a4b62f57c33c7e6491f372077.png
"
,
"
dot_big_1_url
"
:
"
https://staging-teach.cdn.ireadabc.com/e2b74edc1520bc2001d82b4e8aaba5d7.png
"
,
"
dot_big_2_url
"
:
"
https://staging-teach.cdn.ireadabc.com/e2b74edc1520bc2001d82b4e8aaba5d7.png
"
}
\ No newline at end of file
export
const
defaultData
=
{
"
animArr
"
:[{
"
key
"
:
"
letter_big_0
"
,
"
title
"
:
"
大写彩色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/3854b249ba08fe0d7f7be94308eda238.json
"
,
"
name
"
:
"
D大彩_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/047c4030ce0956e7fa491bb10efa99d0.json
"
,
"
name
"
:
"
D大彩_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/fdeefde6344de8b50de4c1e97532de46.png
"
,
"
name
"
:
"
D大彩_tex.png
"
}},{
"
key
"
:
"
letter_big_1
"
,
"
title
"
:
"
大写黑色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/4a73aa0ed1abe9fe59cbc9396164ab0b.json
"
,
"
name
"
:
"
D大黑_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/264182a83f00f862662611adde7afc05.json
"
,
"
name
"
:
"
D大黑_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/444b96de33fb48ab6a488b058d81449d.png
"
,
"
name
"
:
"
D大黑_tex.png
"
}},{
"
key
"
:
"
letter_small_0
"
,
"
title
"
:
"
小写彩色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/4fbe3832ff08127bb2899c525f3c0918.json
"
,
"
name
"
:
"
D小彩_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/958bfb6722f4bf5f2b5d975e420cf23c.json
"
,
"
name
"
:
"
D小彩_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/489483bb7b433044f5736ac1f05d4bf2.png
"
,
"
name
"
:
"
D小彩_tex.png
"
}},{
"
key
"
:
"
letter_small_1
"
,
"
title
"
:
"
小写黑色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/f88764f49c73d2bdc7ab21d3f3f3c4bc.json
"
,
"
name
"
:
"
D小黑_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/403916dcfd80ce24069eddce10e0124c.json
"
,
"
name
"
:
"
D小黑_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/840b55ebf6ae75ec7cf011c48f3189ec.png
"
,
"
name
"
:
"
D小黑_tex.png
"
}}],
"
write_big_0_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/d4c2f72fd4238c48c1b19d747d0ce382.mp3
"
,
"
write_big_1_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/4c5a39defde0e90f3a53bf50db6943f4.mp3
"
,
"
write_big_2_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/a5652eadaf165869b2b551530921bb0d.mp3
"
,
"
write_small_0_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/d099918c85ac7afc33f169c9038f46d4.mp3
"
,
"
write_small_1_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/2f1ea180fb4d17dce34e8d7cc6cf9159.mp3
"
,
"
write_small_2_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/15147c1c4ae733303566baf84fae2840.mp3
"
,
"
finish_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/7fb349c67a76d2112a0604e624acaa97.mp3
"
,
"
tip_audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/d5cdef3f02abe29b14ca8c16ad4e7543.mp3
"
,
"
letter
"
:
"
D
"
,
"
dot_small_2_url
"
:
"
https://staging-teach.cdn.ireadabc.com/8a8cbc71ad861b372418f36aef32a8cd.png
"
,
"
dot_small_1_url
"
:
"
https://staging-teach.cdn.ireadabc.com/80221b2a4b62f57c33c7e6491f372077.png
"
,
"
dot_big_1_url
"
:
"
https://staging-teach.cdn.ireadabc.com/e2b74edc1520bc2001d82b4e8aaba5d7.png
"
,
"
dot_big_2_url
"
:
"
https://staging-teach.cdn.ireadabc.com/e2b74edc1520bc2001d82b4e8aaba5d7.png
"
,
"
bg_pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/7e2e266a6e2e596103ac973e0a22d3ac.jpg
"
}
\ No newline at end of file
form/src/app/form/form.component.html
View file @
542e567d
...
...
@@ -2,7 +2,17 @@
<div
style=
"padding: 20px;"
>
<div
style=
"margin-top: 5px; display: flex; align-items: center;"
>
<div
style=
"width: 300px; margin-top: 20px;"
align=
'center'
>
<span>
背景图:
</span>
<app-upload-image-with-preview
[
picUrl
]="
item
.
bg_pic_url
"
(
imageUploaded
)="
onImageUploadSuccess
($
event
,
'
bg_pic_url
')"
>
</app-upload-image-with-preview>
</div>
<div
style=
"margin-top: 35px; display: flex; align-items: center;"
>
<span
style=
"width: 100px;"
>
大写动画音频:
</span>
<app-audio-recorder
[
audioUrl
]="
item
.
write_big_0_audio_url
"
...
...
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