├── bes.png ├── hermite.png ├── settings ├── services.json ├── builder.panel.json ├── builder.json └── project.json ├── template-banner.png ├── assets ├── Texture │ ├── HelloWorld.png │ ├── singleColor.png │ ├── postion.prefab.meta │ ├── singleColor.png.meta │ ├── HelloWorld.png.meta │ └── postion.prefab ├── Scene │ ├── Bezier.fire.meta │ ├── Hermite.fire.meta │ ├── New Scene.fire.meta │ ├── New Scene.fire │ ├── Bezier.fire │ └── Hermite.fire ├── Script │ ├── Mypoint.ts.meta │ ├── Helloworld.ts.meta │ ├── NewScript.ts.meta │ ├── DrawBezierTest.ts.meta │ ├── DrawHermiteTest.ts.meta │ ├── util │ │ ├── BezierUtil.ts.meta │ │ ├── MathUtil.ts.meta │ │ ├── HermiteProduct.ts.meta │ │ ├── MathUtil.ts │ │ ├── BezierUtil.ts │ │ └── HermiteProduct.ts │ ├── util.meta │ ├── Helloworld.ts │ ├── NewScript.ts │ ├── Mypoint.ts │ ├── DrawBezierTest.ts │ └── DrawHermiteTest.ts ├── migration │ ├── use_v2.0.x_cc.Toggle_event.js.meta │ └── use_v2.0.x_cc.Toggle_event.js ├── Scene.meta ├── Script.meta ├── Texture.meta └── migration.meta ├── template.json ├── project.json ├── jsconfig.json ├── README.md ├── tsconfig.json └── .gitignore /bes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/253056965/quxian-cocos/HEAD/bes.png -------------------------------------------------------------------------------- /hermite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/253056965/quxian-cocos/HEAD/hermite.png -------------------------------------------------------------------------------- /settings/services.json: -------------------------------------------------------------------------------- 1 | { 2 | "game": { 3 | "name": "未知游戏", 4 | "appid": "UNKNOW" 5 | } 6 | } -------------------------------------------------------------------------------- /template-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/253056965/quxian-cocos/HEAD/template-banner.png -------------------------------------------------------------------------------- /assets/Texture/HelloWorld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/253056965/quxian-cocos/HEAD/assets/Texture/HelloWorld.png -------------------------------------------------------------------------------- /assets/Texture/singleColor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/253056965/quxian-cocos/HEAD/assets/Texture/singleColor.png -------------------------------------------------------------------------------- /template.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TEMPLATES.helloworld-ts.name", 3 | "desc": "TEMPLATES.helloworld-ts.desc", 4 | "banner": "template-banner.png" 5 | } -------------------------------------------------------------------------------- /project.json: -------------------------------------------------------------------------------- 1 | { 2 | "engine": "cocos2d-html5", 3 | "packages": "packages", 4 | "version": "2.4.2", 5 | "id": "5e5ee1a2-56fd-4e28-b2e1-62076bcc41ef", 6 | "isNew": false 7 | } -------------------------------------------------------------------------------- /assets/Scene/Bezier.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.8", 3 | "uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Scene/Hermite.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.8", 3 | "uuid": "f6daff0c-7ad1-4faf-8613-6ee7471f42dd", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Scene/New Scene.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.8", 3 | "uuid": "1c30adc6-9ca9-4224-8c16-d1a307e55964", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": true, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /settings/builder.panel.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludeScenes": [], 3 | "packageName": "org.cocos2d.helloworld", 4 | "platform": "web-mobile", 5 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49", 6 | "title": "HelloWorld" 7 | } -------------------------------------------------------------------------------- /assets/Texture/postion.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.7", 3 | "uuid": "b7199310-398c-429e-afd5-76cb6a1fbd10", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/Script/Mypoint.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "6b514ee6-4dde-48a9-a634-b6808236057d", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/Helloworld.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "e1b90feb-a217-4493-849d-9a611900d683", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/NewScript.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "e794a9ae-4f2f-4355-b352-9e9f299dc347", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/DrawBezierTest.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "9905c75e-cb87-4197-bdfa-c118ecfded71", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/DrawHermiteTest.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "3d3c5559-c2c8-4c8e-84c2-76edaf73956b", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/util/BezierUtil.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "126e1d77-c077-4f08-9e85-d7c168dc51b7", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/util/MathUtil.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "c255e729-46f1-49db-856f-1447b81db9bf", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/util/HermiteProduct.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "c221245e-2c0e-4f46-8945-d0fd1a2871f4", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/migration/use_v2.0.x_cc.Toggle_event.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.8", 3 | "uuid": "0f217eee-cf5b-4f0e-9e83-1d22f8a13a8d", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Scene.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/Script.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/Texture.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/migration.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "e69e7350-4c6d-472e-897e-94bb7457a7b7", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /assets/Script/util.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.2", 3 | "uuid": "81eafb44-b073-4ed5-a8a6-f1fbb0f02e84", 4 | "isBundle": false, 5 | "bundleName": "", 6 | "priority": 1, 7 | "compressionType": {}, 8 | "optimizeHotUpdate": {}, 9 | "inlineSpriteFrames": {}, 10 | "isRemoteBundle": {}, 11 | "subMetas": {} 12 | } -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "module": "commonjs", 5 | "experimentalDecorators": true 6 | }, 7 | "exclude": [ 8 | "node_modules", 9 | ".vscode", 10 | "library", 11 | "local", 12 | "settings", 13 | "temp" 14 | ] 15 | } -------------------------------------------------------------------------------- /settings/builder.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludeScenes": [], 3 | "orientation": { 4 | "landscapeLeft": true, 5 | "landscapeRight": true, 6 | "portrait": false, 7 | "upsideDown": false 8 | }, 9 | "packageName": "org.cocos2d.helloworld", 10 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49", 11 | "title": "hello_world", 12 | "webOrientation": "auto" 13 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 这是个 曲线的故事 2 | ### 一个是N 个控制点的(Bezier)贝塞尔 3 | 4 | ![Image text](./bes.png) 5 | 6 | ### 一个是N个点的(Hermite)埃尔米特曲线 7 | ![Image text](./hermite.png) 8 | ### cocoscreate 版本2.4.2 9 | 每一个scene 就是一个 曲线的编辑查看界面 10 | 参考资料 11 | #### [贝塞尔 (Bezier) 曲线](https://zh.wikipedia.org/wiki/%E8%B2%9D%E8%8C%B2%E6%9B%B2%E7%B7%9A) 12 | 13 | #### [埃尔米特(Hermite)](http://www.tangrui.net/2006/algorithm-and-implementation-of-hermite-curve.html) 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ "es2015", "es2017", "dom" ], 5 | "target": "es5", 6 | "experimentalDecorators": true, 7 | "skipLibCheck": true, 8 | "outDir": "temp/vscode-dist", 9 | "forceConsistentCasingInFileNames": true 10 | }, 11 | "exclude": [ 12 | "node_modules", 13 | "library", 14 | "local", 15 | "temp", 16 | "build", 17 | "settings" 18 | ] 19 | } -------------------------------------------------------------------------------- /assets/Script/Helloworld.ts: -------------------------------------------------------------------------------- 1 | import BezierUtil from "./util/BezierUtil"; 2 | 3 | const { ccclass, property } = cc._decorator; 4 | 5 | @ccclass 6 | export default class Helloworld extends cc.Component { 7 | 8 | @property(cc.Label) 9 | label: cc.Label = null; 10 | 11 | @property 12 | text: string = 'hello'; 13 | 14 | start() { 15 | // // init logic 16 | // this.label.string = this.text; 17 | 18 | // let str= BezierUtil.productGongShi(6); 19 | // console.log(str); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /assets/migration/use_v2.0.x_cc.Toggle_event.js: -------------------------------------------------------------------------------- 1 | /* 2 | * This script is automatically generated by Cocos Creator and is only compatible with projects prior to v2.1.0. 3 | * You do not need to manually add this script in any other project. 4 | * If you don't use cc.Toggle in your project, you can delete this script directly. 5 | * If your project is hosted in VCS such as git, submit this script together. 6 | * 7 | * 此脚本由 Cocos Creator 自动生成,仅用于兼容 v2.1.0 之前版本的工程, 8 | * 你无需在任何其它项目中手动添加此脚本。 9 | * 如果你的项目中没用到 Toggle,可直接删除该脚本。 10 | * 如果你的项目有托管于 git 等版本库,请将此脚本一并上传。 11 | */ 12 | 13 | if (cc.Toggle) { 14 | // Whether the 'toggle' and 'checkEvents' events are fired when 'toggle.check() / toggle.uncheck()' is called in the code 15 | // 在代码中调用 'toggle.check() / toggle.uncheck()' 时是否触发 'toggle' 与 'checkEvents' 事件 16 | cc.Toggle._triggerEventInScript_check = true; 17 | } 18 | -------------------------------------------------------------------------------- /assets/Texture/singleColor.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 2, 11 | "height": 2, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "singleColor": { 15 | "ver": "1.0.4", 16 | "uuid": "410fb916-8721-4663-bab8-34397391ace7", 17 | "rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 2, 26 | "height": 2, 27 | "rawWidth": 2, 28 | "rawHeight": 2, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /settings/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "cocos-analytics": { 3 | "appID": "13798", 4 | "appSecret": "959b3ac0037d0f3c2fdce94f8421a9b2", 5 | "channel": "", 6 | "enable": false, 7 | "version": "" 8 | }, 9 | "collision-matrix": [ 10 | [ 11 | true 12 | ] 13 | ], 14 | "design-resolution-height": 640, 15 | "design-resolution-width": 960, 16 | "excluded-modules": [ 17 | "Geom Utils", 18 | "3D", 19 | "3D Primitive", 20 | "3D Physics/cannon.js", 21 | "3D Physics/Builtin", 22 | "3D Particle", 23 | "SafeArea" 24 | ], 25 | "fit-height": true, 26 | "fit-width": false, 27 | "group-list": [ 28 | "default" 29 | ], 30 | "simulator-orientation": false, 31 | "simulator-resolution": { 32 | "height": 640, 33 | "width": 960 34 | }, 35 | "use-customize-simulator": false, 36 | "use-project-simulator-setting": false, 37 | "start-scene": "current", 38 | "migrate-history": [ 39 | "cloud-function" 40 | ] 41 | } 42 | -------------------------------------------------------------------------------- /assets/Texture/HelloWorld.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.5", 3 | "uuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "width": 195, 11 | "height": 270, 12 | "platformSettings": {}, 13 | "subMetas": { 14 | "HelloWorld": { 15 | "ver": "1.0.4", 16 | "uuid": "31bc895a-c003-4566-a9f3-2e54ae1c17dc", 17 | "rawTextureUuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4", 18 | "trimType": "auto", 19 | "trimThreshold": 1, 20 | "rotated": false, 21 | "offsetX": 0, 22 | "offsetY": 0, 23 | "trimX": 0, 24 | "trimY": 0, 25 | "width": 195, 26 | "height": 270, 27 | "rawWidth": 195, 28 | "rawHeight": 270, 29 | "borderTop": 0, 30 | "borderBottom": 0, 31 | "borderLeft": 0, 32 | "borderRight": 0, 33 | "subMetas": {} 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /assets/Script/NewScript.ts: -------------------------------------------------------------------------------- 1 | // Learn TypeScript: 2 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/typescript.html 3 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html 4 | // Learn Attribute: 5 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html 6 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html 7 | // Learn life-cycle callbacks: 8 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html 9 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html 10 | 11 | const {ccclass, property} = cc._decorator; 12 | 13 | @ccclass 14 | export default class NewClass extends cc.Component { 15 | 16 | @property(cc.Label) 17 | label: cc.Label = null; 18 | 19 | @property 20 | text: string = 'hello'; 21 | 22 | // LIFE-CYCLE CALLBACKS: 23 | 24 | // onLoad () {} 25 | 26 | start () { 27 | 28 | } 29 | 30 | // update (dt) {} 31 | } 32 | -------------------------------------------------------------------------------- /assets/Script/util/MathUtil.ts: -------------------------------------------------------------------------------- 1 | export default class MathUtil { 2 | public static combination(m: number, n: number) { 3 | return MathUtil.factorial(m, n) / MathUtil.factorial(n, n);//就是Cmn(上面是n,下面是m) = Amn(上面是n,下面是m)/Ann(上下都是n) 4 | } 5 | //自定义一个阶乘函数,就是有n个数相乘,从m开始,每个数减1,如factorial(5,4)就是5*(5-1)*(5-2)*(5-3),相乘的数有4个 6 | public static factorial(m: number, n: number) { 7 | var num = 1; 8 | var count = 0; 9 | for (var i = m; i > 0; i--) { 10 | if (count == n) {//当循环次数等于指定的相乘个数时,即跳出for循环 11 | break; 12 | } 13 | num = num * i; 14 | count++; 15 | } 16 | return num; 17 | } 18 | 19 | // 一个坐标乘以一个数 得到一个新坐标 20 | public static pointMultiplyForNumber(p: { x: number, y: number }, dt: number): { x: number, y: number } { 21 | return {x: p.x * dt, y: p.y * dt}; 22 | } 23 | 24 | // 一个点 + 一个点 得到一个新点 25 | public static pointAdditionForPoint(p: { x: number, y: number }, p2: { x: number, y: number }): { x: number, y: number } { 26 | return { x: (p.x + p2.x), y: (p.y + p2.y) }; 27 | } 28 | 29 | // 一个坐标 减去一个坐标 得到一个新店 30 | public static pointSubtractionForPoint(p: { x: number, y: number }, p2: { x: number, y: number }): { x: number, y: number } { 31 | return { x: p.x - p2.x, y: p.y - p2.y } 32 | } 33 | 34 | 35 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | #///////////////////////////////////////////////////////////////////////////// 2 | # Fireball Projects 3 | #///////////////////////////////////////////////////////////////////////////// 4 | 5 | library/ 6 | temp/ 7 | local/ 8 | build/ 9 | 10 | #///////////////////////////////////////////////////////////////////////////// 11 | # Logs and databases 12 | #///////////////////////////////////////////////////////////////////////////// 13 | 14 | *.log 15 | *.sql 16 | *.sqlite 17 | 18 | #///////////////////////////////////////////////////////////////////////////// 19 | # files for debugger 20 | #///////////////////////////////////////////////////////////////////////////// 21 | 22 | *.sln 23 | *.csproj 24 | *.pidb 25 | *.unityproj 26 | *.suo 27 | 28 | #///////////////////////////////////////////////////////////////////////////// 29 | # OS generated files 30 | #///////////////////////////////////////////////////////////////////////////// 31 | 32 | .DS_Store 33 | ehthumbs.db 34 | Thumbs.db 35 | 36 | #///////////////////////////////////////////////////////////////////////////// 37 | # exvim files 38 | #///////////////////////////////////////////////////////////////////////////// 39 | 40 | *UnityVS.meta 41 | *.err 42 | *.err.meta 43 | *.exvim 44 | *.exvim.meta 45 | *.vimentry 46 | *.vimentry.meta 47 | *.vimproject 48 | *.vimproject.meta 49 | .vimfiles.*/ 50 | .exvim.*/ 51 | quick_gen_project_*_autogen.bat 52 | quick_gen_project_*_autogen.bat.meta 53 | quick_gen_project_*_autogen.sh 54 | quick_gen_project_*_autogen.sh.meta 55 | .exvim.app 56 | 57 | #///////////////////////////////////////////////////////////////////////////// 58 | # webstorm files 59 | #///////////////////////////////////////////////////////////////////////////// 60 | 61 | .idea/ 62 | 63 | #////////////////////////// 64 | # VS Code 65 | #////////////////////////// 66 | 67 | .vscode/ -------------------------------------------------------------------------------- /assets/Script/util/BezierUtil.ts: -------------------------------------------------------------------------------- 1 | import MathUtil from "./MathUtil"; 2 | 3 | export default class BezierUtil { 4 | 5 | 6 | public static productBezier(points: Array<{ x: number, y: number }>): Array<{ x: number, y: number }> { 7 | let pnumber = points.length; 8 | let t = 0; 9 | let path: Array<{ x: number, y: number }> = new Array(); 10 | for (let i = 0; i < 1000; i++) { 11 | let temppoint: { x: number, y: number } = { x: 0, y: 0 }; 12 | for (let i = 0; i < pnumber; i++) { 13 | let point = points[i]; 14 | let temp = BezierUtil.productBezierForP(pnumber - 1, i, t, point); 15 | temppoint = { x: temppoint.x + temp.x, y: temppoint.y + temp.y }; 16 | } 17 | t = t + 0.001; 18 | path.push(temppoint); 19 | } 20 | return path; 21 | } 22 | 23 | public static productBezierForP(pn: number, pIndex: number, t: number, point: { x: number, y: number }): { x: number, y: number } { 24 | let v1 = MathUtil.combination(pn, pIndex); 25 | let d = Math.pow((1 - t), (pn - pIndex)); 26 | let v3 = Math.pow(t, pIndex); 27 | let p = v1 * d * v3; 28 | return { x: p * point.x, y: p * point.y } 29 | } 30 | 31 | // 算式个数 32 | /*** 33 | * 把生成的字符串 放到这个网站可以查看生成公式是否正确 34 | * https://www.codecogs.com/latex/eqneditor.php 35 | */ 36 | public static productGongShi(pn: number): string { 37 | let arr: Array = new Array(); 38 | for (let i = 0; i < pn; i++) { 39 | let str = BezierUtil.productGongShiItem(pn - 1, i); 40 | arr.push(str); 41 | } 42 | return arr.join("+"); 43 | } 44 | public static productGongShiItem(pn: number, pindex: number): string { 45 | //\binom{n}{0}P_{0}(1-t)^{n}t^{0} 46 | let v1 = MathUtil.combination(pn, pindex); 47 | let v2 = `P_{${pindex}}` 48 | let v3 = `(1-t)^`; 49 | let v4 = pn - pindex; 50 | let v5 = `t^` 51 | let v6 = pindex; 52 | let str: Array = new Array(); 53 | if (v1 != 1) { 54 | str.push(v1 + ""); 55 | } 56 | str.push(v2); 57 | if (v4 != 0) { 58 | str.push(v3); 59 | str.push(`{${v4}}`); 60 | } 61 | if (v6 != 0) { 62 | str.push(v5); 63 | str.push(`{${v6}}`) 64 | } 65 | return str.join(""); 66 | } 67 | 68 | 69 | } -------------------------------------------------------------------------------- /assets/Script/Mypoint.ts: -------------------------------------------------------------------------------- 1 | // Learn TypeScript: 2 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/typescript.html 3 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html 4 | // Learn Attribute: 5 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html 6 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html 7 | // Learn life-cycle callbacks: 8 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html 9 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html 10 | 11 | const { ccclass, property } = cc._decorator; 12 | 13 | @ccclass 14 | // Learn TypeScript: 15 | export default class MyPoint extends cc.Component { 16 | 17 | @property(cc.Label) 18 | postion_label: cc.Label = null; 19 | @property(cc.Label) 20 | index_label: cc.Label = null; 21 | @property(cc.Node) 22 | hitNode: cc.Node = null; 23 | 24 | 25 | private _gameNode: cc.Node = null; 26 | public get gameNode(): cc.Node { 27 | return this._gameNode; 28 | } 29 | public set gameNode(value: cc.Node) { 30 | this._gameNode = value; 31 | } 32 | 33 | 34 | private _x: number = 0; 35 | public get x(): number { 36 | return this._x; 37 | } 38 | public set x(value: number) { 39 | this._x = value; 40 | } 41 | private _y: number = 0; 42 | public get y(): number { 43 | return this._y; 44 | } 45 | public set y(value: number) { 46 | this._y = value; 47 | } 48 | private _index: number = 0; 49 | 50 | // LIFE-CYCLE CALLBACKS: 51 | onLoad() { 52 | 53 | } 54 | start() { 55 | 56 | } 57 | update(dt) { 58 | 59 | 60 | let wrold= this.node.convertToWorldSpaceAR(cc.v2(0, 0)); 61 | 62 | let tempP = this.gameNode == null ? this.node.getPosition() : this.gameNode.convertToNodeSpaceAR(wrold) 63 | this._x = tempP.x; 64 | this._y = tempP.y; 65 | this.postion_label.string = `(${this._x}, ${this._y})` 66 | this.index_label.string = `${this._index}` 67 | } 68 | 69 | public setColor(ishit: boolean) { 70 | if (ishit) { 71 | this.hitNode.color = cc.color(255, 0, 0, 255) 72 | } else { 73 | this.hitNode.color = cc.color(255, 255, 255, 255) 74 | } 75 | 76 | } 77 | public get index(): number { 78 | return this._index; 79 | } 80 | public set index(value: number) { 81 | this._index = value; 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /assets/Script/util/HermiteProduct.ts: -------------------------------------------------------------------------------- 1 | import MathUtil from "./MathUtil"; 2 | 3 | export default class HermiteProduct { 4 | 5 | public static createHer(controlPoints: Array<{ x: number, y: number }>): Array<{ x: number, y: number }> { 6 | let p0: { x: number, y: number } = null; 7 | let p1: { x: number, y: number } = null; 8 | let m0: { x: number, y: number } = null; 9 | let m1: { x: number, y: number } = null; 10 | 11 | let postions: Array<{ x: number, y: number }> = new Array(); 12 | for (let j = 0; j < controlPoints.length - 1; j++) { 13 | p0 = controlPoints[j]; 14 | p1 = controlPoints[j + 1]; 15 | if (j > 0) { 16 | let temp = MathUtil.pointSubtractionForPoint(controlPoints[j + 1], controlPoints[j - 1]) 17 | m0 = MathUtil.pointMultiplyForNumber(temp, 0.5); 18 | } 19 | else { 20 | m0 = MathUtil.pointSubtractionForPoint(controlPoints[j + 1], controlPoints[j]); 21 | } 22 | if (j < controlPoints.length - 2) { 23 | m1 = MathUtil.pointMultiplyForNumber(MathUtil.pointSubtractionForPoint(controlPoints[j + 2], controlPoints[j]), 0.5); 24 | } 25 | else { 26 | m1 = MathUtil.pointSubtractionForPoint(controlPoints[j + 1], controlPoints[j]); 27 | } 28 | 29 | let numberOfPoints = 20; 30 | let t; 31 | let pointStep = 1.0 / numberOfPoints; 32 | if (j == controlPoints.length - 2) { 33 | pointStep = 1.0 / (numberOfPoints - 1.0); 34 | // last point of last segment should reach p1 35 | } 36 | 37 | 38 | for (let i = 0; i < numberOfPoints; i++) { 39 | t = i * pointStep; 40 | 41 | let c1 = MathUtil.pointMultiplyForNumber(p0, 2.0 * t * t * t - 3.0 * t * t + 1.0); 42 | let c2 = MathUtil.pointMultiplyForNumber(m0, t * t * t - 2.0 * t * t + t); 43 | let c3 = MathUtil.pointMultiplyForNumber(p1, -2.0 * t * t * t + 3.0 * t * t); 44 | let c4 = MathUtil.pointMultiplyForNumber(m1, t * t * t - t * t); 45 | 46 | 47 | let b1 = MathUtil.pointAdditionForPoint(c1, c2); 48 | let b2 = MathUtil.pointAdditionForPoint(c3, c4); 49 | let position = MathUtil.pointAdditionForPoint(b1, b2); 50 | postions.push(position); 51 | // position = (2.0 * t * t * t - 3.0 * t * t + 1.0) * p0 52 | // + (t * t * t - 2.0 * t * t + t) * m0 53 | // + (-2.0 * t * t * t + 3.0 * t * t) * p1 54 | // + (t * t * t - t * t) * m1; 55 | 56 | // if (lastPos != VEC2_IGNORE) { 57 | // _drawer -> drawLine(lastPos, position, cocos2d:: Color4F:: RED); 58 | // } 59 | //lastPos = position; 60 | } 61 | 62 | 63 | } 64 | return postions; 65 | } 66 | } -------------------------------------------------------------------------------- /assets/Script/DrawBezierTest.ts: -------------------------------------------------------------------------------- 1 | import MyPoint from "./Mypoint"; 2 | import BezierUtil from "./util/BezierUtil"; 3 | 4 | const { ccclass, property } = cc._decorator; 5 | @ccclass 6 | export default class DrawTest extends cc.Component { 7 | 8 | @property(cc.Prefab) 9 | myPoint: cc.Prefab = null; 10 | private graphics: cc.Graphics = null; 11 | // LIFE-CYCLE CALLBACKS: 12 | private array: Array = new Array(); 13 | private index = -1 14 | start() { 15 | // init logic 16 | 17 | } 18 | 19 | onLoad() { 20 | this.graphics = this.getComponent(cc.Graphics); 21 | let self = this; 22 | this.node.on(cc.Node.EventType.TOUCH_START, function (event) { 23 | let p: cc.Vec2 = event.getLocation(); 24 | let p1 = self.node.convertTouchToNodeSpace(event) 25 | let index = self.getMyPoint(p1.x, p1.y); 26 | if (index != -1) { 27 | self.index = index; 28 | self.array[self.index].getComponent(MyPoint).setColor(true) 29 | //console.log("我点中了我靠"); 30 | //self.updatepoints(); 31 | } 32 | console.log(p,p1) 33 | }, this.node, false); 34 | this.node.on(cc.Node.EventType.TOUCH_MOVE, function (event) { 35 | let p: cc.Vec2 = self.node.convertTouchToNodeSpace(event) 36 | if (self.index != -1) { 37 | self.array[self.index].setPosition(p); 38 | self.updatepoints(); 39 | } 40 | }, this.node, false); 41 | 42 | this.node.on(cc.Node.EventType.TOUCH_END, function (event) { 43 | if (self.index != -1) { 44 | self.array[self.index].getComponent(MyPoint).setColor(false); 45 | self.updatepoints(); 46 | } 47 | self.index = -1; 48 | }, this.node, false); 49 | this.node.on(cc.Node.EventType.TOUCH_CANCEL, function (event) { 50 | if (self.index != -1) { 51 | self.array[self.index].getComponent(MyPoint).setColor(false); 52 | self.updatepoints(); 53 | } 54 | self.index = -1; 55 | }, this.node, false); 56 | 57 | 58 | for (let i = 0; i < 3; i++) { 59 | let node = cc.instantiate(this.myPoint); 60 | node.getComponent(MyPoint).index = i; 61 | node.setPosition(cc.v2(30, 20 * (i + 1))); 62 | this.node.addChild(node) 63 | this.array.push(node); 64 | } 65 | // let arr: Array<{ x: number, y: number }> = new Array(); 66 | // arr.push({ x: 21.5, y: 621 }) 67 | // arr.push({ x: 564.5, y: 20 }) 68 | // arr.push({ x: 1111.5, y: 621 }) 69 | // let pro = BezierUtil.productBezier(arr) 70 | 71 | // this.graphics.clear(); 72 | // for (let i = 0; i < pro.length - 1; i++) { 73 | // let p1 = pro[i]; 74 | // let p2 = pro[i + 1]; 75 | // this.drawLine(p1.x, p1.y, p2.x, p2.y); 76 | // //console.log(p1.x,",",p1.y) 77 | // } 78 | //this.drawLine(80,30,1134,260); 79 | 80 | this.updatepoints(); 81 | } 82 | 83 | public addMyPointsClick() { 84 | let node = cc.instantiate(this.myPoint); 85 | node.setPosition(cc.v2(300, 500)); 86 | this.node.addChild(node) 87 | this.array.push(node); 88 | this.array.forEach((n,index) => { 89 | n.getComponent(MyPoint).index=index; 90 | }) 91 | this.updatepoints() 92 | } 93 | 94 | /** 95 | * name 96 | */ 97 | public delMyPointsClick() { 98 | let n= this.array.pop() 99 | n.destroy(); 100 | this.updatepoints() 101 | } 102 | 103 | 104 | private updatepoints() { 105 | let self = this; 106 | let array = new Array(); 107 | this.array.forEach((n) => { 108 | array.push({ x: n.getPosition().x, y: n.getPosition().y }); 109 | }) 110 | let pro = BezierUtil.productBezier(array) 111 | this.graphics.clear(); 112 | for (let i = 0; i < pro.length - 1; i++) { 113 | let p1 = pro[i]; 114 | let p2 = pro[i + 1]; 115 | this.drawLine(p1.x, p1.y, p2.x, p2.y); 116 | 117 | } 118 | 119 | } 120 | 121 | 122 | 123 | private getMyPoint(x: number, y: number): number { 124 | for (let i = 0; i < this.array.length; i++) { 125 | let no = this.array[i]; 126 | //console.log(no.getBoundingBox()) 127 | if (no.getBoundingBox().contains(cc.v2(x, y))) { 128 | return i; 129 | } 130 | } 131 | return -1; 132 | } 133 | 134 | 135 | public drawLine(x, y, rx, ry) { 136 | this.graphics.moveTo(x, y); 137 | //this.graphics.lineTo(x, y); 138 | this.graphics.lineTo(rx, ry); 139 | this.graphics.stroke(); 140 | } 141 | 142 | 143 | 144 | update(dt: number) { 145 | // this.graphics.clear(); 146 | // let cr1x = this.array[0].position.x; 147 | // let cr1y = this.array[0].position.y; 148 | // this.graphics.moveTo(cr1x, cr1y); 149 | // let cr2x = this.array[1].position.x; 150 | // let cr2y = this.array[1].position.y; 151 | 152 | // let cr3x = this.array[2].position.x; 153 | // let cr3y = this.array[2].position.y; 154 | 155 | // this.graphics.bezierCurveTo(cr1x, cr1y, cr2x, cr2y, cr3x, cr3y) 156 | // this.graphics.stroke(); 157 | } 158 | 159 | } -------------------------------------------------------------------------------- /assets/Script/DrawHermiteTest.ts: -------------------------------------------------------------------------------- 1 | import MyPoint from "./Mypoint"; 2 | import BezierUtil from "./util/BezierUtil"; 3 | import HermiteProduct from "./util/HermiteProduct"; 4 | 5 | const { ccclass, property } = cc._decorator; 6 | @ccclass 7 | export default class DrawHermiteTest extends cc.Component { 8 | 9 | @property(cc.Prefab) 10 | myPoint: cc.Prefab = null; 11 | private graphics: cc.Graphics = null; 12 | @property(cc.Node) 13 | gameNode:cc.Node=null; 14 | // LIFE-CYCLE CALLBACKS: 15 | private array: Array = new Array(); 16 | private index = -1 17 | start() { 18 | // init logic 19 | 20 | } 21 | 22 | onLoad() { 23 | this.graphics = this.getComponent(cc.Graphics); 24 | let self = this; 25 | this.node.on(cc.Node.EventType.TOUCH_START, function (event) { 26 | let p: cc.Vec2 = event.getLocation(); 27 | let p1 = self.node.convertTouchToNodeSpace(event) 28 | let index = self.getMyPoint(p1.x, p1.y); 29 | if (index != -1) { 30 | self.index = index; 31 | self.array[self.index].getComponent(MyPoint).setColor(true) 32 | //console.log("我点中了我靠"); 33 | //self.updatepoints(); 34 | } 35 | console.log(p,p1) 36 | }, this.node, false); 37 | this.node.on(cc.Node.EventType.TOUCH_MOVE, function (event) { 38 | let p: cc.Vec2 = self.node.convertTouchToNodeSpace(event) 39 | if (self.index != -1) { 40 | self.array[self.index].setPosition(p); 41 | self.updatepoints(); 42 | } 43 | }, this.node, false); 44 | 45 | this.node.on(cc.Node.EventType.TOUCH_END, function (event) { 46 | if (self.index != -1) { 47 | self.array[self.index].getComponent(MyPoint).setColor(false); 48 | self.updatepoints(); 49 | } 50 | self.index = -1; 51 | }, this.node, false); 52 | this.node.on(cc.Node.EventType.TOUCH_CANCEL, function (event) { 53 | if (self.index != -1) { 54 | self.array[self.index].getComponent(MyPoint).setColor(false); 55 | self.updatepoints(); 56 | } 57 | self.index = -1; 58 | }, this.node, false); 59 | 60 | 61 | for (let i = 0; i < 3; i++) { 62 | let node = cc.instantiate(this.myPoint); 63 | node.getComponent(MyPoint).index = i; 64 | node.getComponent(MyPoint).gameNode=this.gameNode; 65 | node.setPosition(cc.v2(30, 20 * (i + 1))); 66 | this.node.addChild(node) 67 | this.array.push(node); 68 | } 69 | // let arr: Array<{ x: number, y: number }> = new Array(); 70 | // arr.push({ x: 21.5, y: 621 }) 71 | // arr.push({ x: 564.5, y: 20 }) 72 | // arr.push({ x: 1111.5, y: 621 }) 73 | // let pro = BezierUtil.productBezier(arr) 74 | 75 | // this.graphics.clear(); 76 | // for (let i = 0; i < pro.length - 1; i++) { 77 | // let p1 = pro[i]; 78 | // let p2 = pro[i + 1]; 79 | // this.drawLine(p1.x, p1.y, p2.x, p2.y); 80 | // //console.log(p1.x,",",p1.y) 81 | // } 82 | //this.drawLine(80,30,1134,260); 83 | 84 | this.updatepoints(); 85 | } 86 | 87 | public addMyPointsClick() { 88 | let node = cc.instantiate(this.myPoint); 89 | node.setPosition(cc.v2(300, 500)); 90 | node.getComponent(MyPoint).gameNode = this.gameNode; 91 | this.node.addChild(node) 92 | this.array.push(node); 93 | this.array.forEach((n,index) => { 94 | n.getComponent(MyPoint).index=index; 95 | }) 96 | this.updatepoints() 97 | } 98 | 99 | /** 100 | * name 101 | */ 102 | public delMyPointsClick() { 103 | let n= this.array.pop() 104 | n.destroy(); 105 | this.updatepoints() 106 | } 107 | 108 | 109 | private updatepoints() { 110 | let self = this; 111 | let array = new Array(); 112 | this.array.forEach((n) => { 113 | array.push({ x: n.getPosition().x, y: n.getPosition().y }); 114 | }) 115 | let pro = HermiteProduct.createHer(array) 116 | this.graphics.clear(); 117 | for (let i = 0; i < pro.length - 1; i++) { 118 | let p1 = pro[i]; 119 | let p2 = pro[i + 1]; 120 | this.drawLine(p1.x, p1.y, p2.x, p2.y); 121 | 122 | } 123 | 124 | } 125 | 126 | 127 | 128 | private getMyPoint(x: number, y: number): number { 129 | for (let i = 0; i < this.array.length; i++) { 130 | let no = this.array[i]; 131 | //console.log(no.getBoundingBox()) 132 | if (no.getBoundingBox().contains(cc.v2(x, y))) { 133 | return i; 134 | } 135 | } 136 | return -1; 137 | } 138 | 139 | 140 | public drawLine(x, y, rx, ry) { 141 | this.graphics.moveTo(x, y); 142 | //this.graphics.lineTo(x, y); 143 | this.graphics.lineTo(rx, ry); 144 | this.graphics.stroke(); 145 | } 146 | 147 | 148 | 149 | update(dt: number) { 150 | // this.graphics.clear(); 151 | // let cr1x = this.array[0].position.x; 152 | // let cr1y = this.array[0].position.y; 153 | // this.graphics.moveTo(cr1x, cr1y); 154 | // let cr2x = this.array[1].position.x; 155 | // let cr2y = this.array[1].position.y; 156 | 157 | // let cr3x = this.array[2].position.x; 158 | // let cr3y = this.array[2].position.y; 159 | 160 | // this.graphics.bezierCurveTo(cr1x, cr1y, cr2x, cr2y, cr3x, cr3y) 161 | // this.graphics.stroke(); 162 | } 163 | 164 | } -------------------------------------------------------------------------------- /assets/Texture/postion.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "data": { 8 | "__id__": 1 9 | }, 10 | "optimizationPolicy": 0, 11 | "asyncLoadAssets": false 12 | }, 13 | { 14 | "__type__": "cc.Node", 15 | "_name": "postion", 16 | "_objFlags": 0, 17 | "_parent": null, 18 | "_children": [ 19 | { 20 | "__id__": 2 21 | }, 22 | { 23 | "__id__": 5 24 | } 25 | ], 26 | "_active": true, 27 | "_level": 1, 28 | "_components": [ 29 | { 30 | "__id__": 14 31 | } 32 | ], 33 | "_prefab": { 34 | "__id__": 15 35 | }, 36 | "_opacity": 255, 37 | "_color": { 38 | "__type__": "cc.Color", 39 | "r": 221, 40 | "g": 148, 41 | "b": 148, 42 | "a": 255 43 | }, 44 | "_contentSize": { 45 | "__type__": "cc.Size", 46 | "width": 40, 47 | "height": 40 48 | }, 49 | "_anchorPoint": { 50 | "__type__": "cc.Vec2", 51 | "x": 0.5, 52 | "y": 0.5 53 | }, 54 | "_quat": { 55 | "__type__": "cc.Quat", 56 | "x": 0, 57 | "y": 0, 58 | "z": 0, 59 | "w": 1 60 | }, 61 | "_skewX": 0, 62 | "_skewY": 0, 63 | "_zIndex": 0, 64 | "groupIndex": 0, 65 | "_id": "", 66 | "_trs": { 67 | "__type__": "TypedArray", 68 | "ctor": "Float64Array", 69 | "array": [ 70 | 0, 71 | 0, 72 | 0, 73 | 0, 74 | 0, 75 | 0, 76 | 1, 77 | 1, 78 | 1, 79 | 1 80 | ] 81 | } 82 | }, 83 | { 84 | "__type__": "cc.Node", 85 | "_name": "New Sprite(Splash)", 86 | "_objFlags": 0, 87 | "_parent": { 88 | "__id__": 1 89 | }, 90 | "_children": [], 91 | "_active": true, 92 | "_level": 2, 93 | "_components": [ 94 | { 95 | "__id__": 3 96 | } 97 | ], 98 | "_prefab": { 99 | "__id__": 4 100 | }, 101 | "_opacity": 255, 102 | "_color": { 103 | "__type__": "cc.Color", 104 | "r": 255, 105 | "g": 255, 106 | "b": 255, 107 | "a": 255 108 | }, 109 | "_contentSize": { 110 | "__type__": "cc.Size", 111 | "width": 45, 112 | "height": 40 113 | }, 114 | "_anchorPoint": { 115 | "__type__": "cc.Vec2", 116 | "x": 0.5, 117 | "y": 0.5 118 | }, 119 | "_quat": { 120 | "__type__": "cc.Quat", 121 | "x": 0, 122 | "y": 0, 123 | "z": 0, 124 | "w": 1 125 | }, 126 | "_skewX": 0, 127 | "_skewY": 0, 128 | "_zIndex": 0, 129 | "groupIndex": 0, 130 | "_id": "", 131 | "_trs": { 132 | "__type__": "TypedArray", 133 | "ctor": "Float64Array", 134 | "array": [ 135 | 0, 136 | 0, 137 | 0, 138 | 0, 139 | 0, 140 | 0, 141 | 1, 142 | 1, 143 | 1, 144 | 1 145 | ] 146 | } 147 | }, 148 | { 149 | "__type__": "cc.Sprite", 150 | "_name": "", 151 | "_objFlags": 0, 152 | "node": { 153 | "__id__": 2 154 | }, 155 | "_enabled": true, 156 | "_srcBlendFactor": 770, 157 | "_dstBlendFactor": 771, 158 | "_spriteFrame": { 159 | "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" 160 | }, 161 | "_type": 0, 162 | "_sizeMode": 0, 163 | "_fillType": 0, 164 | "_fillCenter": { 165 | "__type__": "cc.Vec2", 166 | "x": 0, 167 | "y": 0 168 | }, 169 | "_fillStart": 0, 170 | "_fillRange": 0, 171 | "_isTrimmedMode": true, 172 | "_state": 0, 173 | "_atlas": null, 174 | "_id": "" 175 | }, 176 | { 177 | "__type__": "cc.PrefabInfo", 178 | "root": { 179 | "__id__": 1 180 | }, 181 | "asset": { 182 | "__uuid__": "b7199310-398c-429e-afd5-76cb6a1fbd10" 183 | }, 184 | "fileId": "90mBpr8VlOvL5eVZkgah6b", 185 | "sync": false 186 | }, 187 | { 188 | "__type__": "cc.Node", 189 | "_name": "New Label", 190 | "_objFlags": 0, 191 | "_parent": { 192 | "__id__": 1 193 | }, 194 | "_children": [ 195 | { 196 | "__id__": 6 197 | }, 198 | { 199 | "__id__": 9 200 | } 201 | ], 202 | "_active": true, 203 | "_level": 2, 204 | "_components": [ 205 | { 206 | "__id__": 12 207 | } 208 | ], 209 | "_prefab": { 210 | "__id__": 13 211 | }, 212 | "_opacity": 255, 213 | "_color": { 214 | "__type__": "cc.Color", 215 | "r": 1, 216 | "g": 1, 217 | "b": 1, 218 | "a": 255 219 | }, 220 | "_contentSize": { 221 | "__type__": "cc.Size", 222 | "width": 26.68, 223 | "height": 40 224 | }, 225 | "_anchorPoint": { 226 | "__type__": "cc.Vec2", 227 | "x": 0.5, 228 | "y": 0.5 229 | }, 230 | "_quat": { 231 | "__type__": "cc.Quat", 232 | "x": 0, 233 | "y": 0, 234 | "z": 0, 235 | "w": 1 236 | }, 237 | "_skewX": 0, 238 | "_skewY": 0, 239 | "_zIndex": 0, 240 | "groupIndex": 0, 241 | "_id": "", 242 | "_trs": { 243 | "__type__": "TypedArray", 244 | "ctor": "Float64Array", 245 | "array": [ 246 | 0, 247 | 0, 248 | 0, 249 | 0, 250 | 0, 251 | 0, 252 | 1, 253 | 1, 254 | 1, 255 | 1 256 | ] 257 | } 258 | }, 259 | { 260 | "__type__": "cc.Node", 261 | "_name": "postion", 262 | "_objFlags": 0, 263 | "_parent": { 264 | "__id__": 5 265 | }, 266 | "_children": [], 267 | "_active": true, 268 | "_level": 3, 269 | "_components": [ 270 | { 271 | "__id__": 7 272 | } 273 | ], 274 | "_prefab": { 275 | "__id__": 8 276 | }, 277 | "_opacity": 255, 278 | "_color": { 279 | "__type__": "cc.Color", 280 | "r": 229, 281 | "g": 20, 282 | "b": 20, 283 | "a": 255 284 | }, 285 | "_contentSize": { 286 | "__type__": "cc.Size", 287 | "width": 96.73, 288 | "height": 40 289 | }, 290 | "_anchorPoint": { 291 | "__type__": "cc.Vec2", 292 | "x": 0, 293 | "y": 0.5 294 | }, 295 | "_quat": { 296 | "__type__": "cc.Quat", 297 | "x": 0, 298 | "y": 0, 299 | "z": 0, 300 | "w": 1 301 | }, 302 | "_skewX": 0, 303 | "_skewY": 0, 304 | "_zIndex": 0, 305 | "groupIndex": 0, 306 | "_id": "", 307 | "_trs": { 308 | "__type__": "TypedArray", 309 | "ctor": "Float64Array", 310 | "array": [ 311 | 30.9, 312 | 4, 313 | 0, 314 | 0, 315 | 0, 316 | 0, 317 | 1, 318 | 1, 319 | 1, 320 | 1 321 | ] 322 | } 323 | }, 324 | { 325 | "__type__": "cc.Label", 326 | "_name": "", 327 | "_objFlags": 0, 328 | "node": { 329 | "__id__": 6 330 | }, 331 | "_enabled": true, 332 | "_srcBlendFactor": 1, 333 | "_dstBlendFactor": 771, 334 | "_useOriginalSize": false, 335 | "_string": "(30.2,20.3)", 336 | "_N$string": "(30.2,20.3)", 337 | "_fontSize": 20, 338 | "_lineHeight": 40, 339 | "_enableWrapText": true, 340 | "_N$file": null, 341 | "_isSystemFontUsed": true, 342 | "_spacingX": 0, 343 | "_N$horizontalAlign": 1, 344 | "_N$verticalAlign": 1, 345 | "_N$fontFamily": "Arial", 346 | "_N$overflow": 0, 347 | "_id": "" 348 | }, 349 | { 350 | "__type__": "cc.PrefabInfo", 351 | "root": { 352 | "__id__": 1 353 | }, 354 | "asset": { 355 | "__uuid__": "b7199310-398c-429e-afd5-76cb6a1fbd10" 356 | }, 357 | "fileId": "19hgfoVh5M27gGjJgF/BnL", 358 | "sync": false 359 | }, 360 | { 361 | "__type__": "cc.Node", 362 | "_name": "index", 363 | "_objFlags": 0, 364 | "_parent": { 365 | "__id__": 5 366 | }, 367 | "_children": [], 368 | "_active": true, 369 | "_level": 3, 370 | "_components": [ 371 | { 372 | "__id__": 10 373 | } 374 | ], 375 | "_prefab": { 376 | "__id__": 11 377 | }, 378 | "_opacity": 255, 379 | "_color": { 380 | "__type__": "cc.Color", 381 | "r": 17, 382 | "g": 1, 383 | "b": 1, 384 | "a": 255 385 | }, 386 | "_contentSize": { 387 | "__type__": "cc.Size", 388 | "width": 11.12, 389 | "height": 40 390 | }, 391 | "_anchorPoint": { 392 | "__type__": "cc.Vec2", 393 | "x": 0.5, 394 | "y": 0.5 395 | }, 396 | "_quat": { 397 | "__type__": "cc.Quat", 398 | "x": 0, 399 | "y": 0, 400 | "z": 0, 401 | "w": 1 402 | }, 403 | "_skewX": 0, 404 | "_skewY": 0, 405 | "_zIndex": 0, 406 | "groupIndex": 0, 407 | "_id": "", 408 | "_trs": { 409 | "__type__": "TypedArray", 410 | "ctor": "Float64Array", 411 | "array": [ 412 | 18, 413 | -9, 414 | 0, 415 | 0, 416 | 0, 417 | 0, 418 | 1, 419 | 1, 420 | 1, 421 | 1 422 | ] 423 | } 424 | }, 425 | { 426 | "__type__": "cc.Label", 427 | "_name": "", 428 | "_objFlags": 0, 429 | "node": { 430 | "__id__": 9 431 | }, 432 | "_enabled": true, 433 | "_srcBlendFactor": 1, 434 | "_dstBlendFactor": 771, 435 | "_useOriginalSize": false, 436 | "_string": "0", 437 | "_N$string": "0", 438 | "_fontSize": 20, 439 | "_lineHeight": 40, 440 | "_enableWrapText": true, 441 | "_N$file": null, 442 | "_isSystemFontUsed": true, 443 | "_spacingX": 0, 444 | "_N$horizontalAlign": 1, 445 | "_N$verticalAlign": 1, 446 | "_N$fontFamily": "Arial", 447 | "_N$overflow": 0, 448 | "_id": "" 449 | }, 450 | { 451 | "__type__": "cc.PrefabInfo", 452 | "root": { 453 | "__id__": 1 454 | }, 455 | "asset": { 456 | "__uuid__": "b7199310-398c-429e-afd5-76cb6a1fbd10" 457 | }, 458 | "fileId": "53pIoVWW1M45OleLZrZppg", 459 | "sync": false 460 | }, 461 | { 462 | "__type__": "cc.Label", 463 | "_name": "", 464 | "_objFlags": 0, 465 | "node": { 466 | "__id__": 5 467 | }, 468 | "_enabled": true, 469 | "_srcBlendFactor": 1, 470 | "_dstBlendFactor": 771, 471 | "_useOriginalSize": false, 472 | "_string": "P", 473 | "_N$string": "P", 474 | "_fontSize": 40, 475 | "_lineHeight": 40, 476 | "_enableWrapText": true, 477 | "_N$file": null, 478 | "_isSystemFontUsed": true, 479 | "_spacingX": 0, 480 | "_N$horizontalAlign": 1, 481 | "_N$verticalAlign": 1, 482 | "_N$fontFamily": "Arial", 483 | "_N$overflow": 0, 484 | "_id": "" 485 | }, 486 | { 487 | "__type__": "cc.PrefabInfo", 488 | "root": { 489 | "__id__": 1 490 | }, 491 | "asset": { 492 | "__uuid__": "b7199310-398c-429e-afd5-76cb6a1fbd10" 493 | }, 494 | "fileId": "3e/l0ZqwpAqINs1kAHGzrd", 495 | "sync": false 496 | }, 497 | { 498 | "__type__": "6b5147mTd5IqaY0toCCNgV9", 499 | "_name": "", 500 | "_objFlags": 0, 501 | "node": { 502 | "__id__": 1 503 | }, 504 | "_enabled": true, 505 | "postion_label": { 506 | "__id__": 7 507 | }, 508 | "index_label": { 509 | "__id__": 10 510 | }, 511 | "hitNode": { 512 | "__id__": 2 513 | }, 514 | "_id": "" 515 | }, 516 | { 517 | "__type__": "cc.PrefabInfo", 518 | "root": { 519 | "__id__": 1 520 | }, 521 | "asset": { 522 | "__uuid__": "b7199310-398c-429e-afd5-76cb6a1fbd10" 523 | }, 524 | "fileId": "0fSMnpjZ1MAr8mBIkppaZI", 525 | "sync": false 526 | } 527 | ] -------------------------------------------------------------------------------- /assets/Scene/New Scene.fire: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.SceneAsset", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "scene": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Scene", 13 | "_objFlags": 0, 14 | "_parent": null, 15 | "_children": [ 16 | { 17 | "__id__": 2 18 | } 19 | ], 20 | "_active": true, 21 | "_components": [], 22 | "_prefab": null, 23 | "_opacity": 255, 24 | "_color": { 25 | "__type__": "cc.Color", 26 | "r": 255, 27 | "g": 255, 28 | "b": 255, 29 | "a": 255 30 | }, 31 | "_contentSize": { 32 | "__type__": "cc.Size", 33 | "width": 0, 34 | "height": 0 35 | }, 36 | "_anchorPoint": { 37 | "__type__": "cc.Vec2", 38 | "x": 0, 39 | "y": 0 40 | }, 41 | "_trs": { 42 | "__type__": "TypedArray", 43 | "ctor": "Float64Array", 44 | "array": [ 45 | 0, 46 | 0, 47 | 0, 48 | 0, 49 | 0, 50 | 0, 51 | 1, 52 | 1, 53 | 1, 54 | 1 55 | ] 56 | }, 57 | "_is3DNode": true, 58 | "_groupIndex": 0, 59 | "groupIndex": 0, 60 | "autoReleaseAssets": true, 61 | "_id": "1c30adc6-9ca9-4224-8c16-d1a307e55964" 62 | }, 63 | { 64 | "__type__": "cc.Node", 65 | "_name": "Canvas", 66 | "_objFlags": 0, 67 | "_parent": { 68 | "__id__": 1 69 | }, 70 | "_children": [ 71 | { 72 | "__id__": 3 73 | }, 74 | { 75 | "__id__": 5 76 | }, 77 | { 78 | "__id__": 8 79 | }, 80 | { 81 | "__id__": 11 82 | }, 83 | { 84 | "__id__": 15 85 | }, 86 | { 87 | "__id__": 21 88 | } 89 | ], 90 | "_active": true, 91 | "_components": [ 92 | { 93 | "__id__": 27 94 | }, 95 | { 96 | "__id__": 28 97 | } 98 | ], 99 | "_prefab": null, 100 | "_opacity": 255, 101 | "_color": { 102 | "__type__": "cc.Color", 103 | "r": 255, 104 | "g": 255, 105 | "b": 255, 106 | "a": 255 107 | }, 108 | "_contentSize": { 109 | "__type__": "cc.Size", 110 | "width": 1136, 111 | "height": 640 112 | }, 113 | "_anchorPoint": { 114 | "__type__": "cc.Vec2", 115 | "x": 0.5, 116 | "y": 0.5 117 | }, 118 | "_trs": { 119 | "__type__": "TypedArray", 120 | "ctor": "Float64Array", 121 | "array": [ 122 | 568, 123 | 320, 124 | 0, 125 | 0, 126 | 0, 127 | 0, 128 | 1, 129 | 1, 130 | 1, 131 | 1 132 | ] 133 | }, 134 | "_eulerAngles": { 135 | "__type__": "cc.Vec3", 136 | "x": 0, 137 | "y": 0, 138 | "z": 0 139 | }, 140 | "_skewX": 0, 141 | "_skewY": 0, 142 | "_is3DNode": false, 143 | "_groupIndex": 0, 144 | "groupIndex": 0, 145 | "_id": "a5esZu+45LA5mBpvttspPD" 146 | }, 147 | { 148 | "__type__": "cc.Node", 149 | "_name": "Main Camera", 150 | "_objFlags": 0, 151 | "_parent": { 152 | "__id__": 2 153 | }, 154 | "_children": [], 155 | "_active": true, 156 | "_components": [ 157 | { 158 | "__id__": 4 159 | } 160 | ], 161 | "_prefab": null, 162 | "_opacity": 255, 163 | "_color": { 164 | "__type__": "cc.Color", 165 | "r": 255, 166 | "g": 255, 167 | "b": 255, 168 | "a": 255 169 | }, 170 | "_contentSize": { 171 | "__type__": "cc.Size", 172 | "width": 0, 173 | "height": 0 174 | }, 175 | "_anchorPoint": { 176 | "__type__": "cc.Vec2", 177 | "x": 0.5, 178 | "y": 0.5 179 | }, 180 | "_trs": { 181 | "__type__": "TypedArray", 182 | "ctor": "Float64Array", 183 | "array": [ 184 | 0, 185 | 0, 186 | 451.19923537169257, 187 | 0, 188 | 0, 189 | 0, 190 | 1, 191 | 1, 192 | 1, 193 | 1 194 | ] 195 | }, 196 | "_eulerAngles": { 197 | "__type__": "cc.Vec3", 198 | "x": 0, 199 | "y": 0, 200 | "z": 0 201 | }, 202 | "_skewX": 0, 203 | "_skewY": 0, 204 | "_is3DNode": false, 205 | "_groupIndex": 0, 206 | "groupIndex": 0, 207 | "_id": "d54LvPcaxAQqGI7NmZAvWR" 208 | }, 209 | { 210 | "__type__": "cc.Camera", 211 | "_name": "", 212 | "_objFlags": 0, 213 | "node": { 214 | "__id__": 3 215 | }, 216 | "_enabled": true, 217 | "_cullingMask": 4294967295, 218 | "_clearFlags": 7, 219 | "_backgroundColor": { 220 | "__type__": "cc.Color", 221 | "r": 0, 222 | "g": 0, 223 | "b": 0, 224 | "a": 255 225 | }, 226 | "_depth": -1, 227 | "_zoomRatio": 1, 228 | "_targetTexture": null, 229 | "_fov": 60, 230 | "_orthoSize": 10, 231 | "_nearClip": 1, 232 | "_farClip": 4096, 233 | "_ortho": true, 234 | "_rect": { 235 | "__type__": "cc.Rect", 236 | "x": 0, 237 | "y": 0, 238 | "width": 1, 239 | "height": 1 240 | }, 241 | "_renderStages": 1, 242 | "_alignWithScreen": true, 243 | "_id": "42CaVPqcBN3bWW+i/NN3VA" 244 | }, 245 | { 246 | "__type__": "cc.Node", 247 | "_name": "background", 248 | "_objFlags": 0, 249 | "_parent": { 250 | "__id__": 2 251 | }, 252 | "_children": [], 253 | "_active": true, 254 | "_components": [ 255 | { 256 | "__id__": 6 257 | }, 258 | { 259 | "__id__": 7 260 | } 261 | ], 262 | "_prefab": null, 263 | "_opacity": 255, 264 | "_color": { 265 | "__type__": "cc.Color", 266 | "r": 27, 267 | "g": 38, 268 | "b": 46, 269 | "a": 255 270 | }, 271 | "_contentSize": { 272 | "__type__": "cc.Size", 273 | "width": 1136, 274 | "height": 640 275 | }, 276 | "_anchorPoint": { 277 | "__type__": "cc.Vec2", 278 | "x": 0.5, 279 | "y": 0.5 280 | }, 281 | "_trs": { 282 | "__type__": "TypedArray", 283 | "ctor": "Float64Array", 284 | "array": [ 285 | 0, 286 | 0, 287 | 0, 288 | 0, 289 | 0, 290 | 0, 291 | 1, 292 | 1, 293 | 1, 294 | 1 295 | ] 296 | }, 297 | "_eulerAngles": { 298 | "__type__": "cc.Vec3", 299 | "x": 0, 300 | "y": 0, 301 | "z": 0 302 | }, 303 | "_skewX": 0, 304 | "_skewY": 0, 305 | "_is3DNode": false, 306 | "_groupIndex": 0, 307 | "groupIndex": 0, 308 | "_id": "f0FUQNqkJJzJ19DTTaMccB" 309 | }, 310 | { 311 | "__type__": "cc.Widget", 312 | "_name": "", 313 | "_objFlags": 0, 314 | "node": { 315 | "__id__": 5 316 | }, 317 | "_enabled": true, 318 | "alignMode": 0, 319 | "_target": null, 320 | "_alignFlags": 45, 321 | "_left": 0, 322 | "_right": 0, 323 | "_top": 0, 324 | "_bottom": 0, 325 | "_verticalCenter": 0, 326 | "_horizontalCenter": 0, 327 | "_isAbsLeft": true, 328 | "_isAbsRight": true, 329 | "_isAbsTop": true, 330 | "_isAbsBottom": true, 331 | "_isAbsHorizontalCenter": true, 332 | "_isAbsVerticalCenter": true, 333 | "_originalWidth": 200, 334 | "_originalHeight": 150, 335 | "_id": "a9KVl307xF5oh3c6Q3dWm2" 336 | }, 337 | { 338 | "__type__": "cc.Sprite", 339 | "_name": "", 340 | "_objFlags": 0, 341 | "node": { 342 | "__id__": 5 343 | }, 344 | "_enabled": true, 345 | "_materials": [ 346 | { 347 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 348 | } 349 | ], 350 | "_srcBlendFactor": 770, 351 | "_dstBlendFactor": 771, 352 | "_spriteFrame": { 353 | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" 354 | }, 355 | "_type": 1, 356 | "_sizeMode": 0, 357 | "_fillType": 0, 358 | "_fillCenter": { 359 | "__type__": "cc.Vec2", 360 | "x": 0, 361 | "y": 0 362 | }, 363 | "_fillStart": 0, 364 | "_fillRange": 0, 365 | "_isTrimmedMode": true, 366 | "_atlas": null, 367 | "_id": "33PxbiQxJM/bHZAkrs8Jgp" 368 | }, 369 | { 370 | "__type__": "cc.Node", 371 | "_name": "New Sprite(Splash)", 372 | "_objFlags": 0, 373 | "_parent": { 374 | "__id__": 2 375 | }, 376 | "_children": [], 377 | "_active": true, 378 | "_components": [ 379 | { 380 | "__id__": 9 381 | }, 382 | { 383 | "__id__": 10 384 | } 385 | ], 386 | "_prefab": null, 387 | "_opacity": 255, 388 | "_color": { 389 | "__type__": "cc.Color", 390 | "r": 214, 391 | "g": 208, 392 | "b": 208, 393 | "a": 255 394 | }, 395 | "_contentSize": { 396 | "__type__": "cc.Size", 397 | "width": 1134, 398 | "height": 640 399 | }, 400 | "_anchorPoint": { 401 | "__type__": "cc.Vec2", 402 | "x": 0.5, 403 | "y": 0.5 404 | }, 405 | "_trs": { 406 | "__type__": "TypedArray", 407 | "ctor": "Float64Array", 408 | "array": [ 409 | 0, 410 | 0, 411 | 0, 412 | 0, 413 | 0, 414 | 0, 415 | 1, 416 | 1, 417 | 1, 418 | 1 419 | ] 420 | }, 421 | "_eulerAngles": { 422 | "__type__": "cc.Vec3", 423 | "x": 0, 424 | "y": 0, 425 | "z": 0 426 | }, 427 | "_skewX": 0, 428 | "_skewY": 0, 429 | "_is3DNode": false, 430 | "_groupIndex": 0, 431 | "groupIndex": 0, 432 | "_id": "d49vrSD2lPbI1JScYSz990" 433 | }, 434 | { 435 | "__type__": "cc.Sprite", 436 | "_name": "", 437 | "_objFlags": 0, 438 | "node": { 439 | "__id__": 8 440 | }, 441 | "_enabled": true, 442 | "_materials": [ 443 | { 444 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 445 | } 446 | ], 447 | "_srcBlendFactor": 770, 448 | "_dstBlendFactor": 771, 449 | "_spriteFrame": { 450 | "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" 451 | }, 452 | "_type": 0, 453 | "_sizeMode": 0, 454 | "_fillType": 0, 455 | "_fillCenter": { 456 | "__type__": "cc.Vec2", 457 | "x": 0, 458 | "y": 0 459 | }, 460 | "_fillStart": 0, 461 | "_fillRange": 0, 462 | "_isTrimmedMode": true, 463 | "_atlas": null, 464 | "_id": "f8bq0267pHCJbUrfHRWs/n" 465 | }, 466 | { 467 | "__type__": "cc.Widget", 468 | "_name": "", 469 | "_objFlags": 0, 470 | "node": { 471 | "__id__": 8 472 | }, 473 | "_enabled": true, 474 | "alignMode": 1, 475 | "_target": null, 476 | "_alignFlags": 18, 477 | "_left": 617, 478 | "_right": 617, 479 | "_top": 325, 480 | "_bottom": 325, 481 | "_verticalCenter": 0, 482 | "_horizontalCenter": 0, 483 | "_isAbsLeft": true, 484 | "_isAbsRight": true, 485 | "_isAbsTop": true, 486 | "_isAbsBottom": true, 487 | "_isAbsHorizontalCenter": true, 488 | "_isAbsVerticalCenter": true, 489 | "_originalWidth": 100, 490 | "_originalHeight": 100, 491 | "_id": "60R4R7fsxKF7goPHl8/hvr" 492 | }, 493 | { 494 | "__type__": "cc.Node", 495 | "_name": "draw", 496 | "_objFlags": 0, 497 | "_parent": { 498 | "__id__": 2 499 | }, 500 | "_children": [], 501 | "_active": true, 502 | "_components": [ 503 | { 504 | "__id__": 12 505 | }, 506 | { 507 | "__id__": 13 508 | }, 509 | { 510 | "__id__": 14 511 | } 512 | ], 513 | "_prefab": null, 514 | "_opacity": 255, 515 | "_color": { 516 | "__type__": "cc.Color", 517 | "r": 255, 518 | "g": 255, 519 | "b": 255, 520 | "a": 255 521 | }, 522 | "_contentSize": { 523 | "__type__": "cc.Size", 524 | "width": 1136, 525 | "height": 640 526 | }, 527 | "_anchorPoint": { 528 | "__type__": "cc.Vec2", 529 | "x": 0, 530 | "y": 0 531 | }, 532 | "_trs": { 533 | "__type__": "TypedArray", 534 | "ctor": "Float64Array", 535 | "array": [ 536 | -568, 537 | -320, 538 | 0, 539 | 0, 540 | 0, 541 | 0, 542 | 1, 543 | 1, 544 | 1, 545 | 1 546 | ] 547 | }, 548 | "_eulerAngles": { 549 | "__type__": "cc.Vec3", 550 | "x": 0, 551 | "y": 0, 552 | "z": 0 553 | }, 554 | "_skewX": 0, 555 | "_skewY": 0, 556 | "_is3DNode": false, 557 | "_groupIndex": 0, 558 | "groupIndex": 0, 559 | "_id": "8d+w5dyLZC4Z94yuI4NwMl" 560 | }, 561 | { 562 | "__type__": "cc.Widget", 563 | "_name": "", 564 | "_objFlags": 0, 565 | "node": { 566 | "__id__": 11 567 | }, 568 | "_enabled": true, 569 | "alignMode": 1, 570 | "_target": null, 571 | "_alignFlags": 45, 572 | "_left": 0, 573 | "_right": 0, 574 | "_top": 0, 575 | "_bottom": 0, 576 | "_verticalCenter": 0, 577 | "_horizontalCenter": 0, 578 | "_isAbsLeft": true, 579 | "_isAbsRight": true, 580 | "_isAbsTop": true, 581 | "_isAbsBottom": true, 582 | "_isAbsHorizontalCenter": true, 583 | "_isAbsVerticalCenter": true, 584 | "_originalWidth": 1134, 585 | "_originalHeight": 640, 586 | "_id": "bbILKTFTlEwrN7zlbF0swE" 587 | }, 588 | { 589 | "__type__": "cc.Graphics", 590 | "_name": "", 591 | "_objFlags": 0, 592 | "node": { 593 | "__id__": 11 594 | }, 595 | "_enabled": true, 596 | "_materials": [ 597 | { 598 | "__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57" 599 | } 600 | ], 601 | "_lineWidth": 1, 602 | "_strokeColor": { 603 | "__type__": "cc.Color", 604 | "r": 0, 605 | "g": 0, 606 | "b": 0, 607 | "a": 255 608 | }, 609 | "_lineJoin": 2, 610 | "_lineCap": 0, 611 | "_fillColor": { 612 | "__type__": "cc.Color", 613 | "r": 255, 614 | "g": 255, 615 | "b": 255, 616 | "a": 255 617 | }, 618 | "_miterLimit": 10, 619 | "_id": "1bVepIbvlN8rGjlBizrpPa" 620 | }, 621 | { 622 | "__type__": "9905cdey4dBl736wRjs/e1x", 623 | "_name": "", 624 | "_objFlags": 0, 625 | "node": { 626 | "__id__": 11 627 | }, 628 | "_enabled": true, 629 | "myPoint": { 630 | "__uuid__": "b7199310-398c-429e-afd5-76cb6a1fbd10" 631 | }, 632 | "_id": "68HudFRhxNh6t5jVkskwxG" 633 | }, 634 | { 635 | "__type__": "cc.Node", 636 | "_name": "New Button", 637 | "_objFlags": 0, 638 | "_parent": { 639 | "__id__": 2 640 | }, 641 | "_children": [ 642 | { 643 | "__id__": 16 644 | } 645 | ], 646 | "_active": true, 647 | "_components": [ 648 | { 649 | "__id__": 18 650 | }, 651 | { 652 | "__id__": 19 653 | } 654 | ], 655 | "_prefab": null, 656 | "_opacity": 255, 657 | "_color": { 658 | "__type__": "cc.Color", 659 | "r": 255, 660 | "g": 255, 661 | "b": 255, 662 | "a": 255 663 | }, 664 | "_contentSize": { 665 | "__type__": "cc.Size", 666 | "width": 200, 667 | "height": 50 668 | }, 669 | "_anchorPoint": { 670 | "__type__": "cc.Vec2", 671 | "x": 0.5, 672 | "y": 0.5 673 | }, 674 | "_trs": { 675 | "__type__": "TypedArray", 676 | "ctor": "Float64Array", 677 | "array": [ 678 | -175.836, 679 | 277.625, 680 | 0, 681 | 0, 682 | 0, 683 | 0, 684 | 1, 685 | 1, 686 | 1, 687 | 0 688 | ] 689 | }, 690 | "_eulerAngles": { 691 | "__type__": "cc.Vec3", 692 | "x": 0, 693 | "y": 0, 694 | "z": 0 695 | }, 696 | "_skewX": 0, 697 | "_skewY": 0, 698 | "_is3DNode": false, 699 | "_groupIndex": 0, 700 | "groupIndex": 0, 701 | "_id": "17+V2B1cVNDqwLT7AY2P4m" 702 | }, 703 | { 704 | "__type__": "cc.Node", 705 | "_name": "Label", 706 | "_objFlags": 0, 707 | "_parent": { 708 | "__id__": 15 709 | }, 710 | "_children": [], 711 | "_active": true, 712 | "_components": [ 713 | { 714 | "__id__": 17 715 | } 716 | ], 717 | "_prefab": null, 718 | "_opacity": 255, 719 | "_color": { 720 | "__type__": "cc.Color", 721 | "r": 0, 722 | "g": 0, 723 | "b": 0, 724 | "a": 255 725 | }, 726 | "_contentSize": { 727 | "__type__": "cc.Size", 728 | "width": 100, 729 | "height": 50.4 730 | }, 731 | "_anchorPoint": { 732 | "__type__": "cc.Vec2", 733 | "x": 0.5, 734 | "y": 0.5 735 | }, 736 | "_trs": { 737 | "__type__": "TypedArray", 738 | "ctor": "Float64Array", 739 | "array": [ 740 | 0, 741 | 0, 742 | 0, 743 | 0, 744 | 0, 745 | 0, 746 | 1, 747 | 1, 748 | 1, 749 | 1 750 | ] 751 | }, 752 | "_eulerAngles": { 753 | "__type__": "cc.Vec3", 754 | "x": 0, 755 | "y": 0, 756 | "z": 0 757 | }, 758 | "_skewX": 0, 759 | "_skewY": 0, 760 | "_is3DNode": false, 761 | "_groupIndex": 0, 762 | "groupIndex": 0, 763 | "_id": "736NrQsjtPcbablsAX3doB" 764 | }, 765 | { 766 | "__type__": "cc.Label", 767 | "_name": "", 768 | "_objFlags": 0, 769 | "node": { 770 | "__id__": 16 771 | }, 772 | "_enabled": true, 773 | "_materials": [ 774 | { 775 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 776 | } 777 | ], 778 | "_srcBlendFactor": 1, 779 | "_dstBlendFactor": 771, 780 | "_useOriginalSize": false, 781 | "_string": "增加一个点", 782 | "_N$string": "增加一个点", 783 | "_fontSize": 20, 784 | "_lineHeight": 40, 785 | "_enableWrapText": false, 786 | "_N$file": null, 787 | "_isSystemFontUsed": true, 788 | "_spacingX": 0, 789 | "_batchAsBitmap": false, 790 | "_styleFlags": 0, 791 | "_underlineHeight": 0, 792 | "_N$horizontalAlign": 1, 793 | "_N$verticalAlign": 1, 794 | "_N$fontFamily": "Arial", 795 | "_N$overflow": 3, 796 | "_N$cacheMode": 0, 797 | "_id": "67QdoenBhGLYs0CUaBYDD/" 798 | }, 799 | { 800 | "__type__": "cc.Sprite", 801 | "_name": "", 802 | "_objFlags": 0, 803 | "node": { 804 | "__id__": 15 805 | }, 806 | "_enabled": true, 807 | "_materials": [ 808 | { 809 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 810 | } 811 | ], 812 | "_srcBlendFactor": 770, 813 | "_dstBlendFactor": 771, 814 | "_spriteFrame": { 815 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 816 | }, 817 | "_type": 1, 818 | "_sizeMode": 0, 819 | "_fillType": 0, 820 | "_fillCenter": { 821 | "__type__": "cc.Vec2", 822 | "x": 0, 823 | "y": 0 824 | }, 825 | "_fillStart": 0, 826 | "_fillRange": 0, 827 | "_isTrimmedMode": true, 828 | "_atlas": null, 829 | "_id": "5evMxm9AtNJJVSHn1Bf9h4" 830 | }, 831 | { 832 | "__type__": "cc.Button", 833 | "_name": "", 834 | "_objFlags": 0, 835 | "node": { 836 | "__id__": 15 837 | }, 838 | "_enabled": true, 839 | "_normalMaterial": null, 840 | "_grayMaterial": null, 841 | "duration": 0.1, 842 | "zoomScale": 1.2, 843 | "clickEvents": [ 844 | { 845 | "__id__": 20 846 | } 847 | ], 848 | "_N$interactable": true, 849 | "_N$enableAutoGrayEffect": false, 850 | "_N$transition": 3, 851 | "transition": 3, 852 | "_N$normalColor": { 853 | "__type__": "cc.Color", 854 | "r": 255, 855 | "g": 255, 856 | "b": 255, 857 | "a": 255 858 | }, 859 | "_N$pressedColor": { 860 | "__type__": "cc.Color", 861 | "r": 255, 862 | "g": 255, 863 | "b": 255, 864 | "a": 255 865 | }, 866 | "pressedColor": { 867 | "__type__": "cc.Color", 868 | "r": 255, 869 | "g": 255, 870 | "b": 255, 871 | "a": 255 872 | }, 873 | "_N$hoverColor": { 874 | "__type__": "cc.Color", 875 | "r": 255, 876 | "g": 255, 877 | "b": 255, 878 | "a": 255 879 | }, 880 | "hoverColor": { 881 | "__type__": "cc.Color", 882 | "r": 255, 883 | "g": 255, 884 | "b": 255, 885 | "a": 255 886 | }, 887 | "_N$disabledColor": { 888 | "__type__": "cc.Color", 889 | "r": 255, 890 | "g": 255, 891 | "b": 255, 892 | "a": 255 893 | }, 894 | "_N$normalSprite": { 895 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 896 | }, 897 | "_N$pressedSprite": { 898 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 899 | }, 900 | "pressedSprite": { 901 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 902 | }, 903 | "_N$hoverSprite": { 904 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 905 | }, 906 | "hoverSprite": { 907 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 908 | }, 909 | "_N$disabledSprite": { 910 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 911 | }, 912 | "_N$target": { 913 | "__id__": 15 914 | }, 915 | "_id": "6b3E2upQZJqZAQk6coVJEH" 916 | }, 917 | { 918 | "__type__": "cc.ClickEvent", 919 | "target": null, 920 | "component": "", 921 | "_componentId": "9905cdey4dBl736wRjs/e1x", 922 | "handler": "addMyPointsClick", 923 | "customEventData": "" 924 | }, 925 | { 926 | "__type__": "cc.Node", 927 | "_name": "New Button", 928 | "_objFlags": 0, 929 | "_parent": { 930 | "__id__": 2 931 | }, 932 | "_children": [ 933 | { 934 | "__id__": 22 935 | } 936 | ], 937 | "_active": true, 938 | "_components": [ 939 | { 940 | "__id__": 24 941 | }, 942 | { 943 | "__id__": 25 944 | } 945 | ], 946 | "_prefab": null, 947 | "_opacity": 255, 948 | "_color": { 949 | "__type__": "cc.Color", 950 | "r": 255, 951 | "g": 255, 952 | "b": 255, 953 | "a": 255 954 | }, 955 | "_contentSize": { 956 | "__type__": "cc.Size", 957 | "width": 200, 958 | "height": 50 959 | }, 960 | "_anchorPoint": { 961 | "__type__": "cc.Vec2", 962 | "x": 0.5, 963 | "y": 0.5 964 | }, 965 | "_trs": { 966 | "__type__": "TypedArray", 967 | "ctor": "Float64Array", 968 | "array": [ 969 | 90.754, 970 | 273.625, 971 | 0, 972 | 0, 973 | 0, 974 | 0, 975 | 1, 976 | 1, 977 | 1, 978 | 0 979 | ] 980 | }, 981 | "_eulerAngles": { 982 | "__type__": "cc.Vec3", 983 | "x": 0, 984 | "y": 0, 985 | "z": 0 986 | }, 987 | "_skewX": 0, 988 | "_skewY": 0, 989 | "_is3DNode": false, 990 | "_groupIndex": 0, 991 | "groupIndex": 0, 992 | "_id": "2fJtSjRaxLeLckJ7Gek4ZQ" 993 | }, 994 | { 995 | "__type__": "cc.Node", 996 | "_name": "Label", 997 | "_objFlags": 0, 998 | "_parent": { 999 | "__id__": 21 1000 | }, 1001 | "_children": [], 1002 | "_active": true, 1003 | "_components": [ 1004 | { 1005 | "__id__": 23 1006 | } 1007 | ], 1008 | "_prefab": null, 1009 | "_opacity": 255, 1010 | "_color": { 1011 | "__type__": "cc.Color", 1012 | "r": 0, 1013 | "g": 0, 1014 | "b": 0, 1015 | "a": 255 1016 | }, 1017 | "_contentSize": { 1018 | "__type__": "cc.Size", 1019 | "width": 200, 1020 | "height": 50.4 1021 | }, 1022 | "_anchorPoint": { 1023 | "__type__": "cc.Vec2", 1024 | "x": 0.5, 1025 | "y": 0.5 1026 | }, 1027 | "_trs": { 1028 | "__type__": "TypedArray", 1029 | "ctor": "Float64Array", 1030 | "array": [ 1031 | 0, 1032 | 0, 1033 | 0, 1034 | 0, 1035 | 0, 1036 | 0, 1037 | 1, 1038 | 1, 1039 | 1, 1040 | 1 1041 | ] 1042 | }, 1043 | "_eulerAngles": { 1044 | "__type__": "cc.Vec3", 1045 | "x": 0, 1046 | "y": 0, 1047 | "z": 0 1048 | }, 1049 | "_skewX": 0, 1050 | "_skewY": 0, 1051 | "_is3DNode": false, 1052 | "_groupIndex": 0, 1053 | "groupIndex": 0, 1054 | "_id": "b1m4beZVBLr4NDwauUalFa" 1055 | }, 1056 | { 1057 | "__type__": "cc.Label", 1058 | "_name": "", 1059 | "_objFlags": 0, 1060 | "node": { 1061 | "__id__": 22 1062 | }, 1063 | "_enabled": true, 1064 | "_materials": [ 1065 | { 1066 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 1067 | } 1068 | ], 1069 | "_srcBlendFactor": 1, 1070 | "_dstBlendFactor": 771, 1071 | "_useOriginalSize": false, 1072 | "_string": "减少加一个点", 1073 | "_N$string": "减少加一个点", 1074 | "_fontSize": 20, 1075 | "_lineHeight": 40, 1076 | "_enableWrapText": false, 1077 | "_N$file": null, 1078 | "_isSystemFontUsed": true, 1079 | "_spacingX": 0, 1080 | "_batchAsBitmap": false, 1081 | "_styleFlags": 0, 1082 | "_underlineHeight": 0, 1083 | "_N$horizontalAlign": 1, 1084 | "_N$verticalAlign": 1, 1085 | "_N$fontFamily": "Arial", 1086 | "_N$overflow": 3, 1087 | "_N$cacheMode": 0, 1088 | "_id": "f3eREy68NNPZecwBYd/1az" 1089 | }, 1090 | { 1091 | "__type__": "cc.Sprite", 1092 | "_name": "", 1093 | "_objFlags": 0, 1094 | "node": { 1095 | "__id__": 21 1096 | }, 1097 | "_enabled": true, 1098 | "_materials": [ 1099 | { 1100 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 1101 | } 1102 | ], 1103 | "_srcBlendFactor": 770, 1104 | "_dstBlendFactor": 771, 1105 | "_spriteFrame": { 1106 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1107 | }, 1108 | "_type": 1, 1109 | "_sizeMode": 0, 1110 | "_fillType": 0, 1111 | "_fillCenter": { 1112 | "__type__": "cc.Vec2", 1113 | "x": 0, 1114 | "y": 0 1115 | }, 1116 | "_fillStart": 0, 1117 | "_fillRange": 0, 1118 | "_isTrimmedMode": true, 1119 | "_atlas": null, 1120 | "_id": "97LvBpMe5EKbPm/3uC95lk" 1121 | }, 1122 | { 1123 | "__type__": "cc.Button", 1124 | "_name": "", 1125 | "_objFlags": 0, 1126 | "node": { 1127 | "__id__": 21 1128 | }, 1129 | "_enabled": true, 1130 | "_normalMaterial": null, 1131 | "_grayMaterial": null, 1132 | "duration": 0.1, 1133 | "zoomScale": 1.2, 1134 | "clickEvents": [ 1135 | { 1136 | "__id__": 26 1137 | } 1138 | ], 1139 | "_N$interactable": true, 1140 | "_N$enableAutoGrayEffect": false, 1141 | "_N$transition": 3, 1142 | "transition": 3, 1143 | "_N$normalColor": { 1144 | "__type__": "cc.Color", 1145 | "r": 255, 1146 | "g": 255, 1147 | "b": 255, 1148 | "a": 255 1149 | }, 1150 | "_N$pressedColor": { 1151 | "__type__": "cc.Color", 1152 | "r": 255, 1153 | "g": 255, 1154 | "b": 255, 1155 | "a": 255 1156 | }, 1157 | "pressedColor": { 1158 | "__type__": "cc.Color", 1159 | "r": 255, 1160 | "g": 255, 1161 | "b": 255, 1162 | "a": 255 1163 | }, 1164 | "_N$hoverColor": { 1165 | "__type__": "cc.Color", 1166 | "r": 255, 1167 | "g": 255, 1168 | "b": 255, 1169 | "a": 255 1170 | }, 1171 | "hoverColor": { 1172 | "__type__": "cc.Color", 1173 | "r": 255, 1174 | "g": 255, 1175 | "b": 255, 1176 | "a": 255 1177 | }, 1178 | "_N$disabledColor": { 1179 | "__type__": "cc.Color", 1180 | "r": 255, 1181 | "g": 255, 1182 | "b": 255, 1183 | "a": 255 1184 | }, 1185 | "_N$normalSprite": { 1186 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1187 | }, 1188 | "_N$pressedSprite": { 1189 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 1190 | }, 1191 | "pressedSprite": { 1192 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 1193 | }, 1194 | "_N$hoverSprite": { 1195 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1196 | }, 1197 | "hoverSprite": { 1198 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1199 | }, 1200 | "_N$disabledSprite": { 1201 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 1202 | }, 1203 | "_N$target": { 1204 | "__id__": 21 1205 | }, 1206 | "_id": "ebzqwFDBxLP5cYCe34jTBX" 1207 | }, 1208 | { 1209 | "__type__": "cc.ClickEvent", 1210 | "target": null, 1211 | "component": "", 1212 | "_componentId": "9905cdey4dBl736wRjs/e1x", 1213 | "handler": "delMyPointsClick", 1214 | "customEventData": "" 1215 | }, 1216 | { 1217 | "__type__": "cc.Canvas", 1218 | "_name": "", 1219 | "_objFlags": 0, 1220 | "node": { 1221 | "__id__": 2 1222 | }, 1223 | "_enabled": true, 1224 | "_designResolution": { 1225 | "__type__": "cc.Size", 1226 | "width": 1136, 1227 | "height": 640 1228 | }, 1229 | "_fitWidth": false, 1230 | "_fitHeight": true, 1231 | "_id": "59Cd0ovbdF4byw5sbjJDx7" 1232 | }, 1233 | { 1234 | "__type__": "cc.Widget", 1235 | "_name": "", 1236 | "_objFlags": 0, 1237 | "node": { 1238 | "__id__": 2 1239 | }, 1240 | "_enabled": true, 1241 | "alignMode": 1, 1242 | "_target": null, 1243 | "_alignFlags": 45, 1244 | "_left": 0, 1245 | "_right": 0, 1246 | "_top": 0, 1247 | "_bottom": 0, 1248 | "_verticalCenter": 0, 1249 | "_horizontalCenter": 0, 1250 | "_isAbsLeft": true, 1251 | "_isAbsRight": true, 1252 | "_isAbsTop": true, 1253 | "_isAbsBottom": true, 1254 | "_isAbsHorizontalCenter": true, 1255 | "_isAbsVerticalCenter": true, 1256 | "_originalWidth": 0, 1257 | "_originalHeight": 0, 1258 | "_id": "29zXboiXFBKoIV4PQ2liTe" 1259 | } 1260 | ] -------------------------------------------------------------------------------- /assets/Scene/Bezier.fire: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.SceneAsset", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "scene": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Scene", 13 | "_objFlags": 0, 14 | "_parent": null, 15 | "_children": [ 16 | { 17 | "__id__": 2 18 | } 19 | ], 20 | "_active": true, 21 | "_components": [], 22 | "_prefab": null, 23 | "_opacity": 255, 24 | "_color": { 25 | "__type__": "cc.Color", 26 | "r": 255, 27 | "g": 255, 28 | "b": 255, 29 | "a": 255 30 | }, 31 | "_contentSize": { 32 | "__type__": "cc.Size", 33 | "width": 0, 34 | "height": 0 35 | }, 36 | "_anchorPoint": { 37 | "__type__": "cc.Vec2", 38 | "x": 0, 39 | "y": 0 40 | }, 41 | "_trs": { 42 | "__type__": "TypedArray", 43 | "ctor": "Float64Array", 44 | "array": [ 45 | 0, 46 | 0, 47 | 0, 48 | 0, 49 | 0, 50 | 0, 51 | 1, 52 | 1, 53 | 1, 54 | 1 55 | ] 56 | }, 57 | "_is3DNode": true, 58 | "_groupIndex": 0, 59 | "groupIndex": 0, 60 | "autoReleaseAssets": false, 61 | "_id": "2d2f792f-a40c-49bb-a189-ed176a246e49" 62 | }, 63 | { 64 | "__type__": "cc.Node", 65 | "_name": "Canvas", 66 | "_objFlags": 0, 67 | "_parent": { 68 | "__id__": 1 69 | }, 70 | "_children": [ 71 | { 72 | "__id__": 3 73 | }, 74 | { 75 | "__id__": 5 76 | }, 77 | { 78 | "__id__": 8 79 | }, 80 | { 81 | "__id__": 11 82 | }, 83 | { 84 | "__id__": 15 85 | }, 86 | { 87 | "__id__": 21 88 | } 89 | ], 90 | "_active": true, 91 | "_components": [ 92 | { 93 | "__id__": 27 94 | }, 95 | { 96 | "__id__": 28 97 | }, 98 | { 99 | "__id__": 29 100 | } 101 | ], 102 | "_prefab": null, 103 | "_opacity": 255, 104 | "_color": { 105 | "__type__": "cc.Color", 106 | "r": 252, 107 | "g": 252, 108 | "b": 252, 109 | "a": 255 110 | }, 111 | "_contentSize": { 112 | "__type__": "cc.Size", 113 | "width": 2340, 114 | "height": 1080 115 | }, 116 | "_anchorPoint": { 117 | "__type__": "cc.Vec2", 118 | "x": 0.5, 119 | "y": 0.5 120 | }, 121 | "_trs": { 122 | "__type__": "TypedArray", 123 | "ctor": "Float64Array", 124 | "array": [ 125 | 1170, 126 | 540, 127 | 0, 128 | 0, 129 | 0, 130 | 0, 131 | 1, 132 | 0.5, 133 | 0.5, 134 | 1 135 | ] 136 | }, 137 | "_eulerAngles": { 138 | "__type__": "cc.Vec3", 139 | "x": 0, 140 | "y": 0, 141 | "z": 0 142 | }, 143 | "_skewX": 0, 144 | "_skewY": 0, 145 | "_is3DNode": false, 146 | "_groupIndex": 0, 147 | "groupIndex": 0, 148 | "_id": "a286bbGknJLZpRpxROV6M94" 149 | }, 150 | { 151 | "__type__": "cc.Node", 152 | "_name": "Main Camera", 153 | "_objFlags": 0, 154 | "_parent": { 155 | "__id__": 2 156 | }, 157 | "_children": [], 158 | "_active": true, 159 | "_components": [ 160 | { 161 | "__id__": 4 162 | } 163 | ], 164 | "_prefab": null, 165 | "_opacity": 255, 166 | "_color": { 167 | "__type__": "cc.Color", 168 | "r": 255, 169 | "g": 255, 170 | "b": 255, 171 | "a": 255 172 | }, 173 | "_contentSize": { 174 | "__type__": "cc.Size", 175 | "width": 0, 176 | "height": 0 177 | }, 178 | "_anchorPoint": { 179 | "__type__": "cc.Vec2", 180 | "x": 0.5, 181 | "y": 0.5 182 | }, 183 | "_trs": { 184 | "__type__": "TypedArray", 185 | "ctor": "Float64Array", 186 | "array": [ 187 | 0, 188 | 0, 189 | 451.19923537169257, 190 | 0, 191 | 0, 192 | 0, 193 | 1, 194 | 1, 195 | 1, 196 | 1 197 | ] 198 | }, 199 | "_eulerAngles": { 200 | "__type__": "cc.Vec3", 201 | "x": 0, 202 | "y": 0, 203 | "z": 0 204 | }, 205 | "_skewX": 0, 206 | "_skewY": 0, 207 | "_is3DNode": false, 208 | "_groupIndex": 0, 209 | "groupIndex": 0, 210 | "_id": "f2Brbl62RI26T7BWnC9RrS" 211 | }, 212 | { 213 | "__type__": "cc.Camera", 214 | "_name": "", 215 | "_objFlags": 0, 216 | "node": { 217 | "__id__": 3 218 | }, 219 | "_enabled": true, 220 | "_cullingMask": 4294967295, 221 | "_clearFlags": 7, 222 | "_backgroundColor": { 223 | "__type__": "cc.Color", 224 | "r": 0, 225 | "g": 0, 226 | "b": 0, 227 | "a": 255 228 | }, 229 | "_depth": -1, 230 | "_zoomRatio": 1, 231 | "_targetTexture": null, 232 | "_fov": 60, 233 | "_orthoSize": 10, 234 | "_nearClip": 1, 235 | "_farClip": 4096, 236 | "_ortho": true, 237 | "_rect": { 238 | "__type__": "cc.Rect", 239 | "x": 0, 240 | "y": 0, 241 | "width": 1, 242 | "height": 1 243 | }, 244 | "_renderStages": 1, 245 | "_alignWithScreen": true, 246 | "_id": "9fCh+kdFhPb6G8peupyAP9" 247 | }, 248 | { 249 | "__type__": "cc.Node", 250 | "_name": "background", 251 | "_objFlags": 0, 252 | "_parent": { 253 | "__id__": 2 254 | }, 255 | "_children": [], 256 | "_active": true, 257 | "_components": [ 258 | { 259 | "__id__": 6 260 | }, 261 | { 262 | "__id__": 7 263 | } 264 | ], 265 | "_prefab": null, 266 | "_opacity": 255, 267 | "_color": { 268 | "__type__": "cc.Color", 269 | "r": 27, 270 | "g": 38, 271 | "b": 46, 272 | "a": 255 273 | }, 274 | "_contentSize": { 275 | "__type__": "cc.Size", 276 | "width": 2340, 277 | "height": 1080 278 | }, 279 | "_anchorPoint": { 280 | "__type__": "cc.Vec2", 281 | "x": 0.5, 282 | "y": 0.5 283 | }, 284 | "_trs": { 285 | "__type__": "TypedArray", 286 | "ctor": "Float64Array", 287 | "array": [ 288 | 0, 289 | 0, 290 | 0, 291 | 0, 292 | 0, 293 | 0, 294 | 1, 295 | 1, 296 | 1, 297 | 1 298 | ] 299 | }, 300 | "_eulerAngles": { 301 | "__type__": "cc.Vec3", 302 | "x": 0, 303 | "y": 0, 304 | "z": 0 305 | }, 306 | "_skewX": 0, 307 | "_skewY": 0, 308 | "_is3DNode": false, 309 | "_groupIndex": 0, 310 | "groupIndex": 0, 311 | "_id": "e2e0crkOLxGrpMxpbC4iQg1" 312 | }, 313 | { 314 | "__type__": "cc.Widget", 315 | "_name": "", 316 | "_objFlags": 0, 317 | "node": { 318 | "__id__": 5 319 | }, 320 | "_enabled": true, 321 | "alignMode": 0, 322 | "_target": null, 323 | "_alignFlags": 45, 324 | "_left": 0, 325 | "_right": 0, 326 | "_top": 0, 327 | "_bottom": 0, 328 | "_verticalCenter": 0, 329 | "_horizontalCenter": 0, 330 | "_isAbsLeft": true, 331 | "_isAbsRight": true, 332 | "_isAbsTop": true, 333 | "_isAbsBottom": true, 334 | "_isAbsHorizontalCenter": true, 335 | "_isAbsVerticalCenter": true, 336 | "_originalWidth": 200, 337 | "_originalHeight": 150, 338 | "_id": "02bDaDnrpHC5ox1rgXldBb" 339 | }, 340 | { 341 | "__type__": "cc.Sprite", 342 | "_name": "", 343 | "_objFlags": 0, 344 | "node": { 345 | "__id__": 5 346 | }, 347 | "_enabled": true, 348 | "_materials": [ 349 | { 350 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 351 | } 352 | ], 353 | "_srcBlendFactor": 770, 354 | "_dstBlendFactor": 771, 355 | "_spriteFrame": { 356 | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" 357 | }, 358 | "_type": 1, 359 | "_sizeMode": 0, 360 | "_fillType": 0, 361 | "_fillCenter": { 362 | "__type__": "cc.Vec2", 363 | "x": 0, 364 | "y": 0 365 | }, 366 | "_fillStart": 0, 367 | "_fillRange": 0, 368 | "_isTrimmedMode": true, 369 | "_atlas": null, 370 | "_id": "f0lvKoPOJIU5SxD/J/AEVw" 371 | }, 372 | { 373 | "__type__": "cc.Node", 374 | "_name": "New Sprite(Splash)", 375 | "_objFlags": 0, 376 | "_parent": { 377 | "__id__": 2 378 | }, 379 | "_children": [], 380 | "_active": true, 381 | "_components": [ 382 | { 383 | "__id__": 9 384 | }, 385 | { 386 | "__id__": 10 387 | } 388 | ], 389 | "_prefab": null, 390 | "_opacity": 255, 391 | "_color": { 392 | "__type__": "cc.Color", 393 | "r": 214, 394 | "g": 208, 395 | "b": 208, 396 | "a": 255 397 | }, 398 | "_contentSize": { 399 | "__type__": "cc.Size", 400 | "width": 1134, 401 | "height": 640 402 | }, 403 | "_anchorPoint": { 404 | "__type__": "cc.Vec2", 405 | "x": 0.5, 406 | "y": 0.5 407 | }, 408 | "_trs": { 409 | "__type__": "TypedArray", 410 | "ctor": "Float64Array", 411 | "array": [ 412 | 0, 413 | 0, 414 | 0, 415 | 0, 416 | 0, 417 | 0, 418 | 1, 419 | 1, 420 | 1, 421 | 1 422 | ] 423 | }, 424 | "_eulerAngles": { 425 | "__type__": "cc.Vec3", 426 | "x": 0, 427 | "y": 0, 428 | "z": 0 429 | }, 430 | "_skewX": 0, 431 | "_skewY": 0, 432 | "_is3DNode": false, 433 | "_groupIndex": 0, 434 | "groupIndex": 0, 435 | "_id": "c5I9VVzjxJGan1j113Wv/H" 436 | }, 437 | { 438 | "__type__": "cc.Sprite", 439 | "_name": "", 440 | "_objFlags": 0, 441 | "node": { 442 | "__id__": 8 443 | }, 444 | "_enabled": true, 445 | "_materials": [ 446 | { 447 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 448 | } 449 | ], 450 | "_srcBlendFactor": 770, 451 | "_dstBlendFactor": 771, 452 | "_spriteFrame": { 453 | "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" 454 | }, 455 | "_type": 0, 456 | "_sizeMode": 0, 457 | "_fillType": 0, 458 | "_fillCenter": { 459 | "__type__": "cc.Vec2", 460 | "x": 0, 461 | "y": 0 462 | }, 463 | "_fillStart": 0, 464 | "_fillRange": 0, 465 | "_isTrimmedMode": true, 466 | "_atlas": null, 467 | "_id": "a5Eg5rNWBKv7Sa9eDNc8uZ" 468 | }, 469 | { 470 | "__type__": "cc.Widget", 471 | "_name": "", 472 | "_objFlags": 0, 473 | "node": { 474 | "__id__": 8 475 | }, 476 | "_enabled": true, 477 | "alignMode": 1, 478 | "_target": null, 479 | "_alignFlags": 18, 480 | "_left": 617, 481 | "_right": 617, 482 | "_top": 325, 483 | "_bottom": 325, 484 | "_verticalCenter": 0, 485 | "_horizontalCenter": 0, 486 | "_isAbsLeft": true, 487 | "_isAbsRight": true, 488 | "_isAbsTop": true, 489 | "_isAbsBottom": true, 490 | "_isAbsHorizontalCenter": true, 491 | "_isAbsVerticalCenter": true, 492 | "_originalWidth": 100, 493 | "_originalHeight": 100, 494 | "_id": "bc/o84DiJP5Ylp50+mjZaG" 495 | }, 496 | { 497 | "__type__": "cc.Node", 498 | "_name": "draw", 499 | "_objFlags": 0, 500 | "_parent": { 501 | "__id__": 2 502 | }, 503 | "_children": [], 504 | "_active": true, 505 | "_components": [ 506 | { 507 | "__id__": 12 508 | }, 509 | { 510 | "__id__": 13 511 | }, 512 | { 513 | "__id__": 14 514 | } 515 | ], 516 | "_prefab": null, 517 | "_opacity": 255, 518 | "_color": { 519 | "__type__": "cc.Color", 520 | "r": 214, 521 | "g": 208, 522 | "b": 208, 523 | "a": 255 524 | }, 525 | "_contentSize": { 526 | "__type__": "cc.Size", 527 | "width": 2340, 528 | "height": 1080 529 | }, 530 | "_anchorPoint": { 531 | "__type__": "cc.Vec2", 532 | "x": 0, 533 | "y": 0 534 | }, 535 | "_trs": { 536 | "__type__": "TypedArray", 537 | "ctor": "Float64Array", 538 | "array": [ 539 | -1170, 540 | -540, 541 | 0, 542 | 0, 543 | 0, 544 | 0, 545 | 1, 546 | 1, 547 | 1, 548 | 1 549 | ] 550 | }, 551 | "_eulerAngles": { 552 | "__type__": "cc.Vec3", 553 | "x": 0, 554 | "y": 0, 555 | "z": 0 556 | }, 557 | "_skewX": 0, 558 | "_skewY": 0, 559 | "_is3DNode": false, 560 | "_groupIndex": 0, 561 | "groupIndex": 0, 562 | "_id": "693ggxhnVMUIqCYZ7AbOS6" 563 | }, 564 | { 565 | "__type__": "cc.Widget", 566 | "_name": "", 567 | "_objFlags": 0, 568 | "node": { 569 | "__id__": 11 570 | }, 571 | "_enabled": true, 572 | "alignMode": 1, 573 | "_target": null, 574 | "_alignFlags": 45, 575 | "_left": 0, 576 | "_right": 0, 577 | "_top": 0, 578 | "_bottom": 0, 579 | "_verticalCenter": 0, 580 | "_horizontalCenter": 0, 581 | "_isAbsLeft": true, 582 | "_isAbsRight": true, 583 | "_isAbsTop": true, 584 | "_isAbsBottom": true, 585 | "_isAbsHorizontalCenter": true, 586 | "_isAbsVerticalCenter": true, 587 | "_originalWidth": 1134, 588 | "_originalHeight": 640, 589 | "_id": "98ppO+RdxCULlTMTDKzwwq" 590 | }, 591 | { 592 | "__type__": "cc.Graphics", 593 | "_name": "", 594 | "_objFlags": 0, 595 | "node": { 596 | "__id__": 11 597 | }, 598 | "_enabled": true, 599 | "_materials": [ 600 | { 601 | "__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57" 602 | } 603 | ], 604 | "_lineWidth": 3, 605 | "_strokeColor": { 606 | "__type__": "cc.Color", 607 | "r": 223, 608 | "g": 25, 609 | "b": 25, 610 | "a": 255 611 | }, 612 | "_lineJoin": 2, 613 | "_lineCap": 0, 614 | "_fillColor": { 615 | "__type__": "cc.Color", 616 | "r": 255, 617 | "g": 255, 618 | "b": 255, 619 | "a": 255 620 | }, 621 | "_miterLimit": 10, 622 | "_id": "e6RcJrAGZMxp+YUkZ6lu0g" 623 | }, 624 | { 625 | "__type__": "9905cdey4dBl736wRjs/e1x", 626 | "_name": "", 627 | "_objFlags": 0, 628 | "node": { 629 | "__id__": 11 630 | }, 631 | "_enabled": true, 632 | "myPoint": { 633 | "__uuid__": "b7199310-398c-429e-afd5-76cb6a1fbd10" 634 | }, 635 | "_id": "d4XTfrdXNM+bWorE0O6MNL" 636 | }, 637 | { 638 | "__type__": "cc.Node", 639 | "_name": "New Button", 640 | "_objFlags": 0, 641 | "_parent": { 642 | "__id__": 2 643 | }, 644 | "_children": [ 645 | { 646 | "__id__": 16 647 | } 648 | ], 649 | "_active": true, 650 | "_components": [ 651 | { 652 | "__id__": 18 653 | }, 654 | { 655 | "__id__": 19 656 | } 657 | ], 658 | "_prefab": null, 659 | "_opacity": 255, 660 | "_color": { 661 | "__type__": "cc.Color", 662 | "r": 255, 663 | "g": 255, 664 | "b": 255, 665 | "a": 255 666 | }, 667 | "_contentSize": { 668 | "__type__": "cc.Size", 669 | "width": 200, 670 | "height": 50 671 | }, 672 | "_anchorPoint": { 673 | "__type__": "cc.Vec2", 674 | "x": 0.5, 675 | "y": 0.5 676 | }, 677 | "_trs": { 678 | "__type__": "TypedArray", 679 | "ctor": "Float64Array", 680 | "array": [ 681 | -170, 682 | 371, 683 | 0, 684 | 0, 685 | 0, 686 | 0, 687 | 1, 688 | 1, 689 | 1, 690 | 0 691 | ] 692 | }, 693 | "_eulerAngles": { 694 | "__type__": "cc.Vec3", 695 | "x": 0, 696 | "y": 0, 697 | "z": 0 698 | }, 699 | "_skewX": 0, 700 | "_skewY": 0, 701 | "_is3DNode": false, 702 | "_groupIndex": 0, 703 | "groupIndex": 0, 704 | "_id": "4b0EamdE9Ln6V2ipCzHMan" 705 | }, 706 | { 707 | "__type__": "cc.Node", 708 | "_name": "Label", 709 | "_objFlags": 0, 710 | "_parent": { 711 | "__id__": 15 712 | }, 713 | "_children": [], 714 | "_active": true, 715 | "_components": [ 716 | { 717 | "__id__": 17 718 | } 719 | ], 720 | "_prefab": null, 721 | "_opacity": 255, 722 | "_color": { 723 | "__type__": "cc.Color", 724 | "r": 0, 725 | "g": 0, 726 | "b": 0, 727 | "a": 255 728 | }, 729 | "_contentSize": { 730 | "__type__": "cc.Size", 731 | "width": 100, 732 | "height": 50.4 733 | }, 734 | "_anchorPoint": { 735 | "__type__": "cc.Vec2", 736 | "x": 0.5, 737 | "y": 0.5 738 | }, 739 | "_trs": { 740 | "__type__": "TypedArray", 741 | "ctor": "Float64Array", 742 | "array": [ 743 | 0, 744 | 0, 745 | 0, 746 | 0, 747 | 0, 748 | 0, 749 | 1, 750 | 1, 751 | 1, 752 | 1 753 | ] 754 | }, 755 | "_eulerAngles": { 756 | "__type__": "cc.Vec3", 757 | "x": 0, 758 | "y": 0, 759 | "z": 0 760 | }, 761 | "_skewX": 0, 762 | "_skewY": 0, 763 | "_is3DNode": false, 764 | "_groupIndex": 0, 765 | "groupIndex": 0, 766 | "_id": "9eoBZ3WcJHvYJvLMbFsoxD" 767 | }, 768 | { 769 | "__type__": "cc.Label", 770 | "_name": "", 771 | "_objFlags": 0, 772 | "node": { 773 | "__id__": 16 774 | }, 775 | "_enabled": true, 776 | "_materials": [ 777 | { 778 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 779 | } 780 | ], 781 | "_srcBlendFactor": 1, 782 | "_dstBlendFactor": 771, 783 | "_useOriginalSize": false, 784 | "_string": "增加一个点", 785 | "_N$string": "增加一个点", 786 | "_fontSize": 20, 787 | "_lineHeight": 40, 788 | "_enableWrapText": false, 789 | "_N$file": null, 790 | "_isSystemFontUsed": true, 791 | "_spacingX": 0, 792 | "_batchAsBitmap": false, 793 | "_styleFlags": 0, 794 | "_underlineHeight": 0, 795 | "_N$horizontalAlign": 1, 796 | "_N$verticalAlign": 1, 797 | "_N$fontFamily": "Arial", 798 | "_N$overflow": 3, 799 | "_N$cacheMode": 0, 800 | "_id": "4dUoqodUZAO47KCWCmx4YN" 801 | }, 802 | { 803 | "__type__": "cc.Sprite", 804 | "_name": "", 805 | "_objFlags": 0, 806 | "node": { 807 | "__id__": 15 808 | }, 809 | "_enabled": true, 810 | "_materials": [ 811 | { 812 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 813 | } 814 | ], 815 | "_srcBlendFactor": 770, 816 | "_dstBlendFactor": 771, 817 | "_spriteFrame": { 818 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 819 | }, 820 | "_type": 1, 821 | "_sizeMode": 0, 822 | "_fillType": 0, 823 | "_fillCenter": { 824 | "__type__": "cc.Vec2", 825 | "x": 0, 826 | "y": 0 827 | }, 828 | "_fillStart": 0, 829 | "_fillRange": 0, 830 | "_isTrimmedMode": true, 831 | "_atlas": null, 832 | "_id": "f9+rpULEhPSYcTl+VvlfIy" 833 | }, 834 | { 835 | "__type__": "cc.Button", 836 | "_name": "", 837 | "_objFlags": 0, 838 | "node": { 839 | "__id__": 15 840 | }, 841 | "_enabled": true, 842 | "_normalMaterial": null, 843 | "_grayMaterial": null, 844 | "duration": 0.1, 845 | "zoomScale": 1.2, 846 | "clickEvents": [ 847 | { 848 | "__id__": 20 849 | } 850 | ], 851 | "_N$interactable": true, 852 | "_N$enableAutoGrayEffect": false, 853 | "_N$transition": 3, 854 | "transition": 3, 855 | "_N$normalColor": { 856 | "__type__": "cc.Color", 857 | "r": 255, 858 | "g": 255, 859 | "b": 255, 860 | "a": 255 861 | }, 862 | "_N$pressedColor": { 863 | "__type__": "cc.Color", 864 | "r": 255, 865 | "g": 255, 866 | "b": 255, 867 | "a": 255 868 | }, 869 | "pressedColor": { 870 | "__type__": "cc.Color", 871 | "r": 255, 872 | "g": 255, 873 | "b": 255, 874 | "a": 255 875 | }, 876 | "_N$hoverColor": { 877 | "__type__": "cc.Color", 878 | "r": 255, 879 | "g": 255, 880 | "b": 255, 881 | "a": 255 882 | }, 883 | "hoverColor": { 884 | "__type__": "cc.Color", 885 | "r": 255, 886 | "g": 255, 887 | "b": 255, 888 | "a": 255 889 | }, 890 | "_N$disabledColor": { 891 | "__type__": "cc.Color", 892 | "r": 255, 893 | "g": 255, 894 | "b": 255, 895 | "a": 255 896 | }, 897 | "_N$normalSprite": { 898 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 899 | }, 900 | "_N$pressedSprite": { 901 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 902 | }, 903 | "pressedSprite": { 904 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 905 | }, 906 | "_N$hoverSprite": { 907 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 908 | }, 909 | "hoverSprite": { 910 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 911 | }, 912 | "_N$disabledSprite": { 913 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 914 | }, 915 | "_N$target": { 916 | "__id__": 15 917 | }, 918 | "_id": "a7MrSJPmBL45dlrFtlD9mq" 919 | }, 920 | { 921 | "__type__": "cc.ClickEvent", 922 | "target": { 923 | "__id__": 11 924 | }, 925 | "component": "", 926 | "_componentId": "9905cdey4dBl736wRjs/e1x", 927 | "handler": "addMyPointsClick", 928 | "customEventData": "" 929 | }, 930 | { 931 | "__type__": "cc.Node", 932 | "_name": "New Button", 933 | "_objFlags": 0, 934 | "_parent": { 935 | "__id__": 2 936 | }, 937 | "_children": [ 938 | { 939 | "__id__": 22 940 | } 941 | ], 942 | "_active": true, 943 | "_components": [ 944 | { 945 | "__id__": 24 946 | }, 947 | { 948 | "__id__": 25 949 | } 950 | ], 951 | "_prefab": null, 952 | "_opacity": 255, 953 | "_color": { 954 | "__type__": "cc.Color", 955 | "r": 255, 956 | "g": 255, 957 | "b": 255, 958 | "a": 255 959 | }, 960 | "_contentSize": { 961 | "__type__": "cc.Size", 962 | "width": 200, 963 | "height": 50 964 | }, 965 | "_anchorPoint": { 966 | "__type__": "cc.Vec2", 967 | "x": 0.5, 968 | "y": 0.5 969 | }, 970 | "_trs": { 971 | "__type__": "TypedArray", 972 | "ctor": "Float64Array", 973 | "array": [ 974 | 82, 975 | 367, 976 | 0, 977 | 0, 978 | 0, 979 | 0, 980 | 1, 981 | 1, 982 | 1, 983 | 0 984 | ] 985 | }, 986 | "_eulerAngles": { 987 | "__type__": "cc.Vec3", 988 | "x": 0, 989 | "y": 0, 990 | "z": 0 991 | }, 992 | "_skewX": 0, 993 | "_skewY": 0, 994 | "_is3DNode": false, 995 | "_groupIndex": 0, 996 | "groupIndex": 0, 997 | "_id": "a1GtXyemtOrKtxfg6H/tFK" 998 | }, 999 | { 1000 | "__type__": "cc.Node", 1001 | "_name": "Label", 1002 | "_objFlags": 0, 1003 | "_parent": { 1004 | "__id__": 21 1005 | }, 1006 | "_children": [], 1007 | "_active": true, 1008 | "_components": [ 1009 | { 1010 | "__id__": 23 1011 | } 1012 | ], 1013 | "_prefab": null, 1014 | "_opacity": 255, 1015 | "_color": { 1016 | "__type__": "cc.Color", 1017 | "r": 0, 1018 | "g": 0, 1019 | "b": 0, 1020 | "a": 255 1021 | }, 1022 | "_contentSize": { 1023 | "__type__": "cc.Size", 1024 | "width": 200, 1025 | "height": 50.4 1026 | }, 1027 | "_anchorPoint": { 1028 | "__type__": "cc.Vec2", 1029 | "x": 0.5, 1030 | "y": 0.5 1031 | }, 1032 | "_trs": { 1033 | "__type__": "TypedArray", 1034 | "ctor": "Float64Array", 1035 | "array": [ 1036 | 0, 1037 | 0, 1038 | 0, 1039 | 0, 1040 | 0, 1041 | 0, 1042 | 1, 1043 | 1, 1044 | 1, 1045 | 1 1046 | ] 1047 | }, 1048 | "_eulerAngles": { 1049 | "__type__": "cc.Vec3", 1050 | "x": 0, 1051 | "y": 0, 1052 | "z": 0 1053 | }, 1054 | "_skewX": 0, 1055 | "_skewY": 0, 1056 | "_is3DNode": false, 1057 | "_groupIndex": 0, 1058 | "groupIndex": 0, 1059 | "_id": "391+aqUP9PVIQgvgmgN7i1" 1060 | }, 1061 | { 1062 | "__type__": "cc.Label", 1063 | "_name": "", 1064 | "_objFlags": 0, 1065 | "node": { 1066 | "__id__": 22 1067 | }, 1068 | "_enabled": true, 1069 | "_materials": [ 1070 | { 1071 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 1072 | } 1073 | ], 1074 | "_srcBlendFactor": 1, 1075 | "_dstBlendFactor": 771, 1076 | "_useOriginalSize": false, 1077 | "_string": "减少加一个点", 1078 | "_N$string": "减少加一个点", 1079 | "_fontSize": 20, 1080 | "_lineHeight": 40, 1081 | "_enableWrapText": false, 1082 | "_N$file": null, 1083 | "_isSystemFontUsed": true, 1084 | "_spacingX": 0, 1085 | "_batchAsBitmap": false, 1086 | "_styleFlags": 0, 1087 | "_underlineHeight": 0, 1088 | "_N$horizontalAlign": 1, 1089 | "_N$verticalAlign": 1, 1090 | "_N$fontFamily": "Arial", 1091 | "_N$overflow": 3, 1092 | "_N$cacheMode": 0, 1093 | "_id": "67mvPECEdPYJP3zxDEUKUH" 1094 | }, 1095 | { 1096 | "__type__": "cc.Sprite", 1097 | "_name": "", 1098 | "_objFlags": 0, 1099 | "node": { 1100 | "__id__": 21 1101 | }, 1102 | "_enabled": true, 1103 | "_materials": [ 1104 | { 1105 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 1106 | } 1107 | ], 1108 | "_srcBlendFactor": 770, 1109 | "_dstBlendFactor": 771, 1110 | "_spriteFrame": { 1111 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1112 | }, 1113 | "_type": 1, 1114 | "_sizeMode": 0, 1115 | "_fillType": 0, 1116 | "_fillCenter": { 1117 | "__type__": "cc.Vec2", 1118 | "x": 0, 1119 | "y": 0 1120 | }, 1121 | "_fillStart": 0, 1122 | "_fillRange": 0, 1123 | "_isTrimmedMode": true, 1124 | "_atlas": null, 1125 | "_id": "16hGE3H6FBdZ1gNEQEljGw" 1126 | }, 1127 | { 1128 | "__type__": "cc.Button", 1129 | "_name": "", 1130 | "_objFlags": 0, 1131 | "node": { 1132 | "__id__": 21 1133 | }, 1134 | "_enabled": true, 1135 | "_normalMaterial": null, 1136 | "_grayMaterial": null, 1137 | "duration": 0.1, 1138 | "zoomScale": 1.2, 1139 | "clickEvents": [ 1140 | { 1141 | "__id__": 26 1142 | } 1143 | ], 1144 | "_N$interactable": true, 1145 | "_N$enableAutoGrayEffect": false, 1146 | "_N$transition": 3, 1147 | "transition": 3, 1148 | "_N$normalColor": { 1149 | "__type__": "cc.Color", 1150 | "r": 255, 1151 | "g": 255, 1152 | "b": 255, 1153 | "a": 255 1154 | }, 1155 | "_N$pressedColor": { 1156 | "__type__": "cc.Color", 1157 | "r": 255, 1158 | "g": 255, 1159 | "b": 255, 1160 | "a": 255 1161 | }, 1162 | "pressedColor": { 1163 | "__type__": "cc.Color", 1164 | "r": 255, 1165 | "g": 255, 1166 | "b": 255, 1167 | "a": 255 1168 | }, 1169 | "_N$hoverColor": { 1170 | "__type__": "cc.Color", 1171 | "r": 255, 1172 | "g": 255, 1173 | "b": 255, 1174 | "a": 255 1175 | }, 1176 | "hoverColor": { 1177 | "__type__": "cc.Color", 1178 | "r": 255, 1179 | "g": 255, 1180 | "b": 255, 1181 | "a": 255 1182 | }, 1183 | "_N$disabledColor": { 1184 | "__type__": "cc.Color", 1185 | "r": 255, 1186 | "g": 255, 1187 | "b": 255, 1188 | "a": 255 1189 | }, 1190 | "_N$normalSprite": { 1191 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1192 | }, 1193 | "_N$pressedSprite": { 1194 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 1195 | }, 1196 | "pressedSprite": { 1197 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 1198 | }, 1199 | "_N$hoverSprite": { 1200 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1201 | }, 1202 | "hoverSprite": { 1203 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1204 | }, 1205 | "_N$disabledSprite": { 1206 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 1207 | }, 1208 | "_N$target": { 1209 | "__id__": 21 1210 | }, 1211 | "_id": "1770MAaYNOiYoTT99M3SXM" 1212 | }, 1213 | { 1214 | "__type__": "cc.ClickEvent", 1215 | "target": { 1216 | "__id__": 11 1217 | }, 1218 | "component": "", 1219 | "_componentId": "9905cdey4dBl736wRjs/e1x", 1220 | "handler": "delMyPointsClick", 1221 | "customEventData": "" 1222 | }, 1223 | { 1224 | "__type__": "cc.Canvas", 1225 | "_name": "", 1226 | "_objFlags": 0, 1227 | "node": { 1228 | "__id__": 2 1229 | }, 1230 | "_enabled": true, 1231 | "_designResolution": { 1232 | "__type__": "cc.Size", 1233 | "width": 2340, 1234 | "height": 1080 1235 | }, 1236 | "_fitWidth": false, 1237 | "_fitHeight": true, 1238 | "_id": "63oFfjLuxG16tGUh2xaQRm" 1239 | }, 1240 | { 1241 | "__type__": "e1b90/rohdEk4SdmmEZANaD", 1242 | "_name": "", 1243 | "_objFlags": 0, 1244 | "node": { 1245 | "__id__": 2 1246 | }, 1247 | "_enabled": true, 1248 | "label": null, 1249 | "text": "hello", 1250 | "_id": "66yvgv2sJP25LHM73iRKJ8" 1251 | }, 1252 | { 1253 | "__type__": "cc.Widget", 1254 | "_name": "", 1255 | "_objFlags": 0, 1256 | "node": { 1257 | "__id__": 2 1258 | }, 1259 | "_enabled": true, 1260 | "alignMode": 1, 1261 | "_target": null, 1262 | "_alignFlags": 0, 1263 | "_left": 4042.5, 1264 | "_right": 284, 1265 | "_top": 420, 1266 | "_bottom": 160, 1267 | "_verticalCenter": 0, 1268 | "_horizontalCenter": 0, 1269 | "_isAbsLeft": true, 1270 | "_isAbsRight": true, 1271 | "_isAbsTop": true, 1272 | "_isAbsBottom": true, 1273 | "_isAbsHorizontalCenter": true, 1274 | "_isAbsVerticalCenter": true, 1275 | "_originalWidth": 0, 1276 | "_originalHeight": 0, 1277 | "_id": "44kAKsyA5H4rsKzH52JWRh" 1278 | } 1279 | ] -------------------------------------------------------------------------------- /assets/Scene/Hermite.fire: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.SceneAsset", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "scene": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Scene", 13 | "_objFlags": 0, 14 | "_parent": null, 15 | "_children": [ 16 | { 17 | "__id__": 2 18 | } 19 | ], 20 | "_active": true, 21 | "_components": [], 22 | "_prefab": null, 23 | "_opacity": 255, 24 | "_color": { 25 | "__type__": "cc.Color", 26 | "r": 255, 27 | "g": 255, 28 | "b": 255, 29 | "a": 255 30 | }, 31 | "_contentSize": { 32 | "__type__": "cc.Size", 33 | "width": 0, 34 | "height": 0 35 | }, 36 | "_anchorPoint": { 37 | "__type__": "cc.Vec2", 38 | "x": 0, 39 | "y": 0 40 | }, 41 | "_trs": { 42 | "__type__": "TypedArray", 43 | "ctor": "Float64Array", 44 | "array": [ 45 | 0, 46 | 0, 47 | 0, 48 | 0, 49 | 0, 50 | 0, 51 | 1, 52 | 1, 53 | 1, 54 | 1 55 | ] 56 | }, 57 | "_is3DNode": true, 58 | "_groupIndex": 0, 59 | "groupIndex": 0, 60 | "autoReleaseAssets": false, 61 | "_id": "f6daff0c-7ad1-4faf-8613-6ee7471f42dd" 62 | }, 63 | { 64 | "__type__": "cc.Node", 65 | "_name": "Canvas", 66 | "_objFlags": 0, 67 | "_parent": { 68 | "__id__": 1 69 | }, 70 | "_children": [ 71 | { 72 | "__id__": 3 73 | }, 74 | { 75 | "__id__": 5 76 | }, 77 | { 78 | "__id__": 8 79 | }, 80 | { 81 | "__id__": 11 82 | }, 83 | { 84 | "__id__": 15 85 | }, 86 | { 87 | "__id__": 21 88 | }, 89 | { 90 | "__id__": 27 91 | } 92 | ], 93 | "_active": true, 94 | "_components": [ 95 | { 96 | "__id__": 29 97 | }, 98 | { 99 | "__id__": 30 100 | } 101 | ], 102 | "_prefab": null, 103 | "_opacity": 255, 104 | "_color": { 105 | "__type__": "cc.Color", 106 | "r": 255, 107 | "g": 255, 108 | "b": 255, 109 | "a": 255 110 | }, 111 | "_contentSize": { 112 | "__type__": "cc.Size", 113 | "width": 2340, 114 | "height": 1080 115 | }, 116 | "_anchorPoint": { 117 | "__type__": "cc.Vec2", 118 | "x": 0.5, 119 | "y": 0.5 120 | }, 121 | "_trs": { 122 | "__type__": "TypedArray", 123 | "ctor": "Float64Array", 124 | "array": [ 125 | 1170, 126 | 540, 127 | 0, 128 | 0, 129 | 0, 130 | 0, 131 | 1, 132 | 0.5, 133 | 0.5, 134 | 1 135 | ] 136 | }, 137 | "_eulerAngles": { 138 | "__type__": "cc.Vec3", 139 | "x": 0, 140 | "y": 0, 141 | "z": 0 142 | }, 143 | "_skewX": 0, 144 | "_skewY": 0, 145 | "_is3DNode": false, 146 | "_groupIndex": 0, 147 | "groupIndex": 0, 148 | "_id": "89/+m3+KlJMY2EVOqJw2Ez" 149 | }, 150 | { 151 | "__type__": "cc.Node", 152 | "_name": "Main Camera", 153 | "_objFlags": 0, 154 | "_parent": { 155 | "__id__": 2 156 | }, 157 | "_children": [], 158 | "_active": true, 159 | "_components": [ 160 | { 161 | "__id__": 4 162 | } 163 | ], 164 | "_prefab": null, 165 | "_opacity": 255, 166 | "_color": { 167 | "__type__": "cc.Color", 168 | "r": 255, 169 | "g": 255, 170 | "b": 255, 171 | "a": 255 172 | }, 173 | "_contentSize": { 174 | "__type__": "cc.Size", 175 | "width": 0, 176 | "height": 0 177 | }, 178 | "_anchorPoint": { 179 | "__type__": "cc.Vec2", 180 | "x": 0.5, 181 | "y": 0.5 182 | }, 183 | "_trs": { 184 | "__type__": "TypedArray", 185 | "ctor": "Float64Array", 186 | "array": [ 187 | 0, 188 | 0, 189 | 451.19923537169257, 190 | 0, 191 | 0, 192 | 0, 193 | 1, 194 | 1, 195 | 1, 196 | 1 197 | ] 198 | }, 199 | "_eulerAngles": { 200 | "__type__": "cc.Vec3", 201 | "x": 0, 202 | "y": 0, 203 | "z": 0 204 | }, 205 | "_skewX": 0, 206 | "_skewY": 0, 207 | "_is3DNode": false, 208 | "_groupIndex": 0, 209 | "groupIndex": 0, 210 | "_id": "80jClPK29LMLZzKs+YNykA" 211 | }, 212 | { 213 | "__type__": "cc.Camera", 214 | "_name": "", 215 | "_objFlags": 0, 216 | "node": { 217 | "__id__": 3 218 | }, 219 | "_enabled": true, 220 | "_cullingMask": 4294967295, 221 | "_clearFlags": 7, 222 | "_backgroundColor": { 223 | "__type__": "cc.Color", 224 | "r": 0, 225 | "g": 0, 226 | "b": 0, 227 | "a": 255 228 | }, 229 | "_depth": -1, 230 | "_zoomRatio": 1, 231 | "_targetTexture": null, 232 | "_fov": 60, 233 | "_orthoSize": 10, 234 | "_nearClip": 1, 235 | "_farClip": 4096, 236 | "_ortho": true, 237 | "_rect": { 238 | "__type__": "cc.Rect", 239 | "x": 0, 240 | "y": 0, 241 | "width": 1, 242 | "height": 1 243 | }, 244 | "_renderStages": 1, 245 | "_alignWithScreen": true, 246 | "_id": "0aS3W3UAZGsqNbueePdti3" 247 | }, 248 | { 249 | "__type__": "cc.Node", 250 | "_name": "background", 251 | "_objFlags": 0, 252 | "_parent": { 253 | "__id__": 2 254 | }, 255 | "_children": [], 256 | "_active": true, 257 | "_components": [ 258 | { 259 | "__id__": 6 260 | }, 261 | { 262 | "__id__": 7 263 | } 264 | ], 265 | "_prefab": null, 266 | "_opacity": 255, 267 | "_color": { 268 | "__type__": "cc.Color", 269 | "r": 27, 270 | "g": 38, 271 | "b": 46, 272 | "a": 255 273 | }, 274 | "_contentSize": { 275 | "__type__": "cc.Size", 276 | "width": 2340, 277 | "height": 1080 278 | }, 279 | "_anchorPoint": { 280 | "__type__": "cc.Vec2", 281 | "x": 0.5, 282 | "y": 0.5 283 | }, 284 | "_trs": { 285 | "__type__": "TypedArray", 286 | "ctor": "Float64Array", 287 | "array": [ 288 | 0, 289 | 0, 290 | 0, 291 | 0, 292 | 0, 293 | 0, 294 | 1, 295 | 1, 296 | 1, 297 | 1 298 | ] 299 | }, 300 | "_eulerAngles": { 301 | "__type__": "cc.Vec3", 302 | "x": 0, 303 | "y": 0, 304 | "z": 0 305 | }, 306 | "_skewX": 0, 307 | "_skewY": 0, 308 | "_is3DNode": false, 309 | "_groupIndex": 0, 310 | "groupIndex": 0, 311 | "_id": "abkJjfvK9KY4Xy2PS6jbL5" 312 | }, 313 | { 314 | "__type__": "cc.Widget", 315 | "_name": "", 316 | "_objFlags": 0, 317 | "node": { 318 | "__id__": 5 319 | }, 320 | "_enabled": true, 321 | "alignMode": 0, 322 | "_target": null, 323 | "_alignFlags": 45, 324 | "_left": 0, 325 | "_right": 0, 326 | "_top": 0, 327 | "_bottom": 0, 328 | "_verticalCenter": 0, 329 | "_horizontalCenter": 0, 330 | "_isAbsLeft": true, 331 | "_isAbsRight": true, 332 | "_isAbsTop": true, 333 | "_isAbsBottom": true, 334 | "_isAbsHorizontalCenter": true, 335 | "_isAbsVerticalCenter": true, 336 | "_originalWidth": 200, 337 | "_originalHeight": 150, 338 | "_id": "50nlWstQVEK6SuL/7ukV9a" 339 | }, 340 | { 341 | "__type__": "cc.Sprite", 342 | "_name": "", 343 | "_objFlags": 0, 344 | "node": { 345 | "__id__": 5 346 | }, 347 | "_enabled": true, 348 | "_materials": [ 349 | { 350 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 351 | } 352 | ], 353 | "_srcBlendFactor": 770, 354 | "_dstBlendFactor": 771, 355 | "_spriteFrame": { 356 | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" 357 | }, 358 | "_type": 1, 359 | "_sizeMode": 0, 360 | "_fillType": 0, 361 | "_fillCenter": { 362 | "__type__": "cc.Vec2", 363 | "x": 0, 364 | "y": 0 365 | }, 366 | "_fillStart": 0, 367 | "_fillRange": 0, 368 | "_isTrimmedMode": true, 369 | "_atlas": null, 370 | "_id": "73cH/xvi1IUbOb4JeYNYvE" 371 | }, 372 | { 373 | "__type__": "cc.Node", 374 | "_name": "gameNode", 375 | "_objFlags": 0, 376 | "_parent": { 377 | "__id__": 2 378 | }, 379 | "_children": [], 380 | "_active": true, 381 | "_components": [ 382 | { 383 | "__id__": 9 384 | }, 385 | { 386 | "__id__": 10 387 | } 388 | ], 389 | "_prefab": null, 390 | "_opacity": 255, 391 | "_color": { 392 | "__type__": "cc.Color", 393 | "r": 214, 394 | "g": 208, 395 | "b": 208, 396 | "a": 255 397 | }, 398 | "_contentSize": { 399 | "__type__": "cc.Size", 400 | "width": 1134, 401 | "height": 640 402 | }, 403 | "_anchorPoint": { 404 | "__type__": "cc.Vec2", 405 | "x": 0, 406 | "y": 0 407 | }, 408 | "_trs": { 409 | "__type__": "TypedArray", 410 | "ctor": "Float64Array", 411 | "array": [ 412 | -567, 413 | -320, 414 | 0, 415 | 0, 416 | 0, 417 | 0, 418 | 1, 419 | 1, 420 | 1, 421 | 1 422 | ] 423 | }, 424 | "_eulerAngles": { 425 | "__type__": "cc.Vec3", 426 | "x": 0, 427 | "y": 0, 428 | "z": 0 429 | }, 430 | "_skewX": 0, 431 | "_skewY": 0, 432 | "_is3DNode": false, 433 | "_groupIndex": 0, 434 | "groupIndex": 0, 435 | "_id": "7fFsDnKTBNnL4pzROtMoR3" 436 | }, 437 | { 438 | "__type__": "cc.Sprite", 439 | "_name": "", 440 | "_objFlags": 0, 441 | "node": { 442 | "__id__": 8 443 | }, 444 | "_enabled": true, 445 | "_materials": [ 446 | { 447 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 448 | } 449 | ], 450 | "_srcBlendFactor": 770, 451 | "_dstBlendFactor": 771, 452 | "_spriteFrame": { 453 | "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" 454 | }, 455 | "_type": 0, 456 | "_sizeMode": 0, 457 | "_fillType": 0, 458 | "_fillCenter": { 459 | "__type__": "cc.Vec2", 460 | "x": 0, 461 | "y": 0 462 | }, 463 | "_fillStart": 0, 464 | "_fillRange": 0, 465 | "_isTrimmedMode": true, 466 | "_atlas": null, 467 | "_id": "f7ttRU0QdFI4CPo7XqybGU" 468 | }, 469 | { 470 | "__type__": "cc.Widget", 471 | "_name": "", 472 | "_objFlags": 0, 473 | "node": { 474 | "__id__": 8 475 | }, 476 | "_enabled": true, 477 | "alignMode": 1, 478 | "_target": null, 479 | "_alignFlags": 18, 480 | "_left": 617, 481 | "_right": 617, 482 | "_top": 325, 483 | "_bottom": 325, 484 | "_verticalCenter": 0, 485 | "_horizontalCenter": 0, 486 | "_isAbsLeft": true, 487 | "_isAbsRight": true, 488 | "_isAbsTop": true, 489 | "_isAbsBottom": true, 490 | "_isAbsHorizontalCenter": true, 491 | "_isAbsVerticalCenter": true, 492 | "_originalWidth": 100, 493 | "_originalHeight": 100, 494 | "_id": "2cv/bKNrhLLYOMy2QEfdPG" 495 | }, 496 | { 497 | "__type__": "cc.Node", 498 | "_name": "draw", 499 | "_objFlags": 0, 500 | "_parent": { 501 | "__id__": 2 502 | }, 503 | "_children": [], 504 | "_active": true, 505 | "_components": [ 506 | { 507 | "__id__": 12 508 | }, 509 | { 510 | "__id__": 13 511 | }, 512 | { 513 | "__id__": 14 514 | } 515 | ], 516 | "_prefab": null, 517 | "_opacity": 255, 518 | "_color": { 519 | "__type__": "cc.Color", 520 | "r": 255, 521 | "g": 255, 522 | "b": 255, 523 | "a": 255 524 | }, 525 | "_contentSize": { 526 | "__type__": "cc.Size", 527 | "width": 2340, 528 | "height": 1080 529 | }, 530 | "_anchorPoint": { 531 | "__type__": "cc.Vec2", 532 | "x": 0, 533 | "y": 0 534 | }, 535 | "_trs": { 536 | "__type__": "TypedArray", 537 | "ctor": "Float64Array", 538 | "array": [ 539 | -1170, 540 | -540, 541 | 0, 542 | 0, 543 | 0, 544 | 0, 545 | 1, 546 | 1, 547 | 1, 548 | 1 549 | ] 550 | }, 551 | "_eulerAngles": { 552 | "__type__": "cc.Vec3", 553 | "x": 0, 554 | "y": 0, 555 | "z": 0 556 | }, 557 | "_skewX": 0, 558 | "_skewY": 0, 559 | "_is3DNode": false, 560 | "_groupIndex": 0, 561 | "groupIndex": 0, 562 | "_id": "4aufCx7A1Hg7CIT5ZGktJ5" 563 | }, 564 | { 565 | "__type__": "cc.Widget", 566 | "_name": "", 567 | "_objFlags": 0, 568 | "node": { 569 | "__id__": 11 570 | }, 571 | "_enabled": true, 572 | "alignMode": 1, 573 | "_target": null, 574 | "_alignFlags": 45, 575 | "_left": 0, 576 | "_right": 0, 577 | "_top": 0, 578 | "_bottom": 0, 579 | "_verticalCenter": 0, 580 | "_horizontalCenter": 0, 581 | "_isAbsLeft": true, 582 | "_isAbsRight": true, 583 | "_isAbsTop": true, 584 | "_isAbsBottom": true, 585 | "_isAbsHorizontalCenter": true, 586 | "_isAbsVerticalCenter": true, 587 | "_originalWidth": 1134, 588 | "_originalHeight": 640, 589 | "_id": "77Mi1sTK9GMIgXnU2DMPCD" 590 | }, 591 | { 592 | "__type__": "cc.Graphics", 593 | "_name": "", 594 | "_objFlags": 0, 595 | "node": { 596 | "__id__": 11 597 | }, 598 | "_enabled": true, 599 | "_materials": [ 600 | { 601 | "__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57" 602 | } 603 | ], 604 | "_lineWidth": 3, 605 | "_strokeColor": { 606 | "__type__": "cc.Color", 607 | "r": 0, 608 | "g": 0, 609 | "b": 0, 610 | "a": 255 611 | }, 612 | "_lineJoin": 2, 613 | "_lineCap": 0, 614 | "_fillColor": { 615 | "__type__": "cc.Color", 616 | "r": 238, 617 | "g": 6, 618 | "b": 6, 619 | "a": 255 620 | }, 621 | "_miterLimit": 10, 622 | "_id": "c5geDY8DpMq5WniVFEd4LP" 623 | }, 624 | { 625 | "__type__": "3d3c5VZwshMjoTCdu2vc5Vr", 626 | "_name": "", 627 | "_objFlags": 0, 628 | "node": { 629 | "__id__": 11 630 | }, 631 | "_enabled": true, 632 | "myPoint": { 633 | "__uuid__": "b7199310-398c-429e-afd5-76cb6a1fbd10" 634 | }, 635 | "gameNode": { 636 | "__id__": 8 637 | }, 638 | "_id": "48Lwk4xbxCaaGry/7F7drA" 639 | }, 640 | { 641 | "__type__": "cc.Node", 642 | "_name": "New Button", 643 | "_objFlags": 0, 644 | "_parent": { 645 | "__id__": 2 646 | }, 647 | "_children": [ 648 | { 649 | "__id__": 16 650 | } 651 | ], 652 | "_active": true, 653 | "_components": [ 654 | { 655 | "__id__": 18 656 | }, 657 | { 658 | "__id__": 19 659 | } 660 | ], 661 | "_prefab": null, 662 | "_opacity": 255, 663 | "_color": { 664 | "__type__": "cc.Color", 665 | "r": 255, 666 | "g": 255, 667 | "b": 255, 668 | "a": 255 669 | }, 670 | "_contentSize": { 671 | "__type__": "cc.Size", 672 | "width": 200, 673 | "height": 50 674 | }, 675 | "_anchorPoint": { 676 | "__type__": "cc.Vec2", 677 | "x": 0.5, 678 | "y": 0.5 679 | }, 680 | "_trs": { 681 | "__type__": "TypedArray", 682 | "ctor": "Float64Array", 683 | "array": [ 684 | -170, 685 | 371, 686 | 0, 687 | 0, 688 | 0, 689 | 0, 690 | 1, 691 | 1, 692 | 1, 693 | 0 694 | ] 695 | }, 696 | "_eulerAngles": { 697 | "__type__": "cc.Vec3", 698 | "x": 0, 699 | "y": 0, 700 | "z": 0 701 | }, 702 | "_skewX": 0, 703 | "_skewY": 0, 704 | "_is3DNode": false, 705 | "_groupIndex": 0, 706 | "groupIndex": 0, 707 | "_id": "694tRYelVMl4QaU0EOThXH" 708 | }, 709 | { 710 | "__type__": "cc.Node", 711 | "_name": "Label", 712 | "_objFlags": 0, 713 | "_parent": { 714 | "__id__": 15 715 | }, 716 | "_children": [], 717 | "_active": true, 718 | "_components": [ 719 | { 720 | "__id__": 17 721 | } 722 | ], 723 | "_prefab": null, 724 | "_opacity": 255, 725 | "_color": { 726 | "__type__": "cc.Color", 727 | "r": 0, 728 | "g": 0, 729 | "b": 0, 730 | "a": 255 731 | }, 732 | "_contentSize": { 733 | "__type__": "cc.Size", 734 | "width": 100, 735 | "height": 40 736 | }, 737 | "_anchorPoint": { 738 | "__type__": "cc.Vec2", 739 | "x": 0.5, 740 | "y": 0.5 741 | }, 742 | "_trs": { 743 | "__type__": "TypedArray", 744 | "ctor": "Float64Array", 745 | "array": [ 746 | 0, 747 | 0, 748 | 0, 749 | 0, 750 | 0, 751 | 0, 752 | 1, 753 | 1, 754 | 1, 755 | 1 756 | ] 757 | }, 758 | "_eulerAngles": { 759 | "__type__": "cc.Vec3", 760 | "x": 0, 761 | "y": 0, 762 | "z": 0 763 | }, 764 | "_skewX": 0, 765 | "_skewY": 0, 766 | "_is3DNode": false, 767 | "_groupIndex": 0, 768 | "groupIndex": 0, 769 | "_id": "e1b+wZf11BYpEH0C4ACUfF" 770 | }, 771 | { 772 | "__type__": "cc.Label", 773 | "_name": "", 774 | "_objFlags": 0, 775 | "node": { 776 | "__id__": 16 777 | }, 778 | "_enabled": true, 779 | "_materials": [ 780 | { 781 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 782 | } 783 | ], 784 | "_srcBlendFactor": 1, 785 | "_dstBlendFactor": 771, 786 | "_useOriginalSize": false, 787 | "_string": "增加一个点", 788 | "_N$string": "增加一个点", 789 | "_fontSize": 20, 790 | "_lineHeight": 40, 791 | "_enableWrapText": false, 792 | "_N$file": null, 793 | "_isSystemFontUsed": true, 794 | "_spacingX": 0, 795 | "_batchAsBitmap": false, 796 | "_styleFlags": 0, 797 | "_underlineHeight": 0, 798 | "_N$horizontalAlign": 1, 799 | "_N$verticalAlign": 1, 800 | "_N$fontFamily": "Arial", 801 | "_N$overflow": 1, 802 | "_N$cacheMode": 0, 803 | "_id": "96qNt3LhRJNrIJucg227/c" 804 | }, 805 | { 806 | "__type__": "cc.Sprite", 807 | "_name": "", 808 | "_objFlags": 0, 809 | "node": { 810 | "__id__": 15 811 | }, 812 | "_enabled": true, 813 | "_materials": [ 814 | { 815 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 816 | } 817 | ], 818 | "_srcBlendFactor": 770, 819 | "_dstBlendFactor": 771, 820 | "_spriteFrame": { 821 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 822 | }, 823 | "_type": 1, 824 | "_sizeMode": 0, 825 | "_fillType": 0, 826 | "_fillCenter": { 827 | "__type__": "cc.Vec2", 828 | "x": 0, 829 | "y": 0 830 | }, 831 | "_fillStart": 0, 832 | "_fillRange": 0, 833 | "_isTrimmedMode": true, 834 | "_atlas": null, 835 | "_id": "98G7lSLQZEBYNEmLAJYDtQ" 836 | }, 837 | { 838 | "__type__": "cc.Button", 839 | "_name": "", 840 | "_objFlags": 0, 841 | "node": { 842 | "__id__": 15 843 | }, 844 | "_enabled": true, 845 | "_normalMaterial": null, 846 | "_grayMaterial": null, 847 | "duration": 0.1, 848 | "zoomScale": 1.2, 849 | "clickEvents": [ 850 | { 851 | "__id__": 20 852 | } 853 | ], 854 | "_N$interactable": true, 855 | "_N$enableAutoGrayEffect": false, 856 | "_N$transition": 3, 857 | "transition": 3, 858 | "_N$normalColor": { 859 | "__type__": "cc.Color", 860 | "r": 255, 861 | "g": 255, 862 | "b": 255, 863 | "a": 255 864 | }, 865 | "_N$pressedColor": { 866 | "__type__": "cc.Color", 867 | "r": 255, 868 | "g": 255, 869 | "b": 255, 870 | "a": 255 871 | }, 872 | "pressedColor": { 873 | "__type__": "cc.Color", 874 | "r": 255, 875 | "g": 255, 876 | "b": 255, 877 | "a": 255 878 | }, 879 | "_N$hoverColor": { 880 | "__type__": "cc.Color", 881 | "r": 255, 882 | "g": 255, 883 | "b": 255, 884 | "a": 255 885 | }, 886 | "hoverColor": { 887 | "__type__": "cc.Color", 888 | "r": 255, 889 | "g": 255, 890 | "b": 255, 891 | "a": 255 892 | }, 893 | "_N$disabledColor": { 894 | "__type__": "cc.Color", 895 | "r": 255, 896 | "g": 255, 897 | "b": 255, 898 | "a": 255 899 | }, 900 | "_N$normalSprite": { 901 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 902 | }, 903 | "_N$pressedSprite": { 904 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 905 | }, 906 | "pressedSprite": { 907 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 908 | }, 909 | "_N$hoverSprite": { 910 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 911 | }, 912 | "hoverSprite": { 913 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 914 | }, 915 | "_N$disabledSprite": { 916 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 917 | }, 918 | "_N$target": { 919 | "__id__": 15 920 | }, 921 | "_id": "daQADAZHFA9ZePptzQiscY" 922 | }, 923 | { 924 | "__type__": "cc.ClickEvent", 925 | "target": { 926 | "__id__": 11 927 | }, 928 | "component": "", 929 | "_componentId": "3d3c5VZwshMjoTCdu2vc5Vr", 930 | "handler": "addMyPointsClick", 931 | "customEventData": "" 932 | }, 933 | { 934 | "__type__": "cc.Node", 935 | "_name": "New Button", 936 | "_objFlags": 0, 937 | "_parent": { 938 | "__id__": 2 939 | }, 940 | "_children": [ 941 | { 942 | "__id__": 22 943 | } 944 | ], 945 | "_active": true, 946 | "_components": [ 947 | { 948 | "__id__": 24 949 | }, 950 | { 951 | "__id__": 25 952 | } 953 | ], 954 | "_prefab": null, 955 | "_opacity": 255, 956 | "_color": { 957 | "__type__": "cc.Color", 958 | "r": 255, 959 | "g": 255, 960 | "b": 255, 961 | "a": 255 962 | }, 963 | "_contentSize": { 964 | "__type__": "cc.Size", 965 | "width": 200, 966 | "height": 50 967 | }, 968 | "_anchorPoint": { 969 | "__type__": "cc.Vec2", 970 | "x": 0.5, 971 | "y": 0.5 972 | }, 973 | "_trs": { 974 | "__type__": "TypedArray", 975 | "ctor": "Float64Array", 976 | "array": [ 977 | 82, 978 | 367, 979 | 0, 980 | 0, 981 | 0, 982 | 0, 983 | 1, 984 | 1, 985 | 1, 986 | 0 987 | ] 988 | }, 989 | "_eulerAngles": { 990 | "__type__": "cc.Vec3", 991 | "x": 0, 992 | "y": 0, 993 | "z": 0 994 | }, 995 | "_skewX": 0, 996 | "_skewY": 0, 997 | "_is3DNode": false, 998 | "_groupIndex": 0, 999 | "groupIndex": 0, 1000 | "_id": "17lgzAyvVJiLVXpfDfhVr6" 1001 | }, 1002 | { 1003 | "__type__": "cc.Node", 1004 | "_name": "Label", 1005 | "_objFlags": 0, 1006 | "_parent": { 1007 | "__id__": 21 1008 | }, 1009 | "_children": [], 1010 | "_active": true, 1011 | "_components": [ 1012 | { 1013 | "__id__": 23 1014 | } 1015 | ], 1016 | "_prefab": null, 1017 | "_opacity": 255, 1018 | "_color": { 1019 | "__type__": "cc.Color", 1020 | "r": 0, 1021 | "g": 0, 1022 | "b": 0, 1023 | "a": 255 1024 | }, 1025 | "_contentSize": { 1026 | "__type__": "cc.Size", 1027 | "width": 200, 1028 | "height": 50 1029 | }, 1030 | "_anchorPoint": { 1031 | "__type__": "cc.Vec2", 1032 | "x": 0.5, 1033 | "y": 0.5 1034 | }, 1035 | "_trs": { 1036 | "__type__": "TypedArray", 1037 | "ctor": "Float64Array", 1038 | "array": [ 1039 | 0, 1040 | 0, 1041 | 0, 1042 | 0, 1043 | 0, 1044 | 0, 1045 | 1, 1046 | 1, 1047 | 1, 1048 | 1 1049 | ] 1050 | }, 1051 | "_eulerAngles": { 1052 | "__type__": "cc.Vec3", 1053 | "x": 0, 1054 | "y": 0, 1055 | "z": 0 1056 | }, 1057 | "_skewX": 0, 1058 | "_skewY": 0, 1059 | "_is3DNode": false, 1060 | "_groupIndex": 0, 1061 | "groupIndex": 0, 1062 | "_id": "45W7UofjNKeapi17+yJ8Q2" 1063 | }, 1064 | { 1065 | "__type__": "cc.Label", 1066 | "_name": "", 1067 | "_objFlags": 0, 1068 | "node": { 1069 | "__id__": 22 1070 | }, 1071 | "_enabled": true, 1072 | "_materials": [ 1073 | { 1074 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 1075 | } 1076 | ], 1077 | "_srcBlendFactor": 1, 1078 | "_dstBlendFactor": 771, 1079 | "_useOriginalSize": false, 1080 | "_string": "减少加一个点", 1081 | "_N$string": "减少加一个点", 1082 | "_fontSize": 20, 1083 | "_lineHeight": 40, 1084 | "_enableWrapText": false, 1085 | "_N$file": null, 1086 | "_isSystemFontUsed": true, 1087 | "_spacingX": 0, 1088 | "_batchAsBitmap": false, 1089 | "_styleFlags": 0, 1090 | "_underlineHeight": 0, 1091 | "_N$horizontalAlign": 1, 1092 | "_N$verticalAlign": 1, 1093 | "_N$fontFamily": "Arial", 1094 | "_N$overflow": 1, 1095 | "_N$cacheMode": 0, 1096 | "_id": "a0lEptN31N+6DBg64Uyu2z" 1097 | }, 1098 | { 1099 | "__type__": "cc.Sprite", 1100 | "_name": "", 1101 | "_objFlags": 0, 1102 | "node": { 1103 | "__id__": 21 1104 | }, 1105 | "_enabled": true, 1106 | "_materials": [ 1107 | { 1108 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 1109 | } 1110 | ], 1111 | "_srcBlendFactor": 770, 1112 | "_dstBlendFactor": 771, 1113 | "_spriteFrame": { 1114 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1115 | }, 1116 | "_type": 1, 1117 | "_sizeMode": 0, 1118 | "_fillType": 0, 1119 | "_fillCenter": { 1120 | "__type__": "cc.Vec2", 1121 | "x": 0, 1122 | "y": 0 1123 | }, 1124 | "_fillStart": 0, 1125 | "_fillRange": 0, 1126 | "_isTrimmedMode": true, 1127 | "_atlas": null, 1128 | "_id": "dfl96X5WpHZq+OuTGBX71L" 1129 | }, 1130 | { 1131 | "__type__": "cc.Button", 1132 | "_name": "", 1133 | "_objFlags": 0, 1134 | "node": { 1135 | "__id__": 21 1136 | }, 1137 | "_enabled": true, 1138 | "_normalMaterial": null, 1139 | "_grayMaterial": null, 1140 | "duration": 0.1, 1141 | "zoomScale": 1.2, 1142 | "clickEvents": [ 1143 | { 1144 | "__id__": 26 1145 | } 1146 | ], 1147 | "_N$interactable": true, 1148 | "_N$enableAutoGrayEffect": false, 1149 | "_N$transition": 3, 1150 | "transition": 3, 1151 | "_N$normalColor": { 1152 | "__type__": "cc.Color", 1153 | "r": 255, 1154 | "g": 255, 1155 | "b": 255, 1156 | "a": 255 1157 | }, 1158 | "_N$pressedColor": { 1159 | "__type__": "cc.Color", 1160 | "r": 255, 1161 | "g": 255, 1162 | "b": 255, 1163 | "a": 255 1164 | }, 1165 | "pressedColor": { 1166 | "__type__": "cc.Color", 1167 | "r": 255, 1168 | "g": 255, 1169 | "b": 255, 1170 | "a": 255 1171 | }, 1172 | "_N$hoverColor": { 1173 | "__type__": "cc.Color", 1174 | "r": 255, 1175 | "g": 255, 1176 | "b": 255, 1177 | "a": 255 1178 | }, 1179 | "hoverColor": { 1180 | "__type__": "cc.Color", 1181 | "r": 255, 1182 | "g": 255, 1183 | "b": 255, 1184 | "a": 255 1185 | }, 1186 | "_N$disabledColor": { 1187 | "__type__": "cc.Color", 1188 | "r": 255, 1189 | "g": 255, 1190 | "b": 255, 1191 | "a": 255 1192 | }, 1193 | "_N$normalSprite": { 1194 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1195 | }, 1196 | "_N$pressedSprite": { 1197 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 1198 | }, 1199 | "pressedSprite": { 1200 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 1201 | }, 1202 | "_N$hoverSprite": { 1203 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1204 | }, 1205 | "hoverSprite": { 1206 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 1207 | }, 1208 | "_N$disabledSprite": { 1209 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 1210 | }, 1211 | "_N$target": { 1212 | "__id__": 21 1213 | }, 1214 | "_id": "38SEOK8dJLHonQKoy3f3ul" 1215 | }, 1216 | { 1217 | "__type__": "cc.ClickEvent", 1218 | "target": { 1219 | "__id__": 11 1220 | }, 1221 | "component": "", 1222 | "_componentId": "3d3c5VZwshMjoTCdu2vc5Vr", 1223 | "handler": "delMyPointsClick", 1224 | "customEventData": "" 1225 | }, 1226 | { 1227 | "__type__": "cc.Node", 1228 | "_name": "New Label", 1229 | "_objFlags": 0, 1230 | "_parent": { 1231 | "__id__": 2 1232 | }, 1233 | "_children": [], 1234 | "_active": true, 1235 | "_components": [ 1236 | { 1237 | "__id__": 28 1238 | } 1239 | ], 1240 | "_prefab": null, 1241 | "_opacity": 255, 1242 | "_color": { 1243 | "__type__": "cc.Color", 1244 | "r": 255, 1245 | "g": 255, 1246 | "b": 255, 1247 | "a": 255 1248 | }, 1249 | "_contentSize": { 1250 | "__type__": "cc.Size", 1251 | "width": 240, 1252 | "height": 50.4 1253 | }, 1254 | "_anchorPoint": { 1255 | "__type__": "cc.Vec2", 1256 | "x": 0.5, 1257 | "y": 0.5 1258 | }, 1259 | "_trs": { 1260 | "__type__": "TypedArray", 1261 | "ctor": "Float64Array", 1262 | "array": [ 1263 | -31, 1264 | 473, 1265 | 0, 1266 | 0, 1267 | 0, 1268 | 0, 1269 | 1, 1270 | 1, 1271 | 1, 1272 | 1 1273 | ] 1274 | }, 1275 | "_eulerAngles": { 1276 | "__type__": "cc.Vec3", 1277 | "x": 0, 1278 | "y": 0, 1279 | "z": 0 1280 | }, 1281 | "_skewX": 0, 1282 | "_skewY": 0, 1283 | "_is3DNode": false, 1284 | "_groupIndex": 0, 1285 | "groupIndex": 0, 1286 | "_id": "3dyxQVBpJAnJid3ULuwzWS" 1287 | }, 1288 | { 1289 | "__type__": "cc.Label", 1290 | "_name": "", 1291 | "_objFlags": 0, 1292 | "node": { 1293 | "__id__": 27 1294 | }, 1295 | "_enabled": true, 1296 | "_materials": [ 1297 | { 1298 | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" 1299 | } 1300 | ], 1301 | "_srcBlendFactor": 1, 1302 | "_dstBlendFactor": 771, 1303 | "_useOriginalSize": false, 1304 | "_string": "霍尔米特曲线", 1305 | "_N$string": "霍尔米特曲线", 1306 | "_fontSize": 40, 1307 | "_lineHeight": 40, 1308 | "_enableWrapText": true, 1309 | "_N$file": null, 1310 | "_isSystemFontUsed": true, 1311 | "_spacingX": 0, 1312 | "_batchAsBitmap": false, 1313 | "_styleFlags": 0, 1314 | "_underlineHeight": 0, 1315 | "_N$horizontalAlign": 1, 1316 | "_N$verticalAlign": 1, 1317 | "_N$fontFamily": "Arial", 1318 | "_N$overflow": 0, 1319 | "_N$cacheMode": 0, 1320 | "_id": "856egoZ6ZLuZMU4Yv40JH4" 1321 | }, 1322 | { 1323 | "__type__": "cc.Canvas", 1324 | "_name": "", 1325 | "_objFlags": 0, 1326 | "node": { 1327 | "__id__": 2 1328 | }, 1329 | "_enabled": true, 1330 | "_designResolution": { 1331 | "__type__": "cc.Size", 1332 | "width": 2340, 1333 | "height": 1080 1334 | }, 1335 | "_fitWidth": false, 1336 | "_fitHeight": true, 1337 | "_id": "c78ivZFxVId5YszZeker+N" 1338 | }, 1339 | { 1340 | "__type__": "cc.Widget", 1341 | "_name": "", 1342 | "_objFlags": 0, 1343 | "node": { 1344 | "__id__": 2 1345 | }, 1346 | "_enabled": true, 1347 | "alignMode": 1, 1348 | "_target": null, 1349 | "_alignFlags": 0, 1350 | "_left": -14040, 1351 | "_right": 585, 1352 | "_top": -6480, 1353 | "_bottom": 270, 1354 | "_verticalCenter": 0, 1355 | "_horizontalCenter": 0, 1356 | "_isAbsLeft": true, 1357 | "_isAbsRight": true, 1358 | "_isAbsTop": true, 1359 | "_isAbsBottom": true, 1360 | "_isAbsHorizontalCenter": true, 1361 | "_isAbsVerticalCenter": true, 1362 | "_originalWidth": 0, 1363 | "_originalHeight": 0, 1364 | "_id": "acXcFp3oBPWoUOovqJ7IFa" 1365 | } 1366 | ] --------------------------------------------------------------------------------