Commit 4bb2df93 authored by limingzhe's avatar limingzhe

fix: debug

parent e76b3369
{
"ver": "1.1.2",
"uuid": "169086d3-5f58-40ad-b475-e2b1cdaf7f02",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"frameRate":24,"name":"try_again","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"Armature","aabb":{"x":-708.24,"y":-1120.53,"width":1414.96,"height":1118.99},"bone":[{"name":"root"},{"length":227,"name":"face","parent":"root","transform":{"x":12.5672,"y":-194.7668,"skX":-88.1504,"skY":-88.1504}},{"length":91,"name":"mouth","parent":"root","transform":{"x":-1.9,"y":-236.7,"skX":-91.1955,"skY":-91.1955}},{"length":343,"name":"weight","parent":"root","transform":{"x":405.85,"y":-266.6,"skX":-77.1141,"skY":-77.1141}},{"length":104,"name":"smile1","parent":"root","transform":{"x":-1.8,"y":-263.05,"skX":90,"skY":90}},{"length":59,"name":"zhengyan1","parent":"root","transform":{"x":-159.1,"y":-367.65,"skX":91.1073,"skY":91.1073}},{"length":66,"name":"zhengyan11","parent":"root","transform":{"x":134.95,"y":-370,"skX":90,"skY":90}},{"length":55,"name":"nuyan2","parent":"root","transform":{"x":-157.65,"y":-307.4,"skX":-91.0322,"skY":-91.0322}},{"length":61,"name":"nuyan1","parent":"root","transform":{"x":132.85,"y":-306.4,"skX":-89.0677,"skY":-89.0677}},{"length":121,"name":"Leaf1","parent":"face","transform":{"x":338.4605,"y":-26.3052,"skX":-51.4455,"skY":-51.4455}},{"length":126,"name":"Leaf2","parent":"face","transform":{"x":414.1692,"y":9.92,"skX":50.6575,"skY":50.6575}}],"slot":[{"name":"leg2","parent":"root"},{"name":"leg1","parent":"root"},{"name":"Leaf1","parent":"Leaf1"},{"name":"Leaf2","parent":"Leaf2"},{"name":"face","parent":"face"},{"name":"try again","parent":"root"},{"name":"mouth","parent":"mouth"},{"name":"weight","parent":"weight"},{"displayIndex":-1,"name":"smile","parent":"root"},{"name":"smile1","parent":"smile1"},{"name":"zhengyan1","parent":"zhengyan1"},{"name":"zhengyan11","parent":"zhengyan11"},{"name":"nuyan2","parent":"nuyan2"},{"name":"nuyan1","parent":"nuyan1"}],"skin":[{"slot":[{"name":"Leaf2","display":[{"name":"Leaf2","transform":{"x":27.82,"y":38.75,"skX":37.49,"skY":37.49}}]},{"name":"mouth","display":[{"name":"mouth","transform":{"x":9.1,"y":1.58,"skX":91.2,"skY":91.2,"scX":2,"scY":2}}]},{"name":"Leaf1","display":[{"name":"Leaf1","transform":{"x":84.54,"y":-11.66,"skX":139.88,"skY":139.88}}]},{"name":"weight","display":[{"name":"weight","transform":{"x":50.35,"y":-443.49,"skX":77.11,"skY":77.11}}]},{"name":"leg1","display":[{"name":"leg1","transform":{"x":-163.18,"y":-99.05}}]},{"name":"smile1","display":[{"name":"smile","transform":{"x":56.11,"y":0.39,"skX":-90,"skY":-90,"scX":2,"scY":2}}]},{"name":"zhengyan1","display":[{"name":"zhengyan1","transform":{"x":31.09,"y":-2.27,"skX":-91.11,"skY":-91.11}}]},{"name":"zhengyan11","display":[{"name":"zhengyan1","transform":{"x":33.48,"y":-2.28,"skX":-90,"skY":-90}}]},{"name":"nuyan2","display":[{"name":"nuyan2","transform":{"x":23.55,"y":-0.88,"skX":91.03,"skY":91.03}}]},{"name":"nuyan1","display":[{"name":"nuyan1","transform":{"x":25.16,"y":9.7,"skX":89.07,"skY":89.07}}]},{"name":"face","display":[{"name":"face","transform":{"x":104.66,"y":-14.15,"skX":88.15,"skY":88.15}}]},{"name":"leg2","display":[{"name":"leg2","transform":{"x":155.25,"y":-100.16}}]},{"name":"try again","display":[{"name":"try again","transform":{"x":0.72,"y":-949.53,"skX":-0.03,"skY":-0.03}}]}]}],"animation":[{"duration":40,"playTimes":0,"name":"newAnimation","bone":[{"name":"face","translateFrame":[{"duration":30,"curve":[0.029268292682926828,-1,0.8714240755310778,-0.6567796610169491]},{"duration":10,"y":-58.33}]},{"name":"mouth","translateFrame":[{"duration":30,"curve":[0.07317073170731708,-1,0.7852004960727573,-0.4152542372881356]},{"duration":10,"x":2.77,"y":-56.73}],"scaleFrame":[{"duration":35},{"duration":5,"x":0.01,"y":0.01}]},{"name":"Leaf2","translateFrame":[{"duration":30,"tweenEasing":0},{"duration":10,"x":-6,"y":1}],"rotateFrame":[{"duration":30,"tweenEasing":0},{"duration":10,"rotate":14}]},{"name":"Leaf1","translateFrame":[{"duration":30,"tweenEasing":0},{"duration":10,"y":18.5}],"rotateFrame":[{"duration":30,"tweenEasing":0},{"duration":10,"rotate":-8.5}]},{"name":"weight","translateFrame":[{"duration":30,"curve":[0.24146341463414636,-1,0.9195121951219514,-0.608433734939759]},{"duration":5,"curve":[0.5,0,0.5,1],"y":-69.61},{"duration":5,"curve":[0.5,0,0.5,1],"y":-44.83},{"duration":0,"y":-70.78}]},{"name":"smile1","translateFrame":[{"duration":27},{"duration":6,"curve":[0.31219512195121946,-0.16525423728813537,0.5,1]},{"duration":7,"y":-51.16}],"scaleFrame":[{"duration":27,"curve":[0.5,0,0.5,1],"x":0.01,"y":0.01},{"duration":6,"curve":[0.5,0,0.5,1],"x":0.01,"y":0.01},{"duration":7}]},{"name":"zhengyan1","translateFrame":[{"duration":29},{"curve":[0.03170731707317076,-1,0.8097560975609754,-0.016949152542372878]},{"duration":10,"y":-58.77}],"scaleFrame":[{"duration":29,"tweenEasing":0,"x":0.01,"y":0.01},{"curve":[0.5,0,0.5,1],"x":0.01,"y":0.01},{"duration":10}]},{"name":"zhengyan11","translateFrame":[{"duration":29},{"curve":[0.019512195121951237,-0.9661016949152542,0.8560975609756096,0.03389830508474579]},{"duration":10,"y":-58.77}],"scaleFrame":[{"duration":29,"tweenEasing":0,"x":0.01,"y":0.01},{"curve":[0.5,0,0.5,1],"x":0.01,"y":0.01},{"duration":10}]},{"name":"nuyan2","translateFrame":[{"duration":30,"curve":[0.026829268292682968,-1,0.8170731707317074,0.00847457627118646]},{"duration":10,"y":-59.21}],"scaleFrame":[{"duration":30,"curve":[0.5,0,0.5,1]},{"duration":4,"tweenEasing":0},{"duration":6,"x":0.01,"y":0.01}]},{"name":"nuyan1","translateFrame":[{"duration":30,"curve":[0.10487804878048779,-1,0.7926829268292683,-0.05508474576271177]},{"duration":10,"y":-59.21}],"scaleFrame":[{"duration":30,"curve":[0.5,0,0.5,1]},{"duration":4,"tweenEasing":0},{"duration":6,"x":0.01,"y":0.01}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}],"canvas":{"width":800,"height":600}}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "f2f929b1-fcb5-4d10-9999-ba24223a3737",
"subMetas": {}
}
\ No newline at end of file
{"name":"try_again","imagePath":"try_again_tex.png","SubTexture":[{"name":"leg2","x":1330,"height":196,"y":222,"width":121},{"name":"leg1","x":1414,"height":195,"y":420,"width":118},{"name":"Leaf1","x":1453,"height":128,"y":222,"width":153},{"name":"Leaf2","x":1330,"height":219,"y":1,"width":197},{"name":"face","x":1,"height":493,"frameY":0,"y":807,"frameHeight":494,"frameX":-1,"frameWidth":896,"width":895},{"name":"try again","x":1,"height":342,"frameY":0,"y":463,"frameHeight":342,"frameX":-1,"frameWidth":1412,"width":1411},{"name":"mouth","x":1330,"height":19,"y":420,"width":45},{"name":"weight","x":1,"height":460,"frameY":-5,"y":1,"frameHeight":500,"frameX":-30,"frameWidth":1386,"width":1327},{"name":"smile","x":1529,"height":70,"frameY":0,"y":1,"frameHeight":70,"frameX":-1,"frameWidth":90,"width":88},{"name":"zhengyan1","x":1595,"height":79,"y":73,"width":53},{"name":"nuyan2","x":1529,"height":70,"y":73,"width":64},{"name":"nuyan1","x":1529,"height":70,"y":145,"width":64}],"height":2048,"width":2048}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "eb8199db-22b6-4c14-bdb9-5557e6f6ab66",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "51febecc-8a1d-46a7-8c81-82aabb9e7df4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 2048,
"platformSettings": {},
"subMetas": {
"try_again_tex": {
"ver": "1.0.4",
"uuid": "797a80cf-b763-4dce-b958-8f16c5dce47b",
"rawTextureUuid": "51febecc-8a1d-46a7-8c81-82aabb9e7df4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -199.5,
"offsetY": 373.5,
"trimX": 1,
"trimY": 1,
"width": 1647,
"height": 1299,
"rawWidth": 2048,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "cee8b653-d456-4bfd-aae8-9b0caef7eba4",
"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": "86efe718-d163-480e-ac3c-bd8b36f6fd26",
"subMetas": {}
}
\ No newline at end of file
{"name":"win","imagePath":"win_tex.png","SubTexture":[{"name":"1","x":125,"height":109,"y":681,"width":109},{"name":"2","x":403,"height":111,"y":615,"width":111},{"name":"3","x":604,"height":159,"y":225,"width":153},{"name":"4","x":640,"height":91,"y":528,"width":91},{"name":"5","x":1,"height":106,"y":682,"width":106},{"name":"6","x":805,"height":206,"y":1,"width":173},{"name":"7","x":1,"height":101,"y":790,"width":97},{"name":"leg1","x":125,"height":183,"y":496,"width":119},{"name":"leg2","x":1,"height":184,"y":496,"width":122},{"name":"arm","x":920,"height":172,"frameY":-15,"y":400,"frameHeight":214,"frameX":-41,"frameWidth":170,"width":94},{"name":"zan","x":805,"height":189,"frameY":0,"y":209,"frameHeight":190,"frameX":0,"frameWidth":164,"width":155},{"name":"Leaf1","x":246,"height":130,"y":496,"width":155},{"name":"Leaf2","x":604,"height":222,"y":1,"width":199},{"name":"路径 20备份 3","x":779,"height":164,"y":400,"width":139},{"name":"椭圆形备份 2","x":733,"height":79,"y":566,"width":79},{"name":"星形备份 9","x":246,"height":109,"y":647,"width":111},{"name":"face","x":1,"height":493,"frameY":0,"y":1,"frameHeight":494,"frameX":-1,"frameWidth":602,"width":601},{"name":"mouth","x":604,"height":140,"frameY":-1,"y":386,"frameHeight":142,"frameX":-4,"frameWidth":180,"width":173},{"name":"eye2","x":522,"height":117,"frameY":0,"y":528,"frameHeight":118,"frameX":0,"frameWidth":116,"width":116},{"name":"eye1","x":403,"height":117,"frameY":0,"y":496,"frameHeight":118,"frameX":-1,"frameWidth":118,"width":117}],"height":1024,"width":1024}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "c97c3bd0-e67d-43e1-877e-260f17f38e3c",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9c824741-66ad-4755-bfa1-a3f36fad83e3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 1024,
"platformSettings": {},
"subMetas": {
"win_tex": {
"ver": "1.0.4",
"uuid": "da43011e-0060-4ba0-9eba-a3fc9d8b9a5a",
"rawTextureUuid": "9c824741-66ad-4755-bfa1-a3f36fad83e3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -4.5,
"offsetY": 66,
"trimX": 1,
"trimY": 1,
"width": 1013,
"height": 890,
"rawWidth": 1024,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
......@@ -630,6 +630,7 @@ export default class NewClass extends middleLayerBase {
showSRResult(score) {
if (this.studyRecord) {
console.log('showSRResult score: ', score);
this.showScoreLayer(score);
// this.studyRecord.showResult();
}
}
......@@ -669,5 +670,33 @@ export default class NewClass extends middleLayerBase {
}
}
showScoreLayer(score) {
const scoreLayer = cc.find('middleLayer/UI/score_layer');
if (scoreLayer) {
scoreLayer.active = true;
const animNodeWin = cc.find('middleLayer/UI/score_layer/animNodeWin');
const animNodeTry = cc.find('middleLayer/UI/score_layer/animNodeTryAgain');
if (score >= 60) {
animNodeWin.active = true;
animNodeTry.active = false;
const label = cc.find('label', animNodeWin).getComponent(cc.Label);
label.string = score;
} else {
animNodeWin.active = false;
animNodeTry.active = true;
}
}
}
closeScoreLayer() {
const scoreLayer = cc.find('middleLayer/UI/score_layer');
if (scoreLayer) {
scoreLayer.active = false;
}
}
}
{
"ver": "1.0.8",
"uuid": "c0a96350-77bc-4bf4-943c-b63854add2b4",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
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