Commit e3a5db83 authored by Lwd's avatar Lwd

commit

parent eb3457c9
{
"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
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "d5d9a354-214a-4cc4-91e7-8b78babef622",
"subMetas": {}
}
\ No newline at end of file
{"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
{
"ver": "1.0.1",
"uuid": "4a7ff8ab-ce6e-4ff2-8dff-3bf57669833d",
"subMetas": {}
}
\ No newline at end of file
{
"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
This diff is collapsed.
...@@ -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) {
this.showEndEffect(); if (OP26.data_mgr.getIsFinishDB()) {
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, () => {
this.showEndEffect(); if (OP26.data_mgr.getIsFinishDB()) {
this.showEndEffect();
} else {
this.showRestartBtn();
}
// this.showEndEffect();
// this.showRestartBtn(); // this.showRestartBtn();
}) })
}) })
......
...@@ -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";
......
...@@ -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;
......
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