Commit 00d9c424 authored by 范雪寒's avatar 范雪寒

feat:

parent 998f34cc
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "304c8042-dfa5-44bf-9ef9-8889c921a013",
"subMetas": {}
}
\ No newline at end of file
{"width":2048,"SubTexture":[{"width":1280,"y":1,"height":720,"name":"从中间往四周炸星星停留1s后消失/背景","x":1},{"width":127,"y":879,"height":123,"name":"从中间往四周炸星星停留1s后消失/发光星星","x":1},{"width":72,"y":952,"height":69,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_13","x":817},{"width":46,"y":963,"height":44,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_17","x":571},{"width":46,"y":955,"height":44,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_18","x":738},{"width":46,"y":971,"height":44,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_19","x":381},{"width":46,"y":956,"height":44,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_20","x":658},{"width":77,"y":879,"height":74,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_14","x":738},{"width":159,"y":723,"height":154,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝","x":1},{"width":159,"y":723,"height":154,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_2","x":806},{"width":124,"y":879,"height":120,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_3","x":130},{"width":85,"y":879,"height":82,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_15","x":571},{"width":73,"y":879,"height":71,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_16","x":817},{"width":93,"y":879,"height":90,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_5","x":476},{"width":93,"y":879,"height":90,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_6","x":381},{"width":78,"y":879,"height":75,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_7","x":658},{"width":159,"y":723,"height":154,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_12","x":162},{"width":159,"y":723,"height":154,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_9","x":484},{"width":123,"y":879,"height":119,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_10","x":256},{"width":159,"y":723,"height":154,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_11","x":645},{"width":159,"y":723,"height":154,"name":"从中间往四周炸星星停留1s后消失/发光星星_拷贝_8","x":323}],"height":1024,"name":"star","imagePath":"star_tex.png"}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "060ce59e-6380-447a-ac67-75270cbf6a8a",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3ab2811e-fc4a-499f-9601-686c6d823253",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 1024,
"platformSettings": {},
"subMetas": {
"star_tex": {
"ver": "1.0.4",
"uuid": "7ac379af-44e9-417c-bfbe-21d1a586c798",
"rawTextureUuid": "3ab2811e-fc4a-499f-9601-686c6d823253",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -383,
"offsetY": 1,
"trimX": 1,
"trimY": 1,
"width": 1280,
"height": 1020,
"rawWidth": 2048,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
import { initAir } from "./air"; import { initAir } from "./air";
import { middleLayerBase } from "./middleLayerBase"; import { middleLayerBase } from "./middleLayerBase";
import { buttonOnceClick, buttonOnClick } from "./util"; import { asyncLoadDragonBoneAnime, buttonOnceClick, buttonOnClick } from "./util";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
...@@ -74,12 +74,42 @@ export default class NewClass extends middleLayerBase { ...@@ -74,12 +74,42 @@ export default class NewClass extends middleLayerBase {
// 如果是part 的最后一页课件,播放获得拼读小伙的动画 // 如果是part 的最后一页课件,播放获得拼读小伙的动画
if (this.courseIndex == this.courses.length - 1) { if (this.courseIndex == this.courses.length - 1) {
this.playGetParterAnim(); await this.playGetParterAnim();
} }
// 如果是最后一个part,要解锁下一个文件夹 // 如果是最后一个part,要解锁下一个文件夹
} }
playGetParterAnim() {
async playGetParterAnim() {
// const animData = this.getData('NJ_game_select: partnerData');
const animData = {
havePic: "http://staging-teach.cdn.ireadabc.com/7a23e43f8ec4964e3feb9709ec553fd4.png",
skeJsonData: {
url: "http://staging-teach.cdn.ireadabc.com/5069b9316d9b69705281752f03b47901.json",
name: "mao_ske.json"
},
texJsonData: {
url: "http://staging-teach.cdn.ireadabc.com/3bbb72fd8ad3c02aa1df8d3785f4b34f.json",
name: "mao_tex.json"
},
texPngData: {
url: "http://staging-teach.cdn.ireadabc.com/c130de476dac5e9bbd71f92b2711d3ba.png",
name: "mao_tex.png"
},
}
console.log(this.node.width);
console.log(this.node.height);
const coolcat = cc.find('middleLayer/coolcat');
await asyncLoadDragonBoneAnime(coolcat, animData);
const animaNode = coolcat['animaNode'];
animaNode.scale = 0.6;
animaNode.getComponent(dragonBones.ArmatureDisplay).playAnimation('normal', -1);
const widget: cc.Widget = animaNode.addComponent(cc.Widget);
widget.isAlignBottom = true;
widget.isAlignRight = true;
widget.right = 600;
widget.bottom = 340;
coolcat.active = true;
// animData.havePic
} }
hideWaitingLetters() { hideWaitingLetters() {
cc.find('middleLayer/loadingLayer').active = false; cc.find('middleLayer/loadingLayer').active = false;
...@@ -144,6 +174,11 @@ export default class NewClass extends middleLayerBase { ...@@ -144,6 +174,11 @@ export default class NewClass extends middleLayerBase {
} }
this.initListener(); this.initListener();
setTimeout(() => {
console.log('playGetParterAnim');
this.playGetParterAnim();
}, 4000);
} }
initListener() { initListener() {
......
{
"ver": "2.3.5",
"uuid": "a9b74b58-7019-49b6-9bd5-95370d7f960f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 576,
"height": 576,
"platformSettings": {},
"subMetas": {
"拼读小伙伴背后转光": {
"ver": "1.0.4",
"uuid": "45d79668-f606-4017-a94e-55644dc93641",
"rawTextureUuid": "a9b74b58-7019-49b6-9bd5-95370d7f960f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 576,
"height": 576,
"rawWidth": 576,
"rawHeight": 576,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"version": "1.1.1",
"windows": {
"main": {
"main": true,
"url": "app://editor/index.html",
"windowType": "dockable",
"x": 0,
"y": 23,
"width": 1680,
"height": 1027,
"layout": {
"type": "dock-h",
"children": [
{
"width": 283,
"height": 948,
"type": "dock-v",
"children": [
{
"width": 283,
"height": 401,
"type": "panel",
"active": 0,
"children": [
"hierarchy"
]
},
{
"width": 283,
"height": 544,
"type": "panel",
"active": 0,
"children": [
"assets"
]
}
]
},
{
"width": 1065,
"height": 948,
"type": "dock-v",
"children": [
{
"width": 1065,
"height": 678.984375,
"type": "dock-h",
"children": [
{
"width": 785.734375,
"height": 678.984375,
"type": "panel",
"active": 0,
"children": [
"scene"
]
},
{
"width": 276.265625,
"height": 678.984375,
"type": "panel",
"active": 0,
"children": [
"node-library"
]
}
]
},
{
"width": 1065,
"height": 266,
"type": "panel",
"active": 0,
"children": [
"console",
"timeline",
"game-window"
]
}
]
},
{
"width": 326,
"height": 948,
"type": "panel",
"active": 0,
"children": [
"inspector",
"cocos-services"
]
}
]
},
"panels": [
"hierarchy",
"assets",
"scene",
"node-library",
"console",
"timeline",
"game-window",
"inspector",
"cocos-services"
]
},
"worker": {}
},
"panels": {},
"panelLabelWidth": {}
}
{
"last-edit": "0737ce42-24f0-45c6-8e1a-8bdab4f74ba3",
"recent-items": [
"0737ce42-24f0-45c6-8e1a-8bdab4f74ba3"
]
}
{
"user": {
"name": "User",
"prefab": []
}
}
{
"nodeFoldStates": [
"eezEZLXWtMaq/uGQHUptlc",
"9bLfcYeeNKrr524vzWchiM",
"53LUHHG2pEr79fyrvazXJs",
"d9f+b0lmZGSJJae6zrADhp",
"a5esZu+45LA5mBpvttspPD",
"6caZQRGatDJJMWpck1fhab",
"129LljDQdMwInPkc014det",
"dakzXgcFFDe7XQsi8SiYG5",
"bc+NX8srtGCpx8x3MHUErI",
"24Zl1MP11Mt6VlqPvlG3rl",
"0f1T6DNhBOHY8hHqUk9ZAE",
"93uSl1NwFDwIOXrw1DgVsg"
]
}
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