Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP26
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
OP26
Commits
e3a5db83
Commit
e3a5db83
authored
Mar 15, 2022
by
Lwd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
eb3457c9
Changes
11
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
327 additions
and
127 deletions
+327
-127
star.meta
assets/OP26/dragonBones/star.meta
+12
-0
star_ske.json
assets/OP26/dragonBones/star/star_ske.json
+1
-0
star_ske.json.meta
assets/OP26/dragonBones/star/star_ske.json.meta
+5
-0
star_tex.json
assets/OP26/dragonBones/star/star_tex.json
+1
-0
star_tex.json.meta
assets/OP26/dragonBones/star/star_tex.json.meta
+5
-0
star_tex.png
assets/OP26/dragonBones/star/star_tex.png
+0
-0
star_tex.png.meta
assets/OP26/dragonBones/star/star_tex.png.meta
+36
-0
OP26.fire
assets/OP26/scene/OP26.fire
+225
-117
OP26.js
assets/OP26/scene/OP26.js
+12
-2
nodEndEffect.js
assets/OP26/script/game/nodEndEffect.js
+16
-1
data_mgr.js
assets/OP26/script/manager/data_mgr.js
+14
-7
No files found.
assets/OP26/dragonBones/star.meta
0 → 100644
View file @
e3a5db83
{
"ver": "1.1.2",
"uuid": "50be3a1f-84ae-4f0c-81da-a787d5b1281e",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/OP26/dragonBones/star/star_ske.json
0 → 100644
View file @
e3a5db83
This diff is collapsed.
Click to expand it.
assets/OP26/dragonBones/star/star_ske.json.meta
0 → 100644
View file @
e3a5db83
{
"ver": "1.0.1",
"uuid": "d5d9a354-214a-4cc4-91e7-8b78babef622",
"subMetas": {}
}
\ No newline at end of file
assets/OP26/dragonBones/star/star_tex.json
0 → 100644
View file @
e3a5db83
{
"name"
:
"star"
,
"SubTexture"
:[{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星"
,
"x"
:
1
,
"height"
:
123
,
"y"
:
313
,
"width"
:
127
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_13"
,
"x"
:
418
,
"height"
:
69
,
"y"
:
497
,
"width"
:
72
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_17"
,
"x"
:
80
,
"height"
:
44
,
"y"
:
438
,
"width"
:
46
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_18"
,
"x"
:
1
,
"height"
:
44
,
"y"
:
518
,
"width"
:
46
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_19"
,
"x"
:
418
,
"height"
:
44
,
"y"
:
568
,
"width"
:
46
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_20"
,
"x"
:
80
,
"height"
:
44
,
"y"
:
484
,
"width"
:
46
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_14"
,
"x"
:
1
,
"height"
:
74
,
"y"
:
438
,
"width"
:
77
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝"
,
"x"
:
1
,
"height"
:
154
,
"y"
:
157
,
"width"
:
159
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_2"
,
"x"
:
323
,
"height"
:
154
,
"y"
:
157
,
"width"
:
159
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_3"
,
"x"
:
130
,
"height"
:
120
,
"y"
:
313
,
"width"
:
124
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_15"
,
"x"
:
256
,
"height"
:
82
,
"y"
:
434
,
"width"
:
85
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_16"
,
"x"
:
343
,
"height"
:
71
,
"y"
:
497
,
"width"
:
73
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_5"
,
"x"
:
381
,
"height"
:
90
,
"y"
:
405
,
"width"
:
93
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_6"
,
"x"
:
381
,
"height"
:
90
,
"y"
:
313
,
"width"
:
93
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_7"
,
"x"
:
130
,
"height"
:
75
,
"y"
:
435
,
"width"
:
78
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_12"
,
"x"
:
162
,
"height"
:
154
,
"y"
:
157
,
"width"
:
159
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_9"
,
"x"
:
1
,
"height"
:
154
,
"y"
:
1
,
"width"
:
159
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_10"
,
"x"
:
256
,
"height"
:
119
,
"y"
:
313
,
"width"
:
123
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_11"
,
"x"
:
323
,
"height"
:
154
,
"y"
:
1
,
"width"
:
159
},{
"name"
:
"从中间往四周炸星星停留1s后消失/发光星星_拷贝_8"
,
"x"
:
162
,
"height"
:
154
,
"y"
:
1
,
"width"
:
159
}],
"imagePath"
:
"star_tex.png"
,
"height"
:
1024
,
"width"
:
512
}
\ No newline at end of file
assets/OP26/dragonBones/star/star_tex.json.meta
0 → 100644
View file @
e3a5db83
{
"ver": "1.0.1",
"uuid": "4a7ff8ab-ce6e-4ff2-8dff-3bf57669833d",
"subMetas": {}
}
\ No newline at end of file
assets/OP26/dragonBones/star/star_tex.png
0 → 100644
View file @
e3a5db83
175 KB
assets/OP26/dragonBones/star/star_tex.png.meta
0 → 100644
View file @
e3a5db83
{
"ver": "2.3.5",
"uuid": "89dae33f-4ebb-405f-b00c-f03bbb419635",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 1024,
"platformSettings": {},
"subMetas": {
"star_tex": {
"ver": "1.0.4",
"uuid": "e24282cf-7ccf-491f-8c72-70ccad2e64ca",
"rawTextureUuid": "89dae33f-4ebb-405f-b00c-f03bbb419635",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -10.5,
"offsetY": 205.5,
"trimX": 1,
"trimY": 1,
"width": 489,
"height": 611,
"rawWidth": 512,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/OP26/scene/OP26.fire
View file @
e3a5db83
This diff is collapsed.
Click to expand it.
assets/OP26/scene/OP26.js
View file @
e3a5db83
...
@@ -155,13 +155,23 @@ var game = cc.Class({
...
@@ -155,13 +155,23 @@ var game = cc.Class({
//播放引导音频
//播放引导音频
let
path
=
OP26
.
data_mgr
.
getAudioEnd
();
let
path
=
OP26
.
data_mgr
.
getAudioEnd
();
if
(
path
==
-
1
)
{
if
(
path
==
-
1
)
{
if
(
OP26
.
data_mgr
.
getIsFinishDB
())
{
this
.
showEndEffect
();
this
.
showEndEffect
();
}
else
{
this
.
showRestartBtn
();
}
// this.showEndEffect();
// this.showRestartBtn();
// this.showRestartBtn();
return
return
}
}
OP26
.
res_mgr
.
playAudioByUrl
(
path
,
(
url
)
=>
{
OP26
.
res_mgr
.
playAudioByUrl
(
path
,
(
url
)
=>
{
OP26
.
snd_mgr
.
playEffect
(
url
,
()
=>
{
OP26
.
snd_mgr
.
playEffect
(
url
,
()
=>
{
if
(
OP26
.
data_mgr
.
getIsFinishDB
())
{
this
.
showEndEffect
();
this
.
showEndEffect
();
}
else
{
this
.
showRestartBtn
();
}
// this.showEndEffect();
// this.showRestartBtn();
// this.showRestartBtn();
})
})
})
})
...
...
assets/OP26/script/game/nodEndEffect.js
View file @
e3a5db83
...
@@ -22,7 +22,13 @@ cc.Class({
...
@@ -22,7 +22,13 @@ cc.Class({
default
:
null
,
default
:
null
,
type
:
cc
.
Node
,
type
:
cc
.
Node
,
displayName
:
"
缩放节点
"
displayName
:
"
缩放节点
"
}
},
dbStar
:
{
default
:
null
,
type
:
dragonBones
.
ArmatureDisplay
,
displayName
:
"
星星龙骨
"
},
},
},
start
:
function
()
{
start
:
function
()
{
...
@@ -85,9 +91,11 @@ cc.Class({
...
@@ -85,9 +91,11 @@ cc.Class({
.
to
(
0.15
,
{
scale
:
1
})
.
to
(
0.15
,
{
scale
:
1
})
.
call
(()
=>
{
.
call
(()
=>
{
this
.
rotateItem
(
this
.
nodEffLight
)
this
.
rotateItem
(
this
.
nodEffLight
)
this
.
playStar
();
})
})
.
start
();
.
start
();
},
},
setDragon
()
{
setDragon
()
{
//先设置节点大小为0,
//先设置节点大小为0,
var
Info
=
{
var
Info
=
{
...
@@ -99,6 +107,13 @@ cc.Class({
...
@@ -99,6 +107,13 @@ cc.Class({
this
.
playDragon
(
"
normal
"
);
this
.
playDragon
(
"
normal
"
);
},
},
//播放星星动画
playStar
()
{
this
.
dbStar
.
node
.
active
=
true
;
this
.
dbStar
.
armatureName
=
"
Armature
"
;
this
.
dbStar
.
playAnimation
(
"
normal
"
,
1
);
},
//播放动画
//播放动画
playDragon
(
name
)
{
playDragon
(
name
)
{
this
.
dragonItem
.
armatureName
=
"
armatureName
"
;
this
.
dragonItem
.
armatureName
=
"
armatureName
"
;
...
...
assets/OP26/script/manager/data_mgr.js
View file @
e3a5db83
...
@@ -17,7 +17,6 @@ OP26.data_mgr = {
...
@@ -17,7 +17,6 @@ OP26.data_mgr = {
"
option_arr
"
:
[{
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/3134325b66d1b8ecf2f83db853195da5.png
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/e3921a16a8313df274d8bc4e3f2bedd8.mp3
"
,
"
is_right
"
:
true
,
"
text
"
:
"
a
"
},
"
option_arr
"
:
[{
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/3134325b66d1b8ecf2f83db853195da5.png
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/e3921a16a8313df274d8bc4e3f2bedd8.mp3
"
,
"
is_right
"
:
true
,
"
text
"
:
"
a
"
},
{
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/3134325b66d1b8ecf2f83db853195da5.png
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/58eec304909298176bde6c408c9dac1b.mp3
"
,
"
is_right
"
:
false
,
"
text
"
:
"
b
"
},
{
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/3134325b66d1b8ecf2f83db853195da5.png
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/58eec304909298176bde6c408c9dac1b.mp3
"
,
"
is_right
"
:
false
,
"
text
"
:
"
b
"
},
{
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/3134325b66d1b8ecf2f83db853195da5.png
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/e3921a16a8313df274d8bc4e3f2bedd8.mp3
"
,
"
is_right
"
:
true
,
"
text
"
:
"
c
"
}],
{
"
pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/3134325b66d1b8ecf2f83db853195da5.png
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/e3921a16a8313df274d8bc4e3f2bedd8.mp3
"
,
"
is_right
"
:
true
,
"
text
"
:
"
c
"
}],
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/25432da42768ff9681946ea7fc7ee272.mp3
"
},
},
{
{
"
question_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/25432da42768ff9681946ea7fc7ee272.mp3
"
,
"
question_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/25432da42768ff9681946ea7fc7ee272.mp3
"
,
...
@@ -43,12 +42,12 @@ OP26.data_mgr = {
...
@@ -43,12 +42,12 @@ OP26.data_mgr = {
"
tex_png
"
:
"
http://staging-teach.cdn.ireadabc.com/2fd2a53fcb36d36281a6ded9500dd54f.png
"
,
"
tex_png
"
:
"
http://staging-teach.cdn.ireadabc.com/2fd2a53fcb36d36281a6ded9500dd54f.png
"
,
"
tex_png_name
"
:
"
lion_tex.png
"
,
"
tex_png_name
"
:
"
lion_tex.png
"
,
"
ske_json1
"
:
"
http://staging-teach.cdn.ireadabc.com/7355648029551e6848a2cf36ea8a6ba6.json
"
,
//
"ske_json1": "http://staging-teach.cdn.ireadabc.com/7355648029551e6848a2cf36ea8a6ba6.json",
"
ske_json1_name
"
:
"
lion_ske.json
"
,
//
"ske_json1_name": "lion_ske.json",
"
tex_json1
"
:
"
http://staging-teach.cdn.ireadabc.com/511fe163f2df10925e3da82f0f69590b.json
"
,
//
"tex_json1": "http://staging-teach.cdn.ireadabc.com/511fe163f2df10925e3da82f0f69590b.json",
"
tex_json1_name
"
:
"
lion_tex.json
"
,
//
"tex_json1_name": "lion_tex.json",
"
tex_png1
"
:
"
http://staging-teach.cdn.ireadabc.com/2fd2a53fcb36d36281a6ded9500dd54f.png
"
,
//
"tex_png1": "http://staging-teach.cdn.ireadabc.com/2fd2a53fcb36d36281a6ded9500dd54f.png",
"
tex_png1_name
"
:
"
lion_tex.png
"
,
//
"tex_png1_name": "lion_tex.png",
"
guideBegin_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/bd6e2b3a870ef3f9ee9ad9c0fda79228.mp3
"
,
"
guideBegin_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/bd6e2b3a870ef3f9ee9ad9c0fda79228.mp3
"
,
"
guideEnd_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/bd6e2b3a870ef3f9ee9ad9c0fda79228.mp3
"
,
"
guideEnd_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/bd6e2b3a870ef3f9ee9ad9c0fda79228.mp3
"
,
...
@@ -60,6 +59,14 @@ OP26.data_mgr = {
...
@@ -60,6 +59,14 @@ OP26.data_mgr = {
return
data
;
return
data
;
},
},
//获得是否配置结束龙骨
getIsFinishDB
()
{
if
(
this
.
data
.
tex_json1
&&
this
.
data
.
ske_json1
&&
this
.
data
.
tex_png1
)
{
return
true
;
}
return
false
;
},
getAudioBegin
()
{
getAudioBegin
()
{
if
(
!
this
.
data
.
guideBegin_audio_url
)
return
-
1
;
if
(
!
this
.
data
.
guideBegin_audio_url
)
return
-
1
;
return
this
.
data
.
guideBegin_audio_url
;
return
this
.
data
.
guideBegin_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