Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xytk_cs_001
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
xytk_cs_001
Commits
65e70e7a
Commit
65e70e7a
authored
Feb 26, 2021
by
xytk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
189d60a0
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
226 additions
and
106 deletions
+226
-106
doc.anim
play/assets/tmpGame/animation/doc.anim
+1
-1
Scene.fire
play/assets/tmpGame/scene/Scene.fire
+215
-104
Scene.js
play/assets/tmpGame/script/Scene.js
+9
-1
Tittle.ts
play/assets/tmpGame/script/Tittle.ts
+1
-0
No files found.
play/assets/tmpGame/animation/doc.anim
View file @
65e70e7a
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"_native": "",
"_native": "",
"_duration": 0.06666666666666667,
"_duration": 0.06666666666666667,
"sample": 60,
"sample": 60,
"speed": 0.
3
,
"speed": 0.
15
,
"wrapMode": 2,
"wrapMode": 2,
"curveData": {
"curveData": {
"comps": {
"comps": {
...
...
play/assets/tmpGame/scene/Scene.fire
View file @
65e70e7a
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/script/Scene.js
View file @
65e70e7a
...
@@ -92,7 +92,7 @@ cc.Class({
...
@@ -92,7 +92,7 @@ cc.Class({
},
},
getDefaultData
()
{
getDefaultData
()
{
const
dataJson
=
'
{"bt_text":"11111","bt_audio_url":"http://staging-teach.cdn.ireadabc.com/b0c23eb327ec13212d09516a1a8a49ec.mp3","dragonBone":{"skeJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/14ca834d522122b031a2e18be5129251.json","name":"sb_boy_ske.json"},"texJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/ecc48e23d55b1af8eb40d997dc573791.json","name":"sb_boy_tex.json"},"texPngData":{"url":"http://staging-teach.cdn.ireadabc.com/2d668f8049bc98c0e026921ef316a0fd.png","name":"sb_boy_tex.png"}},"dragonBone_audio_url":"http://staging-teach.cdn.ireadabc.com/b0c23eb327ec13212d09516a1a8a49ec.mp3","pic_A_url":"http://staging-teach.cdn.ireadabc.com/
ed0e074ce7c52a469cc78c13a58eb09d.png","pic_C_url":"http://staging-teach.cdn.ireadabc.com/b2423375f6f8bfc4e24568c36b23947d.pn
g","bottom_text":"底部的文本","bottom_audio_url":"http://staging-teach.cdn.ireadabc.com/b0c23eb327ec13212d09516a1a8a49ec.mp3","pic_A_audio_url":"http://staging-teach.cdn.ireadabc.com/b0c23eb327ec13212d09516a1a8a49ec.mp3","pic_C_audio_url":"http://staging-teach.cdn.ireadabc.com/b0c23eb327ec13212d09516a1a8a49ec.mp3","dragonBone_animationName":"unit1_boy_jump","dragonBone_armatureName":"Armature"}
'
const
dataJson
=
'
{"bt_text":"11111","bt_audio_url":"http://staging-teach.cdn.ireadabc.com/b0c23eb327ec13212d09516a1a8a49ec.mp3","dragonBone":{"skeJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/14ca834d522122b031a2e18be5129251.json","name":"sb_boy_ske.json"},"texJsonData":{"url":"http://staging-teach.cdn.ireadabc.com/ecc48e23d55b1af8eb40d997dc573791.json","name":"sb_boy_tex.json"},"texPngData":{"url":"http://staging-teach.cdn.ireadabc.com/2d668f8049bc98c0e026921ef316a0fd.png","name":"sb_boy_tex.png"}},"dragonBone_audio_url":"http://staging-teach.cdn.ireadabc.com/b0c23eb327ec13212d09516a1a8a49ec.mp3","pic_A_url":"http://staging-teach.cdn.ireadabc.com/
79f4b6912d1ffad13da6c05dda328237.jpg","pic_C_url":"http://staging-teach.cdn.ireadabc.com/79f4b6912d1ffad13da6c05dda328237.jp
g","bottom_text":"底部的文本","bottom_audio_url":"http://staging-teach.cdn.ireadabc.com/b0c23eb327ec13212d09516a1a8a49ec.mp3","pic_A_audio_url":"http://staging-teach.cdn.ireadabc.com/b0c23eb327ec13212d09516a1a8a49ec.mp3","pic_C_audio_url":"http://staging-teach.cdn.ireadabc.com/b0c23eb327ec13212d09516a1a8a49ec.mp3","dragonBone_animationName":"unit1_boy_jump","dragonBone_armatureName":"Armature"}
'
const
data
=
JSON
.
parse
(
dataJson
);
const
data
=
JSON
.
parse
(
dataJson
);
return
data
;
return
data
;
},
},
...
@@ -226,10 +226,18 @@ cc.Class({
...
@@ -226,10 +226,18 @@ cc.Class({
pic2
:
null
,
pic2
:
null
,
initPic
()
{
initPic
()
{
this
.
getSpriteFrimeByUrl
(
this
.
data
.
pic_A_url
,(
spriteFrame
)
=>
{
this
.
getSpriteFrimeByUrl
(
this
.
data
.
pic_A_url
,(
spriteFrame
)
=>
{
let
width
=
this
.
pic_a_sprite
.
node
.
width
;
let
height
=
this
.
pic_a_sprite
.
node
.
height
;
this
.
pic_a_sprite
.
spriteFrame
=
spriteFrame
;
this
.
pic_a_sprite
.
spriteFrame
=
spriteFrame
;
this
.
pic_a_sprite
.
node
.
width
=
width
;
this
.
pic_a_sprite
.
node
.
height
=
height
;
});
});
this
.
getSpriteFrimeByUrl
(
this
.
data
.
pic_C_url
,(
spriteFrame
)
=>
{
this
.
getSpriteFrimeByUrl
(
this
.
data
.
pic_C_url
,(
spriteFrame
)
=>
{
let
width
=
this
.
pic_c_sprite
.
node
.
width
;
let
height
=
this
.
pic_c_sprite
.
node
.
height
;
this
.
pic_c_sprite
.
spriteFrame
=
spriteFrame
;
this
.
pic_c_sprite
.
spriteFrame
=
spriteFrame
;
this
.
pic_c_sprite
.
node
.
width
=
width
;
this
.
pic_c_sprite
.
node
.
height
=
height
;
});
});
},
},
...
...
play/assets/tmpGame/script/Tittle.ts
View file @
65e70e7a
...
@@ -14,6 +14,7 @@ export default class NewClass extends cc.Component {
...
@@ -14,6 +14,7 @@ export default class NewClass extends cc.Component {
start
()
{
start
()
{
this
.
audioSource
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
this
.
playSe
,
this
);
this
.
audioSource
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
this
.
playSe
,
this
);
// cc.view.getFrameSize
}
}
/**
/**
* 设置标题文本
* 设置标题文本
...
...
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