├── README.md ├── assets ├── PhysicsManager.js ├── PhysicsManager.js.meta ├── RedBalls.prefab ├── RedBalls.prefab.meta ├── bg.png ├── bg.png.meta ├── cue.js ├── cue.js.meta ├── scene.fire ├── scene.fire.meta ├── sprite_sheet.plist ├── sprite_sheet.plist.meta ├── sprite_sheet.png ├── sprite_sheet.png.meta ├── table.js ├── table.js.meta ├── wball.js ├── wball.js.meta ├── wball.prefab └── wball.prefab.meta └── project.json /README.md: -------------------------------------------------------------------------------- 1 | # snookerDemo 2 | a snooker game demo made by cocos creator v2.0.9 3 | 🎱桌球小游戏demo 4 | creator版本2.0.9 5 | -------------------------------------------------------------------------------- /assets/PhysicsManager.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * 物理引擎管理组件,开启各种调试 4 | */ 5 | cc.Class({ 6 | extends: cc.Component, 7 | 8 | properties: { 9 | active: { 10 | default: true, 11 | tooltip: '是否启用物理引擎', 12 | }, 13 | aabb:{ 14 | default: true, 15 | tooltip: '是否显示包围盒', 16 | }, 17 | pair: { 18 | default: true, 19 | }, 20 | centerOfMass: { 21 | default: true, 22 | tooltip: '是否显示中心点' 23 | }, 24 | joint: { 25 | default: true, 26 | tooltip: '是否显示关节连接线' 27 | }, 28 | shape: { 29 | default: true, 30 | tooltip: '是否填充形状' 31 | }, 32 | mouseJoint: { 33 | default: false, 34 | tooltip: '是否开启鼠标关节,可以拖动动态刚体' 35 | }, 36 | gravity: { 37 | default: cc.v2(0,-960), 38 | tooltip: '重力' 39 | } 40 | }, 41 | 42 | onEnable() { 43 | //开启或关闭物理系统 44 | let physicsManager = cc.director.getPhysicsManager(); 45 | if (physicsManager.enabled && this.active) { 46 | cc.warn('The physical system is enabled!'); 47 | } 48 | physicsManager.enabled = this.active; 49 | 50 | if (!this.active) { 51 | return; 52 | } 53 | //设置物理系统的重力属性 54 | physicsManager.gravity = this.gravity; 55 | 56 | //设置调试标志 57 | let drawBits = cc.PhysicsManager.DrawBits; 58 | if (CC_PREVIEW) { 59 | physicsManager.debugDrawFlags = 60 | (this.aabb && drawBits.e_aabbBit) | 61 | (this.pair && drawBits.e_pairBit) | 62 | (this.centerOfMass && drawBits.e_centerOfMassBit) | 63 | (this.joint && drawBits.e_jointBit) | 64 | (this.shape && drawBits.e_shapeBit); 65 | } else { 66 | physicsManager.debugDrawFlags = 0; 67 | } 68 | }, 69 | 70 | onDisable() { 71 | let physicsManager = cc.director.getPhysicsManager(); 72 | physicsManager.debugDrawFlags = 0; 73 | physicsManager.enabled = false; 74 | } 75 | }); 76 | -------------------------------------------------------------------------------- /assets/PhysicsManager.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "5e332f2a-ffa8-457a-b1ea-a3faa8a98e96", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/RedBalls.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": "RedBalls", 16 | "_objFlags": 0, 17 | "_parent": null, 18 | "_children": [ 19 | { 20 | "__id__": 2 21 | }, 22 | { 23 | "__id__": 7 24 | }, 25 | { 26 | "__id__": 12 27 | }, 28 | { 29 | "__id__": 17 30 | }, 31 | { 32 | "__id__": 22 33 | }, 34 | { 35 | "__id__": 27 36 | }, 37 | { 38 | "__id__": 32 39 | }, 40 | { 41 | "__id__": 37 42 | }, 43 | { 44 | "__id__": 42 45 | }, 46 | { 47 | "__id__": 47 48 | } 49 | ], 50 | "_active": true, 51 | "_level": 2, 52 | "_components": [], 53 | "_prefab": { 54 | "__id__": 52 55 | }, 56 | "_opacity": 255, 57 | "_color": { 58 | "__type__": "cc.Color", 59 | "r": 255, 60 | "g": 255, 61 | "b": 255, 62 | "a": 255 63 | }, 64 | "_contentSize": { 65 | "__type__": "cc.Size", 66 | "width": 0, 67 | "height": 0 68 | }, 69 | "_anchorPoint": { 70 | "__type__": "cc.Vec2", 71 | "x": 0.5, 72 | "y": 0.5 73 | }, 74 | "_position": { 75 | "__type__": "cc.Vec3", 76 | "x": 0, 77 | "y": 0, 78 | "z": 0 79 | }, 80 | "_scale": { 81 | "__type__": "cc.Vec3", 82 | "x": 1, 83 | "y": 1, 84 | "z": 1 85 | }, 86 | "_rotationX": 0, 87 | "_rotationY": 0, 88 | "_quat": { 89 | "__type__": "cc.Quat", 90 | "x": 0, 91 | "y": 0, 92 | "z": 0, 93 | "w": 1 94 | }, 95 | "_skewX": 0, 96 | "_skewY": 0, 97 | "groupIndex": 0, 98 | "_id": "" 99 | }, 100 | { 101 | "__type__": "cc.Node", 102 | "_name": "rball", 103 | "_objFlags": 0, 104 | "_parent": { 105 | "__id__": 1 106 | }, 107 | "_children": [], 108 | "_active": true, 109 | "_level": 3, 110 | "_components": [ 111 | { 112 | "__id__": 3 113 | }, 114 | { 115 | "__id__": 4 116 | }, 117 | { 118 | "__id__": 5 119 | } 120 | ], 121 | "_prefab": { 122 | "__id__": 6 123 | }, 124 | "_opacity": 255, 125 | "_color": { 126 | "__type__": "cc.Color", 127 | "r": 255, 128 | "g": 255, 129 | "b": 255, 130 | "a": 255 131 | }, 132 | "_contentSize": { 133 | "__type__": "cc.Size", 134 | "width": 36, 135 | "height": 36 136 | }, 137 | "_anchorPoint": { 138 | "__type__": "cc.Vec2", 139 | "x": 0.5, 140 | "y": 0.5 141 | }, 142 | "_position": { 143 | "__type__": "cc.Vec3", 144 | "x": -18, 145 | "y": 273, 146 | "z": 0 147 | }, 148 | "_scale": { 149 | "__type__": "cc.Vec3", 150 | "x": 1, 151 | "y": 1, 152 | "z": 1 153 | }, 154 | "_rotationX": 0, 155 | "_rotationY": 0, 156 | "_quat": { 157 | "__type__": "cc.Quat", 158 | "x": 0, 159 | "y": 0, 160 | "z": 0, 161 | "w": 1 162 | }, 163 | "_skewX": 0, 164 | "_skewY": 0, 165 | "groupIndex": 0, 166 | "_id": "" 167 | }, 168 | { 169 | "__type__": "cc.Sprite", 170 | "_name": "", 171 | "_objFlags": 0, 172 | "node": { 173 | "__id__": 2 174 | }, 175 | "_enabled": true, 176 | "_spriteFrame": { 177 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 178 | }, 179 | "_type": 0, 180 | "_sizeMode": 0, 181 | "_fillType": 0, 182 | "_fillCenter": { 183 | "__type__": "cc.Vec2", 184 | "x": 0, 185 | "y": 0 186 | }, 187 | "_fillStart": 0, 188 | "_fillRange": 0, 189 | "_isTrimmedMode": true, 190 | "_state": 0, 191 | "_atlas": { 192 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 193 | }, 194 | "_srcBlendFactor": 770, 195 | "_dstBlendFactor": 771, 196 | "_id": "" 197 | }, 198 | { 199 | "__type__": "cc.RigidBody", 200 | "_name": "", 201 | "_objFlags": 0, 202 | "node": { 203 | "__id__": 2 204 | }, 205 | "_enabled": true, 206 | "_type": 2, 207 | "_allowSleep": true, 208 | "_gravityScale": 1, 209 | "_linearDamping": 1.2, 210 | "_angularDamping": 0.8, 211 | "_linearVelocity": { 212 | "__type__": "cc.Vec2", 213 | "x": 0, 214 | "y": 0 215 | }, 216 | "_angularVelocity": 0, 217 | "_fixedRotation": false, 218 | "enabledContactListener": false, 219 | "bullet": true, 220 | "awakeOnLoad": true, 221 | "_id": "" 222 | }, 223 | { 224 | "__type__": "cc.PhysicsCircleCollider", 225 | "_name": "", 226 | "_objFlags": 0, 227 | "node": { 228 | "__id__": 2 229 | }, 230 | "_enabled": true, 231 | "tag": 0, 232 | "_density": 5, 233 | "_sensor": false, 234 | "_friction": 0.2, 235 | "_restitution": 0.7, 236 | "body": null, 237 | "_offset": { 238 | "__type__": "cc.Vec2", 239 | "x": 0, 240 | "y": 0 241 | }, 242 | "_radius": 18, 243 | "_id": "" 244 | }, 245 | { 246 | "__type__": "cc.PrefabInfo", 247 | "root": { 248 | "__id__": 1 249 | }, 250 | "asset": { 251 | "__id__": 0 252 | }, 253 | "fileId": "beEAdl2bhDT76FAQYqIuW4", 254 | "sync": false 255 | }, 256 | { 257 | "__type__": "cc.Node", 258 | "_name": "rball", 259 | "_objFlags": 0, 260 | "_parent": { 261 | "__id__": 1 262 | }, 263 | "_children": [], 264 | "_active": true, 265 | "_level": 3, 266 | "_components": [ 267 | { 268 | "__id__": 8 269 | }, 270 | { 271 | "__id__": 9 272 | }, 273 | { 274 | "__id__": 10 275 | } 276 | ], 277 | "_prefab": { 278 | "__id__": 11 279 | }, 280 | "_opacity": 255, 281 | "_color": { 282 | "__type__": "cc.Color", 283 | "r": 255, 284 | "g": 255, 285 | "b": 255, 286 | "a": 255 287 | }, 288 | "_contentSize": { 289 | "__type__": "cc.Size", 290 | "width": 36, 291 | "height": 36 292 | }, 293 | "_anchorPoint": { 294 | "__type__": "cc.Vec2", 295 | "x": 0.5, 296 | "y": 0.5 297 | }, 298 | "_position": { 299 | "__type__": "cc.Vec3", 300 | "x": 18, 301 | "y": 273, 302 | "z": 0 303 | }, 304 | "_scale": { 305 | "__type__": "cc.Vec3", 306 | "x": 1, 307 | "y": 1, 308 | "z": 1 309 | }, 310 | "_rotationX": 0, 311 | "_rotationY": 0, 312 | "_quat": { 313 | "__type__": "cc.Quat", 314 | "x": 0, 315 | "y": 0, 316 | "z": 0, 317 | "w": 1 318 | }, 319 | "_skewX": 0, 320 | "_skewY": 0, 321 | "groupIndex": 0, 322 | "_id": "" 323 | }, 324 | { 325 | "__type__": "cc.Sprite", 326 | "_name": "", 327 | "_objFlags": 0, 328 | "node": { 329 | "__id__": 7 330 | }, 331 | "_enabled": true, 332 | "_spriteFrame": { 333 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 334 | }, 335 | "_type": 0, 336 | "_sizeMode": 0, 337 | "_fillType": 0, 338 | "_fillCenter": { 339 | "__type__": "cc.Vec2", 340 | "x": 0, 341 | "y": 0 342 | }, 343 | "_fillStart": 0, 344 | "_fillRange": 0, 345 | "_isTrimmedMode": true, 346 | "_state": 0, 347 | "_atlas": { 348 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 349 | }, 350 | "_srcBlendFactor": 770, 351 | "_dstBlendFactor": 771, 352 | "_id": "" 353 | }, 354 | { 355 | "__type__": "cc.RigidBody", 356 | "_name": "", 357 | "_objFlags": 0, 358 | "node": { 359 | "__id__": 7 360 | }, 361 | "_enabled": true, 362 | "_type": 2, 363 | "_allowSleep": true, 364 | "_gravityScale": 1, 365 | "_linearDamping": 1.2, 366 | "_angularDamping": 0.8, 367 | "_linearVelocity": { 368 | "__type__": "cc.Vec2", 369 | "x": 0, 370 | "y": 0 371 | }, 372 | "_angularVelocity": 0, 373 | "_fixedRotation": false, 374 | "enabledContactListener": false, 375 | "bullet": true, 376 | "awakeOnLoad": true, 377 | "_id": "" 378 | }, 379 | { 380 | "__type__": "cc.PhysicsCircleCollider", 381 | "_name": "", 382 | "_objFlags": 0, 383 | "node": { 384 | "__id__": 7 385 | }, 386 | "_enabled": true, 387 | "tag": 0, 388 | "_density": 5, 389 | "_sensor": false, 390 | "_friction": 0.2, 391 | "_restitution": 0.7, 392 | "body": null, 393 | "_offset": { 394 | "__type__": "cc.Vec2", 395 | "x": 0, 396 | "y": 0 397 | }, 398 | "_radius": 18, 399 | "_id": "" 400 | }, 401 | { 402 | "__type__": "cc.PrefabInfo", 403 | "root": { 404 | "__id__": 1 405 | }, 406 | "asset": { 407 | "__id__": 0 408 | }, 409 | "fileId": "d4NgxSCOpAZY/KKQw9EJOz", 410 | "sync": false 411 | }, 412 | { 413 | "__type__": "cc.Node", 414 | "_name": "rball", 415 | "_objFlags": 0, 416 | "_parent": { 417 | "__id__": 1 418 | }, 419 | "_children": [], 420 | "_active": true, 421 | "_level": 3, 422 | "_components": [ 423 | { 424 | "__id__": 13 425 | }, 426 | { 427 | "__id__": 14 428 | }, 429 | { 430 | "__id__": 15 431 | } 432 | ], 433 | "_prefab": { 434 | "__id__": 16 435 | }, 436 | "_opacity": 255, 437 | "_color": { 438 | "__type__": "cc.Color", 439 | "r": 255, 440 | "g": 255, 441 | "b": 255, 442 | "a": 255 443 | }, 444 | "_contentSize": { 445 | "__type__": "cc.Size", 446 | "width": 36, 447 | "height": 36 448 | }, 449 | "_anchorPoint": { 450 | "__type__": "cc.Vec2", 451 | "x": 0.5, 452 | "y": 0.5 453 | }, 454 | "_position": { 455 | "__type__": "cc.Vec3", 456 | "x": 54, 457 | "y": 273, 458 | "z": 0 459 | }, 460 | "_scale": { 461 | "__type__": "cc.Vec3", 462 | "x": 1, 463 | "y": 1, 464 | "z": 1 465 | }, 466 | "_rotationX": 0, 467 | "_rotationY": 0, 468 | "_quat": { 469 | "__type__": "cc.Quat", 470 | "x": 0, 471 | "y": 0, 472 | "z": 0, 473 | "w": 1 474 | }, 475 | "_skewX": 0, 476 | "_skewY": 0, 477 | "groupIndex": 0, 478 | "_id": "" 479 | }, 480 | { 481 | "__type__": "cc.Sprite", 482 | "_name": "", 483 | "_objFlags": 0, 484 | "node": { 485 | "__id__": 12 486 | }, 487 | "_enabled": true, 488 | "_spriteFrame": { 489 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 490 | }, 491 | "_type": 0, 492 | "_sizeMode": 0, 493 | "_fillType": 0, 494 | "_fillCenter": { 495 | "__type__": "cc.Vec2", 496 | "x": 0, 497 | "y": 0 498 | }, 499 | "_fillStart": 0, 500 | "_fillRange": 0, 501 | "_isTrimmedMode": true, 502 | "_state": 0, 503 | "_atlas": { 504 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 505 | }, 506 | "_srcBlendFactor": 770, 507 | "_dstBlendFactor": 771, 508 | "_id": "" 509 | }, 510 | { 511 | "__type__": "cc.RigidBody", 512 | "_name": "", 513 | "_objFlags": 0, 514 | "node": { 515 | "__id__": 12 516 | }, 517 | "_enabled": true, 518 | "_type": 2, 519 | "_allowSleep": true, 520 | "_gravityScale": 1, 521 | "_linearDamping": 1.2, 522 | "_angularDamping": 0.8, 523 | "_linearVelocity": { 524 | "__type__": "cc.Vec2", 525 | "x": 0, 526 | "y": 0 527 | }, 528 | "_angularVelocity": 0, 529 | "_fixedRotation": false, 530 | "enabledContactListener": false, 531 | "bullet": true, 532 | "awakeOnLoad": true, 533 | "_id": "" 534 | }, 535 | { 536 | "__type__": "cc.PhysicsCircleCollider", 537 | "_name": "", 538 | "_objFlags": 0, 539 | "node": { 540 | "__id__": 12 541 | }, 542 | "_enabled": true, 543 | "tag": 0, 544 | "_density": 5, 545 | "_sensor": false, 546 | "_friction": 0.2, 547 | "_restitution": 0.7, 548 | "body": null, 549 | "_offset": { 550 | "__type__": "cc.Vec2", 551 | "x": 0, 552 | "y": 0 553 | }, 554 | "_radius": 18, 555 | "_id": "" 556 | }, 557 | { 558 | "__type__": "cc.PrefabInfo", 559 | "root": { 560 | "__id__": 1 561 | }, 562 | "asset": { 563 | "__id__": 0 564 | }, 565 | "fileId": "9eW7Wb4nhI8aiTMj7vglRl", 566 | "sync": false 567 | }, 568 | { 569 | "__type__": "cc.Node", 570 | "_name": "rball", 571 | "_objFlags": 0, 572 | "_parent": { 573 | "__id__": 1 574 | }, 575 | "_children": [], 576 | "_active": true, 577 | "_level": 3, 578 | "_components": [ 579 | { 580 | "__id__": 18 581 | }, 582 | { 583 | "__id__": 19 584 | }, 585 | { 586 | "__id__": 20 587 | } 588 | ], 589 | "_prefab": { 590 | "__id__": 21 591 | }, 592 | "_opacity": 255, 593 | "_color": { 594 | "__type__": "cc.Color", 595 | "r": 255, 596 | "g": 255, 597 | "b": 255, 598 | "a": 255 599 | }, 600 | "_contentSize": { 601 | "__type__": "cc.Size", 602 | "width": 36, 603 | "height": 36 604 | }, 605 | "_anchorPoint": { 606 | "__type__": "cc.Vec2", 607 | "x": 0.5, 608 | "y": 0.5 609 | }, 610 | "_position": { 611 | "__type__": "cc.Vec3", 612 | "x": -54, 613 | "y": 273, 614 | "z": 0 615 | }, 616 | "_scale": { 617 | "__type__": "cc.Vec3", 618 | "x": 1, 619 | "y": 1, 620 | "z": 1 621 | }, 622 | "_rotationX": 0, 623 | "_rotationY": 0, 624 | "_quat": { 625 | "__type__": "cc.Quat", 626 | "x": 0, 627 | "y": 0, 628 | "z": 0, 629 | "w": 1 630 | }, 631 | "_skewX": 0, 632 | "_skewY": 0, 633 | "groupIndex": 0, 634 | "_id": "" 635 | }, 636 | { 637 | "__type__": "cc.Sprite", 638 | "_name": "", 639 | "_objFlags": 0, 640 | "node": { 641 | "__id__": 17 642 | }, 643 | "_enabled": true, 644 | "_spriteFrame": { 645 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 646 | }, 647 | "_type": 0, 648 | "_sizeMode": 0, 649 | "_fillType": 0, 650 | "_fillCenter": { 651 | "__type__": "cc.Vec2", 652 | "x": 0, 653 | "y": 0 654 | }, 655 | "_fillStart": 0, 656 | "_fillRange": 0, 657 | "_isTrimmedMode": true, 658 | "_state": 0, 659 | "_atlas": { 660 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 661 | }, 662 | "_srcBlendFactor": 770, 663 | "_dstBlendFactor": 771, 664 | "_id": "" 665 | }, 666 | { 667 | "__type__": "cc.RigidBody", 668 | "_name": "", 669 | "_objFlags": 0, 670 | "node": { 671 | "__id__": 17 672 | }, 673 | "_enabled": true, 674 | "_type": 2, 675 | "_allowSleep": true, 676 | "_gravityScale": 1, 677 | "_linearDamping": 1.2, 678 | "_angularDamping": 0.8, 679 | "_linearVelocity": { 680 | "__type__": "cc.Vec2", 681 | "x": 0, 682 | "y": 0 683 | }, 684 | "_angularVelocity": 0, 685 | "_fixedRotation": false, 686 | "enabledContactListener": false, 687 | "bullet": true, 688 | "awakeOnLoad": true, 689 | "_id": "" 690 | }, 691 | { 692 | "__type__": "cc.PhysicsCircleCollider", 693 | "_name": "", 694 | "_objFlags": 0, 695 | "node": { 696 | "__id__": 17 697 | }, 698 | "_enabled": true, 699 | "tag": 0, 700 | "_density": 5, 701 | "_sensor": false, 702 | "_friction": 0.2, 703 | "_restitution": 0.7, 704 | "body": null, 705 | "_offset": { 706 | "__type__": "cc.Vec2", 707 | "x": 0, 708 | "y": 0 709 | }, 710 | "_radius": 18, 711 | "_id": "" 712 | }, 713 | { 714 | "__type__": "cc.PrefabInfo", 715 | "root": { 716 | "__id__": 1 717 | }, 718 | "asset": { 719 | "__id__": 0 720 | }, 721 | "fileId": "5aT6vb8ohN5IqOtdOnDAY3", 722 | "sync": false 723 | }, 724 | { 725 | "__type__": "cc.Node", 726 | "_name": "rball", 727 | "_objFlags": 0, 728 | "_parent": { 729 | "__id__": 1 730 | }, 731 | "_children": [], 732 | "_active": true, 733 | "_level": 3, 734 | "_components": [ 735 | { 736 | "__id__": 23 737 | }, 738 | { 739 | "__id__": 24 740 | }, 741 | { 742 | "__id__": 25 743 | } 744 | ], 745 | "_prefab": { 746 | "__id__": 26 747 | }, 748 | "_opacity": 255, 749 | "_color": { 750 | "__type__": "cc.Color", 751 | "r": 255, 752 | "g": 255, 753 | "b": 255, 754 | "a": 255 755 | }, 756 | "_contentSize": { 757 | "__type__": "cc.Size", 758 | "width": 36, 759 | "height": 36 760 | }, 761 | "_anchorPoint": { 762 | "__type__": "cc.Vec2", 763 | "x": 0.5, 764 | "y": 0.5 765 | }, 766 | "_position": { 767 | "__type__": "cc.Vec3", 768 | "x": -36, 769 | "y": 239, 770 | "z": 0 771 | }, 772 | "_scale": { 773 | "__type__": "cc.Vec3", 774 | "x": 1, 775 | "y": 1, 776 | "z": 1 777 | }, 778 | "_rotationX": 0, 779 | "_rotationY": 0, 780 | "_quat": { 781 | "__type__": "cc.Quat", 782 | "x": 0, 783 | "y": 0, 784 | "z": 0, 785 | "w": 1 786 | }, 787 | "_skewX": 0, 788 | "_skewY": 0, 789 | "groupIndex": 0, 790 | "_id": "" 791 | }, 792 | { 793 | "__type__": "cc.Sprite", 794 | "_name": "", 795 | "_objFlags": 0, 796 | "node": { 797 | "__id__": 22 798 | }, 799 | "_enabled": true, 800 | "_spriteFrame": { 801 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 802 | }, 803 | "_type": 0, 804 | "_sizeMode": 0, 805 | "_fillType": 0, 806 | "_fillCenter": { 807 | "__type__": "cc.Vec2", 808 | "x": 0, 809 | "y": 0 810 | }, 811 | "_fillStart": 0, 812 | "_fillRange": 0, 813 | "_isTrimmedMode": true, 814 | "_state": 0, 815 | "_atlas": { 816 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 817 | }, 818 | "_srcBlendFactor": 770, 819 | "_dstBlendFactor": 771, 820 | "_id": "" 821 | }, 822 | { 823 | "__type__": "cc.RigidBody", 824 | "_name": "", 825 | "_objFlags": 0, 826 | "node": { 827 | "__id__": 22 828 | }, 829 | "_enabled": true, 830 | "_type": 2, 831 | "_allowSleep": true, 832 | "_gravityScale": 1, 833 | "_linearDamping": 1.2, 834 | "_angularDamping": 0.8, 835 | "_linearVelocity": { 836 | "__type__": "cc.Vec2", 837 | "x": 0, 838 | "y": 0 839 | }, 840 | "_angularVelocity": 0, 841 | "_fixedRotation": false, 842 | "enabledContactListener": false, 843 | "bullet": true, 844 | "awakeOnLoad": true, 845 | "_id": "" 846 | }, 847 | { 848 | "__type__": "cc.PhysicsCircleCollider", 849 | "_name": "", 850 | "_objFlags": 0, 851 | "node": { 852 | "__id__": 22 853 | }, 854 | "_enabled": true, 855 | "tag": 0, 856 | "_density": 5, 857 | "_sensor": false, 858 | "_friction": 0.2, 859 | "_restitution": 0.7, 860 | "body": null, 861 | "_offset": { 862 | "__type__": "cc.Vec2", 863 | "x": 0, 864 | "y": 0 865 | }, 866 | "_radius": 18, 867 | "_id": "" 868 | }, 869 | { 870 | "__type__": "cc.PrefabInfo", 871 | "root": { 872 | "__id__": 1 873 | }, 874 | "asset": { 875 | "__id__": 0 876 | }, 877 | "fileId": "4eyV8WLCFESJ28xLlkuu6o", 878 | "sync": false 879 | }, 880 | { 881 | "__type__": "cc.Node", 882 | "_name": "rball", 883 | "_objFlags": 0, 884 | "_parent": { 885 | "__id__": 1 886 | }, 887 | "_children": [], 888 | "_active": true, 889 | "_level": 3, 890 | "_components": [ 891 | { 892 | "__id__": 28 893 | }, 894 | { 895 | "__id__": 29 896 | }, 897 | { 898 | "__id__": 30 899 | } 900 | ], 901 | "_prefab": { 902 | "__id__": 31 903 | }, 904 | "_opacity": 255, 905 | "_color": { 906 | "__type__": "cc.Color", 907 | "r": 255, 908 | "g": 255, 909 | "b": 255, 910 | "a": 255 911 | }, 912 | "_contentSize": { 913 | "__type__": "cc.Size", 914 | "width": 36, 915 | "height": 36 916 | }, 917 | "_anchorPoint": { 918 | "__type__": "cc.Vec2", 919 | "x": 0.5, 920 | "y": 0.5 921 | }, 922 | "_position": { 923 | "__type__": "cc.Vec3", 924 | "x": 0, 925 | "y": 239, 926 | "z": 0 927 | }, 928 | "_scale": { 929 | "__type__": "cc.Vec3", 930 | "x": 1, 931 | "y": 1, 932 | "z": 1 933 | }, 934 | "_rotationX": 0, 935 | "_rotationY": 0, 936 | "_quat": { 937 | "__type__": "cc.Quat", 938 | "x": 0, 939 | "y": 0, 940 | "z": 0, 941 | "w": 1 942 | }, 943 | "_skewX": 0, 944 | "_skewY": 0, 945 | "groupIndex": 0, 946 | "_id": "" 947 | }, 948 | { 949 | "__type__": "cc.Sprite", 950 | "_name": "", 951 | "_objFlags": 0, 952 | "node": { 953 | "__id__": 27 954 | }, 955 | "_enabled": true, 956 | "_spriteFrame": { 957 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 958 | }, 959 | "_type": 0, 960 | "_sizeMode": 0, 961 | "_fillType": 0, 962 | "_fillCenter": { 963 | "__type__": "cc.Vec2", 964 | "x": 0, 965 | "y": 0 966 | }, 967 | "_fillStart": 0, 968 | "_fillRange": 0, 969 | "_isTrimmedMode": true, 970 | "_state": 0, 971 | "_atlas": { 972 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 973 | }, 974 | "_srcBlendFactor": 770, 975 | "_dstBlendFactor": 771, 976 | "_id": "" 977 | }, 978 | { 979 | "__type__": "cc.RigidBody", 980 | "_name": "", 981 | "_objFlags": 0, 982 | "node": { 983 | "__id__": 27 984 | }, 985 | "_enabled": true, 986 | "_type": 2, 987 | "_allowSleep": true, 988 | "_gravityScale": 1, 989 | "_linearDamping": 1.2, 990 | "_angularDamping": 0.8, 991 | "_linearVelocity": { 992 | "__type__": "cc.Vec2", 993 | "x": 0, 994 | "y": 0 995 | }, 996 | "_angularVelocity": 0, 997 | "_fixedRotation": false, 998 | "enabledContactListener": false, 999 | "bullet": true, 1000 | "awakeOnLoad": true, 1001 | "_id": "" 1002 | }, 1003 | { 1004 | "__type__": "cc.PhysicsCircleCollider", 1005 | "_name": "", 1006 | "_objFlags": 0, 1007 | "node": { 1008 | "__id__": 27 1009 | }, 1010 | "_enabled": true, 1011 | "tag": 0, 1012 | "_density": 5, 1013 | "_sensor": false, 1014 | "_friction": 0.2, 1015 | "_restitution": 0.7, 1016 | "body": null, 1017 | "_offset": { 1018 | "__type__": "cc.Vec2", 1019 | "x": 0, 1020 | "y": 0 1021 | }, 1022 | "_radius": 18, 1023 | "_id": "" 1024 | }, 1025 | { 1026 | "__type__": "cc.PrefabInfo", 1027 | "root": { 1028 | "__id__": 1 1029 | }, 1030 | "asset": { 1031 | "__id__": 0 1032 | }, 1033 | "fileId": "7ey+dvMnJKfqDr6o+L0DIX", 1034 | "sync": false 1035 | }, 1036 | { 1037 | "__type__": "cc.Node", 1038 | "_name": "rball", 1039 | "_objFlags": 0, 1040 | "_parent": { 1041 | "__id__": 1 1042 | }, 1043 | "_children": [], 1044 | "_active": true, 1045 | "_level": 3, 1046 | "_components": [ 1047 | { 1048 | "__id__": 33 1049 | }, 1050 | { 1051 | "__id__": 34 1052 | }, 1053 | { 1054 | "__id__": 35 1055 | } 1056 | ], 1057 | "_prefab": { 1058 | "__id__": 36 1059 | }, 1060 | "_opacity": 255, 1061 | "_color": { 1062 | "__type__": "cc.Color", 1063 | "r": 255, 1064 | "g": 255, 1065 | "b": 255, 1066 | "a": 255 1067 | }, 1068 | "_contentSize": { 1069 | "__type__": "cc.Size", 1070 | "width": 36, 1071 | "height": 36 1072 | }, 1073 | "_anchorPoint": { 1074 | "__type__": "cc.Vec2", 1075 | "x": 0.5, 1076 | "y": 0.5 1077 | }, 1078 | "_position": { 1079 | "__type__": "cc.Vec3", 1080 | "x": 36, 1081 | "y": 239, 1082 | "z": 0 1083 | }, 1084 | "_scale": { 1085 | "__type__": "cc.Vec3", 1086 | "x": 1, 1087 | "y": 1, 1088 | "z": 1 1089 | }, 1090 | "_rotationX": 0, 1091 | "_rotationY": 0, 1092 | "_quat": { 1093 | "__type__": "cc.Quat", 1094 | "x": 0, 1095 | "y": 0, 1096 | "z": 0, 1097 | "w": 1 1098 | }, 1099 | "_skewX": 0, 1100 | "_skewY": 0, 1101 | "groupIndex": 0, 1102 | "_id": "" 1103 | }, 1104 | { 1105 | "__type__": "cc.Sprite", 1106 | "_name": "", 1107 | "_objFlags": 0, 1108 | "node": { 1109 | "__id__": 32 1110 | }, 1111 | "_enabled": true, 1112 | "_spriteFrame": { 1113 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 1114 | }, 1115 | "_type": 0, 1116 | "_sizeMode": 0, 1117 | "_fillType": 0, 1118 | "_fillCenter": { 1119 | "__type__": "cc.Vec2", 1120 | "x": 0, 1121 | "y": 0 1122 | }, 1123 | "_fillStart": 0, 1124 | "_fillRange": 0, 1125 | "_isTrimmedMode": true, 1126 | "_state": 0, 1127 | "_atlas": { 1128 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 1129 | }, 1130 | "_srcBlendFactor": 770, 1131 | "_dstBlendFactor": 771, 1132 | "_id": "" 1133 | }, 1134 | { 1135 | "__type__": "cc.RigidBody", 1136 | "_name": "", 1137 | "_objFlags": 0, 1138 | "node": { 1139 | "__id__": 32 1140 | }, 1141 | "_enabled": true, 1142 | "_type": 2, 1143 | "_allowSleep": true, 1144 | "_gravityScale": 1, 1145 | "_linearDamping": 1.2, 1146 | "_angularDamping": 0.8, 1147 | "_linearVelocity": { 1148 | "__type__": "cc.Vec2", 1149 | "x": 0, 1150 | "y": 0 1151 | }, 1152 | "_angularVelocity": 0, 1153 | "_fixedRotation": false, 1154 | "enabledContactListener": false, 1155 | "bullet": true, 1156 | "awakeOnLoad": true, 1157 | "_id": "" 1158 | }, 1159 | { 1160 | "__type__": "cc.PhysicsCircleCollider", 1161 | "_name": "", 1162 | "_objFlags": 0, 1163 | "node": { 1164 | "__id__": 32 1165 | }, 1166 | "_enabled": true, 1167 | "tag": 0, 1168 | "_density": 5, 1169 | "_sensor": false, 1170 | "_friction": 0.2, 1171 | "_restitution": 0.7, 1172 | "body": null, 1173 | "_offset": { 1174 | "__type__": "cc.Vec2", 1175 | "x": 0, 1176 | "y": 0 1177 | }, 1178 | "_radius": 18, 1179 | "_id": "" 1180 | }, 1181 | { 1182 | "__type__": "cc.PrefabInfo", 1183 | "root": { 1184 | "__id__": 1 1185 | }, 1186 | "asset": { 1187 | "__id__": 0 1188 | }, 1189 | "fileId": "f6j8zN7ZhDA4EJf1FoUuJo", 1190 | "sync": false 1191 | }, 1192 | { 1193 | "__type__": "cc.Node", 1194 | "_name": "rball", 1195 | "_objFlags": 0, 1196 | "_parent": { 1197 | "__id__": 1 1198 | }, 1199 | "_children": [], 1200 | "_active": true, 1201 | "_level": 3, 1202 | "_components": [ 1203 | { 1204 | "__id__": 38 1205 | }, 1206 | { 1207 | "__id__": 39 1208 | }, 1209 | { 1210 | "__id__": 40 1211 | } 1212 | ], 1213 | "_prefab": { 1214 | "__id__": 41 1215 | }, 1216 | "_opacity": 255, 1217 | "_color": { 1218 | "__type__": "cc.Color", 1219 | "r": 255, 1220 | "g": 255, 1221 | "b": 255, 1222 | "a": 255 1223 | }, 1224 | "_contentSize": { 1225 | "__type__": "cc.Size", 1226 | "width": 36, 1227 | "height": 36 1228 | }, 1229 | "_anchorPoint": { 1230 | "__type__": "cc.Vec2", 1231 | "x": 0.5, 1232 | "y": 0.5 1233 | }, 1234 | "_position": { 1235 | "__type__": "cc.Vec3", 1236 | "x": 18, 1237 | "y": 204, 1238 | "z": 0 1239 | }, 1240 | "_scale": { 1241 | "__type__": "cc.Vec3", 1242 | "x": 1, 1243 | "y": 1, 1244 | "z": 1 1245 | }, 1246 | "_rotationX": 0, 1247 | "_rotationY": 0, 1248 | "_quat": { 1249 | "__type__": "cc.Quat", 1250 | "x": 0, 1251 | "y": 0, 1252 | "z": 0, 1253 | "w": 1 1254 | }, 1255 | "_skewX": 0, 1256 | "_skewY": 0, 1257 | "groupIndex": 0, 1258 | "_id": "" 1259 | }, 1260 | { 1261 | "__type__": "cc.Sprite", 1262 | "_name": "", 1263 | "_objFlags": 0, 1264 | "node": { 1265 | "__id__": 37 1266 | }, 1267 | "_enabled": true, 1268 | "_spriteFrame": { 1269 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 1270 | }, 1271 | "_type": 0, 1272 | "_sizeMode": 0, 1273 | "_fillType": 0, 1274 | "_fillCenter": { 1275 | "__type__": "cc.Vec2", 1276 | "x": 0, 1277 | "y": 0 1278 | }, 1279 | "_fillStart": 0, 1280 | "_fillRange": 0, 1281 | "_isTrimmedMode": true, 1282 | "_state": 0, 1283 | "_atlas": { 1284 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 1285 | }, 1286 | "_srcBlendFactor": 770, 1287 | "_dstBlendFactor": 771, 1288 | "_id": "" 1289 | }, 1290 | { 1291 | "__type__": "cc.RigidBody", 1292 | "_name": "", 1293 | "_objFlags": 0, 1294 | "node": { 1295 | "__id__": 37 1296 | }, 1297 | "_enabled": true, 1298 | "_type": 2, 1299 | "_allowSleep": true, 1300 | "_gravityScale": 1, 1301 | "_linearDamping": 1.2, 1302 | "_angularDamping": 0.8, 1303 | "_linearVelocity": { 1304 | "__type__": "cc.Vec2", 1305 | "x": 0, 1306 | "y": 0 1307 | }, 1308 | "_angularVelocity": 0, 1309 | "_fixedRotation": false, 1310 | "enabledContactListener": false, 1311 | "bullet": true, 1312 | "awakeOnLoad": true, 1313 | "_id": "" 1314 | }, 1315 | { 1316 | "__type__": "cc.PhysicsCircleCollider", 1317 | "_name": "", 1318 | "_objFlags": 0, 1319 | "node": { 1320 | "__id__": 37 1321 | }, 1322 | "_enabled": true, 1323 | "tag": 0, 1324 | "_density": 5, 1325 | "_sensor": false, 1326 | "_friction": 0.2, 1327 | "_restitution": 0.7, 1328 | "body": null, 1329 | "_offset": { 1330 | "__type__": "cc.Vec2", 1331 | "x": 0, 1332 | "y": 0 1333 | }, 1334 | "_radius": 18, 1335 | "_id": "" 1336 | }, 1337 | { 1338 | "__type__": "cc.PrefabInfo", 1339 | "root": { 1340 | "__id__": 1 1341 | }, 1342 | "asset": { 1343 | "__id__": 0 1344 | }, 1345 | "fileId": "81LKckbi9B+7j++caE2L/k", 1346 | "sync": false 1347 | }, 1348 | { 1349 | "__type__": "cc.Node", 1350 | "_name": "rball", 1351 | "_objFlags": 0, 1352 | "_parent": { 1353 | "__id__": 1 1354 | }, 1355 | "_children": [], 1356 | "_active": true, 1357 | "_level": 3, 1358 | "_components": [ 1359 | { 1360 | "__id__": 43 1361 | }, 1362 | { 1363 | "__id__": 44 1364 | }, 1365 | { 1366 | "__id__": 45 1367 | } 1368 | ], 1369 | "_prefab": { 1370 | "__id__": 46 1371 | }, 1372 | "_opacity": 255, 1373 | "_color": { 1374 | "__type__": "cc.Color", 1375 | "r": 255, 1376 | "g": 255, 1377 | "b": 255, 1378 | "a": 255 1379 | }, 1380 | "_contentSize": { 1381 | "__type__": "cc.Size", 1382 | "width": 36, 1383 | "height": 36 1384 | }, 1385 | "_anchorPoint": { 1386 | "__type__": "cc.Vec2", 1387 | "x": 0.5, 1388 | "y": 0.5 1389 | }, 1390 | "_position": { 1391 | "__type__": "cc.Vec3", 1392 | "x": -18, 1393 | "y": 204, 1394 | "z": 0 1395 | }, 1396 | "_scale": { 1397 | "__type__": "cc.Vec3", 1398 | "x": 1, 1399 | "y": 1, 1400 | "z": 1 1401 | }, 1402 | "_rotationX": 0, 1403 | "_rotationY": 0, 1404 | "_quat": { 1405 | "__type__": "cc.Quat", 1406 | "x": 0, 1407 | "y": 0, 1408 | "z": 0, 1409 | "w": 1 1410 | }, 1411 | "_skewX": 0, 1412 | "_skewY": 0, 1413 | "groupIndex": 0, 1414 | "_id": "" 1415 | }, 1416 | { 1417 | "__type__": "cc.Sprite", 1418 | "_name": "", 1419 | "_objFlags": 0, 1420 | "node": { 1421 | "__id__": 42 1422 | }, 1423 | "_enabled": true, 1424 | "_spriteFrame": { 1425 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 1426 | }, 1427 | "_type": 0, 1428 | "_sizeMode": 0, 1429 | "_fillType": 0, 1430 | "_fillCenter": { 1431 | "__type__": "cc.Vec2", 1432 | "x": 0, 1433 | "y": 0 1434 | }, 1435 | "_fillStart": 0, 1436 | "_fillRange": 0, 1437 | "_isTrimmedMode": true, 1438 | "_state": 0, 1439 | "_atlas": { 1440 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 1441 | }, 1442 | "_srcBlendFactor": 770, 1443 | "_dstBlendFactor": 771, 1444 | "_id": "" 1445 | }, 1446 | { 1447 | "__type__": "cc.RigidBody", 1448 | "_name": "", 1449 | "_objFlags": 0, 1450 | "node": { 1451 | "__id__": 42 1452 | }, 1453 | "_enabled": true, 1454 | "_type": 2, 1455 | "_allowSleep": true, 1456 | "_gravityScale": 1, 1457 | "_linearDamping": 1.2, 1458 | "_angularDamping": 0.8, 1459 | "_linearVelocity": { 1460 | "__type__": "cc.Vec2", 1461 | "x": 0, 1462 | "y": 0 1463 | }, 1464 | "_angularVelocity": 0, 1465 | "_fixedRotation": false, 1466 | "enabledContactListener": false, 1467 | "bullet": true, 1468 | "awakeOnLoad": true, 1469 | "_id": "" 1470 | }, 1471 | { 1472 | "__type__": "cc.PhysicsCircleCollider", 1473 | "_name": "", 1474 | "_objFlags": 0, 1475 | "node": { 1476 | "__id__": 42 1477 | }, 1478 | "_enabled": true, 1479 | "tag": 0, 1480 | "_density": 5, 1481 | "_sensor": false, 1482 | "_friction": 0.2, 1483 | "_restitution": 0.7, 1484 | "body": null, 1485 | "_offset": { 1486 | "__type__": "cc.Vec2", 1487 | "x": 0, 1488 | "y": 0 1489 | }, 1490 | "_radius": 18, 1491 | "_id": "" 1492 | }, 1493 | { 1494 | "__type__": "cc.PrefabInfo", 1495 | "root": { 1496 | "__id__": 1 1497 | }, 1498 | "asset": { 1499 | "__id__": 0 1500 | }, 1501 | "fileId": "61T/bCGplFHqOgBuEUHrmV", 1502 | "sync": false 1503 | }, 1504 | { 1505 | "__type__": "cc.Node", 1506 | "_name": "rball", 1507 | "_objFlags": 0, 1508 | "_parent": { 1509 | "__id__": 1 1510 | }, 1511 | "_children": [], 1512 | "_active": true, 1513 | "_level": 3, 1514 | "_components": [ 1515 | { 1516 | "__id__": 48 1517 | }, 1518 | { 1519 | "__id__": 49 1520 | }, 1521 | { 1522 | "__id__": 50 1523 | } 1524 | ], 1525 | "_prefab": { 1526 | "__id__": 51 1527 | }, 1528 | "_opacity": 255, 1529 | "_color": { 1530 | "__type__": "cc.Color", 1531 | "r": 255, 1532 | "g": 255, 1533 | "b": 255, 1534 | "a": 255 1535 | }, 1536 | "_contentSize": { 1537 | "__type__": "cc.Size", 1538 | "width": 36, 1539 | "height": 36 1540 | }, 1541 | "_anchorPoint": { 1542 | "__type__": "cc.Vec2", 1543 | "x": 0.5, 1544 | "y": 0.5 1545 | }, 1546 | "_position": { 1547 | "__type__": "cc.Vec3", 1548 | "x": 0, 1549 | "y": 173, 1550 | "z": 0 1551 | }, 1552 | "_scale": { 1553 | "__type__": "cc.Vec3", 1554 | "x": 1, 1555 | "y": 1, 1556 | "z": 1 1557 | }, 1558 | "_rotationX": 0, 1559 | "_rotationY": 0, 1560 | "_quat": { 1561 | "__type__": "cc.Quat", 1562 | "x": 0, 1563 | "y": 0, 1564 | "z": 0, 1565 | "w": 1 1566 | }, 1567 | "_skewX": 0, 1568 | "_skewY": 0, 1569 | "groupIndex": 0, 1570 | "_id": "" 1571 | }, 1572 | { 1573 | "__type__": "cc.Sprite", 1574 | "_name": "", 1575 | "_objFlags": 0, 1576 | "node": { 1577 | "__id__": 47 1578 | }, 1579 | "_enabled": true, 1580 | "_spriteFrame": { 1581 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 1582 | }, 1583 | "_type": 0, 1584 | "_sizeMode": 0, 1585 | "_fillType": 0, 1586 | "_fillCenter": { 1587 | "__type__": "cc.Vec2", 1588 | "x": 0, 1589 | "y": 0 1590 | }, 1591 | "_fillStart": 0, 1592 | "_fillRange": 0, 1593 | "_isTrimmedMode": true, 1594 | "_state": 0, 1595 | "_atlas": { 1596 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 1597 | }, 1598 | "_srcBlendFactor": 770, 1599 | "_dstBlendFactor": 771, 1600 | "_id": "" 1601 | }, 1602 | { 1603 | "__type__": "cc.RigidBody", 1604 | "_name": "", 1605 | "_objFlags": 0, 1606 | "node": { 1607 | "__id__": 47 1608 | }, 1609 | "_enabled": true, 1610 | "_type": 2, 1611 | "_allowSleep": true, 1612 | "_gravityScale": 1, 1613 | "_linearDamping": 1.2, 1614 | "_angularDamping": 0.8, 1615 | "_linearVelocity": { 1616 | "__type__": "cc.Vec2", 1617 | "x": 0, 1618 | "y": 0 1619 | }, 1620 | "_angularVelocity": 0, 1621 | "_fixedRotation": false, 1622 | "enabledContactListener": false, 1623 | "bullet": true, 1624 | "awakeOnLoad": true, 1625 | "_id": "" 1626 | }, 1627 | { 1628 | "__type__": "cc.PhysicsCircleCollider", 1629 | "_name": "", 1630 | "_objFlags": 0, 1631 | "node": { 1632 | "__id__": 47 1633 | }, 1634 | "_enabled": true, 1635 | "tag": 0, 1636 | "_density": 5, 1637 | "_sensor": false, 1638 | "_friction": 0.2, 1639 | "_restitution": 0.7, 1640 | "body": null, 1641 | "_offset": { 1642 | "__type__": "cc.Vec2", 1643 | "x": 0, 1644 | "y": 0 1645 | }, 1646 | "_radius": 18, 1647 | "_id": "" 1648 | }, 1649 | { 1650 | "__type__": "cc.PrefabInfo", 1651 | "root": { 1652 | "__id__": 1 1653 | }, 1654 | "asset": { 1655 | "__id__": 0 1656 | }, 1657 | "fileId": "38OopD+TlGoZkwfdFzg1oe", 1658 | "sync": false 1659 | }, 1660 | { 1661 | "__type__": "cc.PrefabInfo", 1662 | "root": { 1663 | "__id__": 1 1664 | }, 1665 | "asset": { 1666 | "__id__": 0 1667 | }, 1668 | "fileId": "2exFBPWMpEx7fjB/07OZq6", 1669 | "sync": false 1670 | } 1671 | ] -------------------------------------------------------------------------------- /assets/RedBalls.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "15f42ea5-6392-4a8f-851d-d92172cc8b82", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayarami/snookerDemo/7284070d35ec571ff8c888222ef8a97b22a25e2a/assets/bg.png -------------------------------------------------------------------------------- /assets/bg.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "e4d0e220-3bea-4a14-b978-74ac14921f8e", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "bg": { 10 | "ver": "1.0.3", 11 | "uuid": "db586ed0-a076-4be7-9a1c-34289c2968e2", 12 | "rawTextureUuid": "e4d0e220-3bea-4a14-b978-74ac14921f8e", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": 0, 17 | "offsetY": 0, 18 | "trimX": 0, 19 | "trimY": 0, 20 | "width": 320, 21 | "height": 480, 22 | "rawWidth": 320, 23 | "rawHeight": 480, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/cue.js: -------------------------------------------------------------------------------- 1 | // Learn cc.Class: 2 | // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/class.html 3 | // - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/class.html 4 | // Learn Attribute: 5 | // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html 6 | // - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/reference/attributes.html 7 | // Learn life-cycle callbacks: 8 | // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html 9 | // - [English] https://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html 10 | 11 | cc.Class({ 12 | extends: cc.Component, 13 | 14 | properties: { 15 | //球杆的节点 16 | cue : cc.Node 17 | }, 18 | 19 | // LIFE-CYCLE CALLBACKS: 20 | 21 | // onLoad () {}, 22 | 23 | start () { 24 | //鼠标移动系统事件 25 | cc.Canvas.instance.node.on(cc.Node.EventType.MOUSE_MOVE, this.onMouseMove, this); 26 | //鼠标左键按下系统事件 27 | cc.Canvas.instance.node.on(cc.Node.EventType.MOUSE_DOWN, this.onMouseDown, this); 28 | //鼠标左键抬起系统事件 29 | cc.Canvas.instance.node.on(cc.Node.EventType.MOUSE_UP, this.onMouseUp, this); 30 | //白球停止的自定义事件 31 | cc.Canvas.instance.node.on("wball-sleep", this.onwballSleep, this); 32 | }, 33 | 34 | onMouseMove (event) { 35 | //按下鼠标时,球杆方向不再移动。球杆隐藏时操作无效 36 | if (this._mouseDown || this.node.opacity != 255) { 37 | return; 38 | } 39 | //获取鼠标的当前位置坐标 40 | var loc = event.getLocation(); 41 | this._mousePosition = loc; 42 | //将坐标转换到父节点的坐标系下 43 | loc = this.node.parent.convertToNodeSpaceAR(loc); 44 | //计算与(-1,0)向量的夹脚,改夹脚即为球杆需要转动的角度 45 | var angle = loc.signAngle(cc.v2(-1,0)); 46 | angle = cc.misc.radiansToDegrees(angle); 47 | //设置球杆的角度 48 | this.node.rotation = angle; 49 | }, 50 | 51 | onMouseDown (event) { 52 | //球杆隐藏时操作无效 53 | if (this.node.opacity != 255) { 54 | return; 55 | } 56 | //将按下鼠标的标记设置为true 57 | this._mouseDown = true; 58 | 59 | //使球杆向后移动,每秒向后移动50个像素 60 | //这里可以将-50这个值提升为组件属性,暴露到属性面板中方便配置调试 61 | this.cue.runAction(cc.repeatForever(cc.moveBy(1, cc.v2(-50, 0)))); 62 | }, 63 | 64 | onMouseUp (event) { 65 | //球杆隐藏时操作无效 66 | if (this.node.opacity != 255) { 67 | return; 68 | } 69 | //计算球杆向后移动的像素,通过这个值来计算击球的力度 70 | var force = this.cue.x - 182; 71 | //停止球杆向后移动的动作 72 | this.cue.stopAllActions(); 73 | //使用序列动作,先执行 74 | this.cue.runAction(cc.sequence( 75 | cc.moveTo(0.1, cc.v2(-182,0)).easing(cc.easeSineOut()), 76 | cc.callFunc(() => { 77 | //将按下鼠标的标记设置为false 78 | this._mouseDown = false; 79 | //创建自定义事件"cue",并派发出去 80 | //事件有两个参数,一个是force,通过这个值,白球可以计算击球力度 81 | //另一个值为cue,是一个cc.vec2坐标,记录按下时的鼠标位置,这是提供给白球进行角度计算的 82 | var customEvent = new cc.Event.EventCustom("cue", true); 83 | customEvent.force = force; 84 | customEvent.cue = this._mousePosition 85 | this.node.dispatchEvent(customEvent); 86 | //隐藏球杆 87 | this.node.opacity = 0; 88 | }) 89 | )); 90 | }, 91 | 92 | onwballSleep () { 93 | //白球停止时,显示球杆 94 | this.node.opacity = 255; 95 | }, 96 | 97 | // update (dt) {}, 98 | }); 99 | -------------------------------------------------------------------------------- /assets/cue.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "35b576d4-de1f-4f7b-ab29-79cba238b909", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/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": false, 21 | "_level": 0, 22 | "_components": [], 23 | "_prefab": null, 24 | "_opacity": 255, 25 | "_color": { 26 | "__type__": "cc.Color", 27 | "r": 255, 28 | "g": 255, 29 | "b": 255, 30 | "a": 255 31 | }, 32 | "_contentSize": { 33 | "__type__": "cc.Size", 34 | "width": 0, 35 | "height": 0 36 | }, 37 | "_anchorPoint": { 38 | "__type__": "cc.Vec2", 39 | "x": 0, 40 | "y": 0 41 | }, 42 | "_scale": { 43 | "__type__": "cc.Vec3", 44 | "x": 0.448081379078511, 45 | "y": 0.448081379078511, 46 | "z": 1 47 | }, 48 | "_quat": { 49 | "__type__": "cc.Quat", 50 | "x": 0, 51 | "y": 0, 52 | "z": 0, 53 | "w": 1 54 | }, 55 | "groupIndex": 0, 56 | "autoReleaseAssets": false, 57 | "_id": "d72ef37d-5f30-4faa-a6b2-d7e93d4eaa88" 58 | }, 59 | { 60 | "__type__": "cc.Node", 61 | "_name": "Canvas", 62 | "_objFlags": 0, 63 | "_parent": { 64 | "__id__": 1 65 | }, 66 | "_children": [ 67 | { 68 | "__id__": 3 69 | }, 70 | { 71 | "__id__": 5 72 | }, 73 | { 74 | "__id__": 102 75 | }, 76 | { 77 | "__id__": 87 78 | }, 79 | { 80 | "__id__": 117 81 | }, 82 | { 83 | "__id__": 132 84 | } 85 | ], 86 | "_active": true, 87 | "_level": 1, 88 | "_components": [ 89 | { 90 | "__id__": 146 91 | }, 92 | { 93 | "__id__": 147 94 | } 95 | ], 96 | "_prefab": null, 97 | "_opacity": 255, 98 | "_color": { 99 | "__type__": "cc.Color", 100 | "r": 255, 101 | "g": 255, 102 | "b": 255, 103 | "a": 255 104 | }, 105 | "_contentSize": { 106 | "__type__": "cc.Size", 107 | "width": 640, 108 | "height": 960 109 | }, 110 | "_anchorPoint": { 111 | "__type__": "cc.Vec2", 112 | "x": 0.5, 113 | "y": 0.5 114 | }, 115 | "_position": { 116 | "__type__": "cc.Vec3", 117 | "x": 320, 118 | "y": 480, 119 | "z": 0 120 | }, 121 | "_scale": { 122 | "__type__": "cc.Vec3", 123 | "x": 1, 124 | "y": 1, 125 | "z": 1 126 | }, 127 | "_rotationX": 0, 128 | "_rotationY": 0, 129 | "_quat": { 130 | "__type__": "cc.Quat", 131 | "x": 0, 132 | "y": 0, 133 | "z": 0, 134 | "w": 1 135 | }, 136 | "_skewX": 0, 137 | "_skewY": 0, 138 | "groupIndex": 0, 139 | "_id": "f0MuMVpf1IM4f0w/1oBSsz" 140 | }, 141 | { 142 | "__type__": "cc.Node", 143 | "_name": "Main Camera", 144 | "_objFlags": 0, 145 | "_parent": { 146 | "__id__": 2 147 | }, 148 | "_children": [], 149 | "_active": true, 150 | "_level": 2, 151 | "_components": [ 152 | { 153 | "__id__": 4 154 | } 155 | ], 156 | "_prefab": null, 157 | "_opacity": 255, 158 | "_color": { 159 | "__type__": "cc.Color", 160 | "r": 255, 161 | "g": 255, 162 | "b": 255, 163 | "a": 255 164 | }, 165 | "_contentSize": { 166 | "__type__": "cc.Size", 167 | "width": 0, 168 | "height": 0 169 | }, 170 | "_anchorPoint": { 171 | "__type__": "cc.Vec2", 172 | "x": 0.5, 173 | "y": 0.5 174 | }, 175 | "_position": { 176 | "__type__": "cc.Vec3", 177 | "x": 0, 178 | "y": 0, 179 | "z": 0 180 | }, 181 | "_scale": { 182 | "__type__": "cc.Vec3", 183 | "x": 1, 184 | "y": 1, 185 | "z": 1 186 | }, 187 | "_rotationX": 0, 188 | "_rotationY": 0, 189 | "_quat": { 190 | "__type__": "cc.Quat", 191 | "x": 0, 192 | "y": 0, 193 | "z": 0, 194 | "w": 1 195 | }, 196 | "_skewX": 0, 197 | "_skewY": 0, 198 | "groupIndex": 0, 199 | "_id": "44uSkhMopIQLKwjupknTna" 200 | }, 201 | { 202 | "__type__": "cc.Camera", 203 | "_name": "", 204 | "_objFlags": 0, 205 | "node": { 206 | "__id__": 3 207 | }, 208 | "_enabled": true, 209 | "_cullingMask": 4294967295, 210 | "_clearFlags": 7, 211 | "_backgroundColor": { 212 | "__type__": "cc.Color", 213 | "r": 0, 214 | "g": 0, 215 | "b": 0, 216 | "a": 255 217 | }, 218 | "_depth": -1, 219 | "_zoomRatio": 1, 220 | "_targetTexture": null, 221 | "_id": "a2yBXuFQhNaLiEOWTRazSb" 222 | }, 223 | { 224 | "__type__": "cc.Node", 225 | "_name": "bg", 226 | "_objFlags": 0, 227 | "_parent": { 228 | "__id__": 2 229 | }, 230 | "_children": [ 231 | { 232 | "__id__": 6 233 | }, 234 | { 235 | "__id__": 19 236 | } 237 | ], 238 | "_active": true, 239 | "_level": 2, 240 | "_components": [ 241 | { 242 | "__id__": 71 243 | }, 244 | { 245 | "__id__": 72 246 | }, 247 | { 248 | "__id__": 73 249 | }, 250 | { 251 | "__id__": 74 252 | }, 253 | { 254 | "__id__": 75 255 | }, 256 | { 257 | "__id__": 76 258 | }, 259 | { 260 | "__id__": 77 261 | }, 262 | { 263 | "__id__": 78 264 | }, 265 | { 266 | "__id__": 79 267 | }, 268 | { 269 | "__id__": 80 270 | }, 271 | { 272 | "__id__": 81 273 | }, 274 | { 275 | "__id__": 82 276 | }, 277 | { 278 | "__id__": 83 279 | }, 280 | { 281 | "__id__": 84 282 | }, 283 | { 284 | "__id__": 85 285 | }, 286 | { 287 | "__id__": 86 288 | } 289 | ], 290 | "_prefab": null, 291 | "_opacity": 255, 292 | "_color": { 293 | "__type__": "cc.Color", 294 | "r": 255, 295 | "g": 255, 296 | "b": 255, 297 | "a": 255 298 | }, 299 | "_contentSize": { 300 | "__type__": "cc.Size", 301 | "width": 640, 302 | "height": 960 303 | }, 304 | "_anchorPoint": { 305 | "__type__": "cc.Vec2", 306 | "x": 0.5, 307 | "y": 0.5 308 | }, 309 | "_position": { 310 | "__type__": "cc.Vec3", 311 | "x": 0, 312 | "y": 0, 313 | "z": 0 314 | }, 315 | "_scale": { 316 | "__type__": "cc.Vec3", 317 | "x": 1, 318 | "y": 1, 319 | "z": 1 320 | }, 321 | "_rotationX": 0, 322 | "_rotationY": 0, 323 | "_quat": { 324 | "__type__": "cc.Quat", 325 | "x": 0, 326 | "y": 0, 327 | "z": 0, 328 | "w": 1 329 | }, 330 | "_skewX": 0, 331 | "_skewY": 0, 332 | "groupIndex": 0, 333 | "_id": "37qz714AtMm4Iii8SmuJNc" 334 | }, 335 | { 336 | "__type__": "cc.Node", 337 | "_name": "wball", 338 | "_objFlags": 0, 339 | "_parent": { 340 | "__id__": 5 341 | }, 342 | "_children": [ 343 | { 344 | "__id__": 7 345 | } 346 | ], 347 | "_active": false, 348 | "_level": 3, 349 | "_components": [ 350 | { 351 | "__id__": 14 352 | }, 353 | { 354 | "__id__": 15 355 | }, 356 | { 357 | "__id__": 16 358 | }, 359 | { 360 | "__id__": 17 361 | } 362 | ], 363 | "_prefab": { 364 | "__id__": 18 365 | }, 366 | "_opacity": 255, 367 | "_color": { 368 | "__type__": "cc.Color", 369 | "r": 255, 370 | "g": 255, 371 | "b": 255, 372 | "a": 255 373 | }, 374 | "_contentSize": { 375 | "__type__": "cc.Size", 376 | "width": 36, 377 | "height": 36 378 | }, 379 | "_anchorPoint": { 380 | "__type__": "cc.Vec2", 381 | "x": 0.5, 382 | "y": 0.5 383 | }, 384 | "_position": { 385 | "__type__": "cc.Vec3", 386 | "x": 0, 387 | "y": -240, 388 | "z": 0 389 | }, 390 | "_scale": { 391 | "__type__": "cc.Vec3", 392 | "x": 1, 393 | "y": 1, 394 | "z": 1 395 | }, 396 | "_rotationX": 0, 397 | "_rotationY": 0, 398 | "_quat": { 399 | "__type__": "cc.Quat", 400 | "x": 0, 401 | "y": 0, 402 | "z": 0, 403 | "w": 1 404 | }, 405 | "_skewX": 0, 406 | "_skewY": 0, 407 | "groupIndex": 0, 408 | "_id": "474nhnp5NEKYMJzv2YMw7V" 409 | }, 410 | { 411 | "__type__": "cc.Node", 412 | "_name": "cue", 413 | "_objFlags": 0, 414 | "_parent": { 415 | "__id__": 6 416 | }, 417 | "_children": [ 418 | { 419 | "__id__": 8 420 | } 421 | ], 422 | "_active": true, 423 | "_level": 3, 424 | "_components": [ 425 | { 426 | "__id__": 11 427 | }, 428 | { 429 | "__id__": 12 430 | } 431 | ], 432 | "_prefab": { 433 | "__id__": 13 434 | }, 435 | "_opacity": 255, 436 | "_color": { 437 | "__type__": "cc.Color", 438 | "r": 255, 439 | "g": 255, 440 | "b": 255, 441 | "a": 255 442 | }, 443 | "_contentSize": { 444 | "__type__": "cc.Size", 445 | "width": 0, 446 | "height": 9 447 | }, 448 | "_anchorPoint": { 449 | "__type__": "cc.Vec2", 450 | "x": 0, 451 | "y": 0 452 | }, 453 | "_position": { 454 | "__type__": "cc.Vec3", 455 | "x": 0, 456 | "y": 0, 457 | "z": 0 458 | }, 459 | "_scale": { 460 | "__type__": "cc.Vec3", 461 | "x": 1, 462 | "y": 1, 463 | "z": 1 464 | }, 465 | "_rotationX": 0, 466 | "_rotationY": 0, 467 | "_quat": { 468 | "__type__": "cc.Quat", 469 | "x": 0, 470 | "y": 0, 471 | "z": 0, 472 | "w": 1 473 | }, 474 | "_skewX": 0, 475 | "_skewY": 0, 476 | "groupIndex": 0, 477 | "_id": "f8U9B5wm5NUJjxKhpCIp/v" 478 | }, 479 | { 480 | "__type__": "cc.Node", 481 | "_name": "New Sprite", 482 | "_objFlags": 0, 483 | "_parent": { 484 | "__id__": 7 485 | }, 486 | "_children": [], 487 | "_active": true, 488 | "_level": 4, 489 | "_components": [ 490 | { 491 | "__id__": 9 492 | } 493 | ], 494 | "_prefab": { 495 | "__id__": 10 496 | }, 497 | "_opacity": 255, 498 | "_color": { 499 | "__type__": "cc.Color", 500 | "r": 255, 501 | "g": 255, 502 | "b": 255, 503 | "a": 255 504 | }, 505 | "_contentSize": { 506 | "__type__": "cc.Size", 507 | "width": 332, 508 | "height": 9 509 | }, 510 | "_anchorPoint": { 511 | "__type__": "cc.Vec2", 512 | "x": 0.5, 513 | "y": 0.5 514 | }, 515 | "_position": { 516 | "__type__": "cc.Vec3", 517 | "x": -182, 518 | "y": 0, 519 | "z": 0 520 | }, 521 | "_scale": { 522 | "__type__": "cc.Vec3", 523 | "x": 1, 524 | "y": 1, 525 | "z": 1 526 | }, 527 | "_rotationX": 0, 528 | "_rotationY": 0, 529 | "_quat": { 530 | "__type__": "cc.Quat", 531 | "x": 0, 532 | "y": 0, 533 | "z": 0, 534 | "w": 1 535 | }, 536 | "_skewX": 0, 537 | "_skewY": 0, 538 | "groupIndex": 0, 539 | "_id": "6eAEAR/8pEAKtnhetHXzdh" 540 | }, 541 | { 542 | "__type__": "cc.Sprite", 543 | "_name": "", 544 | "_objFlags": 0, 545 | "node": { 546 | "__id__": 8 547 | }, 548 | "_enabled": true, 549 | "_spriteFrame": { 550 | "__uuid__": "7c35e826-6bba-4e58-bc80-f8f56f04fd6d" 551 | }, 552 | "_type": 0, 553 | "_sizeMode": 1, 554 | "_fillType": 0, 555 | "_fillCenter": { 556 | "__type__": "cc.Vec2", 557 | "x": 0, 558 | "y": 0 559 | }, 560 | "_fillStart": 0, 561 | "_fillRange": 0, 562 | "_isTrimmedMode": true, 563 | "_state": 0, 564 | "_atlas": { 565 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 566 | }, 567 | "_srcBlendFactor": 770, 568 | "_dstBlendFactor": 771, 569 | "_id": "12WRvquJdE6IqOoko4sWbF" 570 | }, 571 | { 572 | "__type__": "cc.PrefabInfo", 573 | "root": { 574 | "__id__": 6 575 | }, 576 | "asset": { 577 | "__uuid__": "90284b6f-571c-4eb8-9c66-9c6a523e72aa" 578 | }, 579 | "fileId": "6eAEAR/8pEAKtnhetHXzdh", 580 | "sync": false 581 | }, 582 | { 583 | "__type__": "cc.Sprite", 584 | "_name": "", 585 | "_objFlags": 0, 586 | "node": { 587 | "__id__": 7 588 | }, 589 | "_enabled": true, 590 | "_spriteFrame": null, 591 | "_type": 0, 592 | "_sizeMode": 1, 593 | "_fillType": 0, 594 | "_fillCenter": { 595 | "__type__": "cc.Vec2", 596 | "x": 0, 597 | "y": 0 598 | }, 599 | "_fillStart": 0, 600 | "_fillRange": 0, 601 | "_isTrimmedMode": true, 602 | "_state": 0, 603 | "_atlas": null, 604 | "_srcBlendFactor": 770, 605 | "_dstBlendFactor": 771, 606 | "_id": "acZurgJRhFLaRoPwAtCKj3" 607 | }, 608 | { 609 | "__type__": "35b57bU3h9Pe6specuiOLkJ", 610 | "_name": "", 611 | "_objFlags": 0, 612 | "node": { 613 | "__id__": 7 614 | }, 615 | "_enabled": true, 616 | "cue": { 617 | "__id__": 8 618 | }, 619 | "_id": "91FgINXYBKaqZ6Ye/0ndQY" 620 | }, 621 | { 622 | "__type__": "cc.PrefabInfo", 623 | "root": { 624 | "__id__": 6 625 | }, 626 | "asset": { 627 | "__uuid__": "90284b6f-571c-4eb8-9c66-9c6a523e72aa" 628 | }, 629 | "fileId": "f8U9B5wm5NUJjxKhpCIp/v", 630 | "sync": false 631 | }, 632 | { 633 | "__type__": "cc.Sprite", 634 | "_name": "", 635 | "_objFlags": 0, 636 | "node": { 637 | "__id__": 6 638 | }, 639 | "_enabled": true, 640 | "_spriteFrame": { 641 | "__uuid__": "bf559375-94b0-44df-b463-558f8bce6279" 642 | }, 643 | "_type": 0, 644 | "_sizeMode": 0, 645 | "_fillType": 0, 646 | "_fillCenter": { 647 | "__type__": "cc.Vec2", 648 | "x": 0, 649 | "y": 0 650 | }, 651 | "_fillStart": 0, 652 | "_fillRange": 0, 653 | "_isTrimmedMode": true, 654 | "_state": 0, 655 | "_atlas": { 656 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 657 | }, 658 | "_srcBlendFactor": 770, 659 | "_dstBlendFactor": 771, 660 | "_id": "03hB90udpGVYwnm77L7iGm" 661 | }, 662 | { 663 | "__type__": "cc.RigidBody", 664 | "_name": "", 665 | "_objFlags": 0, 666 | "node": { 667 | "__id__": 6 668 | }, 669 | "_enabled": true, 670 | "_type": 2, 671 | "_allowSleep": true, 672 | "_gravityScale": 1, 673 | "_linearDamping": 1.2, 674 | "_angularDamping": 0.8, 675 | "_linearVelocity": { 676 | "__type__": "cc.Vec2", 677 | "x": 0, 678 | "y": 0 679 | }, 680 | "_angularVelocity": 0, 681 | "_fixedRotation": false, 682 | "enabledContactListener": false, 683 | "bullet": true, 684 | "awakeOnLoad": true, 685 | "_id": "30MNSf+FdN+KZNSsZifHGH" 686 | }, 687 | { 688 | "__type__": "cc.PhysicsCircleCollider", 689 | "_name": "", 690 | "_objFlags": 0, 691 | "node": { 692 | "__id__": 6 693 | }, 694 | "_enabled": true, 695 | "tag": 0, 696 | "_density": 5, 697 | "_sensor": false, 698 | "_friction": 0.2, 699 | "_restitution": 0.7, 700 | "body": null, 701 | "_offset": { 702 | "__type__": "cc.Vec2", 703 | "x": 0, 704 | "y": 0 705 | }, 706 | "_radius": 18, 707 | "_id": "81o2VjNYZGOIgGWdwqJJW3" 708 | }, 709 | { 710 | "__type__": "419f7J62+ZBHpAQrh/V+TMN", 711 | "_name": "", 712 | "_objFlags": 0, 713 | "node": { 714 | "__id__": 6 715 | }, 716 | "_enabled": true, 717 | "_id": "2bpLsFm/xEFL6WAXVXJOOJ" 718 | }, 719 | { 720 | "__type__": "cc.PrefabInfo", 721 | "root": { 722 | "__id__": 6 723 | }, 724 | "asset": { 725 | "__uuid__": "90284b6f-571c-4eb8-9c66-9c6a523e72aa" 726 | }, 727 | "fileId": "474nhnp5NEKYMJzv2YMw7V", 728 | "sync": false 729 | }, 730 | { 731 | "__type__": "cc.Node", 732 | "_name": "RedBalls", 733 | "_objFlags": 0, 734 | "_parent": { 735 | "__id__": 5 736 | }, 737 | "_children": [ 738 | { 739 | "__id__": 20 740 | }, 741 | { 742 | "__id__": 25 743 | }, 744 | { 745 | "__id__": 30 746 | }, 747 | { 748 | "__id__": 35 749 | }, 750 | { 751 | "__id__": 40 752 | }, 753 | { 754 | "__id__": 45 755 | }, 756 | { 757 | "__id__": 50 758 | }, 759 | { 760 | "__id__": 55 761 | }, 762 | { 763 | "__id__": 60 764 | }, 765 | { 766 | "__id__": 65 767 | } 768 | ], 769 | "_active": false, 770 | "_level": 3, 771 | "_components": [], 772 | "_prefab": { 773 | "__id__": 70 774 | }, 775 | "_opacity": 255, 776 | "_color": { 777 | "__type__": "cc.Color", 778 | "r": 255, 779 | "g": 255, 780 | "b": 255, 781 | "a": 255 782 | }, 783 | "_contentSize": { 784 | "__type__": "cc.Size", 785 | "width": 0, 786 | "height": 0 787 | }, 788 | "_anchorPoint": { 789 | "__type__": "cc.Vec2", 790 | "x": 0.5, 791 | "y": 0.5 792 | }, 793 | "_position": { 794 | "__type__": "cc.Vec3", 795 | "x": 0, 796 | "y": 0, 797 | "z": 0 798 | }, 799 | "_scale": { 800 | "__type__": "cc.Vec3", 801 | "x": 1, 802 | "y": 1, 803 | "z": 1 804 | }, 805 | "_rotationX": 0, 806 | "_rotationY": 0, 807 | "_quat": { 808 | "__type__": "cc.Quat", 809 | "x": 0, 810 | "y": 0, 811 | "z": 0, 812 | "w": 1 813 | }, 814 | "_skewX": 0, 815 | "_skewY": 0, 816 | "groupIndex": 0, 817 | "_id": "2exFBPWMpEx7fjB/07OZq6" 818 | }, 819 | { 820 | "__type__": "cc.Node", 821 | "_name": "rball", 822 | "_objFlags": 0, 823 | "_parent": { 824 | "__id__": 19 825 | }, 826 | "_children": [], 827 | "_active": true, 828 | "_level": 3, 829 | "_components": [ 830 | { 831 | "__id__": 21 832 | }, 833 | { 834 | "__id__": 22 835 | }, 836 | { 837 | "__id__": 23 838 | } 839 | ], 840 | "_prefab": { 841 | "__id__": 24 842 | }, 843 | "_opacity": 255, 844 | "_color": { 845 | "__type__": "cc.Color", 846 | "r": 255, 847 | "g": 255, 848 | "b": 255, 849 | "a": 255 850 | }, 851 | "_contentSize": { 852 | "__type__": "cc.Size", 853 | "width": 36, 854 | "height": 36 855 | }, 856 | "_anchorPoint": { 857 | "__type__": "cc.Vec2", 858 | "x": 0.5, 859 | "y": 0.5 860 | }, 861 | "_position": { 862 | "__type__": "cc.Vec3", 863 | "x": -18, 864 | "y": 273, 865 | "z": 0 866 | }, 867 | "_scale": { 868 | "__type__": "cc.Vec3", 869 | "x": 1, 870 | "y": 1, 871 | "z": 1 872 | }, 873 | "_rotationX": 0, 874 | "_rotationY": 0, 875 | "_quat": { 876 | "__type__": "cc.Quat", 877 | "x": 0, 878 | "y": 0, 879 | "z": 0, 880 | "w": 1 881 | }, 882 | "_skewX": 0, 883 | "_skewY": 0, 884 | "groupIndex": 0, 885 | "_id": "beEAdl2bhDT76FAQYqIuW4" 886 | }, 887 | { 888 | "__type__": "cc.Sprite", 889 | "_name": "", 890 | "_objFlags": 0, 891 | "node": { 892 | "__id__": 20 893 | }, 894 | "_enabled": true, 895 | "_spriteFrame": { 896 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 897 | }, 898 | "_type": 0, 899 | "_sizeMode": 0, 900 | "_fillType": 0, 901 | "_fillCenter": { 902 | "__type__": "cc.Vec2", 903 | "x": 0, 904 | "y": 0 905 | }, 906 | "_fillStart": 0, 907 | "_fillRange": 0, 908 | "_isTrimmedMode": true, 909 | "_state": 0, 910 | "_atlas": { 911 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 912 | }, 913 | "_srcBlendFactor": 770, 914 | "_dstBlendFactor": 771, 915 | "_id": "e6sCeE8aVB95BTpHxaJrfl" 916 | }, 917 | { 918 | "__type__": "cc.RigidBody", 919 | "_name": "", 920 | "_objFlags": 0, 921 | "node": { 922 | "__id__": 20 923 | }, 924 | "_enabled": true, 925 | "_type": 2, 926 | "_allowSleep": true, 927 | "_gravityScale": 1, 928 | "_linearDamping": 1.2, 929 | "_angularDamping": 0.8, 930 | "_linearVelocity": { 931 | "__type__": "cc.Vec2", 932 | "x": 0, 933 | "y": 0 934 | }, 935 | "_angularVelocity": 0, 936 | "_fixedRotation": false, 937 | "enabledContactListener": false, 938 | "bullet": true, 939 | "awakeOnLoad": true, 940 | "_id": "e9myWTjkpF4JXFKIwEsD9p" 941 | }, 942 | { 943 | "__type__": "cc.PhysicsCircleCollider", 944 | "_name": "", 945 | "_objFlags": 0, 946 | "node": { 947 | "__id__": 20 948 | }, 949 | "_enabled": true, 950 | "tag": 0, 951 | "_density": 5, 952 | "_sensor": false, 953 | "_friction": 0.2, 954 | "_restitution": 0.7, 955 | "body": null, 956 | "_offset": { 957 | "__type__": "cc.Vec2", 958 | "x": 0, 959 | "y": 0 960 | }, 961 | "_radius": 18, 962 | "_id": "28VYiKZ91FqZoTu8K27aMP" 963 | }, 964 | { 965 | "__type__": "cc.PrefabInfo", 966 | "root": { 967 | "__id__": 19 968 | }, 969 | "asset": { 970 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 971 | }, 972 | "fileId": "beEAdl2bhDT76FAQYqIuW4", 973 | "sync": false 974 | }, 975 | { 976 | "__type__": "cc.Node", 977 | "_name": "rball", 978 | "_objFlags": 0, 979 | "_parent": { 980 | "__id__": 19 981 | }, 982 | "_children": [], 983 | "_active": true, 984 | "_level": 3, 985 | "_components": [ 986 | { 987 | "__id__": 26 988 | }, 989 | { 990 | "__id__": 27 991 | }, 992 | { 993 | "__id__": 28 994 | } 995 | ], 996 | "_prefab": { 997 | "__id__": 29 998 | }, 999 | "_opacity": 255, 1000 | "_color": { 1001 | "__type__": "cc.Color", 1002 | "r": 255, 1003 | "g": 255, 1004 | "b": 255, 1005 | "a": 255 1006 | }, 1007 | "_contentSize": { 1008 | "__type__": "cc.Size", 1009 | "width": 36, 1010 | "height": 36 1011 | }, 1012 | "_anchorPoint": { 1013 | "__type__": "cc.Vec2", 1014 | "x": 0.5, 1015 | "y": 0.5 1016 | }, 1017 | "_position": { 1018 | "__type__": "cc.Vec3", 1019 | "x": 18, 1020 | "y": 273, 1021 | "z": 0 1022 | }, 1023 | "_scale": { 1024 | "__type__": "cc.Vec3", 1025 | "x": 1, 1026 | "y": 1, 1027 | "z": 1 1028 | }, 1029 | "_rotationX": 0, 1030 | "_rotationY": 0, 1031 | "_quat": { 1032 | "__type__": "cc.Quat", 1033 | "x": 0, 1034 | "y": 0, 1035 | "z": 0, 1036 | "w": 1 1037 | }, 1038 | "_skewX": 0, 1039 | "_skewY": 0, 1040 | "groupIndex": 0, 1041 | "_id": "d4NgxSCOpAZY/KKQw9EJOz" 1042 | }, 1043 | { 1044 | "__type__": "cc.Sprite", 1045 | "_name": "", 1046 | "_objFlags": 0, 1047 | "node": { 1048 | "__id__": 25 1049 | }, 1050 | "_enabled": true, 1051 | "_spriteFrame": { 1052 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 1053 | }, 1054 | "_type": 0, 1055 | "_sizeMode": 0, 1056 | "_fillType": 0, 1057 | "_fillCenter": { 1058 | "__type__": "cc.Vec2", 1059 | "x": 0, 1060 | "y": 0 1061 | }, 1062 | "_fillStart": 0, 1063 | "_fillRange": 0, 1064 | "_isTrimmedMode": true, 1065 | "_state": 0, 1066 | "_atlas": { 1067 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 1068 | }, 1069 | "_srcBlendFactor": 770, 1070 | "_dstBlendFactor": 771, 1071 | "_id": "8aUf/8TIxI1oeTHu9BSo13" 1072 | }, 1073 | { 1074 | "__type__": "cc.RigidBody", 1075 | "_name": "", 1076 | "_objFlags": 0, 1077 | "node": { 1078 | "__id__": 25 1079 | }, 1080 | "_enabled": true, 1081 | "_type": 2, 1082 | "_allowSleep": true, 1083 | "_gravityScale": 1, 1084 | "_linearDamping": 1.2, 1085 | "_angularDamping": 0.8, 1086 | "_linearVelocity": { 1087 | "__type__": "cc.Vec2", 1088 | "x": 0, 1089 | "y": 0 1090 | }, 1091 | "_angularVelocity": 0, 1092 | "_fixedRotation": false, 1093 | "enabledContactListener": false, 1094 | "bullet": true, 1095 | "awakeOnLoad": true, 1096 | "_id": "32MR9nnvpDs6ObklpwaxES" 1097 | }, 1098 | { 1099 | "__type__": "cc.PhysicsCircleCollider", 1100 | "_name": "", 1101 | "_objFlags": 0, 1102 | "node": { 1103 | "__id__": 25 1104 | }, 1105 | "_enabled": true, 1106 | "tag": 0, 1107 | "_density": 5, 1108 | "_sensor": false, 1109 | "_friction": 0.2, 1110 | "_restitution": 0.7, 1111 | "body": null, 1112 | "_offset": { 1113 | "__type__": "cc.Vec2", 1114 | "x": 0, 1115 | "y": 0 1116 | }, 1117 | "_radius": 18, 1118 | "_id": "76hB0rK8FGBo8Zjb0IGTn8" 1119 | }, 1120 | { 1121 | "__type__": "cc.PrefabInfo", 1122 | "root": { 1123 | "__id__": 19 1124 | }, 1125 | "asset": { 1126 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 1127 | }, 1128 | "fileId": "d4NgxSCOpAZY/KKQw9EJOz", 1129 | "sync": false 1130 | }, 1131 | { 1132 | "__type__": "cc.Node", 1133 | "_name": "rball", 1134 | "_objFlags": 0, 1135 | "_parent": { 1136 | "__id__": 19 1137 | }, 1138 | "_children": [], 1139 | "_active": true, 1140 | "_level": 3, 1141 | "_components": [ 1142 | { 1143 | "__id__": 31 1144 | }, 1145 | { 1146 | "__id__": 32 1147 | }, 1148 | { 1149 | "__id__": 33 1150 | } 1151 | ], 1152 | "_prefab": { 1153 | "__id__": 34 1154 | }, 1155 | "_opacity": 255, 1156 | "_color": { 1157 | "__type__": "cc.Color", 1158 | "r": 255, 1159 | "g": 255, 1160 | "b": 255, 1161 | "a": 255 1162 | }, 1163 | "_contentSize": { 1164 | "__type__": "cc.Size", 1165 | "width": 36, 1166 | "height": 36 1167 | }, 1168 | "_anchorPoint": { 1169 | "__type__": "cc.Vec2", 1170 | "x": 0.5, 1171 | "y": 0.5 1172 | }, 1173 | "_position": { 1174 | "__type__": "cc.Vec3", 1175 | "x": 54, 1176 | "y": 273, 1177 | "z": 0 1178 | }, 1179 | "_scale": { 1180 | "__type__": "cc.Vec3", 1181 | "x": 1, 1182 | "y": 1, 1183 | "z": 1 1184 | }, 1185 | "_rotationX": 0, 1186 | "_rotationY": 0, 1187 | "_quat": { 1188 | "__type__": "cc.Quat", 1189 | "x": 0, 1190 | "y": 0, 1191 | "z": 0, 1192 | "w": 1 1193 | }, 1194 | "_skewX": 0, 1195 | "_skewY": 0, 1196 | "groupIndex": 0, 1197 | "_id": "9eW7Wb4nhI8aiTMj7vglRl" 1198 | }, 1199 | { 1200 | "__type__": "cc.Sprite", 1201 | "_name": "", 1202 | "_objFlags": 0, 1203 | "node": { 1204 | "__id__": 30 1205 | }, 1206 | "_enabled": true, 1207 | "_spriteFrame": { 1208 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 1209 | }, 1210 | "_type": 0, 1211 | "_sizeMode": 0, 1212 | "_fillType": 0, 1213 | "_fillCenter": { 1214 | "__type__": "cc.Vec2", 1215 | "x": 0, 1216 | "y": 0 1217 | }, 1218 | "_fillStart": 0, 1219 | "_fillRange": 0, 1220 | "_isTrimmedMode": true, 1221 | "_state": 0, 1222 | "_atlas": { 1223 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 1224 | }, 1225 | "_srcBlendFactor": 770, 1226 | "_dstBlendFactor": 771, 1227 | "_id": "6a5n+NuzpLEqKJKGg4Axya" 1228 | }, 1229 | { 1230 | "__type__": "cc.RigidBody", 1231 | "_name": "", 1232 | "_objFlags": 0, 1233 | "node": { 1234 | "__id__": 30 1235 | }, 1236 | "_enabled": true, 1237 | "_type": 2, 1238 | "_allowSleep": true, 1239 | "_gravityScale": 1, 1240 | "_linearDamping": 1.2, 1241 | "_angularDamping": 0.8, 1242 | "_linearVelocity": { 1243 | "__type__": "cc.Vec2", 1244 | "x": 0, 1245 | "y": 0 1246 | }, 1247 | "_angularVelocity": 0, 1248 | "_fixedRotation": false, 1249 | "enabledContactListener": false, 1250 | "bullet": true, 1251 | "awakeOnLoad": true, 1252 | "_id": "eam41CfiVEeqYPT150TS/U" 1253 | }, 1254 | { 1255 | "__type__": "cc.PhysicsCircleCollider", 1256 | "_name": "", 1257 | "_objFlags": 0, 1258 | "node": { 1259 | "__id__": 30 1260 | }, 1261 | "_enabled": true, 1262 | "tag": 0, 1263 | "_density": 5, 1264 | "_sensor": false, 1265 | "_friction": 0.2, 1266 | "_restitution": 0.7, 1267 | "body": null, 1268 | "_offset": { 1269 | "__type__": "cc.Vec2", 1270 | "x": 0, 1271 | "y": 0 1272 | }, 1273 | "_radius": 18, 1274 | "_id": "233AaQ5GZMN5k/B5mkastW" 1275 | }, 1276 | { 1277 | "__type__": "cc.PrefabInfo", 1278 | "root": { 1279 | "__id__": 19 1280 | }, 1281 | "asset": { 1282 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 1283 | }, 1284 | "fileId": "9eW7Wb4nhI8aiTMj7vglRl", 1285 | "sync": false 1286 | }, 1287 | { 1288 | "__type__": "cc.Node", 1289 | "_name": "rball", 1290 | "_objFlags": 0, 1291 | "_parent": { 1292 | "__id__": 19 1293 | }, 1294 | "_children": [], 1295 | "_active": true, 1296 | "_level": 3, 1297 | "_components": [ 1298 | { 1299 | "__id__": 36 1300 | }, 1301 | { 1302 | "__id__": 37 1303 | }, 1304 | { 1305 | "__id__": 38 1306 | } 1307 | ], 1308 | "_prefab": { 1309 | "__id__": 39 1310 | }, 1311 | "_opacity": 255, 1312 | "_color": { 1313 | "__type__": "cc.Color", 1314 | "r": 255, 1315 | "g": 255, 1316 | "b": 255, 1317 | "a": 255 1318 | }, 1319 | "_contentSize": { 1320 | "__type__": "cc.Size", 1321 | "width": 36, 1322 | "height": 36 1323 | }, 1324 | "_anchorPoint": { 1325 | "__type__": "cc.Vec2", 1326 | "x": 0.5, 1327 | "y": 0.5 1328 | }, 1329 | "_position": { 1330 | "__type__": "cc.Vec3", 1331 | "x": -54, 1332 | "y": 273, 1333 | "z": 0 1334 | }, 1335 | "_scale": { 1336 | "__type__": "cc.Vec3", 1337 | "x": 1, 1338 | "y": 1, 1339 | "z": 1 1340 | }, 1341 | "_rotationX": 0, 1342 | "_rotationY": 0, 1343 | "_quat": { 1344 | "__type__": "cc.Quat", 1345 | "x": 0, 1346 | "y": 0, 1347 | "z": 0, 1348 | "w": 1 1349 | }, 1350 | "_skewX": 0, 1351 | "_skewY": 0, 1352 | "groupIndex": 0, 1353 | "_id": "5aT6vb8ohN5IqOtdOnDAY3" 1354 | }, 1355 | { 1356 | "__type__": "cc.Sprite", 1357 | "_name": "", 1358 | "_objFlags": 0, 1359 | "node": { 1360 | "__id__": 35 1361 | }, 1362 | "_enabled": true, 1363 | "_spriteFrame": { 1364 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 1365 | }, 1366 | "_type": 0, 1367 | "_sizeMode": 0, 1368 | "_fillType": 0, 1369 | "_fillCenter": { 1370 | "__type__": "cc.Vec2", 1371 | "x": 0, 1372 | "y": 0 1373 | }, 1374 | "_fillStart": 0, 1375 | "_fillRange": 0, 1376 | "_isTrimmedMode": true, 1377 | "_state": 0, 1378 | "_atlas": { 1379 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 1380 | }, 1381 | "_srcBlendFactor": 770, 1382 | "_dstBlendFactor": 771, 1383 | "_id": "b5NFzwT+dAU59Wa56JQN4j" 1384 | }, 1385 | { 1386 | "__type__": "cc.RigidBody", 1387 | "_name": "", 1388 | "_objFlags": 0, 1389 | "node": { 1390 | "__id__": 35 1391 | }, 1392 | "_enabled": true, 1393 | "_type": 2, 1394 | "_allowSleep": true, 1395 | "_gravityScale": 1, 1396 | "_linearDamping": 1.2, 1397 | "_angularDamping": 0.8, 1398 | "_linearVelocity": { 1399 | "__type__": "cc.Vec2", 1400 | "x": 0, 1401 | "y": 0 1402 | }, 1403 | "_angularVelocity": 0, 1404 | "_fixedRotation": false, 1405 | "enabledContactListener": false, 1406 | "bullet": true, 1407 | "awakeOnLoad": true, 1408 | "_id": "42cPwD65VKlZm3l1YqURDa" 1409 | }, 1410 | { 1411 | "__type__": "cc.PhysicsCircleCollider", 1412 | "_name": "", 1413 | "_objFlags": 0, 1414 | "node": { 1415 | "__id__": 35 1416 | }, 1417 | "_enabled": true, 1418 | "tag": 0, 1419 | "_density": 5, 1420 | "_sensor": false, 1421 | "_friction": 0.2, 1422 | "_restitution": 0.7, 1423 | "body": null, 1424 | "_offset": { 1425 | "__type__": "cc.Vec2", 1426 | "x": 0, 1427 | "y": 0 1428 | }, 1429 | "_radius": 18, 1430 | "_id": "f1d7a1OIxA+qCQRrW/xol0" 1431 | }, 1432 | { 1433 | "__type__": "cc.PrefabInfo", 1434 | "root": { 1435 | "__id__": 19 1436 | }, 1437 | "asset": { 1438 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 1439 | }, 1440 | "fileId": "5aT6vb8ohN5IqOtdOnDAY3", 1441 | "sync": false 1442 | }, 1443 | { 1444 | "__type__": "cc.Node", 1445 | "_name": "rball", 1446 | "_objFlags": 0, 1447 | "_parent": { 1448 | "__id__": 19 1449 | }, 1450 | "_children": [], 1451 | "_active": true, 1452 | "_level": 3, 1453 | "_components": [ 1454 | { 1455 | "__id__": 41 1456 | }, 1457 | { 1458 | "__id__": 42 1459 | }, 1460 | { 1461 | "__id__": 43 1462 | } 1463 | ], 1464 | "_prefab": { 1465 | "__id__": 44 1466 | }, 1467 | "_opacity": 255, 1468 | "_color": { 1469 | "__type__": "cc.Color", 1470 | "r": 255, 1471 | "g": 255, 1472 | "b": 255, 1473 | "a": 255 1474 | }, 1475 | "_contentSize": { 1476 | "__type__": "cc.Size", 1477 | "width": 36, 1478 | "height": 36 1479 | }, 1480 | "_anchorPoint": { 1481 | "__type__": "cc.Vec2", 1482 | "x": 0.5, 1483 | "y": 0.5 1484 | }, 1485 | "_position": { 1486 | "__type__": "cc.Vec3", 1487 | "x": -36, 1488 | "y": 239, 1489 | "z": 0 1490 | }, 1491 | "_scale": { 1492 | "__type__": "cc.Vec3", 1493 | "x": 1, 1494 | "y": 1, 1495 | "z": 1 1496 | }, 1497 | "_rotationX": 0, 1498 | "_rotationY": 0, 1499 | "_quat": { 1500 | "__type__": "cc.Quat", 1501 | "x": 0, 1502 | "y": 0, 1503 | "z": 0, 1504 | "w": 1 1505 | }, 1506 | "_skewX": 0, 1507 | "_skewY": 0, 1508 | "groupIndex": 0, 1509 | "_id": "4eyV8WLCFESJ28xLlkuu6o" 1510 | }, 1511 | { 1512 | "__type__": "cc.Sprite", 1513 | "_name": "", 1514 | "_objFlags": 0, 1515 | "node": { 1516 | "__id__": 40 1517 | }, 1518 | "_enabled": true, 1519 | "_spriteFrame": { 1520 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 1521 | }, 1522 | "_type": 0, 1523 | "_sizeMode": 0, 1524 | "_fillType": 0, 1525 | "_fillCenter": { 1526 | "__type__": "cc.Vec2", 1527 | "x": 0, 1528 | "y": 0 1529 | }, 1530 | "_fillStart": 0, 1531 | "_fillRange": 0, 1532 | "_isTrimmedMode": true, 1533 | "_state": 0, 1534 | "_atlas": { 1535 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 1536 | }, 1537 | "_srcBlendFactor": 770, 1538 | "_dstBlendFactor": 771, 1539 | "_id": "73nUtQLS9JG7TfWQBr/+eS" 1540 | }, 1541 | { 1542 | "__type__": "cc.RigidBody", 1543 | "_name": "", 1544 | "_objFlags": 0, 1545 | "node": { 1546 | "__id__": 40 1547 | }, 1548 | "_enabled": true, 1549 | "_type": 2, 1550 | "_allowSleep": true, 1551 | "_gravityScale": 1, 1552 | "_linearDamping": 1.2, 1553 | "_angularDamping": 0.8, 1554 | "_linearVelocity": { 1555 | "__type__": "cc.Vec2", 1556 | "x": 0, 1557 | "y": 0 1558 | }, 1559 | "_angularVelocity": 0, 1560 | "_fixedRotation": false, 1561 | "enabledContactListener": false, 1562 | "bullet": true, 1563 | "awakeOnLoad": true, 1564 | "_id": "1eQXfttUxOILdsWrU8ysf0" 1565 | }, 1566 | { 1567 | "__type__": "cc.PhysicsCircleCollider", 1568 | "_name": "", 1569 | "_objFlags": 0, 1570 | "node": { 1571 | "__id__": 40 1572 | }, 1573 | "_enabled": true, 1574 | "tag": 0, 1575 | "_density": 5, 1576 | "_sensor": false, 1577 | "_friction": 0.2, 1578 | "_restitution": 0.7, 1579 | "body": null, 1580 | "_offset": { 1581 | "__type__": "cc.Vec2", 1582 | "x": 0, 1583 | "y": 0 1584 | }, 1585 | "_radius": 18, 1586 | "_id": "a8sbcoEuNOLKpAgaPBFrms" 1587 | }, 1588 | { 1589 | "__type__": "cc.PrefabInfo", 1590 | "root": { 1591 | "__id__": 19 1592 | }, 1593 | "asset": { 1594 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 1595 | }, 1596 | "fileId": "4eyV8WLCFESJ28xLlkuu6o", 1597 | "sync": false 1598 | }, 1599 | { 1600 | "__type__": "cc.Node", 1601 | "_name": "rball", 1602 | "_objFlags": 0, 1603 | "_parent": { 1604 | "__id__": 19 1605 | }, 1606 | "_children": [], 1607 | "_active": true, 1608 | "_level": 3, 1609 | "_components": [ 1610 | { 1611 | "__id__": 46 1612 | }, 1613 | { 1614 | "__id__": 47 1615 | }, 1616 | { 1617 | "__id__": 48 1618 | } 1619 | ], 1620 | "_prefab": { 1621 | "__id__": 49 1622 | }, 1623 | "_opacity": 255, 1624 | "_color": { 1625 | "__type__": "cc.Color", 1626 | "r": 255, 1627 | "g": 255, 1628 | "b": 255, 1629 | "a": 255 1630 | }, 1631 | "_contentSize": { 1632 | "__type__": "cc.Size", 1633 | "width": 36, 1634 | "height": 36 1635 | }, 1636 | "_anchorPoint": { 1637 | "__type__": "cc.Vec2", 1638 | "x": 0.5, 1639 | "y": 0.5 1640 | }, 1641 | "_position": { 1642 | "__type__": "cc.Vec3", 1643 | "x": 0, 1644 | "y": 239, 1645 | "z": 0 1646 | }, 1647 | "_scale": { 1648 | "__type__": "cc.Vec3", 1649 | "x": 1, 1650 | "y": 1, 1651 | "z": 1 1652 | }, 1653 | "_rotationX": 0, 1654 | "_rotationY": 0, 1655 | "_quat": { 1656 | "__type__": "cc.Quat", 1657 | "x": 0, 1658 | "y": 0, 1659 | "z": 0, 1660 | "w": 1 1661 | }, 1662 | "_skewX": 0, 1663 | "_skewY": 0, 1664 | "groupIndex": 0, 1665 | "_id": "7ey+dvMnJKfqDr6o+L0DIX" 1666 | }, 1667 | { 1668 | "__type__": "cc.Sprite", 1669 | "_name": "", 1670 | "_objFlags": 0, 1671 | "node": { 1672 | "__id__": 45 1673 | }, 1674 | "_enabled": true, 1675 | "_spriteFrame": { 1676 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 1677 | }, 1678 | "_type": 0, 1679 | "_sizeMode": 0, 1680 | "_fillType": 0, 1681 | "_fillCenter": { 1682 | "__type__": "cc.Vec2", 1683 | "x": 0, 1684 | "y": 0 1685 | }, 1686 | "_fillStart": 0, 1687 | "_fillRange": 0, 1688 | "_isTrimmedMode": true, 1689 | "_state": 0, 1690 | "_atlas": { 1691 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 1692 | }, 1693 | "_srcBlendFactor": 770, 1694 | "_dstBlendFactor": 771, 1695 | "_id": "1cMCBBpbtGWJgk4Kp1Cqfn" 1696 | }, 1697 | { 1698 | "__type__": "cc.RigidBody", 1699 | "_name": "", 1700 | "_objFlags": 0, 1701 | "node": { 1702 | "__id__": 45 1703 | }, 1704 | "_enabled": true, 1705 | "_type": 2, 1706 | "_allowSleep": true, 1707 | "_gravityScale": 1, 1708 | "_linearDamping": 1.2, 1709 | "_angularDamping": 0.8, 1710 | "_linearVelocity": { 1711 | "__type__": "cc.Vec2", 1712 | "x": 0, 1713 | "y": 0 1714 | }, 1715 | "_angularVelocity": 0, 1716 | "_fixedRotation": false, 1717 | "enabledContactListener": false, 1718 | "bullet": true, 1719 | "awakeOnLoad": true, 1720 | "_id": "0flyiFMOdLKo7i77MgcDgR" 1721 | }, 1722 | { 1723 | "__type__": "cc.PhysicsCircleCollider", 1724 | "_name": "", 1725 | "_objFlags": 0, 1726 | "node": { 1727 | "__id__": 45 1728 | }, 1729 | "_enabled": true, 1730 | "tag": 0, 1731 | "_density": 5, 1732 | "_sensor": false, 1733 | "_friction": 0.2, 1734 | "_restitution": 0.7, 1735 | "body": null, 1736 | "_offset": { 1737 | "__type__": "cc.Vec2", 1738 | "x": 0, 1739 | "y": 0 1740 | }, 1741 | "_radius": 18, 1742 | "_id": "a7Vi5b7kpAPaaQLTVvfNqY" 1743 | }, 1744 | { 1745 | "__type__": "cc.PrefabInfo", 1746 | "root": { 1747 | "__id__": 19 1748 | }, 1749 | "asset": { 1750 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 1751 | }, 1752 | "fileId": "7ey+dvMnJKfqDr6o+L0DIX", 1753 | "sync": false 1754 | }, 1755 | { 1756 | "__type__": "cc.Node", 1757 | "_name": "rball", 1758 | "_objFlags": 0, 1759 | "_parent": { 1760 | "__id__": 19 1761 | }, 1762 | "_children": [], 1763 | "_active": true, 1764 | "_level": 3, 1765 | "_components": [ 1766 | { 1767 | "__id__": 51 1768 | }, 1769 | { 1770 | "__id__": 52 1771 | }, 1772 | { 1773 | "__id__": 53 1774 | } 1775 | ], 1776 | "_prefab": { 1777 | "__id__": 54 1778 | }, 1779 | "_opacity": 255, 1780 | "_color": { 1781 | "__type__": "cc.Color", 1782 | "r": 255, 1783 | "g": 255, 1784 | "b": 255, 1785 | "a": 255 1786 | }, 1787 | "_contentSize": { 1788 | "__type__": "cc.Size", 1789 | "width": 36, 1790 | "height": 36 1791 | }, 1792 | "_anchorPoint": { 1793 | "__type__": "cc.Vec2", 1794 | "x": 0.5, 1795 | "y": 0.5 1796 | }, 1797 | "_position": { 1798 | "__type__": "cc.Vec3", 1799 | "x": 36, 1800 | "y": 239, 1801 | "z": 0 1802 | }, 1803 | "_scale": { 1804 | "__type__": "cc.Vec3", 1805 | "x": 1, 1806 | "y": 1, 1807 | "z": 1 1808 | }, 1809 | "_rotationX": 0, 1810 | "_rotationY": 0, 1811 | "_quat": { 1812 | "__type__": "cc.Quat", 1813 | "x": 0, 1814 | "y": 0, 1815 | "z": 0, 1816 | "w": 1 1817 | }, 1818 | "_skewX": 0, 1819 | "_skewY": 0, 1820 | "groupIndex": 0, 1821 | "_id": "f6j8zN7ZhDA4EJf1FoUuJo" 1822 | }, 1823 | { 1824 | "__type__": "cc.Sprite", 1825 | "_name": "", 1826 | "_objFlags": 0, 1827 | "node": { 1828 | "__id__": 50 1829 | }, 1830 | "_enabled": true, 1831 | "_spriteFrame": { 1832 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 1833 | }, 1834 | "_type": 0, 1835 | "_sizeMode": 0, 1836 | "_fillType": 0, 1837 | "_fillCenter": { 1838 | "__type__": "cc.Vec2", 1839 | "x": 0, 1840 | "y": 0 1841 | }, 1842 | "_fillStart": 0, 1843 | "_fillRange": 0, 1844 | "_isTrimmedMode": true, 1845 | "_state": 0, 1846 | "_atlas": { 1847 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 1848 | }, 1849 | "_srcBlendFactor": 770, 1850 | "_dstBlendFactor": 771, 1851 | "_id": "860Y929olH7L4AtJHz19FK" 1852 | }, 1853 | { 1854 | "__type__": "cc.RigidBody", 1855 | "_name": "", 1856 | "_objFlags": 0, 1857 | "node": { 1858 | "__id__": 50 1859 | }, 1860 | "_enabled": true, 1861 | "_type": 2, 1862 | "_allowSleep": true, 1863 | "_gravityScale": 1, 1864 | "_linearDamping": 1.2, 1865 | "_angularDamping": 0.8, 1866 | "_linearVelocity": { 1867 | "__type__": "cc.Vec2", 1868 | "x": 0, 1869 | "y": 0 1870 | }, 1871 | "_angularVelocity": 0, 1872 | "_fixedRotation": false, 1873 | "enabledContactListener": false, 1874 | "bullet": true, 1875 | "awakeOnLoad": true, 1876 | "_id": "17/91MpqJIGbRk6rYBKxP7" 1877 | }, 1878 | { 1879 | "__type__": "cc.PhysicsCircleCollider", 1880 | "_name": "", 1881 | "_objFlags": 0, 1882 | "node": { 1883 | "__id__": 50 1884 | }, 1885 | "_enabled": true, 1886 | "tag": 0, 1887 | "_density": 5, 1888 | "_sensor": false, 1889 | "_friction": 0.2, 1890 | "_restitution": 0.7, 1891 | "body": null, 1892 | "_offset": { 1893 | "__type__": "cc.Vec2", 1894 | "x": 0, 1895 | "y": 0 1896 | }, 1897 | "_radius": 18, 1898 | "_id": "c9s5XJar9PIa9fRt05sQk/" 1899 | }, 1900 | { 1901 | "__type__": "cc.PrefabInfo", 1902 | "root": { 1903 | "__id__": 19 1904 | }, 1905 | "asset": { 1906 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 1907 | }, 1908 | "fileId": "f6j8zN7ZhDA4EJf1FoUuJo", 1909 | "sync": false 1910 | }, 1911 | { 1912 | "__type__": "cc.Node", 1913 | "_name": "rball", 1914 | "_objFlags": 0, 1915 | "_parent": { 1916 | "__id__": 19 1917 | }, 1918 | "_children": [], 1919 | "_active": true, 1920 | "_level": 3, 1921 | "_components": [ 1922 | { 1923 | "__id__": 56 1924 | }, 1925 | { 1926 | "__id__": 57 1927 | }, 1928 | { 1929 | "__id__": 58 1930 | } 1931 | ], 1932 | "_prefab": { 1933 | "__id__": 59 1934 | }, 1935 | "_opacity": 255, 1936 | "_color": { 1937 | "__type__": "cc.Color", 1938 | "r": 255, 1939 | "g": 255, 1940 | "b": 255, 1941 | "a": 255 1942 | }, 1943 | "_contentSize": { 1944 | "__type__": "cc.Size", 1945 | "width": 36, 1946 | "height": 36 1947 | }, 1948 | "_anchorPoint": { 1949 | "__type__": "cc.Vec2", 1950 | "x": 0.5, 1951 | "y": 0.5 1952 | }, 1953 | "_position": { 1954 | "__type__": "cc.Vec3", 1955 | "x": 18, 1956 | "y": 204, 1957 | "z": 0 1958 | }, 1959 | "_scale": { 1960 | "__type__": "cc.Vec3", 1961 | "x": 1, 1962 | "y": 1, 1963 | "z": 1 1964 | }, 1965 | "_rotationX": 0, 1966 | "_rotationY": 0, 1967 | "_quat": { 1968 | "__type__": "cc.Quat", 1969 | "x": 0, 1970 | "y": 0, 1971 | "z": 0, 1972 | "w": 1 1973 | }, 1974 | "_skewX": 0, 1975 | "_skewY": 0, 1976 | "groupIndex": 0, 1977 | "_id": "81LKckbi9B+7j++caE2L/k" 1978 | }, 1979 | { 1980 | "__type__": "cc.Sprite", 1981 | "_name": "", 1982 | "_objFlags": 0, 1983 | "node": { 1984 | "__id__": 55 1985 | }, 1986 | "_enabled": true, 1987 | "_spriteFrame": { 1988 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 1989 | }, 1990 | "_type": 0, 1991 | "_sizeMode": 0, 1992 | "_fillType": 0, 1993 | "_fillCenter": { 1994 | "__type__": "cc.Vec2", 1995 | "x": 0, 1996 | "y": 0 1997 | }, 1998 | "_fillStart": 0, 1999 | "_fillRange": 0, 2000 | "_isTrimmedMode": true, 2001 | "_state": 0, 2002 | "_atlas": { 2003 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 2004 | }, 2005 | "_srcBlendFactor": 770, 2006 | "_dstBlendFactor": 771, 2007 | "_id": "a9tGLPygtElIenPHI0bvie" 2008 | }, 2009 | { 2010 | "__type__": "cc.RigidBody", 2011 | "_name": "", 2012 | "_objFlags": 0, 2013 | "node": { 2014 | "__id__": 55 2015 | }, 2016 | "_enabled": true, 2017 | "_type": 2, 2018 | "_allowSleep": true, 2019 | "_gravityScale": 1, 2020 | "_linearDamping": 1.2, 2021 | "_angularDamping": 0.8, 2022 | "_linearVelocity": { 2023 | "__type__": "cc.Vec2", 2024 | "x": 0, 2025 | "y": 0 2026 | }, 2027 | "_angularVelocity": 0, 2028 | "_fixedRotation": false, 2029 | "enabledContactListener": false, 2030 | "bullet": true, 2031 | "awakeOnLoad": true, 2032 | "_id": "7fYQcB50ZAmbMXQPVG1pS5" 2033 | }, 2034 | { 2035 | "__type__": "cc.PhysicsCircleCollider", 2036 | "_name": "", 2037 | "_objFlags": 0, 2038 | "node": { 2039 | "__id__": 55 2040 | }, 2041 | "_enabled": true, 2042 | "tag": 0, 2043 | "_density": 5, 2044 | "_sensor": false, 2045 | "_friction": 0.2, 2046 | "_restitution": 0.7, 2047 | "body": null, 2048 | "_offset": { 2049 | "__type__": "cc.Vec2", 2050 | "x": 0, 2051 | "y": 0 2052 | }, 2053 | "_radius": 18, 2054 | "_id": "55wgv+6phLyImQHgBO0EjY" 2055 | }, 2056 | { 2057 | "__type__": "cc.PrefabInfo", 2058 | "root": { 2059 | "__id__": 19 2060 | }, 2061 | "asset": { 2062 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 2063 | }, 2064 | "fileId": "81LKckbi9B+7j++caE2L/k", 2065 | "sync": false 2066 | }, 2067 | { 2068 | "__type__": "cc.Node", 2069 | "_name": "rball", 2070 | "_objFlags": 0, 2071 | "_parent": { 2072 | "__id__": 19 2073 | }, 2074 | "_children": [], 2075 | "_active": true, 2076 | "_level": 3, 2077 | "_components": [ 2078 | { 2079 | "__id__": 61 2080 | }, 2081 | { 2082 | "__id__": 62 2083 | }, 2084 | { 2085 | "__id__": 63 2086 | } 2087 | ], 2088 | "_prefab": { 2089 | "__id__": 64 2090 | }, 2091 | "_opacity": 255, 2092 | "_color": { 2093 | "__type__": "cc.Color", 2094 | "r": 255, 2095 | "g": 255, 2096 | "b": 255, 2097 | "a": 255 2098 | }, 2099 | "_contentSize": { 2100 | "__type__": "cc.Size", 2101 | "width": 36, 2102 | "height": 36 2103 | }, 2104 | "_anchorPoint": { 2105 | "__type__": "cc.Vec2", 2106 | "x": 0.5, 2107 | "y": 0.5 2108 | }, 2109 | "_position": { 2110 | "__type__": "cc.Vec3", 2111 | "x": -18, 2112 | "y": 204, 2113 | "z": 0 2114 | }, 2115 | "_scale": { 2116 | "__type__": "cc.Vec3", 2117 | "x": 1, 2118 | "y": 1, 2119 | "z": 1 2120 | }, 2121 | "_rotationX": 0, 2122 | "_rotationY": 0, 2123 | "_quat": { 2124 | "__type__": "cc.Quat", 2125 | "x": 0, 2126 | "y": 0, 2127 | "z": 0, 2128 | "w": 1 2129 | }, 2130 | "_skewX": 0, 2131 | "_skewY": 0, 2132 | "groupIndex": 0, 2133 | "_id": "61T/bCGplFHqOgBuEUHrmV" 2134 | }, 2135 | { 2136 | "__type__": "cc.Sprite", 2137 | "_name": "", 2138 | "_objFlags": 0, 2139 | "node": { 2140 | "__id__": 60 2141 | }, 2142 | "_enabled": true, 2143 | "_spriteFrame": { 2144 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 2145 | }, 2146 | "_type": 0, 2147 | "_sizeMode": 0, 2148 | "_fillType": 0, 2149 | "_fillCenter": { 2150 | "__type__": "cc.Vec2", 2151 | "x": 0, 2152 | "y": 0 2153 | }, 2154 | "_fillStart": 0, 2155 | "_fillRange": 0, 2156 | "_isTrimmedMode": true, 2157 | "_state": 0, 2158 | "_atlas": { 2159 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 2160 | }, 2161 | "_srcBlendFactor": 770, 2162 | "_dstBlendFactor": 771, 2163 | "_id": "4525jU1eVHMaoZdzpOirJH" 2164 | }, 2165 | { 2166 | "__type__": "cc.RigidBody", 2167 | "_name": "", 2168 | "_objFlags": 0, 2169 | "node": { 2170 | "__id__": 60 2171 | }, 2172 | "_enabled": true, 2173 | "_type": 2, 2174 | "_allowSleep": true, 2175 | "_gravityScale": 1, 2176 | "_linearDamping": 1.2, 2177 | "_angularDamping": 0.8, 2178 | "_linearVelocity": { 2179 | "__type__": "cc.Vec2", 2180 | "x": 0, 2181 | "y": 0 2182 | }, 2183 | "_angularVelocity": 0, 2184 | "_fixedRotation": false, 2185 | "enabledContactListener": false, 2186 | "bullet": true, 2187 | "awakeOnLoad": true, 2188 | "_id": "30Q1ynk4BNC7WEG4a7hRwo" 2189 | }, 2190 | { 2191 | "__type__": "cc.PhysicsCircleCollider", 2192 | "_name": "", 2193 | "_objFlags": 0, 2194 | "node": { 2195 | "__id__": 60 2196 | }, 2197 | "_enabled": true, 2198 | "tag": 0, 2199 | "_density": 5, 2200 | "_sensor": false, 2201 | "_friction": 0.2, 2202 | "_restitution": 0.7, 2203 | "body": null, 2204 | "_offset": { 2205 | "__type__": "cc.Vec2", 2206 | "x": 0, 2207 | "y": 0 2208 | }, 2209 | "_radius": 18, 2210 | "_id": "b4KX7cOLROGoI8wFCpi5SY" 2211 | }, 2212 | { 2213 | "__type__": "cc.PrefabInfo", 2214 | "root": { 2215 | "__id__": 19 2216 | }, 2217 | "asset": { 2218 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 2219 | }, 2220 | "fileId": "61T/bCGplFHqOgBuEUHrmV", 2221 | "sync": false 2222 | }, 2223 | { 2224 | "__type__": "cc.Node", 2225 | "_name": "rball", 2226 | "_objFlags": 0, 2227 | "_parent": { 2228 | "__id__": 19 2229 | }, 2230 | "_children": [], 2231 | "_active": true, 2232 | "_level": 3, 2233 | "_components": [ 2234 | { 2235 | "__id__": 66 2236 | }, 2237 | { 2238 | "__id__": 67 2239 | }, 2240 | { 2241 | "__id__": 68 2242 | } 2243 | ], 2244 | "_prefab": { 2245 | "__id__": 69 2246 | }, 2247 | "_opacity": 255, 2248 | "_color": { 2249 | "__type__": "cc.Color", 2250 | "r": 255, 2251 | "g": 255, 2252 | "b": 255, 2253 | "a": 255 2254 | }, 2255 | "_contentSize": { 2256 | "__type__": "cc.Size", 2257 | "width": 36, 2258 | "height": 36 2259 | }, 2260 | "_anchorPoint": { 2261 | "__type__": "cc.Vec2", 2262 | "x": 0.5, 2263 | "y": 0.5 2264 | }, 2265 | "_position": { 2266 | "__type__": "cc.Vec3", 2267 | "x": 0, 2268 | "y": 173, 2269 | "z": 0 2270 | }, 2271 | "_scale": { 2272 | "__type__": "cc.Vec3", 2273 | "x": 1, 2274 | "y": 1, 2275 | "z": 1 2276 | }, 2277 | "_rotationX": 0, 2278 | "_rotationY": 0, 2279 | "_quat": { 2280 | "__type__": "cc.Quat", 2281 | "x": 0, 2282 | "y": 0, 2283 | "z": 0, 2284 | "w": 1 2285 | }, 2286 | "_skewX": 0, 2287 | "_skewY": 0, 2288 | "groupIndex": 0, 2289 | "_id": "38OopD+TlGoZkwfdFzg1oe" 2290 | }, 2291 | { 2292 | "__type__": "cc.Sprite", 2293 | "_name": "", 2294 | "_objFlags": 0, 2295 | "node": { 2296 | "__id__": 65 2297 | }, 2298 | "_enabled": true, 2299 | "_spriteFrame": { 2300 | "__uuid__": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd" 2301 | }, 2302 | "_type": 0, 2303 | "_sizeMode": 0, 2304 | "_fillType": 0, 2305 | "_fillCenter": { 2306 | "__type__": "cc.Vec2", 2307 | "x": 0, 2308 | "y": 0 2309 | }, 2310 | "_fillStart": 0, 2311 | "_fillRange": 0, 2312 | "_isTrimmedMode": true, 2313 | "_state": 0, 2314 | "_atlas": { 2315 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 2316 | }, 2317 | "_srcBlendFactor": 770, 2318 | "_dstBlendFactor": 771, 2319 | "_id": "44DFFXmx5FUandiFRqoweG" 2320 | }, 2321 | { 2322 | "__type__": "cc.RigidBody", 2323 | "_name": "", 2324 | "_objFlags": 0, 2325 | "node": { 2326 | "__id__": 65 2327 | }, 2328 | "_enabled": true, 2329 | "_type": 2, 2330 | "_allowSleep": true, 2331 | "_gravityScale": 1, 2332 | "_linearDamping": 1.2, 2333 | "_angularDamping": 0.8, 2334 | "_linearVelocity": { 2335 | "__type__": "cc.Vec2", 2336 | "x": 0, 2337 | "y": 0 2338 | }, 2339 | "_angularVelocity": 0, 2340 | "_fixedRotation": false, 2341 | "enabledContactListener": false, 2342 | "bullet": true, 2343 | "awakeOnLoad": true, 2344 | "_id": "f8Wph/Is5PfrTOU8sulee7" 2345 | }, 2346 | { 2347 | "__type__": "cc.PhysicsCircleCollider", 2348 | "_name": "", 2349 | "_objFlags": 0, 2350 | "node": { 2351 | "__id__": 65 2352 | }, 2353 | "_enabled": true, 2354 | "tag": 0, 2355 | "_density": 5, 2356 | "_sensor": false, 2357 | "_friction": 0.2, 2358 | "_restitution": 0.7, 2359 | "body": null, 2360 | "_offset": { 2361 | "__type__": "cc.Vec2", 2362 | "x": 0, 2363 | "y": 0 2364 | }, 2365 | "_radius": 18, 2366 | "_id": "a25apHR31GwbLFpchKxJhj" 2367 | }, 2368 | { 2369 | "__type__": "cc.PrefabInfo", 2370 | "root": { 2371 | "__id__": 19 2372 | }, 2373 | "asset": { 2374 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 2375 | }, 2376 | "fileId": "38OopD+TlGoZkwfdFzg1oe", 2377 | "sync": false 2378 | }, 2379 | { 2380 | "__type__": "cc.PrefabInfo", 2381 | "root": { 2382 | "__id__": 19 2383 | }, 2384 | "asset": { 2385 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 2386 | }, 2387 | "fileId": "2exFBPWMpEx7fjB/07OZq6", 2388 | "sync": false 2389 | }, 2390 | { 2391 | "__type__": "cc.Sprite", 2392 | "_name": "", 2393 | "_objFlags": 0, 2394 | "node": { 2395 | "__id__": 5 2396 | }, 2397 | "_enabled": true, 2398 | "_spriteFrame": { 2399 | "__uuid__": "db586ed0-a076-4be7-9a1c-34289c2968e2" 2400 | }, 2401 | "_type": 0, 2402 | "_sizeMode": 0, 2403 | "_fillType": 0, 2404 | "_fillCenter": { 2405 | "__type__": "cc.Vec2", 2406 | "x": 0, 2407 | "y": 0 2408 | }, 2409 | "_fillStart": 0, 2410 | "_fillRange": 0, 2411 | "_isTrimmedMode": true, 2412 | "_state": 0, 2413 | "_atlas": null, 2414 | "_srcBlendFactor": 770, 2415 | "_dstBlendFactor": 771, 2416 | "_id": "a9hdJpwKBMSJphXM6QzqKQ" 2417 | }, 2418 | { 2419 | "__type__": "cc.RigidBody", 2420 | "_name": "", 2421 | "_objFlags": 0, 2422 | "node": { 2423 | "__id__": 5 2424 | }, 2425 | "_enabled": true, 2426 | "_type": 0, 2427 | "_allowSleep": true, 2428 | "_gravityScale": 1, 2429 | "_linearDamping": 0, 2430 | "_angularDamping": 0, 2431 | "_linearVelocity": { 2432 | "__type__": "cc.Vec2", 2433 | "x": 0, 2434 | "y": 0 2435 | }, 2436 | "_angularVelocity": 0, 2437 | "_fixedRotation": false, 2438 | "enabledContactListener": true, 2439 | "bullet": false, 2440 | "awakeOnLoad": false, 2441 | "_id": "27FUC18ypO76Mo2BS2vTi5" 2442 | }, 2443 | { 2444 | "__type__": "cc.PhysicsBoxCollider", 2445 | "_name": "", 2446 | "_objFlags": 0, 2447 | "node": { 2448 | "__id__": 5 2449 | }, 2450 | "_enabled": true, 2451 | "tag": 0, 2452 | "_density": 1, 2453 | "_sensor": false, 2454 | "_friction": 0.2, 2455 | "_restitution": 0, 2456 | "body": null, 2457 | "_offset": { 2458 | "__type__": "cc.Vec2", 2459 | "x": 0.2, 2460 | "y": 438.8 2461 | }, 2462 | "_size": { 2463 | "__type__": "cc.Size", 2464 | "width": 472.9, 2465 | "height": 83.5 2466 | }, 2467 | "_id": "64tVI5GTVEaZDFyjhnVtBw" 2468 | }, 2469 | { 2470 | "__type__": "cc.PhysicsBoxCollider", 2471 | "_name": "", 2472 | "_objFlags": 0, 2473 | "node": { 2474 | "__id__": 5 2475 | }, 2476 | "_enabled": true, 2477 | "tag": 0, 2478 | "_density": 1, 2479 | "_sensor": false, 2480 | "_friction": 0.2, 2481 | "_restitution": 0, 2482 | "body": null, 2483 | "_offset": { 2484 | "__type__": "cc.Vec2", 2485 | "x": -0.9, 2486 | "y": -439.1 2487 | }, 2488 | "_size": { 2489 | "__type__": "cc.Size", 2490 | "width": 471.7, 2491 | "height": 85.9 2492 | }, 2493 | "_id": "8beC9wJ/9HXLJdPQ98VFzv" 2494 | }, 2495 | { 2496 | "__type__": "cc.PhysicsBoxCollider", 2497 | "_name": "", 2498 | "_objFlags": 0, 2499 | "node": { 2500 | "__id__": 5 2501 | }, 2502 | "_enabled": true, 2503 | "tag": 0, 2504 | "_density": 1, 2505 | "_sensor": false, 2506 | "_friction": 0.2, 2507 | "_restitution": 0, 2508 | "body": null, 2509 | "_offset": { 2510 | "__type__": "cc.Vec2", 2511 | "x": -292.6, 2512 | "y": 201.2 2513 | }, 2514 | "_size": { 2515 | "__type__": "cc.Size", 2516 | "width": 54.8, 2517 | "height": 332.6 2518 | }, 2519 | "_id": "a84oL2cVhCPpDrTSbBADiv" 2520 | }, 2521 | { 2522 | "__type__": "cc.PhysicsBoxCollider", 2523 | "_name": "", 2524 | "_objFlags": 0, 2525 | "node": { 2526 | "__id__": 5 2527 | }, 2528 | "_enabled": true, 2529 | "tag": 0, 2530 | "_density": 1, 2531 | "_sensor": false, 2532 | "_friction": 0.2, 2533 | "_restitution": 0, 2534 | "body": null, 2535 | "_offset": { 2536 | "__type__": "cc.Vec2", 2537 | "x": 291.1, 2538 | "y": 201.4 2539 | }, 2540 | "_size": { 2541 | "__type__": "cc.Size", 2542 | "width": 57.8, 2543 | "height": 337.8 2544 | }, 2545 | "_id": "300vLKjwRNHpc29QRCKmMR" 2546 | }, 2547 | { 2548 | "__type__": "cc.PhysicsBoxCollider", 2549 | "_name": "", 2550 | "_objFlags": 0, 2551 | "node": { 2552 | "__id__": 5 2553 | }, 2554 | "_enabled": true, 2555 | "tag": 0, 2556 | "_density": 1, 2557 | "_sensor": false, 2558 | "_friction": 0.2, 2559 | "_restitution": 0, 2560 | "body": null, 2561 | "_offset": { 2562 | "__type__": "cc.Vec2", 2563 | "x": -292.4, 2564 | "y": -200.8 2565 | }, 2566 | "_size": { 2567 | "__type__": "cc.Size", 2568 | "width": 55.2, 2569 | "height": 335.7 2570 | }, 2571 | "_id": "daq4SWkH5A8KcfsUDOJPF+" 2572 | }, 2573 | { 2574 | "__type__": "cc.PhysicsBoxCollider", 2575 | "_name": "", 2576 | "_objFlags": 0, 2577 | "node": { 2578 | "__id__": 5 2579 | }, 2580 | "_enabled": true, 2581 | "tag": 0, 2582 | "_density": 1, 2583 | "_sensor": false, 2584 | "_friction": 0.2, 2585 | "_restitution": 0, 2586 | "body": null, 2587 | "_offset": { 2588 | "__type__": "cc.Vec2", 2589 | "x": 290.9, 2590 | "y": -202.5 2591 | }, 2592 | "_size": { 2593 | "__type__": "cc.Size", 2594 | "width": 58.2, 2595 | "height": 331.9 2596 | }, 2597 | "_id": "63I+ZzYohGN6nRtPna5IGR" 2598 | }, 2599 | { 2600 | "__type__": "cc.PhysicsCircleCollider", 2601 | "_name": "", 2602 | "_objFlags": 0, 2603 | "node": { 2604 | "__id__": 5 2605 | }, 2606 | "_enabled": true, 2607 | "tag": 1, 2608 | "_density": 1, 2609 | "_sensor": true, 2610 | "_friction": 0.2, 2611 | "_restitution": 0, 2612 | "body": null, 2613 | "_offset": { 2614 | "__type__": "cc.Vec2", 2615 | "x": -313.7, 2616 | "y": 446.5 2617 | }, 2618 | "_radius": 78.2, 2619 | "_id": "95GEIi+GtOaYmopIfxGZ9g" 2620 | }, 2621 | { 2622 | "__type__": "cc.PhysicsCircleCollider", 2623 | "_name": "", 2624 | "_objFlags": 0, 2625 | "node": { 2626 | "__id__": 5 2627 | }, 2628 | "_enabled": true, 2629 | "tag": 1, 2630 | "_density": 1, 2631 | "_sensor": true, 2632 | "_friction": 0.2, 2633 | "_restitution": 0, 2634 | "body": null, 2635 | "_offset": { 2636 | "__type__": "cc.Vec2", 2637 | "x": 313.7, 2638 | "y": 446.5 2639 | }, 2640 | "_radius": 78.2, 2641 | "_id": "80tyLeV4hPu7kWeWgnS2PH" 2642 | }, 2643 | { 2644 | "__type__": "cc.PhysicsCircleCollider", 2645 | "_name": "", 2646 | "_objFlags": 0, 2647 | "node": { 2648 | "__id__": 5 2649 | }, 2650 | "_enabled": true, 2651 | "tag": 1, 2652 | "_density": 1, 2653 | "_sensor": true, 2654 | "_friction": 0.2, 2655 | "_restitution": 0, 2656 | "body": null, 2657 | "_offset": { 2658 | "__type__": "cc.Vec2", 2659 | "x": 313.7, 2660 | "y": -446.5 2661 | }, 2662 | "_radius": 78.2, 2663 | "_id": "f3RF5JSVJB0bxLBaTwUjtg" 2664 | }, 2665 | { 2666 | "__type__": "cc.PhysicsCircleCollider", 2667 | "_name": "", 2668 | "_objFlags": 0, 2669 | "node": { 2670 | "__id__": 5 2671 | }, 2672 | "_enabled": true, 2673 | "tag": 1, 2674 | "_density": 1, 2675 | "_sensor": true, 2676 | "_friction": 0.2, 2677 | "_restitution": 0, 2678 | "body": null, 2679 | "_offset": { 2680 | "__type__": "cc.Vec2", 2681 | "x": -313.7, 2682 | "y": -446.5 2683 | }, 2684 | "_radius": 78.2, 2685 | "_id": "99J6tJ8aFDTr3lBvyf5V4b" 2686 | }, 2687 | { 2688 | "__type__": "cc.PhysicsCircleCollider", 2689 | "_name": "", 2690 | "_objFlags": 0, 2691 | "node": { 2692 | "__id__": 5 2693 | }, 2694 | "_enabled": true, 2695 | "tag": 1, 2696 | "_density": 1, 2697 | "_sensor": true, 2698 | "_friction": 0.2, 2699 | "_restitution": 0, 2700 | "body": null, 2701 | "_offset": { 2702 | "__type__": "cc.Vec2", 2703 | "x": -332.6, 2704 | "y": 0 2705 | }, 2706 | "_radius": 78.2, 2707 | "_id": "bbiAUw+7tFpZKDN6U3QjQ4" 2708 | }, 2709 | { 2710 | "__type__": "cc.PhysicsCircleCollider", 2711 | "_name": "", 2712 | "_objFlags": 0, 2713 | "node": { 2714 | "__id__": 5 2715 | }, 2716 | "_enabled": true, 2717 | "tag": 1, 2718 | "_density": 1, 2719 | "_sensor": true, 2720 | "_friction": 0.2, 2721 | "_restitution": 0, 2722 | "body": null, 2723 | "_offset": { 2724 | "__type__": "cc.Vec2", 2725 | "x": 332.6, 2726 | "y": 0 2727 | }, 2728 | "_radius": 78.2, 2729 | "_id": "51D6Z/XNFIjJtkqxGSzcVn" 2730 | }, 2731 | { 2732 | "__type__": "cc.Widget", 2733 | "_name": "", 2734 | "_objFlags": 0, 2735 | "node": { 2736 | "__id__": 5 2737 | }, 2738 | "_enabled": true, 2739 | "alignMode": 1, 2740 | "_target": null, 2741 | "_alignFlags": 45, 2742 | "_left": 0, 2743 | "_right": 0, 2744 | "_top": 0, 2745 | "_bottom": 0, 2746 | "_verticalCenter": 0, 2747 | "_horizontalCenter": 0, 2748 | "_isAbsLeft": true, 2749 | "_isAbsRight": true, 2750 | "_isAbsTop": true, 2751 | "_isAbsBottom": true, 2752 | "_isAbsHorizontalCenter": true, 2753 | "_isAbsVerticalCenter": true, 2754 | "_originalWidth": 640, 2755 | "_originalHeight": 960, 2756 | "_id": "80xd3lLwhE2YnTo3n5tu58" 2757 | }, 2758 | { 2759 | "__type__": "83fc3RT4iZGmZY4Z0+mX9TK", 2760 | "_name": "", 2761 | "_objFlags": 0, 2762 | "node": { 2763 | "__id__": 5 2764 | }, 2765 | "_enabled": true, 2766 | "wballPrefab": { 2767 | "__uuid__": "90284b6f-571c-4eb8-9c66-9c6a523e72aa" 2768 | }, 2769 | "redBalls": { 2770 | "__uuid__": "15f42ea5-6392-4a8f-851d-d92172cc8b82" 2771 | }, 2772 | "_ballNum": 10, 2773 | "winUI": { 2774 | "__id__": 87 2775 | }, 2776 | "startUI": { 2777 | "__id__": 102 2778 | }, 2779 | "endUI": { 2780 | "__id__": 117 2781 | }, 2782 | "gameUI": { 2783 | "__id__": 132 2784 | }, 2785 | "ballLabel": { 2786 | "__id__": 134 2787 | }, 2788 | "_id": "ccNOsceEVNYbOGuk2s99/s" 2789 | }, 2790 | { 2791 | "__type__": "cc.Node", 2792 | "_name": "WinUI", 2793 | "_objFlags": 0, 2794 | "_parent": { 2795 | "__id__": 2 2796 | }, 2797 | "_children": [ 2798 | { 2799 | "__id__": 88 2800 | }, 2801 | { 2802 | "__id__": 91 2803 | } 2804 | ], 2805 | "_active": false, 2806 | "_level": 2, 2807 | "_components": [ 2808 | { 2809 | "__id__": 100 2810 | }, 2811 | { 2812 | "__id__": 101 2813 | } 2814 | ], 2815 | "_prefab": null, 2816 | "_opacity": 255, 2817 | "_color": { 2818 | "__type__": "cc.Color", 2819 | "r": 255, 2820 | "g": 255, 2821 | "b": 255, 2822 | "a": 255 2823 | }, 2824 | "_contentSize": { 2825 | "__type__": "cc.Size", 2826 | "width": 640, 2827 | "height": 960 2828 | }, 2829 | "_anchorPoint": { 2830 | "__type__": "cc.Vec2", 2831 | "x": 0.5, 2832 | "y": 0.5 2833 | }, 2834 | "_position": { 2835 | "__type__": "cc.Vec3", 2836 | "x": 0, 2837 | "y": 0, 2838 | "z": 0 2839 | }, 2840 | "_scale": { 2841 | "__type__": "cc.Vec3", 2842 | "x": 1, 2843 | "y": 1, 2844 | "z": 1 2845 | }, 2846 | "_rotationX": 0, 2847 | "_rotationY": 0, 2848 | "_quat": { 2849 | "__type__": "cc.Quat", 2850 | "x": 0, 2851 | "y": 0, 2852 | "z": 0, 2853 | "w": 1 2854 | }, 2855 | "_skewX": 0, 2856 | "_skewY": 0, 2857 | "groupIndex": 0, 2858 | "_id": "c8jW/2QQJPmLOmK80mjoyT" 2859 | }, 2860 | { 2861 | "__type__": "cc.Node", 2862 | "_name": "New Label", 2863 | "_objFlags": 0, 2864 | "_parent": { 2865 | "__id__": 87 2866 | }, 2867 | "_children": [], 2868 | "_active": true, 2869 | "_level": 3, 2870 | "_components": [ 2871 | { 2872 | "__id__": 89 2873 | }, 2874 | { 2875 | "__id__": 90 2876 | } 2877 | ], 2878 | "_prefab": null, 2879 | "_opacity": 255, 2880 | "_color": { 2881 | "__type__": "cc.Color", 2882 | "r": 255, 2883 | "g": 255, 2884 | "b": 255, 2885 | "a": 255 2886 | }, 2887 | "_contentSize": { 2888 | "__type__": "cc.Size", 2889 | "width": 351.09, 2890 | "height": 100 2891 | }, 2892 | "_anchorPoint": { 2893 | "__type__": "cc.Vec2", 2894 | "x": 0.5, 2895 | "y": 0.5 2896 | }, 2897 | "_position": { 2898 | "__type__": "cc.Vec3", 2899 | "x": 0, 2900 | "y": 127, 2901 | "z": 0 2902 | }, 2903 | "_scale": { 2904 | "__type__": "cc.Vec3", 2905 | "x": 1, 2906 | "y": 1, 2907 | "z": 1 2908 | }, 2909 | "_rotationX": 0, 2910 | "_rotationY": 0, 2911 | "_quat": { 2912 | "__type__": "cc.Quat", 2913 | "x": 0, 2914 | "y": 0, 2915 | "z": 0, 2916 | "w": 1 2917 | }, 2918 | "_skewX": 0, 2919 | "_skewY": 0, 2920 | "groupIndex": 0, 2921 | "_id": "b2U+bDO3dFp5xsiYjJh6RT" 2922 | }, 2923 | { 2924 | "__type__": "cc.Label", 2925 | "_name": "", 2926 | "_objFlags": 0, 2927 | "node": { 2928 | "__id__": 88 2929 | }, 2930 | "_enabled": true, 2931 | "_useOriginalSize": false, 2932 | "_string": "YOU WIN", 2933 | "_N$string": "YOU WIN", 2934 | "_fontSize": 80, 2935 | "_lineHeight": 100, 2936 | "_enableWrapText": true, 2937 | "_N$file": null, 2938 | "_isSystemFontUsed": true, 2939 | "_spacingX": 0, 2940 | "_batchAsBitmap": false, 2941 | "_N$horizontalAlign": 1, 2942 | "_N$verticalAlign": 1, 2943 | "_N$fontFamily": "Arial", 2944 | "_N$overflow": 0, 2945 | "_N$cacheMode": 0, 2946 | "_id": "77OrseM05IkLW6Oc4PJ5f1" 2947 | }, 2948 | { 2949 | "__type__": "cc.Widget", 2950 | "_name": "", 2951 | "_objFlags": 0, 2952 | "node": { 2953 | "__id__": 88 2954 | }, 2955 | "_enabled": true, 2956 | "alignMode": 1, 2957 | "_target": null, 2958 | "_alignFlags": 21, 2959 | "_left": 0, 2960 | "_right": 0, 2961 | "_top": 303, 2962 | "_bottom": 557, 2963 | "_verticalCenter": 0, 2964 | "_horizontalCenter": 0, 2965 | "_isAbsLeft": true, 2966 | "_isAbsRight": true, 2967 | "_isAbsTop": true, 2968 | "_isAbsBottom": true, 2969 | "_isAbsHorizontalCenter": true, 2970 | "_isAbsVerticalCenter": true, 2971 | "_originalWidth": 0, 2972 | "_originalHeight": 100, 2973 | "_id": "0eCVtZUsxNdqT3ROXjnK4t" 2974 | }, 2975 | { 2976 | "__type__": "cc.Node", 2977 | "_name": "New Button", 2978 | "_objFlags": 0, 2979 | "_parent": { 2980 | "__id__": 87 2981 | }, 2982 | "_children": [ 2983 | { 2984 | "__id__": 92 2985 | } 2986 | ], 2987 | "_active": true, 2988 | "_level": 3, 2989 | "_components": [ 2990 | { 2991 | "__id__": 97 2992 | }, 2993 | { 2994 | "__id__": 99 2995 | } 2996 | ], 2997 | "_prefab": null, 2998 | "_opacity": 255, 2999 | "_color": { 3000 | "__type__": "cc.Color", 3001 | "r": 255, 3002 | "g": 255, 3003 | "b": 255, 3004 | "a": 255 3005 | }, 3006 | "_contentSize": { 3007 | "__type__": "cc.Size", 3008 | "width": 200, 3009 | "height": 80 3010 | }, 3011 | "_anchorPoint": { 3012 | "__type__": "cc.Vec2", 3013 | "x": 0.5, 3014 | "y": 0.5 3015 | }, 3016 | "_position": { 3017 | "__type__": "cc.Vec3", 3018 | "x": 0, 3019 | "y": -15, 3020 | "z": 0 3021 | }, 3022 | "_scale": { 3023 | "__type__": "cc.Vec3", 3024 | "x": 1, 3025 | "y": 1, 3026 | "z": 1 3027 | }, 3028 | "_rotationX": 0, 3029 | "_rotationY": 0, 3030 | "_quat": { 3031 | "__type__": "cc.Quat", 3032 | "x": 0, 3033 | "y": 0, 3034 | "z": 0, 3035 | "w": 1 3036 | }, 3037 | "_skewX": 0, 3038 | "_skewY": 0, 3039 | "groupIndex": 0, 3040 | "_id": "6aW7fQz/VJfb8WBnpt8lbR" 3041 | }, 3042 | { 3043 | "__type__": "cc.Node", 3044 | "_name": "Background", 3045 | "_objFlags": 0, 3046 | "_parent": { 3047 | "__id__": 91 3048 | }, 3049 | "_children": [ 3050 | { 3051 | "__id__": 93 3052 | } 3053 | ], 3054 | "_active": true, 3055 | "_level": 2, 3056 | "_components": [ 3057 | { 3058 | "__id__": 95 3059 | }, 3060 | { 3061 | "__id__": 96 3062 | } 3063 | ], 3064 | "_prefab": null, 3065 | "_opacity": 255, 3066 | "_color": { 3067 | "__type__": "cc.Color", 3068 | "r": 230, 3069 | "g": 230, 3070 | "b": 230, 3071 | "a": 255 3072 | }, 3073 | "_contentSize": { 3074 | "__type__": "cc.Size", 3075 | "width": 200, 3076 | "height": 80 3077 | }, 3078 | "_anchorPoint": { 3079 | "__type__": "cc.Vec2", 3080 | "x": 0.5, 3081 | "y": 0.5 3082 | }, 3083 | "_position": { 3084 | "__type__": "cc.Vec3", 3085 | "x": 0, 3086 | "y": 0, 3087 | "z": 0 3088 | }, 3089 | "_scale": { 3090 | "__type__": "cc.Vec3", 3091 | "x": 1, 3092 | "y": 1, 3093 | "z": 1 3094 | }, 3095 | "_rotationX": 0, 3096 | "_rotationY": 0, 3097 | "_quat": { 3098 | "__type__": "cc.Quat", 3099 | "x": 0, 3100 | "y": 0, 3101 | "z": 0, 3102 | "w": 1 3103 | }, 3104 | "_skewX": 0, 3105 | "_skewY": 0, 3106 | "groupIndex": 0, 3107 | "_id": "1aaHPlzERF7JbFzSJtV71o" 3108 | }, 3109 | { 3110 | "__type__": "cc.Node", 3111 | "_name": "Label", 3112 | "_objFlags": 0, 3113 | "_parent": { 3114 | "__id__": 92 3115 | }, 3116 | "_children": [], 3117 | "_active": true, 3118 | "_level": 3, 3119 | "_components": [ 3120 | { 3121 | "__id__": 94 3122 | } 3123 | ], 3124 | "_prefab": null, 3125 | "_opacity": 255, 3126 | "_color": { 3127 | "__type__": "cc.Color", 3128 | "r": 0, 3129 | "g": 0, 3130 | "b": 0, 3131 | "a": 255 3132 | }, 3133 | "_contentSize": { 3134 | "__type__": "cc.Size", 3135 | "width": 200, 3136 | "height": 40 3137 | }, 3138 | "_anchorPoint": { 3139 | "__type__": "cc.Vec2", 3140 | "x": 0.5, 3141 | "y": 0.5 3142 | }, 3143 | "_position": { 3144 | "__type__": "cc.Vec3", 3145 | "x": 0, 3146 | "y": 0, 3147 | "z": 0 3148 | }, 3149 | "_scale": { 3150 | "__type__": "cc.Vec3", 3151 | "x": 1, 3152 | "y": 1, 3153 | "z": 1 3154 | }, 3155 | "_rotationX": 0, 3156 | "_rotationY": 0, 3157 | "_quat": { 3158 | "__type__": "cc.Quat", 3159 | "x": 0, 3160 | "y": 0, 3161 | "z": 0, 3162 | "w": 1 3163 | }, 3164 | "_skewX": 0, 3165 | "_skewY": 0, 3166 | "groupIndex": 0, 3167 | "_id": "9484OtL7BP67M576nRzMOX" 3168 | }, 3169 | { 3170 | "__type__": "cc.Label", 3171 | "_name": "", 3172 | "_objFlags": 0, 3173 | "node": { 3174 | "__id__": 93 3175 | }, 3176 | "_enabled": true, 3177 | "_useOriginalSize": false, 3178 | "_string": "再来一局", 3179 | "_N$string": "再来一局", 3180 | "_fontSize": 40, 3181 | "_lineHeight": 40, 3182 | "_enableWrapText": false, 3183 | "_N$file": null, 3184 | "_isSystemFontUsed": true, 3185 | "_spacingX": 0, 3186 | "_batchAsBitmap": false, 3187 | "_N$horizontalAlign": 1, 3188 | "_N$verticalAlign": 1, 3189 | "_N$fontFamily": "Arial", 3190 | "_N$overflow": 1, 3191 | "_N$cacheMode": 0, 3192 | "_id": "c3gC0WeKRN7pQxGDPmLXlY" 3193 | }, 3194 | { 3195 | "__type__": "cc.Sprite", 3196 | "_name": "", 3197 | "_objFlags": 0, 3198 | "node": { 3199 | "__id__": 92 3200 | }, 3201 | "_enabled": true, 3202 | "_spriteFrame": { 3203 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 3204 | }, 3205 | "_type": 1, 3206 | "_sizeMode": 0, 3207 | "_fillType": 0, 3208 | "_fillCenter": { 3209 | "__type__": "cc.Vec2", 3210 | "x": 0, 3211 | "y": 0 3212 | }, 3213 | "_fillStart": 0, 3214 | "_fillRange": 0, 3215 | "_isTrimmedMode": true, 3216 | "_state": 0, 3217 | "_atlas": null, 3218 | "_srcBlendFactor": 770, 3219 | "_dstBlendFactor": 771, 3220 | "_id": "5cVSVvjqVPapwOHUBY/mKU" 3221 | }, 3222 | { 3223 | "__type__": "cc.Widget", 3224 | "_name": "", 3225 | "_objFlags": 0, 3226 | "node": { 3227 | "__id__": 92 3228 | }, 3229 | "_enabled": true, 3230 | "alignMode": 0, 3231 | "_target": null, 3232 | "_alignFlags": 45, 3233 | "_left": 0, 3234 | "_right": 0, 3235 | "_top": 0, 3236 | "_bottom": 0, 3237 | "_verticalCenter": 0, 3238 | "_horizontalCenter": 0, 3239 | "_isAbsLeft": true, 3240 | "_isAbsRight": true, 3241 | "_isAbsTop": true, 3242 | "_isAbsBottom": true, 3243 | "_isAbsHorizontalCenter": true, 3244 | "_isAbsVerticalCenter": true, 3245 | "_originalWidth": 100, 3246 | "_originalHeight": 40, 3247 | "_id": "d7YEinLPRG+7S6K7aMd5Ts" 3248 | }, 3249 | { 3250 | "__type__": "cc.Button", 3251 | "_name": "", 3252 | "_objFlags": 0, 3253 | "node": { 3254 | "__id__": 91 3255 | }, 3256 | "_enabled": true, 3257 | "duration": 0.1, 3258 | "zoomScale": 1.2, 3259 | "clickEvents": [ 3260 | { 3261 | "__id__": 98 3262 | } 3263 | ], 3264 | "_N$interactable": true, 3265 | "_N$enableAutoGrayEffect": false, 3266 | "_N$transition": 3, 3267 | "transition": 3, 3268 | "_N$normalColor": { 3269 | "__type__": "cc.Color", 3270 | "r": 230, 3271 | "g": 230, 3272 | "b": 230, 3273 | "a": 255 3274 | }, 3275 | "_N$pressedColor": { 3276 | "__type__": "cc.Color", 3277 | "r": 200, 3278 | "g": 200, 3279 | "b": 200, 3280 | "a": 255 3281 | }, 3282 | "pressedColor": { 3283 | "__type__": "cc.Color", 3284 | "r": 200, 3285 | "g": 200, 3286 | "b": 200, 3287 | "a": 255 3288 | }, 3289 | "_N$hoverColor": { 3290 | "__type__": "cc.Color", 3291 | "r": 255, 3292 | "g": 255, 3293 | "b": 255, 3294 | "a": 255 3295 | }, 3296 | "hoverColor": { 3297 | "__type__": "cc.Color", 3298 | "r": 255, 3299 | "g": 255, 3300 | "b": 255, 3301 | "a": 255 3302 | }, 3303 | "_N$disabledColor": { 3304 | "__type__": "cc.Color", 3305 | "r": 120, 3306 | "g": 120, 3307 | "b": 120, 3308 | "a": 200 3309 | }, 3310 | "_N$normalSprite": { 3311 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 3312 | }, 3313 | "_N$pressedSprite": { 3314 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 3315 | }, 3316 | "pressedSprite": { 3317 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 3318 | }, 3319 | "_N$hoverSprite": { 3320 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 3321 | }, 3322 | "hoverSprite": { 3323 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 3324 | }, 3325 | "_N$disabledSprite": { 3326 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 3327 | }, 3328 | "_N$target": { 3329 | "__id__": 92 3330 | }, 3331 | "_id": "99pekswglOZ5pfVa4UobqP" 3332 | }, 3333 | { 3334 | "__type__": "cc.ClickEvent", 3335 | "target": { 3336 | "__id__": 5 3337 | }, 3338 | "component": "", 3339 | "_componentId": "83fc3RT4iZGmZY4Z0+mX9TK", 3340 | "handler": "resetTable", 3341 | "customEventData": "" 3342 | }, 3343 | { 3344 | "__type__": "cc.Widget", 3345 | "_name": "", 3346 | "_objFlags": 0, 3347 | "node": { 3348 | "__id__": 91 3349 | }, 3350 | "_enabled": true, 3351 | "alignMode": 1, 3352 | "_target": null, 3353 | "_alignFlags": 21, 3354 | "_left": 0, 3355 | "_right": 0, 3356 | "_top": 455, 3357 | "_bottom": 425, 3358 | "_verticalCenter": 0, 3359 | "_horizontalCenter": 0, 3360 | "_isAbsLeft": true, 3361 | "_isAbsRight": true, 3362 | "_isAbsTop": true, 3363 | "_isAbsBottom": true, 3364 | "_isAbsHorizontalCenter": true, 3365 | "_isAbsVerticalCenter": true, 3366 | "_originalWidth": 0, 3367 | "_originalHeight": 80, 3368 | "_id": "f4pSMNMOdM7Ir9hrE5X9bs" 3369 | }, 3370 | { 3371 | "__type__": "cc.Widget", 3372 | "_name": "", 3373 | "_objFlags": 0, 3374 | "node": { 3375 | "__id__": 87 3376 | }, 3377 | "_enabled": true, 3378 | "alignMode": 1, 3379 | "_target": null, 3380 | "_alignFlags": 45, 3381 | "_left": 0, 3382 | "_right": 0, 3383 | "_top": 0, 3384 | "_bottom": 0, 3385 | "_verticalCenter": 0, 3386 | "_horizontalCenter": 0, 3387 | "_isAbsLeft": true, 3388 | "_isAbsRight": true, 3389 | "_isAbsTop": true, 3390 | "_isAbsBottom": true, 3391 | "_isAbsHorizontalCenter": true, 3392 | "_isAbsVerticalCenter": true, 3393 | "_originalWidth": 0, 3394 | "_originalHeight": 0, 3395 | "_id": "41OQY7JhdNdammxIOU549o" 3396 | }, 3397 | { 3398 | "__type__": "cc.BlockInputEvents", 3399 | "_name": "", 3400 | "_objFlags": 0, 3401 | "node": { 3402 | "__id__": 87 3403 | }, 3404 | "_enabled": true, 3405 | "_id": "7dBVROo69Dib03/LHbhuaf" 3406 | }, 3407 | { 3408 | "__type__": "cc.Node", 3409 | "_name": "StartUI", 3410 | "_objFlags": 0, 3411 | "_parent": { 3412 | "__id__": 2 3413 | }, 3414 | "_children": [ 3415 | { 3416 | "__id__": 103 3417 | }, 3418 | { 3419 | "__id__": 106 3420 | } 3421 | ], 3422 | "_active": true, 3423 | "_level": 2, 3424 | "_components": [ 3425 | { 3426 | "__id__": 115 3427 | }, 3428 | { 3429 | "__id__": 116 3430 | } 3431 | ], 3432 | "_prefab": null, 3433 | "_opacity": 255, 3434 | "_color": { 3435 | "__type__": "cc.Color", 3436 | "r": 255, 3437 | "g": 255, 3438 | "b": 255, 3439 | "a": 255 3440 | }, 3441 | "_contentSize": { 3442 | "__type__": "cc.Size", 3443 | "width": 640, 3444 | "height": 960 3445 | }, 3446 | "_anchorPoint": { 3447 | "__type__": "cc.Vec2", 3448 | "x": 0.5, 3449 | "y": 0.5 3450 | }, 3451 | "_position": { 3452 | "__type__": "cc.Vec3", 3453 | "x": 0, 3454 | "y": 0, 3455 | "z": 0 3456 | }, 3457 | "_scale": { 3458 | "__type__": "cc.Vec3", 3459 | "x": 1, 3460 | "y": 1, 3461 | "z": 1 3462 | }, 3463 | "_rotationX": 0, 3464 | "_rotationY": 0, 3465 | "_quat": { 3466 | "__type__": "cc.Quat", 3467 | "x": 0, 3468 | "y": 0, 3469 | "z": 0, 3470 | "w": 1 3471 | }, 3472 | "_skewX": 0, 3473 | "_skewY": 0, 3474 | "groupIndex": 0, 3475 | "_id": "3bqqf3nSNPOqJlOZ1JQPFR" 3476 | }, 3477 | { 3478 | "__type__": "cc.Node", 3479 | "_name": "New Label", 3480 | "_objFlags": 0, 3481 | "_parent": { 3482 | "__id__": 102 3483 | }, 3484 | "_children": [], 3485 | "_active": true, 3486 | "_level": 3, 3487 | "_components": [ 3488 | { 3489 | "__id__": 104 3490 | }, 3491 | { 3492 | "__id__": 105 3493 | } 3494 | ], 3495 | "_prefab": null, 3496 | "_opacity": 255, 3497 | "_color": { 3498 | "__type__": "cc.Color", 3499 | "r": 255, 3500 | "g": 255, 3501 | "b": 255, 3502 | "a": 255 3503 | }, 3504 | "_contentSize": { 3505 | "__type__": "cc.Size", 3506 | "width": 400, 3507 | "height": 100 3508 | }, 3509 | "_anchorPoint": { 3510 | "__type__": "cc.Vec2", 3511 | "x": 0.5, 3512 | "y": 0.5 3513 | }, 3514 | "_position": { 3515 | "__type__": "cc.Vec3", 3516 | "x": 0, 3517 | "y": 127, 3518 | "z": 0 3519 | }, 3520 | "_scale": { 3521 | "__type__": "cc.Vec3", 3522 | "x": 1, 3523 | "y": 1, 3524 | "z": 1 3525 | }, 3526 | "_rotationX": 0, 3527 | "_rotationY": 0, 3528 | "_quat": { 3529 | "__type__": "cc.Quat", 3530 | "x": 0, 3531 | "y": 0, 3532 | "z": 0, 3533 | "w": 1 3534 | }, 3535 | "_skewX": 0, 3536 | "_skewY": 0, 3537 | "groupIndex": 0, 3538 | "_id": "d9SCA3A0tBIaPFMUpIgUTa" 3539 | }, 3540 | { 3541 | "__type__": "cc.Label", 3542 | "_name": "", 3543 | "_objFlags": 0, 3544 | "node": { 3545 | "__id__": 103 3546 | }, 3547 | "_enabled": true, 3548 | "_useOriginalSize": false, 3549 | "_string": "桌球DEMO", 3550 | "_N$string": "桌球DEMO", 3551 | "_fontSize": 80, 3552 | "_lineHeight": 100, 3553 | "_enableWrapText": true, 3554 | "_N$file": null, 3555 | "_isSystemFontUsed": true, 3556 | "_spacingX": 0, 3557 | "_batchAsBitmap": false, 3558 | "_N$horizontalAlign": 1, 3559 | "_N$verticalAlign": 1, 3560 | "_N$fontFamily": "Arial", 3561 | "_N$overflow": 0, 3562 | "_N$cacheMode": 0, 3563 | "_id": "64JYxwhEtH4pjq0w8jrjeD" 3564 | }, 3565 | { 3566 | "__type__": "cc.Widget", 3567 | "_name": "", 3568 | "_objFlags": 0, 3569 | "node": { 3570 | "__id__": 103 3571 | }, 3572 | "_enabled": true, 3573 | "alignMode": 1, 3574 | "_target": null, 3575 | "_alignFlags": 21, 3576 | "_left": 120, 3577 | "_right": 0, 3578 | "_top": 303, 3579 | "_bottom": 557, 3580 | "_verticalCenter": 0, 3581 | "_horizontalCenter": 0, 3582 | "_isAbsLeft": true, 3583 | "_isAbsRight": true, 3584 | "_isAbsTop": true, 3585 | "_isAbsBottom": true, 3586 | "_isAbsHorizontalCenter": true, 3587 | "_isAbsVerticalCenter": true, 3588 | "_originalWidth": 0, 3589 | "_originalHeight": 100, 3590 | "_id": "ad8+w1ektG570Z/txEMSKD" 3591 | }, 3592 | { 3593 | "__type__": "cc.Node", 3594 | "_name": "New Button", 3595 | "_objFlags": 0, 3596 | "_parent": { 3597 | "__id__": 102 3598 | }, 3599 | "_children": [ 3600 | { 3601 | "__id__": 107 3602 | } 3603 | ], 3604 | "_active": true, 3605 | "_level": 3, 3606 | "_components": [ 3607 | { 3608 | "__id__": 112 3609 | }, 3610 | { 3611 | "__id__": 114 3612 | } 3613 | ], 3614 | "_prefab": null, 3615 | "_opacity": 255, 3616 | "_color": { 3617 | "__type__": "cc.Color", 3618 | "r": 255, 3619 | "g": 255, 3620 | "b": 255, 3621 | "a": 255 3622 | }, 3623 | "_contentSize": { 3624 | "__type__": "cc.Size", 3625 | "width": 200, 3626 | "height": 80 3627 | }, 3628 | "_anchorPoint": { 3629 | "__type__": "cc.Vec2", 3630 | "x": 0.5, 3631 | "y": 0.5 3632 | }, 3633 | "_position": { 3634 | "__type__": "cc.Vec3", 3635 | "x": 0, 3636 | "y": -15, 3637 | "z": 0 3638 | }, 3639 | "_scale": { 3640 | "__type__": "cc.Vec3", 3641 | "x": 1, 3642 | "y": 1, 3643 | "z": 1 3644 | }, 3645 | "_rotationX": 0, 3646 | "_rotationY": 0, 3647 | "_quat": { 3648 | "__type__": "cc.Quat", 3649 | "x": 0, 3650 | "y": 0, 3651 | "z": 0, 3652 | "w": 1 3653 | }, 3654 | "_skewX": 0, 3655 | "_skewY": 0, 3656 | "groupIndex": 0, 3657 | "_id": "a8CpVcRONJb5SPp9u9fZo9" 3658 | }, 3659 | { 3660 | "__type__": "cc.Node", 3661 | "_name": "Background", 3662 | "_objFlags": 0, 3663 | "_parent": { 3664 | "__id__": 106 3665 | }, 3666 | "_children": [ 3667 | { 3668 | "__id__": 108 3669 | } 3670 | ], 3671 | "_active": true, 3672 | "_level": 2, 3673 | "_components": [ 3674 | { 3675 | "__id__": 110 3676 | }, 3677 | { 3678 | "__id__": 111 3679 | } 3680 | ], 3681 | "_prefab": null, 3682 | "_opacity": 255, 3683 | "_color": { 3684 | "__type__": "cc.Color", 3685 | "r": 230, 3686 | "g": 230, 3687 | "b": 230, 3688 | "a": 255 3689 | }, 3690 | "_contentSize": { 3691 | "__type__": "cc.Size", 3692 | "width": 200, 3693 | "height": 80 3694 | }, 3695 | "_anchorPoint": { 3696 | "__type__": "cc.Vec2", 3697 | "x": 0.5, 3698 | "y": 0.5 3699 | }, 3700 | "_position": { 3701 | "__type__": "cc.Vec3", 3702 | "x": 0, 3703 | "y": 0, 3704 | "z": 0 3705 | }, 3706 | "_scale": { 3707 | "__type__": "cc.Vec3", 3708 | "x": 1, 3709 | "y": 1, 3710 | "z": 1 3711 | }, 3712 | "_rotationX": 0, 3713 | "_rotationY": 0, 3714 | "_quat": { 3715 | "__type__": "cc.Quat", 3716 | "x": 0, 3717 | "y": 0, 3718 | "z": 0, 3719 | "w": 1 3720 | }, 3721 | "_skewX": 0, 3722 | "_skewY": 0, 3723 | "groupIndex": 0, 3724 | "_id": "37Igv/ivpEx4TFbzDJlukT" 3725 | }, 3726 | { 3727 | "__type__": "cc.Node", 3728 | "_name": "Label", 3729 | "_objFlags": 0, 3730 | "_parent": { 3731 | "__id__": 107 3732 | }, 3733 | "_children": [], 3734 | "_active": true, 3735 | "_level": 3, 3736 | "_components": [ 3737 | { 3738 | "__id__": 109 3739 | } 3740 | ], 3741 | "_prefab": null, 3742 | "_opacity": 255, 3743 | "_color": { 3744 | "__type__": "cc.Color", 3745 | "r": 0, 3746 | "g": 0, 3747 | "b": 0, 3748 | "a": 255 3749 | }, 3750 | "_contentSize": { 3751 | "__type__": "cc.Size", 3752 | "width": 200, 3753 | "height": 40 3754 | }, 3755 | "_anchorPoint": { 3756 | "__type__": "cc.Vec2", 3757 | "x": 0.5, 3758 | "y": 0.5 3759 | }, 3760 | "_position": { 3761 | "__type__": "cc.Vec3", 3762 | "x": 0, 3763 | "y": 0, 3764 | "z": 0 3765 | }, 3766 | "_scale": { 3767 | "__type__": "cc.Vec3", 3768 | "x": 1, 3769 | "y": 1, 3770 | "z": 1 3771 | }, 3772 | "_rotationX": 0, 3773 | "_rotationY": 0, 3774 | "_quat": { 3775 | "__type__": "cc.Quat", 3776 | "x": 0, 3777 | "y": 0, 3778 | "z": 0, 3779 | "w": 1 3780 | }, 3781 | "_skewX": 0, 3782 | "_skewY": 0, 3783 | "groupIndex": 0, 3784 | "_id": "08KaK0ipdHY6bTiCFUkZBf" 3785 | }, 3786 | { 3787 | "__type__": "cc.Label", 3788 | "_name": "", 3789 | "_objFlags": 0, 3790 | "node": { 3791 | "__id__": 108 3792 | }, 3793 | "_enabled": true, 3794 | "_useOriginalSize": false, 3795 | "_string": "开始游戏", 3796 | "_N$string": "开始游戏", 3797 | "_fontSize": 40, 3798 | "_lineHeight": 40, 3799 | "_enableWrapText": false, 3800 | "_N$file": null, 3801 | "_isSystemFontUsed": true, 3802 | "_spacingX": 0, 3803 | "_batchAsBitmap": false, 3804 | "_N$horizontalAlign": 1, 3805 | "_N$verticalAlign": 1, 3806 | "_N$fontFamily": "Arial", 3807 | "_N$overflow": 1, 3808 | "_N$cacheMode": 0, 3809 | "_id": "fbQ271anVH9pThoEg6tEL3" 3810 | }, 3811 | { 3812 | "__type__": "cc.Sprite", 3813 | "_name": "", 3814 | "_objFlags": 0, 3815 | "node": { 3816 | "__id__": 107 3817 | }, 3818 | "_enabled": true, 3819 | "_spriteFrame": { 3820 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 3821 | }, 3822 | "_type": 1, 3823 | "_sizeMode": 0, 3824 | "_fillType": 0, 3825 | "_fillCenter": { 3826 | "__type__": "cc.Vec2", 3827 | "x": 0, 3828 | "y": 0 3829 | }, 3830 | "_fillStart": 0, 3831 | "_fillRange": 0, 3832 | "_isTrimmedMode": true, 3833 | "_state": 0, 3834 | "_atlas": null, 3835 | "_srcBlendFactor": 770, 3836 | "_dstBlendFactor": 771, 3837 | "_id": "27s7LfcV9IjaMtUhygV8g4" 3838 | }, 3839 | { 3840 | "__type__": "cc.Widget", 3841 | "_name": "", 3842 | "_objFlags": 0, 3843 | "node": { 3844 | "__id__": 107 3845 | }, 3846 | "_enabled": true, 3847 | "alignMode": 0, 3848 | "_target": null, 3849 | "_alignFlags": 45, 3850 | "_left": 0, 3851 | "_right": 0, 3852 | "_top": 0, 3853 | "_bottom": 0, 3854 | "_verticalCenter": 0, 3855 | "_horizontalCenter": 0, 3856 | "_isAbsLeft": true, 3857 | "_isAbsRight": true, 3858 | "_isAbsTop": true, 3859 | "_isAbsBottom": true, 3860 | "_isAbsHorizontalCenter": true, 3861 | "_isAbsVerticalCenter": true, 3862 | "_originalWidth": 100, 3863 | "_originalHeight": 40, 3864 | "_id": "22G9mURmxNQIiHr6d9bmC0" 3865 | }, 3866 | { 3867 | "__type__": "cc.Button", 3868 | "_name": "", 3869 | "_objFlags": 0, 3870 | "node": { 3871 | "__id__": 106 3872 | }, 3873 | "_enabled": true, 3874 | "duration": 0.1, 3875 | "zoomScale": 1.2, 3876 | "clickEvents": [ 3877 | { 3878 | "__id__": 113 3879 | } 3880 | ], 3881 | "_N$interactable": true, 3882 | "_N$enableAutoGrayEffect": false, 3883 | "_N$transition": 3, 3884 | "transition": 3, 3885 | "_N$normalColor": { 3886 | "__type__": "cc.Color", 3887 | "r": 230, 3888 | "g": 230, 3889 | "b": 230, 3890 | "a": 255 3891 | }, 3892 | "_N$pressedColor": { 3893 | "__type__": "cc.Color", 3894 | "r": 200, 3895 | "g": 200, 3896 | "b": 200, 3897 | "a": 255 3898 | }, 3899 | "pressedColor": { 3900 | "__type__": "cc.Color", 3901 | "r": 200, 3902 | "g": 200, 3903 | "b": 200, 3904 | "a": 255 3905 | }, 3906 | "_N$hoverColor": { 3907 | "__type__": "cc.Color", 3908 | "r": 255, 3909 | "g": 255, 3910 | "b": 255, 3911 | "a": 255 3912 | }, 3913 | "hoverColor": { 3914 | "__type__": "cc.Color", 3915 | "r": 255, 3916 | "g": 255, 3917 | "b": 255, 3918 | "a": 255 3919 | }, 3920 | "_N$disabledColor": { 3921 | "__type__": "cc.Color", 3922 | "r": 120, 3923 | "g": 120, 3924 | "b": 120, 3925 | "a": 200 3926 | }, 3927 | "_N$normalSprite": { 3928 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 3929 | }, 3930 | "_N$pressedSprite": { 3931 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 3932 | }, 3933 | "pressedSprite": { 3934 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 3935 | }, 3936 | "_N$hoverSprite": { 3937 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 3938 | }, 3939 | "hoverSprite": { 3940 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 3941 | }, 3942 | "_N$disabledSprite": { 3943 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 3944 | }, 3945 | "_N$target": { 3946 | "__id__": 107 3947 | }, 3948 | "_id": "86ix0s/whLAYxeeesH2ITh" 3949 | }, 3950 | { 3951 | "__type__": "cc.ClickEvent", 3952 | "target": { 3953 | "__id__": 5 3954 | }, 3955 | "component": "", 3956 | "_componentId": "83fc3RT4iZGmZY4Z0+mX9TK", 3957 | "handler": "resetTable", 3958 | "customEventData": "" 3959 | }, 3960 | { 3961 | "__type__": "cc.Widget", 3962 | "_name": "", 3963 | "_objFlags": 0, 3964 | "node": { 3965 | "__id__": 106 3966 | }, 3967 | "_enabled": true, 3968 | "alignMode": 1, 3969 | "_target": null, 3970 | "_alignFlags": 21, 3971 | "_left": 0, 3972 | "_right": 0, 3973 | "_top": 455, 3974 | "_bottom": 425, 3975 | "_verticalCenter": 0, 3976 | "_horizontalCenter": 0, 3977 | "_isAbsLeft": true, 3978 | "_isAbsRight": true, 3979 | "_isAbsTop": true, 3980 | "_isAbsBottom": true, 3981 | "_isAbsHorizontalCenter": true, 3982 | "_isAbsVerticalCenter": true, 3983 | "_originalWidth": 0, 3984 | "_originalHeight": 80, 3985 | "_id": "d96Q1NGmBFhYn8yXn+e9QW" 3986 | }, 3987 | { 3988 | "__type__": "cc.Widget", 3989 | "_name": "", 3990 | "_objFlags": 0, 3991 | "node": { 3992 | "__id__": 102 3993 | }, 3994 | "_enabled": true, 3995 | "alignMode": 1, 3996 | "_target": null, 3997 | "_alignFlags": 45, 3998 | "_left": 0, 3999 | "_right": 0, 4000 | "_top": 0, 4001 | "_bottom": 0, 4002 | "_verticalCenter": 0, 4003 | "_horizontalCenter": 0, 4004 | "_isAbsLeft": true, 4005 | "_isAbsRight": true, 4006 | "_isAbsTop": true, 4007 | "_isAbsBottom": true, 4008 | "_isAbsHorizontalCenter": true, 4009 | "_isAbsVerticalCenter": true, 4010 | "_originalWidth": 0, 4011 | "_originalHeight": 0, 4012 | "_id": "b823K/YndGwrS58VY57mmu" 4013 | }, 4014 | { 4015 | "__type__": "cc.BlockInputEvents", 4016 | "_name": "", 4017 | "_objFlags": 0, 4018 | "node": { 4019 | "__id__": 102 4020 | }, 4021 | "_enabled": true, 4022 | "_id": "d3L4FKZK5A9ryI9hhhrAkH" 4023 | }, 4024 | { 4025 | "__type__": "cc.Node", 4026 | "_name": "EndUI", 4027 | "_objFlags": 0, 4028 | "_parent": { 4029 | "__id__": 2 4030 | }, 4031 | "_children": [ 4032 | { 4033 | "__id__": 118 4034 | }, 4035 | { 4036 | "__id__": 121 4037 | } 4038 | ], 4039 | "_active": false, 4040 | "_level": 2, 4041 | "_components": [ 4042 | { 4043 | "__id__": 130 4044 | }, 4045 | { 4046 | "__id__": 131 4047 | } 4048 | ], 4049 | "_prefab": null, 4050 | "_opacity": 255, 4051 | "_color": { 4052 | "__type__": "cc.Color", 4053 | "r": 255, 4054 | "g": 255, 4055 | "b": 255, 4056 | "a": 255 4057 | }, 4058 | "_contentSize": { 4059 | "__type__": "cc.Size", 4060 | "width": 640, 4061 | "height": 960 4062 | }, 4063 | "_anchorPoint": { 4064 | "__type__": "cc.Vec2", 4065 | "x": 0.5, 4066 | "y": 0.5 4067 | }, 4068 | "_position": { 4069 | "__type__": "cc.Vec3", 4070 | "x": 0, 4071 | "y": 0, 4072 | "z": 0 4073 | }, 4074 | "_scale": { 4075 | "__type__": "cc.Vec3", 4076 | "x": 1, 4077 | "y": 1, 4078 | "z": 1 4079 | }, 4080 | "_rotationX": 0, 4081 | "_rotationY": 0, 4082 | "_quat": { 4083 | "__type__": "cc.Quat", 4084 | "x": 0, 4085 | "y": 0, 4086 | "z": 0, 4087 | "w": 1 4088 | }, 4089 | "_skewX": 0, 4090 | "_skewY": 0, 4091 | "groupIndex": 0, 4092 | "_id": "2b06r2GCVLt4WYJfXAGBqX" 4093 | }, 4094 | { 4095 | "__type__": "cc.Node", 4096 | "_name": "New Label", 4097 | "_objFlags": 0, 4098 | "_parent": { 4099 | "__id__": 117 4100 | }, 4101 | "_children": [], 4102 | "_active": true, 4103 | "_level": 3, 4104 | "_components": [ 4105 | { 4106 | "__id__": 119 4107 | }, 4108 | { 4109 | "__id__": 120 4110 | } 4111 | ], 4112 | "_prefab": null, 4113 | "_opacity": 255, 4114 | "_color": { 4115 | "__type__": "cc.Color", 4116 | "r": 255, 4117 | "g": 255, 4118 | "b": 255, 4119 | "a": 255 4120 | }, 4121 | "_contentSize": { 4122 | "__type__": "cc.Size", 4123 | "width": 351.09, 4124 | "height": 100 4125 | }, 4126 | "_anchorPoint": { 4127 | "__type__": "cc.Vec2", 4128 | "x": 0.5, 4129 | "y": 0.5 4130 | }, 4131 | "_position": { 4132 | "__type__": "cc.Vec3", 4133 | "x": 0, 4134 | "y": 127, 4135 | "z": 0 4136 | }, 4137 | "_scale": { 4138 | "__type__": "cc.Vec3", 4139 | "x": 1, 4140 | "y": 1, 4141 | "z": 1 4142 | }, 4143 | "_rotationX": 0, 4144 | "_rotationY": 0, 4145 | "_quat": { 4146 | "__type__": "cc.Quat", 4147 | "x": 0, 4148 | "y": 0, 4149 | "z": 0, 4150 | "w": 1 4151 | }, 4152 | "_skewX": 0, 4153 | "_skewY": 0, 4154 | "groupIndex": 0, 4155 | "_id": "b3QkGYK2ZFsZtbElBSRwVy" 4156 | }, 4157 | { 4158 | "__type__": "cc.Label", 4159 | "_name": "", 4160 | "_objFlags": 0, 4161 | "node": { 4162 | "__id__": 118 4163 | }, 4164 | "_enabled": true, 4165 | "_useOriginalSize": false, 4166 | "_string": "YOU LOSE", 4167 | "_N$string": "YOU LOSE", 4168 | "_fontSize": 80, 4169 | "_lineHeight": 100, 4170 | "_enableWrapText": true, 4171 | "_N$file": null, 4172 | "_isSystemFontUsed": true, 4173 | "_spacingX": 0, 4174 | "_batchAsBitmap": false, 4175 | "_N$horizontalAlign": 1, 4176 | "_N$verticalAlign": 1, 4177 | "_N$fontFamily": "Arial", 4178 | "_N$overflow": 0, 4179 | "_N$cacheMode": 0, 4180 | "_id": "60ZDq+EjJG0IJWk1tjve7J" 4181 | }, 4182 | { 4183 | "__type__": "cc.Widget", 4184 | "_name": "", 4185 | "_objFlags": 0, 4186 | "node": { 4187 | "__id__": 118 4188 | }, 4189 | "_enabled": true, 4190 | "alignMode": 1, 4191 | "_target": null, 4192 | "_alignFlags": 21, 4193 | "_left": 0, 4194 | "_right": 0, 4195 | "_top": 303, 4196 | "_bottom": 557, 4197 | "_verticalCenter": 0, 4198 | "_horizontalCenter": 0, 4199 | "_isAbsLeft": true, 4200 | "_isAbsRight": true, 4201 | "_isAbsTop": true, 4202 | "_isAbsBottom": true, 4203 | "_isAbsHorizontalCenter": true, 4204 | "_isAbsVerticalCenter": true, 4205 | "_originalWidth": 0, 4206 | "_originalHeight": 100, 4207 | "_id": "52Fz3+UBVMNL7kw/07f+1D" 4208 | }, 4209 | { 4210 | "__type__": "cc.Node", 4211 | "_name": "New Button", 4212 | "_objFlags": 0, 4213 | "_parent": { 4214 | "__id__": 117 4215 | }, 4216 | "_children": [ 4217 | { 4218 | "__id__": 122 4219 | } 4220 | ], 4221 | "_active": true, 4222 | "_level": 3, 4223 | "_components": [ 4224 | { 4225 | "__id__": 127 4226 | }, 4227 | { 4228 | "__id__": 129 4229 | } 4230 | ], 4231 | "_prefab": null, 4232 | "_opacity": 255, 4233 | "_color": { 4234 | "__type__": "cc.Color", 4235 | "r": 255, 4236 | "g": 255, 4237 | "b": 255, 4238 | "a": 255 4239 | }, 4240 | "_contentSize": { 4241 | "__type__": "cc.Size", 4242 | "width": 200, 4243 | "height": 80 4244 | }, 4245 | "_anchorPoint": { 4246 | "__type__": "cc.Vec2", 4247 | "x": 0.5, 4248 | "y": 0.5 4249 | }, 4250 | "_position": { 4251 | "__type__": "cc.Vec3", 4252 | "x": 0, 4253 | "y": -15, 4254 | "z": 0 4255 | }, 4256 | "_scale": { 4257 | "__type__": "cc.Vec3", 4258 | "x": 1, 4259 | "y": 1, 4260 | "z": 1 4261 | }, 4262 | "_rotationX": 0, 4263 | "_rotationY": 0, 4264 | "_quat": { 4265 | "__type__": "cc.Quat", 4266 | "x": 0, 4267 | "y": 0, 4268 | "z": 0, 4269 | "w": 1 4270 | }, 4271 | "_skewX": 0, 4272 | "_skewY": 0, 4273 | "groupIndex": 0, 4274 | "_id": "ceZD6Iv3hE/oDsUX3Qewxr" 4275 | }, 4276 | { 4277 | "__type__": "cc.Node", 4278 | "_name": "Background", 4279 | "_objFlags": 0, 4280 | "_parent": { 4281 | "__id__": 121 4282 | }, 4283 | "_children": [ 4284 | { 4285 | "__id__": 123 4286 | } 4287 | ], 4288 | "_active": true, 4289 | "_level": 2, 4290 | "_components": [ 4291 | { 4292 | "__id__": 125 4293 | }, 4294 | { 4295 | "__id__": 126 4296 | } 4297 | ], 4298 | "_prefab": null, 4299 | "_opacity": 255, 4300 | "_color": { 4301 | "__type__": "cc.Color", 4302 | "r": 230, 4303 | "g": 230, 4304 | "b": 230, 4305 | "a": 255 4306 | }, 4307 | "_contentSize": { 4308 | "__type__": "cc.Size", 4309 | "width": 200, 4310 | "height": 80 4311 | }, 4312 | "_anchorPoint": { 4313 | "__type__": "cc.Vec2", 4314 | "x": 0.5, 4315 | "y": 0.5 4316 | }, 4317 | "_position": { 4318 | "__type__": "cc.Vec3", 4319 | "x": 0, 4320 | "y": 0, 4321 | "z": 0 4322 | }, 4323 | "_scale": { 4324 | "__type__": "cc.Vec3", 4325 | "x": 1, 4326 | "y": 1, 4327 | "z": 1 4328 | }, 4329 | "_rotationX": 0, 4330 | "_rotationY": 0, 4331 | "_quat": { 4332 | "__type__": "cc.Quat", 4333 | "x": 0, 4334 | "y": 0, 4335 | "z": 0, 4336 | "w": 1 4337 | }, 4338 | "_skewX": 0, 4339 | "_skewY": 0, 4340 | "groupIndex": 0, 4341 | "_id": "de/tSTxBZOhJExT4HYLw/K" 4342 | }, 4343 | { 4344 | "__type__": "cc.Node", 4345 | "_name": "Label", 4346 | "_objFlags": 0, 4347 | "_parent": { 4348 | "__id__": 122 4349 | }, 4350 | "_children": [], 4351 | "_active": true, 4352 | "_level": 3, 4353 | "_components": [ 4354 | { 4355 | "__id__": 124 4356 | } 4357 | ], 4358 | "_prefab": null, 4359 | "_opacity": 255, 4360 | "_color": { 4361 | "__type__": "cc.Color", 4362 | "r": 0, 4363 | "g": 0, 4364 | "b": 0, 4365 | "a": 255 4366 | }, 4367 | "_contentSize": { 4368 | "__type__": "cc.Size", 4369 | "width": 200, 4370 | "height": 40 4371 | }, 4372 | "_anchorPoint": { 4373 | "__type__": "cc.Vec2", 4374 | "x": 0.5, 4375 | "y": 0.5 4376 | }, 4377 | "_position": { 4378 | "__type__": "cc.Vec3", 4379 | "x": 0, 4380 | "y": 0, 4381 | "z": 0 4382 | }, 4383 | "_scale": { 4384 | "__type__": "cc.Vec3", 4385 | "x": 1, 4386 | "y": 1, 4387 | "z": 1 4388 | }, 4389 | "_rotationX": 0, 4390 | "_rotationY": 0, 4391 | "_quat": { 4392 | "__type__": "cc.Quat", 4393 | "x": 0, 4394 | "y": 0, 4395 | "z": 0, 4396 | "w": 1 4397 | }, 4398 | "_skewX": 0, 4399 | "_skewY": 0, 4400 | "groupIndex": 0, 4401 | "_id": "53M6ytfvFFzaoDyk3azIGV" 4402 | }, 4403 | { 4404 | "__type__": "cc.Label", 4405 | "_name": "", 4406 | "_objFlags": 0, 4407 | "node": { 4408 | "__id__": 123 4409 | }, 4410 | "_enabled": true, 4411 | "_useOriginalSize": false, 4412 | "_string": "重新挑战", 4413 | "_N$string": "重新挑战", 4414 | "_fontSize": 40, 4415 | "_lineHeight": 40, 4416 | "_enableWrapText": false, 4417 | "_N$file": null, 4418 | "_isSystemFontUsed": true, 4419 | "_spacingX": 0, 4420 | "_batchAsBitmap": false, 4421 | "_N$horizontalAlign": 1, 4422 | "_N$verticalAlign": 1, 4423 | "_N$fontFamily": "Arial", 4424 | "_N$overflow": 1, 4425 | "_N$cacheMode": 0, 4426 | "_id": "670i0P7DxPF75JmugwMZIH" 4427 | }, 4428 | { 4429 | "__type__": "cc.Sprite", 4430 | "_name": "", 4431 | "_objFlags": 0, 4432 | "node": { 4433 | "__id__": 122 4434 | }, 4435 | "_enabled": true, 4436 | "_spriteFrame": { 4437 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 4438 | }, 4439 | "_type": 1, 4440 | "_sizeMode": 0, 4441 | "_fillType": 0, 4442 | "_fillCenter": { 4443 | "__type__": "cc.Vec2", 4444 | "x": 0, 4445 | "y": 0 4446 | }, 4447 | "_fillStart": 0, 4448 | "_fillRange": 0, 4449 | "_isTrimmedMode": true, 4450 | "_state": 0, 4451 | "_atlas": null, 4452 | "_srcBlendFactor": 770, 4453 | "_dstBlendFactor": 771, 4454 | "_id": "86qbHaG1ZMS5oUiK/OYXI6" 4455 | }, 4456 | { 4457 | "__type__": "cc.Widget", 4458 | "_name": "", 4459 | "_objFlags": 0, 4460 | "node": { 4461 | "__id__": 122 4462 | }, 4463 | "_enabled": true, 4464 | "alignMode": 0, 4465 | "_target": null, 4466 | "_alignFlags": 45, 4467 | "_left": 0, 4468 | "_right": 0, 4469 | "_top": 0, 4470 | "_bottom": 0, 4471 | "_verticalCenter": 0, 4472 | "_horizontalCenter": 0, 4473 | "_isAbsLeft": true, 4474 | "_isAbsRight": true, 4475 | "_isAbsTop": true, 4476 | "_isAbsBottom": true, 4477 | "_isAbsHorizontalCenter": true, 4478 | "_isAbsVerticalCenter": true, 4479 | "_originalWidth": 100, 4480 | "_originalHeight": 40, 4481 | "_id": "67xwMAlWdO8pte46+QKl+u" 4482 | }, 4483 | { 4484 | "__type__": "cc.Button", 4485 | "_name": "", 4486 | "_objFlags": 0, 4487 | "node": { 4488 | "__id__": 121 4489 | }, 4490 | "_enabled": true, 4491 | "duration": 0.1, 4492 | "zoomScale": 1.2, 4493 | "clickEvents": [ 4494 | { 4495 | "__id__": 128 4496 | } 4497 | ], 4498 | "_N$interactable": true, 4499 | "_N$enableAutoGrayEffect": false, 4500 | "_N$transition": 3, 4501 | "transition": 3, 4502 | "_N$normalColor": { 4503 | "__type__": "cc.Color", 4504 | "r": 230, 4505 | "g": 230, 4506 | "b": 230, 4507 | "a": 255 4508 | }, 4509 | "_N$pressedColor": { 4510 | "__type__": "cc.Color", 4511 | "r": 200, 4512 | "g": 200, 4513 | "b": 200, 4514 | "a": 255 4515 | }, 4516 | "pressedColor": { 4517 | "__type__": "cc.Color", 4518 | "r": 200, 4519 | "g": 200, 4520 | "b": 200, 4521 | "a": 255 4522 | }, 4523 | "_N$hoverColor": { 4524 | "__type__": "cc.Color", 4525 | "r": 255, 4526 | "g": 255, 4527 | "b": 255, 4528 | "a": 255 4529 | }, 4530 | "hoverColor": { 4531 | "__type__": "cc.Color", 4532 | "r": 255, 4533 | "g": 255, 4534 | "b": 255, 4535 | "a": 255 4536 | }, 4537 | "_N$disabledColor": { 4538 | "__type__": "cc.Color", 4539 | "r": 120, 4540 | "g": 120, 4541 | "b": 120, 4542 | "a": 200 4543 | }, 4544 | "_N$normalSprite": { 4545 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 4546 | }, 4547 | "_N$pressedSprite": { 4548 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 4549 | }, 4550 | "pressedSprite": { 4551 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 4552 | }, 4553 | "_N$hoverSprite": { 4554 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 4555 | }, 4556 | "hoverSprite": { 4557 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 4558 | }, 4559 | "_N$disabledSprite": { 4560 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 4561 | }, 4562 | "_N$target": { 4563 | "__id__": 122 4564 | }, 4565 | "_id": "a9UhPOlWRK1IgfPuokGA8L" 4566 | }, 4567 | { 4568 | "__type__": "cc.ClickEvent", 4569 | "target": { 4570 | "__id__": 5 4571 | }, 4572 | "component": "", 4573 | "_componentId": "83fc3RT4iZGmZY4Z0+mX9TK", 4574 | "handler": "resetTable", 4575 | "customEventData": "" 4576 | }, 4577 | { 4578 | "__type__": "cc.Widget", 4579 | "_name": "", 4580 | "_objFlags": 0, 4581 | "node": { 4582 | "__id__": 121 4583 | }, 4584 | "_enabled": true, 4585 | "alignMode": 1, 4586 | "_target": null, 4587 | "_alignFlags": 21, 4588 | "_left": 0, 4589 | "_right": 0, 4590 | "_top": 455, 4591 | "_bottom": 425, 4592 | "_verticalCenter": 0, 4593 | "_horizontalCenter": 0, 4594 | "_isAbsLeft": true, 4595 | "_isAbsRight": true, 4596 | "_isAbsTop": true, 4597 | "_isAbsBottom": true, 4598 | "_isAbsHorizontalCenter": true, 4599 | "_isAbsVerticalCenter": true, 4600 | "_originalWidth": 0, 4601 | "_originalHeight": 80, 4602 | "_id": "64BvcqQSJPUpn8mykKu4Qc" 4603 | }, 4604 | { 4605 | "__type__": "cc.Widget", 4606 | "_name": "", 4607 | "_objFlags": 0, 4608 | "node": { 4609 | "__id__": 117 4610 | }, 4611 | "_enabled": true, 4612 | "alignMode": 1, 4613 | "_target": null, 4614 | "_alignFlags": 45, 4615 | "_left": 0, 4616 | "_right": 0, 4617 | "_top": 0, 4618 | "_bottom": 0, 4619 | "_verticalCenter": 0, 4620 | "_horizontalCenter": 0, 4621 | "_isAbsLeft": true, 4622 | "_isAbsRight": true, 4623 | "_isAbsTop": true, 4624 | "_isAbsBottom": true, 4625 | "_isAbsHorizontalCenter": true, 4626 | "_isAbsVerticalCenter": true, 4627 | "_originalWidth": 0, 4628 | "_originalHeight": 0, 4629 | "_id": "7dA8PSKwpMvLD5B9UDXETb" 4630 | }, 4631 | { 4632 | "__type__": "cc.BlockInputEvents", 4633 | "_name": "", 4634 | "_objFlags": 0, 4635 | "node": { 4636 | "__id__": 117 4637 | }, 4638 | "_enabled": true, 4639 | "_id": "0bVnPO2zRFqogo9Z8RawyO" 4640 | }, 4641 | { 4642 | "__type__": "cc.Node", 4643 | "_name": "GameUI", 4644 | "_objFlags": 0, 4645 | "_parent": { 4646 | "__id__": 2 4647 | }, 4648 | "_children": [ 4649 | { 4650 | "__id__": 133 4651 | }, 4652 | { 4653 | "__id__": 136 4654 | } 4655 | ], 4656 | "_active": false, 4657 | "_level": 2, 4658 | "_components": [ 4659 | { 4660 | "__id__": 145 4661 | } 4662 | ], 4663 | "_prefab": null, 4664 | "_opacity": 255, 4665 | "_color": { 4666 | "__type__": "cc.Color", 4667 | "r": 255, 4668 | "g": 255, 4669 | "b": 255, 4670 | "a": 255 4671 | }, 4672 | "_contentSize": { 4673 | "__type__": "cc.Size", 4674 | "width": 640, 4675 | "height": 960 4676 | }, 4677 | "_anchorPoint": { 4678 | "__type__": "cc.Vec2", 4679 | "x": 0.5, 4680 | "y": 0.5 4681 | }, 4682 | "_position": { 4683 | "__type__": "cc.Vec3", 4684 | "x": 0, 4685 | "y": 0, 4686 | "z": 0 4687 | }, 4688 | "_scale": { 4689 | "__type__": "cc.Vec3", 4690 | "x": 1, 4691 | "y": 1, 4692 | "z": 1 4693 | }, 4694 | "_rotationX": 0, 4695 | "_rotationY": 0, 4696 | "_quat": { 4697 | "__type__": "cc.Quat", 4698 | "x": 0, 4699 | "y": 0, 4700 | "z": 0, 4701 | "w": 1 4702 | }, 4703 | "_skewX": 0, 4704 | "_skewY": 0, 4705 | "groupIndex": 0, 4706 | "_id": "a9o4AuPoBAG7vxN1alfK/i" 4707 | }, 4708 | { 4709 | "__type__": "cc.Node", 4710 | "_name": "New Label", 4711 | "_objFlags": 0, 4712 | "_parent": { 4713 | "__id__": 132 4714 | }, 4715 | "_children": [], 4716 | "_active": true, 4717 | "_level": 3, 4718 | "_components": [ 4719 | { 4720 | "__id__": 134 4721 | }, 4722 | { 4723 | "__id__": 135 4724 | } 4725 | ], 4726 | "_prefab": null, 4727 | "_opacity": 255, 4728 | "_color": { 4729 | "__type__": "cc.Color", 4730 | "r": 255, 4731 | "g": 255, 4732 | "b": 255, 4733 | "a": 255 4734 | }, 4735 | "_contentSize": { 4736 | "__type__": "cc.Size", 4737 | "width": 164.49, 4738 | "height": 40 4739 | }, 4740 | "_anchorPoint": { 4741 | "__type__": "cc.Vec2", 4742 | "x": 0.5, 4743 | "y": 0.5 4744 | }, 4745 | "_position": { 4746 | "__type__": "cc.Vec3", 4747 | "x": -136, 4748 | "y": 436, 4749 | "z": 0 4750 | }, 4751 | "_scale": { 4752 | "__type__": "cc.Vec3", 4753 | "x": 1, 4754 | "y": 1, 4755 | "z": 1 4756 | }, 4757 | "_rotationX": 0, 4758 | "_rotationY": 0, 4759 | "_quat": { 4760 | "__type__": "cc.Quat", 4761 | "x": 0, 4762 | "y": 0, 4763 | "z": 0, 4764 | "w": 1 4765 | }, 4766 | "_skewX": 0, 4767 | "_skewY": 0, 4768 | "groupIndex": 0, 4769 | "_id": "99l1DxvPpMhKxvovDEiW0w" 4770 | }, 4771 | { 4772 | "__type__": "cc.Label", 4773 | "_name": "", 4774 | "_objFlags": 0, 4775 | "node": { 4776 | "__id__": 133 4777 | }, 4778 | "_enabled": true, 4779 | "_useOriginalSize": false, 4780 | "_string": "剩余10球", 4781 | "_N$string": "剩余10球", 4782 | "_fontSize": 40, 4783 | "_lineHeight": 40, 4784 | "_enableWrapText": true, 4785 | "_N$file": null, 4786 | "_isSystemFontUsed": true, 4787 | "_spacingX": 0, 4788 | "_batchAsBitmap": false, 4789 | "_N$horizontalAlign": 1, 4790 | "_N$verticalAlign": 1, 4791 | "_N$fontFamily": "Arial", 4792 | "_N$overflow": 0, 4793 | "_N$cacheMode": 0, 4794 | "_id": "cdDQu1l31LXoGJ1aidoZ/i" 4795 | }, 4796 | { 4797 | "__type__": "cc.Widget", 4798 | "_name": "", 4799 | "_objFlags": 0, 4800 | "node": { 4801 | "__id__": 133 4802 | }, 4803 | "_enabled": true, 4804 | "alignMode": 1, 4805 | "_target": null, 4806 | "_alignFlags": 9, 4807 | "_left": 101.755, 4808 | "_right": 0, 4809 | "_top": 24, 4810 | "_bottom": 0, 4811 | "_verticalCenter": 0, 4812 | "_horizontalCenter": 0, 4813 | "_isAbsLeft": true, 4814 | "_isAbsRight": true, 4815 | "_isAbsTop": true, 4816 | "_isAbsBottom": true, 4817 | "_isAbsHorizontalCenter": true, 4818 | "_isAbsVerticalCenter": true, 4819 | "_originalWidth": 0, 4820 | "_originalHeight": 0, 4821 | "_id": "cfxt00eJ1Mqq6jT18keZLU" 4822 | }, 4823 | { 4824 | "__type__": "cc.Node", 4825 | "_name": "New Button", 4826 | "_objFlags": 0, 4827 | "_parent": { 4828 | "__id__": 132 4829 | }, 4830 | "_children": [ 4831 | { 4832 | "__id__": 137 4833 | } 4834 | ], 4835 | "_active": true, 4836 | "_level": 3, 4837 | "_components": [ 4838 | { 4839 | "__id__": 142 4840 | }, 4841 | { 4842 | "__id__": 144 4843 | } 4844 | ], 4845 | "_prefab": null, 4846 | "_opacity": 255, 4847 | "_color": { 4848 | "__type__": "cc.Color", 4849 | "r": 255, 4850 | "g": 255, 4851 | "b": 255, 4852 | "a": 255 4853 | }, 4854 | "_contentSize": { 4855 | "__type__": "cc.Size", 4856 | "width": 100, 4857 | "height": 40 4858 | }, 4859 | "_anchorPoint": { 4860 | "__type__": "cc.Vec2", 4861 | "x": 0.5, 4862 | "y": 0.5 4863 | }, 4864 | "_position": { 4865 | "__type__": "cc.Vec3", 4866 | "x": 176, 4867 | "y": 436, 4868 | "z": 0 4869 | }, 4870 | "_scale": { 4871 | "__type__": "cc.Vec3", 4872 | "x": 1, 4873 | "y": 1, 4874 | "z": 1 4875 | }, 4876 | "_rotationX": 0, 4877 | "_rotationY": 0, 4878 | "_quat": { 4879 | "__type__": "cc.Quat", 4880 | "x": 0, 4881 | "y": 0, 4882 | "z": 0, 4883 | "w": 1 4884 | }, 4885 | "_skewX": 0, 4886 | "_skewY": 0, 4887 | "groupIndex": 0, 4888 | "_id": "5dH3QO2AhGNZgA+36u5WGz" 4889 | }, 4890 | { 4891 | "__type__": "cc.Node", 4892 | "_name": "Background", 4893 | "_objFlags": 0, 4894 | "_parent": { 4895 | "__id__": 136 4896 | }, 4897 | "_children": [ 4898 | { 4899 | "__id__": 138 4900 | } 4901 | ], 4902 | "_active": true, 4903 | "_level": 2, 4904 | "_components": [ 4905 | { 4906 | "__id__": 140 4907 | }, 4908 | { 4909 | "__id__": 141 4910 | } 4911 | ], 4912 | "_prefab": null, 4913 | "_opacity": 255, 4914 | "_color": { 4915 | "__type__": "cc.Color", 4916 | "r": 230, 4917 | "g": 230, 4918 | "b": 230, 4919 | "a": 255 4920 | }, 4921 | "_contentSize": { 4922 | "__type__": "cc.Size", 4923 | "width": 100, 4924 | "height": 40 4925 | }, 4926 | "_anchorPoint": { 4927 | "__type__": "cc.Vec2", 4928 | "x": 0.5, 4929 | "y": 0.5 4930 | }, 4931 | "_position": { 4932 | "__type__": "cc.Vec3", 4933 | "x": 0, 4934 | "y": 0, 4935 | "z": 0 4936 | }, 4937 | "_scale": { 4938 | "__type__": "cc.Vec3", 4939 | "x": 1, 4940 | "y": 1, 4941 | "z": 1 4942 | }, 4943 | "_rotationX": 0, 4944 | "_rotationY": 0, 4945 | "_quat": { 4946 | "__type__": "cc.Quat", 4947 | "x": 0, 4948 | "y": 0, 4949 | "z": 0, 4950 | "w": 1 4951 | }, 4952 | "_skewX": 0, 4953 | "_skewY": 0, 4954 | "groupIndex": 0, 4955 | "_id": "d2lG+Tx2lF8aC7D3DmfjHa" 4956 | }, 4957 | { 4958 | "__type__": "cc.Node", 4959 | "_name": "Label", 4960 | "_objFlags": 0, 4961 | "_parent": { 4962 | "__id__": 137 4963 | }, 4964 | "_children": [], 4965 | "_active": true, 4966 | "_level": 3, 4967 | "_components": [ 4968 | { 4969 | "__id__": 139 4970 | } 4971 | ], 4972 | "_prefab": null, 4973 | "_opacity": 255, 4974 | "_color": { 4975 | "__type__": "cc.Color", 4976 | "r": 0, 4977 | "g": 0, 4978 | "b": 0, 4979 | "a": 255 4980 | }, 4981 | "_contentSize": { 4982 | "__type__": "cc.Size", 4983 | "width": 100, 4984 | "height": 40 4985 | }, 4986 | "_anchorPoint": { 4987 | "__type__": "cc.Vec2", 4988 | "x": 0.5, 4989 | "y": 0.5 4990 | }, 4991 | "_position": { 4992 | "__type__": "cc.Vec3", 4993 | "x": 0, 4994 | "y": 0, 4995 | "z": 0 4996 | }, 4997 | "_scale": { 4998 | "__type__": "cc.Vec3", 4999 | "x": 1, 5000 | "y": 1, 5001 | "z": 1 5002 | }, 5003 | "_rotationX": 0, 5004 | "_rotationY": 0, 5005 | "_quat": { 5006 | "__type__": "cc.Quat", 5007 | "x": 0, 5008 | "y": 0, 5009 | "z": 0, 5010 | "w": 1 5011 | }, 5012 | "_skewX": 0, 5013 | "_skewY": 0, 5014 | "groupIndex": 0, 5015 | "_id": "6foG93iDxKWLS9YXvlX42N" 5016 | }, 5017 | { 5018 | "__type__": "cc.Label", 5019 | "_name": "", 5020 | "_objFlags": 0, 5021 | "node": { 5022 | "__id__": 138 5023 | }, 5024 | "_enabled": true, 5025 | "_useOriginalSize": false, 5026 | "_string": "放弃游戏", 5027 | "_N$string": "放弃游戏", 5028 | "_fontSize": 20, 5029 | "_lineHeight": 40, 5030 | "_enableWrapText": false, 5031 | "_N$file": null, 5032 | "_isSystemFontUsed": true, 5033 | "_spacingX": 0, 5034 | "_batchAsBitmap": false, 5035 | "_N$horizontalAlign": 1, 5036 | "_N$verticalAlign": 1, 5037 | "_N$fontFamily": "Arial", 5038 | "_N$overflow": 1, 5039 | "_N$cacheMode": 0, 5040 | "_id": "8ftWbnWrtO+a1KD1QZgeix" 5041 | }, 5042 | { 5043 | "__type__": "cc.Sprite", 5044 | "_name": "", 5045 | "_objFlags": 0, 5046 | "node": { 5047 | "__id__": 137 5048 | }, 5049 | "_enabled": true, 5050 | "_spriteFrame": { 5051 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 5052 | }, 5053 | "_type": 1, 5054 | "_sizeMode": 0, 5055 | "_fillType": 0, 5056 | "_fillCenter": { 5057 | "__type__": "cc.Vec2", 5058 | "x": 0, 5059 | "y": 0 5060 | }, 5061 | "_fillStart": 0, 5062 | "_fillRange": 0, 5063 | "_isTrimmedMode": true, 5064 | "_state": 0, 5065 | "_atlas": null, 5066 | "_srcBlendFactor": 770, 5067 | "_dstBlendFactor": 771, 5068 | "_id": "4fa9plb2NLerC/8XaU+5Z/" 5069 | }, 5070 | { 5071 | "__type__": "cc.Widget", 5072 | "_name": "", 5073 | "_objFlags": 0, 5074 | "node": { 5075 | "__id__": 137 5076 | }, 5077 | "_enabled": true, 5078 | "alignMode": 0, 5079 | "_target": null, 5080 | "_alignFlags": 45, 5081 | "_left": 0, 5082 | "_right": 0, 5083 | "_top": 0, 5084 | "_bottom": 0, 5085 | "_verticalCenter": 0, 5086 | "_horizontalCenter": 0, 5087 | "_isAbsLeft": true, 5088 | "_isAbsRight": true, 5089 | "_isAbsTop": true, 5090 | "_isAbsBottom": true, 5091 | "_isAbsHorizontalCenter": true, 5092 | "_isAbsVerticalCenter": true, 5093 | "_originalWidth": 100, 5094 | "_originalHeight": 40, 5095 | "_id": "dbYYM8e2ZHuqoJrCTmrlSX" 5096 | }, 5097 | { 5098 | "__type__": "cc.Button", 5099 | "_name": "", 5100 | "_objFlags": 0, 5101 | "node": { 5102 | "__id__": 136 5103 | }, 5104 | "_enabled": true, 5105 | "duration": 0.1, 5106 | "zoomScale": 1.2, 5107 | "clickEvents": [ 5108 | { 5109 | "__id__": 143 5110 | } 5111 | ], 5112 | "_N$interactable": true, 5113 | "_N$enableAutoGrayEffect": false, 5114 | "_N$transition": 3, 5115 | "transition": 3, 5116 | "_N$normalColor": { 5117 | "__type__": "cc.Color", 5118 | "r": 230, 5119 | "g": 230, 5120 | "b": 230, 5121 | "a": 255 5122 | }, 5123 | "_N$pressedColor": { 5124 | "__type__": "cc.Color", 5125 | "r": 200, 5126 | "g": 200, 5127 | "b": 200, 5128 | "a": 255 5129 | }, 5130 | "pressedColor": { 5131 | "__type__": "cc.Color", 5132 | "r": 200, 5133 | "g": 200, 5134 | "b": 200, 5135 | "a": 255 5136 | }, 5137 | "_N$hoverColor": { 5138 | "__type__": "cc.Color", 5139 | "r": 255, 5140 | "g": 255, 5141 | "b": 255, 5142 | "a": 255 5143 | }, 5144 | "hoverColor": { 5145 | "__type__": "cc.Color", 5146 | "r": 255, 5147 | "g": 255, 5148 | "b": 255, 5149 | "a": 255 5150 | }, 5151 | "_N$disabledColor": { 5152 | "__type__": "cc.Color", 5153 | "r": 120, 5154 | "g": 120, 5155 | "b": 120, 5156 | "a": 200 5157 | }, 5158 | "_N$normalSprite": { 5159 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 5160 | }, 5161 | "_N$pressedSprite": { 5162 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 5163 | }, 5164 | "pressedSprite": { 5165 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 5166 | }, 5167 | "_N$hoverSprite": { 5168 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 5169 | }, 5170 | "hoverSprite": { 5171 | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" 5172 | }, 5173 | "_N$disabledSprite": { 5174 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 5175 | }, 5176 | "_N$target": { 5177 | "__id__": 137 5178 | }, 5179 | "_id": "d6+PBg4a1PK6WaUkNr+J3o" 5180 | }, 5181 | { 5182 | "__type__": "cc.ClickEvent", 5183 | "target": { 5184 | "__id__": 5 5185 | }, 5186 | "component": "", 5187 | "_componentId": "83fc3RT4iZGmZY4Z0+mX9TK", 5188 | "handler": "lose", 5189 | "customEventData": "" 5190 | }, 5191 | { 5192 | "__type__": "cc.Widget", 5193 | "_name": "", 5194 | "_objFlags": 0, 5195 | "node": { 5196 | "__id__": 136 5197 | }, 5198 | "_enabled": true, 5199 | "alignMode": 1, 5200 | "_target": null, 5201 | "_alignFlags": 33, 5202 | "_left": 291, 5203 | "_right": 94, 5204 | "_top": 24, 5205 | "_bottom": 0, 5206 | "_verticalCenter": 0, 5207 | "_horizontalCenter": 0, 5208 | "_isAbsLeft": true, 5209 | "_isAbsRight": true, 5210 | "_isAbsTop": true, 5211 | "_isAbsBottom": true, 5212 | "_isAbsHorizontalCenter": true, 5213 | "_isAbsVerticalCenter": true, 5214 | "_originalWidth": 0, 5215 | "_originalHeight": 0, 5216 | "_id": "aetUW4sBhF+Jn46/T1r607" 5217 | }, 5218 | { 5219 | "__type__": "cc.Widget", 5220 | "_name": "", 5221 | "_objFlags": 0, 5222 | "node": { 5223 | "__id__": 132 5224 | }, 5225 | "_enabled": true, 5226 | "alignMode": 1, 5227 | "_target": null, 5228 | "_alignFlags": 45, 5229 | "_left": 0, 5230 | "_right": 0, 5231 | "_top": 0, 5232 | "_bottom": 0, 5233 | "_verticalCenter": 0, 5234 | "_horizontalCenter": 0, 5235 | "_isAbsLeft": true, 5236 | "_isAbsRight": true, 5237 | "_isAbsTop": true, 5238 | "_isAbsBottom": true, 5239 | "_isAbsHorizontalCenter": true, 5240 | "_isAbsVerticalCenter": true, 5241 | "_originalWidth": 0, 5242 | "_originalHeight": 0, 5243 | "_id": "caig8LAENETJL4PF3w/clc" 5244 | }, 5245 | { 5246 | "__type__": "cc.Canvas", 5247 | "_name": "", 5248 | "_objFlags": 0, 5249 | "node": { 5250 | "__id__": 2 5251 | }, 5252 | "_enabled": true, 5253 | "_designResolution": { 5254 | "__type__": "cc.Size", 5255 | "width": 640, 5256 | "height": 960 5257 | }, 5258 | "_fitWidth": true, 5259 | "_fitHeight": true, 5260 | "_id": "7fNpSCsr1Iv4xGQzKj82e7" 5261 | }, 5262 | { 5263 | "__type__": "5e3328q/6hFerHqo/qoqY6W", 5264 | "_name": "", 5265 | "_objFlags": 0, 5266 | "node": { 5267 | "__id__": 2 5268 | }, 5269 | "_enabled": true, 5270 | "active": true, 5271 | "aabb": false, 5272 | "pair": false, 5273 | "centerOfMass": false, 5274 | "joint": false, 5275 | "shape": false, 5276 | "mouseJoint": false, 5277 | "gravity": { 5278 | "__type__": "cc.Vec2", 5279 | "x": 0, 5280 | "y": 0 5281 | }, 5282 | "_id": "f93dAUyrJGI41P7FdjZ1u6" 5283 | } 5284 | ] -------------------------------------------------------------------------------- /assets/scene.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "d72ef37d-5f30-4faa-a6b2-d7e93d4eaa88", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/sprite_sheet.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | frames 6 | 7 | ball_black.png 8 | 9 | frame 10 | {{62,205},{18,18}} 11 | offset 12 | {0,0} 13 | rotated 14 | 15 | sourceColorRect 16 | {{0,0},{18,18}} 17 | sourceSize 18 | {18,18} 19 | 20 | ball_red.png 21 | 22 | frame 23 | {{42,205},{18,18}} 24 | offset 25 | {0,0} 26 | rotated 27 | 28 | sourceColorRect 29 | {{0,0},{18,18}} 30 | sourceSize 31 | {18,18} 32 | 33 | ball_white.png 34 | 35 | frame 36 | {{22,205},{18,18}} 37 | offset 38 | {0,0} 39 | rotated 40 | 41 | sourceColorRect 42 | {{0,0},{18,18}} 43 | sourceSize 44 | {18,18} 45 | 46 | ball_yellow.png 47 | 48 | frame 49 | {{2,205},{18,18}} 50 | offset 51 | {0,0} 52 | rotated 53 | 54 | sourceColorRect 55 | {{0,0},{18,18}} 56 | sourceSize 57 | {18,18} 58 | 59 | cue.png 60 | 61 | frame 62 | {{115,2},{332,9}} 63 | offset 64 | {0,0} 65 | rotated 66 | 67 | sourceColorRect 68 | {{0,0},{332,9}} 69 | sourceSize 70 | {332,9} 71 | 72 | gameover.png 73 | 74 | frame 75 | {{2,74},{129,93}} 76 | offset 77 | {0,0} 78 | rotated 79 | 80 | sourceColorRect 81 | {{0,0},{129,93}} 82 | sourceSize 83 | {129,93} 84 | 85 | logo.png 86 | 87 | frame 88 | {{2,2},{111,70}} 89 | offset 90 | {0,0} 91 | rotated 92 | 93 | sourceColorRect 94 | {{0,0},{111,70}} 95 | sourceSize 96 | {111,70} 97 | 98 | 99 | metadata 100 | 101 | format 102 | 2 103 | realTextureFileName 104 | sprite_sheet.png 105 | size 106 | {128,512} 107 | smartupdate 108 | $TexturePacker:SmartUpdate:fbc96c29de556ee98c0a032238328a32$ 109 | textureFileName 110 | sprite_sheet.png 111 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /assets/sprite_sheet.plist.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.4", 3 | "uuid": "94ad1f25-1cd0-42e8-9201-2ce7f439b617", 4 | "rawTextureUuid": "b5287fee-461e-47d6-96fc-ddd9a08b4b2f", 5 | "size": { 6 | "width": 128, 7 | "height": 512 8 | }, 9 | "type": "Texture Packer", 10 | "subMetas": { 11 | "ball_black.png": { 12 | "ver": "1.0.3", 13 | "uuid": "24fdd8ff-4366-44d9-a0df-a4dcfcfb0ec1", 14 | "rawTextureUuid": "b5287fee-461e-47d6-96fc-ddd9a08b4b2f", 15 | "trimType": "auto", 16 | "trimThreshold": 1, 17 | "rotated": false, 18 | "offsetX": 0, 19 | "offsetY": 0, 20 | "trimX": 62, 21 | "trimY": 205, 22 | "width": 18, 23 | "height": 18, 24 | "rawWidth": 18, 25 | "rawHeight": 18, 26 | "borderTop": 0, 27 | "borderBottom": 0, 28 | "borderLeft": 0, 29 | "borderRight": 0, 30 | "spriteType": "normal", 31 | "subMetas": {} 32 | }, 33 | "ball_red.png": { 34 | "ver": "1.0.3", 35 | "uuid": "eea703f9-d3f9-47f4-af08-cf8ee3f74cfd", 36 | "rawTextureUuid": "b5287fee-461e-47d6-96fc-ddd9a08b4b2f", 37 | "trimType": "auto", 38 | "trimThreshold": 1, 39 | "rotated": false, 40 | "offsetX": 0, 41 | "offsetY": 0, 42 | "trimX": 42, 43 | "trimY": 205, 44 | "width": 18, 45 | "height": 18, 46 | "rawWidth": 18, 47 | "rawHeight": 18, 48 | "borderTop": 0, 49 | "borderBottom": 0, 50 | "borderLeft": 0, 51 | "borderRight": 0, 52 | "spriteType": "normal", 53 | "subMetas": {} 54 | }, 55 | "ball_white.png": { 56 | "ver": "1.0.3", 57 | "uuid": "bf559375-94b0-44df-b463-558f8bce6279", 58 | "rawTextureUuid": "b5287fee-461e-47d6-96fc-ddd9a08b4b2f", 59 | "trimType": "auto", 60 | "trimThreshold": 1, 61 | "rotated": false, 62 | "offsetX": 0, 63 | "offsetY": 0, 64 | "trimX": 22, 65 | "trimY": 205, 66 | "width": 18, 67 | "height": 18, 68 | "rawWidth": 18, 69 | "rawHeight": 18, 70 | "borderTop": 0, 71 | "borderBottom": 0, 72 | "borderLeft": 0, 73 | "borderRight": 0, 74 | "spriteType": "normal", 75 | "subMetas": {} 76 | }, 77 | "ball_yellow.png": { 78 | "ver": "1.0.3", 79 | "uuid": "08f70a65-dfcf-4177-9caa-dba6d9c1200b", 80 | "rawTextureUuid": "b5287fee-461e-47d6-96fc-ddd9a08b4b2f", 81 | "trimType": "auto", 82 | "trimThreshold": 1, 83 | "rotated": false, 84 | "offsetX": 0, 85 | "offsetY": 0, 86 | "trimX": 2, 87 | "trimY": 205, 88 | "width": 18, 89 | "height": 18, 90 | "rawWidth": 18, 91 | "rawHeight": 18, 92 | "borderTop": 0, 93 | "borderBottom": 0, 94 | "borderLeft": 0, 95 | "borderRight": 0, 96 | "spriteType": "normal", 97 | "subMetas": {} 98 | }, 99 | "cue.png": { 100 | "ver": "1.0.3", 101 | "uuid": "7c35e826-6bba-4e58-bc80-f8f56f04fd6d", 102 | "rawTextureUuid": "b5287fee-461e-47d6-96fc-ddd9a08b4b2f", 103 | "trimType": "auto", 104 | "trimThreshold": 1, 105 | "rotated": true, 106 | "offsetX": 0, 107 | "offsetY": 0, 108 | "trimX": 115, 109 | "trimY": 2, 110 | "width": 332, 111 | "height": 9, 112 | "rawWidth": 332, 113 | "rawHeight": 9, 114 | "borderTop": 0, 115 | "borderBottom": 0, 116 | "borderLeft": 0, 117 | "borderRight": 0, 118 | "spriteType": "normal", 119 | "subMetas": {} 120 | }, 121 | "gameover.png": { 122 | "ver": "1.0.3", 123 | "uuid": "80e8ea82-3d0f-46e0-9b0d-7eee706efc55", 124 | "rawTextureUuid": "b5287fee-461e-47d6-96fc-ddd9a08b4b2f", 125 | "trimType": "auto", 126 | "trimThreshold": 1, 127 | "rotated": true, 128 | "offsetX": 0, 129 | "offsetY": 0, 130 | "trimX": 2, 131 | "trimY": 74, 132 | "width": 129, 133 | "height": 93, 134 | "rawWidth": 129, 135 | "rawHeight": 93, 136 | "borderTop": 0, 137 | "borderBottom": 0, 138 | "borderLeft": 0, 139 | "borderRight": 0, 140 | "spriteType": "normal", 141 | "subMetas": {} 142 | }, 143 | "logo.png": { 144 | "ver": "1.0.3", 145 | "uuid": "8b1ad49e-0fbb-492e-9357-76437024777b", 146 | "rawTextureUuid": "b5287fee-461e-47d6-96fc-ddd9a08b4b2f", 147 | "trimType": "auto", 148 | "trimThreshold": 1, 149 | "rotated": false, 150 | "offsetX": 0, 151 | "offsetY": 0, 152 | "trimX": 2, 153 | "trimY": 2, 154 | "width": 111, 155 | "height": 70, 156 | "rawWidth": 111, 157 | "rawHeight": 70, 158 | "borderTop": 0, 159 | "borderBottom": 0, 160 | "borderLeft": 0, 161 | "borderRight": 0, 162 | "spriteType": "normal", 163 | "subMetas": {} 164 | } 165 | } 166 | } -------------------------------------------------------------------------------- /assets/sprite_sheet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayarami/snookerDemo/7284070d35ec571ff8c888222ef8a97b22a25e2a/assets/sprite_sheet.png -------------------------------------------------------------------------------- /assets/sprite_sheet.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "b5287fee-461e-47d6-96fc-ddd9a08b4b2f", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "sprite_sheet": { 10 | "ver": "1.0.3", 11 | "uuid": "0157b519-9d4c-4be4-9a06-5aae374cacf1", 12 | "rawTextureUuid": "b5287fee-461e-47d6-96fc-ddd9a08b4b2f", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": -1, 17 | "offsetY": 88, 18 | "trimX": 2, 19 | "trimY": 2, 20 | "width": 122, 21 | "height": 332, 22 | "rawWidth": 128, 23 | "rawHeight": 512, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/table.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | wballPrefab : cc.Prefab, 6 | redBalls : cc.Prefab, 7 | _ballNum : 10, 8 | winUI : cc.Node, 9 | startUI : cc.Node, 10 | endUI : cc.Node, 11 | gameUI : cc.Node, 12 | ballLabel : cc.Label 13 | }, 14 | 15 | // LIFE-CYCLE CALLBACKS: 16 | 17 | // onLoad () {}, 18 | 19 | start () { 20 | this.node.on("wball", (node) => { 21 | setTimeout(() => { 22 | this.resetWhiteBall(); 23 | }, 100); 24 | }) 25 | }, 26 | 27 | resetTable () { 28 | this.node.removeAllChildren(true); 29 | this.resetWhiteBall(); 30 | this.resetRedBalls(); 31 | this._ballNum = 10; 32 | this.winUI.active = false; 33 | this.startUI.active = false; 34 | this.endUI.active = false; 35 | this.gameUI.active = true; 36 | this.ballLabel.string = "剩余" + this._ballNum + "球"; 37 | }, 38 | 39 | onBeginContact(contact, selfCollider, otherCollider) { 40 | //如果Collider的组件tag为1时,也就是小球碰撞到代表袋口的碰撞体时 41 | if (selfCollider.tag === 1) { 42 | //如果是与白球发生碰撞 43 | if (otherCollider.node.name === "wball") { 44 | //发送通知重新生成白球,重置位置 45 | this.node.emit("wball", otherCollider.node); 46 | } 47 | else { 48 | //红球数减1 49 | this._ballNum--; 50 | this.ballLabel.string = "剩余" + this._ballNum + "球"; 51 | //红球数小于等于0时,获得胜利 52 | if (this._ballNum <= 0) { 53 | this.gameUI.active = false; 54 | this.winUI.active = true; 55 | } 56 | } 57 | //将小球节点从场景树上移除 58 | otherCollider.node.removeFromParent(true); 59 | } 60 | }, 61 | 62 | resetWhiteBall () { 63 | var node = cc.instantiate(this.wballPrefab); 64 | node.parent = this.node; 65 | }, 66 | 67 | resetRedBalls () { 68 | var node = cc.instantiate(this.redBalls); 69 | node.parent = this.node; 70 | }, 71 | 72 | lose () { 73 | this.gameUI.active = false; 74 | this.endUI.active = true; 75 | } 76 | 77 | // update (dt) {}, 78 | }); 79 | -------------------------------------------------------------------------------- /assets/table.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "83fc3453-e226-4699-9638-674fa65fd4ca", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/wball.js: -------------------------------------------------------------------------------- 1 | // Learn cc.Class: 2 | // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/class.html 3 | // - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/class.html 4 | // Learn Attribute: 5 | // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html 6 | // - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/reference/attributes.html 7 | // Learn life-cycle callbacks: 8 | // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html 9 | // - [English] https://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html 10 | 11 | cc.Class({ 12 | extends: cc.Component, 13 | 14 | properties: { 15 | 16 | }, 17 | 18 | // LIFE-CYCLE CALLBACKS: 19 | 20 | // onLoad () {}, 21 | 22 | start () { 23 | //监听击球事件“cue” 24 | this.node.on("cue", this.onCue, this); 25 | //白球是否停止的标记,主要是用于使停止事件只发送一次 26 | //白球的初始状态是停止的,因此设置为true 27 | this._sleep = true; 28 | }, 29 | 30 | onCue (event) { 31 | if (this && this.node.parent) { 32 | //白球没有停止,因此_sleep为false 33 | this._sleep = false; 34 | //计算白球运动的方向向量 35 | var direction = this.node.parent.convertToNodeSpaceAR(event.cue); 36 | direction = direction.sub(this.node.position); 37 | direction = direction.normalize(); 38 | //根据方向和力度,计算并给予白球线速度 39 | this.node.getComponent(cc.RigidBody).linearVelocity = direction.mul(-Math.pow(1.016, Math.abs(event.force))); 40 | } 41 | }, 42 | 43 | update (dt) { 44 | if (!this.node.getComponent(cc.RigidBody).awake && !this._sleep) { 45 | //白球从运动到停止,状态切换时,标记设置为true,并发送白球停止的事件 46 | this._sleep = true; 47 | cc.Canvas.instance.node.emit("wball-sleep"); 48 | } 49 | }, 50 | }); 51 | -------------------------------------------------------------------------------- /assets/wball.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "419f727a-dbe6-411e-9010-ae1fd5f9330d", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/wball.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": "wball", 16 | "_objFlags": 0, 17 | "_parent": null, 18 | "_children": [ 19 | { 20 | "__id__": 2 21 | } 22 | ], 23 | "_active": true, 24 | "_level": 1, 25 | "_components": [ 26 | { 27 | "__id__": 9 28 | }, 29 | { 30 | "__id__": 10 31 | }, 32 | { 33 | "__id__": 11 34 | }, 35 | { 36 | "__id__": 12 37 | } 38 | ], 39 | "_prefab": { 40 | "__id__": 13 41 | }, 42 | "_opacity": 255, 43 | "_color": { 44 | "__type__": "cc.Color", 45 | "r": 255, 46 | "g": 255, 47 | "b": 255, 48 | "a": 255 49 | }, 50 | "_contentSize": { 51 | "__type__": "cc.Size", 52 | "width": 36, 53 | "height": 36 54 | }, 55 | "_anchorPoint": { 56 | "__type__": "cc.Vec2", 57 | "x": 0.5, 58 | "y": 0.5 59 | }, 60 | "_position": { 61 | "__type__": "cc.Vec3", 62 | "x": 0, 63 | "y": -240, 64 | "z": 0 65 | }, 66 | "_scale": { 67 | "__type__": "cc.Vec3", 68 | "x": 1, 69 | "y": 1, 70 | "z": 1 71 | }, 72 | "_rotationX": 0, 73 | "_rotationY": 0, 74 | "_quat": { 75 | "__type__": "cc.Quat", 76 | "x": 0, 77 | "y": 0, 78 | "z": 0, 79 | "w": 1 80 | }, 81 | "_skewX": 0, 82 | "_skewY": 0, 83 | "groupIndex": 0, 84 | "_id": "" 85 | }, 86 | { 87 | "__type__": "cc.Node", 88 | "_name": "cue", 89 | "_objFlags": 0, 90 | "_parent": { 91 | "__id__": 1 92 | }, 93 | "_children": [ 94 | { 95 | "__id__": 3 96 | } 97 | ], 98 | "_active": true, 99 | "_level": 3, 100 | "_components": [ 101 | { 102 | "__id__": 6 103 | }, 104 | { 105 | "__id__": 7 106 | } 107 | ], 108 | "_prefab": { 109 | "__id__": 8 110 | }, 111 | "_opacity": 255, 112 | "_color": { 113 | "__type__": "cc.Color", 114 | "r": 255, 115 | "g": 255, 116 | "b": 255, 117 | "a": 255 118 | }, 119 | "_contentSize": { 120 | "__type__": "cc.Size", 121 | "width": 0, 122 | "height": 9 123 | }, 124 | "_anchorPoint": { 125 | "__type__": "cc.Vec2", 126 | "x": 0, 127 | "y": 0 128 | }, 129 | "_position": { 130 | "__type__": "cc.Vec3", 131 | "x": 0, 132 | "y": 0, 133 | "z": 0 134 | }, 135 | "_scale": { 136 | "__type__": "cc.Vec3", 137 | "x": 1, 138 | "y": 1, 139 | "z": 1 140 | }, 141 | "_rotationX": 0, 142 | "_rotationY": 0, 143 | "_quat": { 144 | "__type__": "cc.Quat", 145 | "x": 0, 146 | "y": 0, 147 | "z": 0, 148 | "w": 1 149 | }, 150 | "_skewX": 0, 151 | "_skewY": 0, 152 | "groupIndex": 0, 153 | "_id": "" 154 | }, 155 | { 156 | "__type__": "cc.Node", 157 | "_name": "New Sprite", 158 | "_objFlags": 0, 159 | "_parent": { 160 | "__id__": 2 161 | }, 162 | "_children": [], 163 | "_active": true, 164 | "_level": 4, 165 | "_components": [ 166 | { 167 | "__id__": 4 168 | } 169 | ], 170 | "_prefab": { 171 | "__id__": 5 172 | }, 173 | "_opacity": 255, 174 | "_color": { 175 | "__type__": "cc.Color", 176 | "r": 255, 177 | "g": 255, 178 | "b": 255, 179 | "a": 255 180 | }, 181 | "_contentSize": { 182 | "__type__": "cc.Size", 183 | "width": 332, 184 | "height": 9 185 | }, 186 | "_anchorPoint": { 187 | "__type__": "cc.Vec2", 188 | "x": 0.5, 189 | "y": 0.5 190 | }, 191 | "_position": { 192 | "__type__": "cc.Vec3", 193 | "x": -182, 194 | "y": 0, 195 | "z": 0 196 | }, 197 | "_scale": { 198 | "__type__": "cc.Vec3", 199 | "x": 1, 200 | "y": 1, 201 | "z": 1 202 | }, 203 | "_rotationX": 0, 204 | "_rotationY": 0, 205 | "_quat": { 206 | "__type__": "cc.Quat", 207 | "x": 0, 208 | "y": 0, 209 | "z": 0, 210 | "w": 1 211 | }, 212 | "_skewX": 0, 213 | "_skewY": 0, 214 | "groupIndex": 0, 215 | "_id": "" 216 | }, 217 | { 218 | "__type__": "cc.Sprite", 219 | "_name": "", 220 | "_objFlags": 0, 221 | "node": { 222 | "__id__": 3 223 | }, 224 | "_enabled": true, 225 | "_spriteFrame": { 226 | "__uuid__": "7c35e826-6bba-4e58-bc80-f8f56f04fd6d" 227 | }, 228 | "_type": 0, 229 | "_sizeMode": 1, 230 | "_fillType": 0, 231 | "_fillCenter": { 232 | "__type__": "cc.Vec2", 233 | "x": 0, 234 | "y": 0 235 | }, 236 | "_fillStart": 0, 237 | "_fillRange": 0, 238 | "_isTrimmedMode": true, 239 | "_state": 0, 240 | "_atlas": { 241 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 242 | }, 243 | "_srcBlendFactor": 770, 244 | "_dstBlendFactor": 771, 245 | "_id": "" 246 | }, 247 | { 248 | "__type__": "cc.PrefabInfo", 249 | "root": { 250 | "__id__": 1 251 | }, 252 | "asset": { 253 | "__uuid__": "90284b6f-571c-4eb8-9c66-9c6a523e72aa" 254 | }, 255 | "fileId": "6eAEAR/8pEAKtnhetHXzdh", 256 | "sync": false 257 | }, 258 | { 259 | "__type__": "cc.Sprite", 260 | "_name": "", 261 | "_objFlags": 0, 262 | "node": { 263 | "__id__": 2 264 | }, 265 | "_enabled": true, 266 | "_spriteFrame": null, 267 | "_type": 0, 268 | "_sizeMode": 1, 269 | "_fillType": 0, 270 | "_fillCenter": { 271 | "__type__": "cc.Vec2", 272 | "x": 0, 273 | "y": 0 274 | }, 275 | "_fillStart": 0, 276 | "_fillRange": 0, 277 | "_isTrimmedMode": true, 278 | "_state": 0, 279 | "_atlas": null, 280 | "_srcBlendFactor": 770, 281 | "_dstBlendFactor": 771, 282 | "_id": "" 283 | }, 284 | { 285 | "__type__": "35b57bU3h9Pe6specuiOLkJ", 286 | "_name": "", 287 | "_objFlags": 0, 288 | "node": { 289 | "__id__": 2 290 | }, 291 | "_enabled": true, 292 | "cue": { 293 | "__id__": 3 294 | }, 295 | "_id": "" 296 | }, 297 | { 298 | "__type__": "cc.PrefabInfo", 299 | "root": { 300 | "__id__": 1 301 | }, 302 | "asset": { 303 | "__uuid__": "90284b6f-571c-4eb8-9c66-9c6a523e72aa" 304 | }, 305 | "fileId": "f8U9B5wm5NUJjxKhpCIp/v", 306 | "sync": false 307 | }, 308 | { 309 | "__type__": "cc.Sprite", 310 | "_name": "", 311 | "_objFlags": 0, 312 | "node": { 313 | "__id__": 1 314 | }, 315 | "_enabled": true, 316 | "_spriteFrame": { 317 | "__uuid__": "bf559375-94b0-44df-b463-558f8bce6279" 318 | }, 319 | "_type": 0, 320 | "_sizeMode": 0, 321 | "_fillType": 0, 322 | "_fillCenter": { 323 | "__type__": "cc.Vec2", 324 | "x": 0, 325 | "y": 0 326 | }, 327 | "_fillStart": 0, 328 | "_fillRange": 0, 329 | "_isTrimmedMode": true, 330 | "_state": 0, 331 | "_atlas": { 332 | "__uuid__": "94ad1f25-1cd0-42e8-9201-2ce7f439b617" 333 | }, 334 | "_srcBlendFactor": 770, 335 | "_dstBlendFactor": 771, 336 | "_id": "" 337 | }, 338 | { 339 | "__type__": "cc.RigidBody", 340 | "_name": "", 341 | "_objFlags": 0, 342 | "node": { 343 | "__id__": 1 344 | }, 345 | "_enabled": true, 346 | "_type": 2, 347 | "_allowSleep": true, 348 | "_gravityScale": 1, 349 | "_linearDamping": 1.2, 350 | "_angularDamping": 0.8, 351 | "_linearVelocity": { 352 | "__type__": "cc.Vec2", 353 | "x": 0, 354 | "y": 0 355 | }, 356 | "_angularVelocity": 0, 357 | "_fixedRotation": false, 358 | "enabledContactListener": false, 359 | "bullet": true, 360 | "awakeOnLoad": true, 361 | "_id": "" 362 | }, 363 | { 364 | "__type__": "cc.PhysicsCircleCollider", 365 | "_name": "", 366 | "_objFlags": 0, 367 | "node": { 368 | "__id__": 1 369 | }, 370 | "_enabled": true, 371 | "tag": 0, 372 | "_density": 5, 373 | "_sensor": false, 374 | "_friction": 0.2, 375 | "_restitution": 0.7, 376 | "body": null, 377 | "_offset": { 378 | "__type__": "cc.Vec2", 379 | "x": 0, 380 | "y": 0 381 | }, 382 | "_radius": 18, 383 | "_id": "" 384 | }, 385 | { 386 | "__type__": "419f7J62+ZBHpAQrh/V+TMN", 387 | "_name": "", 388 | "_objFlags": 0, 389 | "node": { 390 | "__id__": 1 391 | }, 392 | "_enabled": true, 393 | "cue": { 394 | "__id__": 2 395 | }, 396 | "_id": "" 397 | }, 398 | { 399 | "__type__": "cc.PrefabInfo", 400 | "root": { 401 | "__id__": 1 402 | }, 403 | "asset": { 404 | "__uuid__": "90284b6f-571c-4eb8-9c66-9c6a523e72aa" 405 | }, 406 | "fileId": "474nhnp5NEKYMJzv2YMw7V", 407 | "sync": false 408 | } 409 | ] -------------------------------------------------------------------------------- /assets/wball.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "90284b6f-571c-4eb8-9c66-9c6a523e72aa", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /project.json: -------------------------------------------------------------------------------- 1 | { 2 | "engine": "cocos-creator-js", 3 | "packages": "packages" 4 | } --------------------------------------------------------------------------------