├── .gitignore ├── README.md ├── assets ├── res.meta ├── res │ ├── animations.meta │ ├── animations │ │ ├── addscore.anim │ │ ├── addscore.anim.meta │ │ ├── loding.anim │ │ └── loding.anim.meta │ ├── audios.meta │ ├── audios │ │ ├── click.mp3 │ │ ├── click.mp3.meta │ │ ├── flattening.mp3 │ │ ├── flattening.mp3.meta │ │ ├── gameover.mp3 │ │ ├── gameover.mp3.meta │ │ ├── jump.mp3 │ │ ├── jump.mp3.meta │ │ ├── whatarewords.mp3 │ │ └── whatarewords.mp3.meta │ ├── prefabs.meta │ ├── prefabs │ │ ├── Block1.prefab │ │ ├── Block1.prefab.meta │ │ ├── Block2.prefab │ │ ├── Block2.prefab.meta │ │ ├── Block3.prefab │ │ ├── Block3.prefab.meta │ │ ├── Block4.prefab │ │ ├── Block4.prefab.meta │ │ ├── Block5.prefab │ │ ├── Block5.prefab.meta │ │ ├── Block6.prefab │ │ ├── Block6.prefab.meta │ │ ├── Block7.prefab │ │ ├── Block7.prefab.meta │ │ ├── Block8.prefab │ │ └── Block8.prefab.meta │ ├── rextures.meta │ ├── rextures │ │ ├── back_btn.png │ │ ├── back_btn.png.meta │ │ ├── bg.jpg │ │ ├── bg.jpg.meta │ │ ├── block1.png │ │ ├── block1.png.meta │ │ ├── block2.png │ │ ├── block2.png.meta │ │ ├── block3.png │ │ ├── block3.png.meta │ │ ├── cwt.jpg │ │ ├── cwt.jpg.meta │ │ ├── dumganhar.png │ │ ├── dumganhar.png.meta │ │ ├── finger.png │ │ ├── finger.png.meta │ │ ├── jare.png │ │ ├── jare.png.meta │ │ ├── knox.png │ │ ├── knox.png.meta │ │ ├── panda.png │ │ ├── panda.png.meta │ │ ├── piece.png │ │ ├── piece.png.meta │ │ ├── relive.png │ │ ├── relive.png.meta │ │ ├── restart_btn.png │ │ ├── restart_btn.png.meta │ │ ├── setting_bg.jpg │ │ ├── setting_bg.jpg.meta │ │ ├── setting_btn.png │ │ ├── setting_btn.png.meta │ │ ├── setting_off.png │ │ ├── setting_off.png.meta │ │ ├── setting_on.png │ │ ├── setting_on.png.meta │ │ ├── start_btn.png │ │ ├── start_btn.png.meta │ │ ├── streak.png │ │ ├── streak.png.meta │ │ ├── wx.jpg │ │ ├── wx.jpg.meta │ │ ├── zhe.png │ │ └── zhe.png.meta │ ├── scenes.meta │ └── scenes │ │ ├── game.fire │ │ ├── game.fire.meta │ │ ├── menu.fire │ │ └── menu.fire.meta ├── src.meta └── src │ ├── G.ts │ ├── G.ts.meta │ ├── components.meta │ ├── components │ ├── game.meta │ ├── game │ │ ├── GameScene.ts │ │ ├── GameScene.ts.meta │ │ ├── OverPanel.ts │ │ ├── OverPanel.ts.meta │ │ ├── stage.meta │ │ └── stage │ │ │ ├── Block.ts │ │ │ ├── Block.ts.meta │ │ │ ├── Player.ts │ │ │ ├── Player.ts.meta │ │ │ ├── Stage.ts │ │ │ └── Stage.ts.meta │ ├── menu.meta │ └── menu │ │ ├── MenuScene.ts │ │ └── MenuScene.ts.meta │ ├── events.meta │ ├── events │ ├── PlayerDieEvent.ts │ ├── PlayerDieEvent.ts.meta │ ├── PlayerJumpSuccessEvent.ts │ └── PlayerJumpSuccessEvent.ts.meta │ ├── utils.meta │ └── utils │ ├── Audio.ts │ └── Audio.ts.meta ├── creator.d.ts ├── jsconfig.json ├── project.json ├── settings ├── builder.json └── project.json └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | #///////////////////////////////////////////////////////////////////////////// 2 | # Fireball Projects 3 | #///////////////////////////////////////////////////////////////////////////// 4 | 5 | library/ 6 | temp/ 7 | local/ 8 | build/ 9 | 10 | #///////////////////////////////////////////////////////////////////////////// 11 | # Logs and databases 12 | #///////////////////////////////////////////////////////////////////////////// 13 | 14 | *.log 15 | *.sql 16 | *.sqlite 17 | 18 | #///////////////////////////////////////////////////////////////////////////// 19 | # files for debugger 20 | #///////////////////////////////////////////////////////////////////////////// 21 | 22 | *.sln 23 | *.csproj 24 | *.pidb 25 | *.unityproj 26 | *.suo 27 | 28 | #///////////////////////////////////////////////////////////////////////////// 29 | # OS generated files 30 | #///////////////////////////////////////////////////////////////////////////// 31 | 32 | .DS_Store 33 | ehthumbs.db 34 | Thumbs.db 35 | 36 | #///////////////////////////////////////////////////////////////////////////// 37 | # exvim files 38 | #///////////////////////////////////////////////////////////////////////////// 39 | 40 | *UnityVS.meta 41 | *.err 42 | *.err.meta 43 | *.exvim 44 | *.exvim.meta 45 | *.vimentry 46 | *.vimentry.meta 47 | *.vimproject 48 | *.vimproject.meta 49 | .vimfiles.*/ 50 | .exvim.*/ 51 | quick_gen_project_*_autogen.bat 52 | quick_gen_project_*_autogen.bat.meta 53 | quick_gen_project_*_autogen.sh 54 | quick_gen_project_*_autogen.sh.meta 55 | .exvim.app 56 | 57 | #///////////////////////////////////////////////////////////////////////////// 58 | # webstorm files 59 | #///////////////////////////////////////////////////////////////////////////// 60 | 61 | .idea/ 62 | 63 | #////////////////////////// 64 | # VS Code 65 | #////////////////////////// 66 | 67 | .vscode/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # jump 2 | 微信跳一跳复刻 CocosCreator + Typescript 在线试玩 https://potato47.github.io/game/jump/ 3 | 4 | # 简单讲两句 5 | 6 | 说一下核心逻辑 7 | 8 | 一开始我做的时候想用物理引擎,或者简单的用一下碰撞组件,后来发现很麻烦,不好控制落点 9 | 10 | 多次观察微信跳一跳的界面发现了一个规律: 11 | 12 | 人物每次跳跃落地都是固定的几个点,如果把跳跃的方块看做九宫格的正方形,那么落点一共可以分为五个,也就是上下左右中 13 | 14 | 一个非常简便的方法就出来了: 15 | 16 | 不需要人物落地之后再判断是否跳到方块上 17 | 18 | 人物跳跃之前就根据跳跃距离(跳跃距离根据蓄力时间得出),算出人物跳跃后距离目标方块哪个点(上下左右中)最近,直接让人物执行一个固定距离的跳跃动作就可以了,完全不需要物理引擎和碰撞系统,每个落点都是预设好的 19 | 20 | 当然要设定一个差值,当大于这个差值时,就代表跳到了方块外面 21 | 22 | --- 23 | 24 | 我还写了一个2d横版的跳一跳,感兴趣的可以看我另一个小游戏集合项目 https://github.com/potato47/so-many-games 25 | -------------------------------------------------------------------------------- /assets/res.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "0c3190c2-ccd5-435e-8406-2947c520f259", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/res/animations.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "eaa46e07-7eca-46c8-b338-56b8fe6776ae", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/res/animations/addscore.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "addscore", 4 | "_objFlags": 0, 5 | "_rawFiles": null, 6 | "_duration": 0.5, 7 | "sample": 60, 8 | "speed": 0.6, 9 | "wrapMode": 1, 10 | "curveData": { 11 | "props": { 12 | "y": [ 13 | { 14 | "frame": 0, 15 | "value": 185 16 | }, 17 | { 18 | "frame": 0.3333333333333333, 19 | "value": 388 20 | } 21 | ], 22 | "opacity": [ 23 | { 24 | "frame": 0.3333333333333333, 25 | "value": 255 26 | }, 27 | { 28 | "frame": 0.5, 29 | "value": 0 30 | } 31 | ] 32 | } 33 | }, 34 | "events": [] 35 | } -------------------------------------------------------------------------------- /assets/res/animations/addscore.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "d5e3f7c8-386a-4709-886c-36672838cc0f", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/res/animations/loding.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "loding", 4 | "_objFlags": 0, 5 | "_rawFiles": null, 6 | "_duration": 0.3333333333333333, 7 | "sample": 60, 8 | "speed": 0.2, 9 | "wrapMode": 2, 10 | "curveData": { 11 | "paths": { 12 | "0": { 13 | "props": { 14 | "active": [ 15 | { 16 | "frame": 0, 17 | "value": true 18 | }, 19 | { 20 | "frame": 0.08333333333333333, 21 | "value": false 22 | }, 23 | { 24 | "frame": 0.3333333333333333, 25 | "value": false 26 | } 27 | ] 28 | } 29 | }, 30 | "1": { 31 | "props": { 32 | "active": [ 33 | { 34 | "frame": 0, 35 | "value": false 36 | }, 37 | { 38 | "frame": 0.08333333333333333, 39 | "value": true 40 | }, 41 | { 42 | "frame": 0.16666666666666666, 43 | "value": false 44 | } 45 | ] 46 | } 47 | }, 48 | "2": { 49 | "props": { 50 | "active": [ 51 | { 52 | "frame": 0, 53 | "value": false 54 | }, 55 | { 56 | "frame": 0.16666666666666666, 57 | "value": true 58 | }, 59 | { 60 | "frame": 0.25, 61 | "value": false 62 | } 63 | ] 64 | } 65 | }, 66 | "3": { 67 | "props": { 68 | "active": [ 69 | { 70 | "frame": 0, 71 | "value": false 72 | }, 73 | { 74 | "frame": 0.08333333333333333, 75 | "value": false 76 | }, 77 | { 78 | "frame": 0.25, 79 | "value": true 80 | } 81 | ] 82 | } 83 | } 84 | } 85 | }, 86 | "events": [] 87 | } -------------------------------------------------------------------------------- /assets/res/animations/loding.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "3ed5f4ab-1a3e-4ad8-8a18-4d435ad761cf", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/res/audios.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "1bdcd263-2584-4342-a2e1-1fa0d38b4bbd", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/res/audios/click.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/audios/click.mp3 -------------------------------------------------------------------------------- /assets/res/audios/click.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "78796998-b17b-4dd0-aa78-3af75f7992eb", 4 | "downloadMode": 0, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/audios/flattening.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/audios/flattening.mp3 -------------------------------------------------------------------------------- /assets/res/audios/flattening.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "47a5cd4e-b506-480a-8399-797896db4a01", 4 | "downloadMode": 0, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/audios/gameover.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/audios/gameover.mp3 -------------------------------------------------------------------------------- /assets/res/audios/gameover.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "2d632dd8-04f5-490f-bed1-617beabc2824", 4 | "downloadMode": 0, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/audios/jump.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/audios/jump.mp3 -------------------------------------------------------------------------------- /assets/res/audios/jump.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "b1a3e089-8a25-47eb-8604-5980420b2974", 4 | "downloadMode": 0, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/audios/whatarewords.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/audios/whatarewords.mp3 -------------------------------------------------------------------------------- /assets/res/audios/whatarewords.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "cd1989d6-7195-4196-999d-326c4cd145e0", 4 | "downloadMode": 0, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/prefabs.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "3e706bf4-b140-4d42-8bee-c7d946a08a0d", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/res/prefabs/Block1.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_rawFiles": null, 7 | "data": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Node", 13 | "_name": "Block1", 14 | "_objFlags": 0, 15 | "_parent": null, 16 | "_children": [ 17 | { 18 | "__id__": 2 19 | }, 20 | { 21 | "__id__": 6 22 | }, 23 | { 24 | "__id__": 9 25 | }, 26 | { 27 | "__id__": 11 28 | }, 29 | { 30 | "__id__": 13 31 | }, 32 | { 33 | "__id__": 15 34 | }, 35 | { 36 | "__id__": 17 37 | }, 38 | { 39 | "__id__": 19 40 | }, 41 | { 42 | "__id__": 21 43 | } 44 | ], 45 | "_tag": -1, 46 | "_active": true, 47 | "_components": [ 48 | { 49 | "__id__": 23 50 | }, 51 | { 52 | "__id__": 24 53 | } 54 | ], 55 | "_prefab": { 56 | "__id__": 25 57 | }, 58 | "_id": "", 59 | "_opacity": 255, 60 | "_color": { 61 | "__type__": "cc.Color", 62 | "r": 255, 63 | "g": 255, 64 | "b": 255, 65 | "a": 255 66 | }, 67 | "_cascadeOpacityEnabled": true, 68 | "_anchorPoint": { 69 | "__type__": "cc.Vec2", 70 | "x": 0.5, 71 | "y": 0.5 72 | }, 73 | "_contentSize": { 74 | "__type__": "cc.Size", 75 | "width": 0, 76 | "height": 0 77 | }, 78 | "_rotationX": 0, 79 | "_rotationY": 0, 80 | "_scaleX": 1, 81 | "_scaleY": 1, 82 | "_position": { 83 | "__type__": "cc.Vec2", 84 | "x": 0, 85 | "y": 0 86 | }, 87 | "_skewX": 0, 88 | "_skewY": 0, 89 | "_localZOrder": 0, 90 | "_globalZOrder": 0, 91 | "_opacityModifyRGB": false, 92 | "groupIndex": 0 93 | }, 94 | { 95 | "__type__": "cc.Node", 96 | "_name": "score", 97 | "_objFlags": 0, 98 | "_parent": { 99 | "__id__": 1 100 | }, 101 | "_children": [], 102 | "_tag": -1, 103 | "_active": true, 104 | "_components": [ 105 | { 106 | "__id__": 3 107 | }, 108 | { 109 | "__id__": 4 110 | } 111 | ], 112 | "_prefab": { 113 | "__id__": 5 114 | }, 115 | "_id": "", 116 | "_opacity": 255, 117 | "_color": { 118 | "__type__": "cc.Color", 119 | "r": 0, 120 | "g": 0, 121 | "b": 0, 122 | "a": 255 123 | }, 124 | "_cascadeOpacityEnabled": true, 125 | "_anchorPoint": { 126 | "__type__": "cc.Vec2", 127 | "x": 0.5, 128 | "y": 0.5 129 | }, 130 | "_contentSize": { 131 | "__type__": "cc.Size", 132 | "width": 97.87, 133 | "height": 40 134 | }, 135 | "_rotationX": 0, 136 | "_rotationY": 0, 137 | "_scaleX": 1, 138 | "_scaleY": 1, 139 | "_position": { 140 | "__type__": "cc.Vec2", 141 | "x": 0, 142 | "y": 185 143 | }, 144 | "_skewX": 0, 145 | "_skewY": 0, 146 | "_localZOrder": 0, 147 | "_globalZOrder": 0, 148 | "_opacityModifyRGB": false, 149 | "groupIndex": 0 150 | }, 151 | { 152 | "__type__": "cc.Label", 153 | "_name": "", 154 | "_objFlags": 0, 155 | "node": { 156 | "__id__": 2 157 | }, 158 | "_enabled": true, 159 | "_useOriginalSize": false, 160 | "_actualFontSize": 40, 161 | "_fontSize": 40, 162 | "_lineHeight": 40, 163 | "_enableWrapText": true, 164 | "_N$file": null, 165 | "_isSystemFontUsed": true, 166 | "_spacingX": 0, 167 | "_N$string": "Label", 168 | "_N$horizontalAlign": 1, 169 | "_N$verticalAlign": 1, 170 | "_N$fontFamily": "Arial", 171 | "_N$overflow": 0 172 | }, 173 | { 174 | "__type__": "cc.Animation", 175 | "_name": "", 176 | "_objFlags": 0, 177 | "node": { 178 | "__id__": 2 179 | }, 180 | "_enabled": true, 181 | "_defaultClip": { 182 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 183 | }, 184 | "_clips": [ 185 | { 186 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 187 | } 188 | ], 189 | "playOnLoad": false 190 | }, 191 | { 192 | "__type__": "cc.PrefabInfo", 193 | "root": { 194 | "__id__": 1 195 | }, 196 | "asset": { 197 | "__uuid__": "72b0b9ad-9043-4d55-b479-5f4551913072" 198 | }, 199 | "fileId": "5aUXlu8yBIVr6/lGeGqE3J", 200 | "sync": false 201 | }, 202 | { 203 | "__type__": "cc.Node", 204 | "_name": "sprite", 205 | "_objFlags": 0, 206 | "_parent": { 207 | "__id__": 1 208 | }, 209 | "_children": [], 210 | "_tag": -1, 211 | "_active": true, 212 | "_components": [ 213 | { 214 | "__id__": 7 215 | } 216 | ], 217 | "_prefab": { 218 | "__id__": 8 219 | }, 220 | "_id": "", 221 | "_opacity": 255, 222 | "_color": { 223 | "__type__": "cc.Color", 224 | "r": 255, 225 | "g": 255, 226 | "b": 255, 227 | "a": 255 228 | }, 229 | "_cascadeOpacityEnabled": true, 230 | "_anchorPoint": { 231 | "__type__": "cc.Vec2", 232 | "x": 0.5, 233 | "y": 0.5 234 | }, 235 | "_contentSize": { 236 | "__type__": "cc.Size", 237 | "width": 358, 238 | "height": 240 239 | }, 240 | "_rotationX": 0, 241 | "_rotationY": 0, 242 | "_scaleX": 1, 243 | "_scaleY": 1, 244 | "_position": { 245 | "__type__": "cc.Vec2", 246 | "x": -43.4, 247 | "y": 119 248 | }, 249 | "_skewX": 0, 250 | "_skewY": 0, 251 | "_localZOrder": 0, 252 | "_globalZOrder": 0, 253 | "_opacityModifyRGB": false, 254 | "groupIndex": 0 255 | }, 256 | { 257 | "__type__": "cc.Sprite", 258 | "_name": "", 259 | "_objFlags": 0, 260 | "node": { 261 | "__id__": 6 262 | }, 263 | "_enabled": true, 264 | "_spriteFrame": { 265 | "__uuid__": "a925a0fc-db81-4e07-b4f7-e36f1f4c9a65" 266 | }, 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 | "_srcBlendFactor": 770, 279 | "_dstBlendFactor": 771, 280 | "_atlas": null 281 | }, 282 | { 283 | "__type__": "cc.PrefabInfo", 284 | "root": { 285 | "__id__": 1 286 | }, 287 | "asset": { 288 | "__uuid__": "72b0b9ad-9043-4d55-b479-5f4551913072" 289 | }, 290 | "fileId": "4csUrPMdZGRbGSkWonNVzz", 291 | "sync": false 292 | }, 293 | { 294 | "__type__": "cc.Node", 295 | "_name": "p1", 296 | "_objFlags": 0, 297 | "_parent": { 298 | "__id__": 1 299 | }, 300 | "_children": [], 301 | "_tag": -1, 302 | "_active": true, 303 | "_components": [], 304 | "_prefab": { 305 | "__id__": 10 306 | }, 307 | "_id": "", 308 | "_opacity": 255, 309 | "_color": { 310 | "__type__": "cc.Color", 311 | "r": 255, 312 | "g": 255, 313 | "b": 255, 314 | "a": 255 315 | }, 316 | "_cascadeOpacityEnabled": true, 317 | "_anchorPoint": { 318 | "__type__": "cc.Vec2", 319 | "x": 0.5, 320 | "y": 0.5 321 | }, 322 | "_contentSize": { 323 | "__type__": "cc.Size", 324 | "width": 0, 325 | "height": 0 326 | }, 327 | "_rotationX": 0, 328 | "_rotationY": 0, 329 | "_scaleX": 1, 330 | "_scaleY": 1, 331 | "_position": { 332 | "__type__": "cc.Vec2", 333 | "x": -133.2, 334 | "y": 74.2 335 | }, 336 | "_skewX": 0, 337 | "_skewY": 0, 338 | "_localZOrder": 0, 339 | "_globalZOrder": 0, 340 | "_opacityModifyRGB": false, 341 | "groupIndex": 0 342 | }, 343 | { 344 | "__type__": "cc.PrefabInfo", 345 | "root": { 346 | "__id__": 1 347 | }, 348 | "asset": { 349 | "__uuid__": "72b0b9ad-9043-4d55-b479-5f4551913072" 350 | }, 351 | "fileId": "aeYQqZkT9Cg5yXBwNqnIVw", 352 | "sync": false 353 | }, 354 | { 355 | "__type__": "cc.Node", 356 | "_name": "p2", 357 | "_objFlags": 0, 358 | "_parent": { 359 | "__id__": 1 360 | }, 361 | "_children": [], 362 | "_tag": -1, 363 | "_active": true, 364 | "_components": [], 365 | "_prefab": { 366 | "__id__": 12 367 | }, 368 | "_id": "", 369 | "_opacity": 255, 370 | "_color": { 371 | "__type__": "cc.Color", 372 | "r": 255, 373 | "g": 255, 374 | "b": 255, 375 | "a": 255 376 | }, 377 | "_cascadeOpacityEnabled": true, 378 | "_anchorPoint": { 379 | "__type__": "cc.Vec2", 380 | "x": 0.5, 381 | "y": 0.5 382 | }, 383 | "_contentSize": { 384 | "__type__": "cc.Size", 385 | "width": 0, 386 | "height": 0 387 | }, 388 | "_rotationX": 0, 389 | "_rotationY": 0, 390 | "_scaleX": 1, 391 | "_scaleY": 1, 392 | "_position": { 393 | "__type__": "cc.Vec2", 394 | "x": 135.6, 395 | "y": 75.4 396 | }, 397 | "_skewX": 0, 398 | "_skewY": 0, 399 | "_localZOrder": 0, 400 | "_globalZOrder": 0, 401 | "_opacityModifyRGB": false, 402 | "groupIndex": 0 403 | }, 404 | { 405 | "__type__": "cc.PrefabInfo", 406 | "root": { 407 | "__id__": 1 408 | }, 409 | "asset": { 410 | "__uuid__": "72b0b9ad-9043-4d55-b479-5f4551913072" 411 | }, 412 | "fileId": "2dO4/ivmtII5nHrbY84Elc", 413 | "sync": false 414 | }, 415 | { 416 | "__type__": "cc.Node", 417 | "_name": "中", 418 | "_objFlags": 0, 419 | "_parent": { 420 | "__id__": 1 421 | }, 422 | "_children": [], 423 | "_tag": -1, 424 | "_active": true, 425 | "_components": [], 426 | "_prefab": { 427 | "__id__": 14 428 | }, 429 | "_id": "", 430 | "_opacity": 255, 431 | "_color": { 432 | "__type__": "cc.Color", 433 | "r": 255, 434 | "g": 255, 435 | "b": 255, 436 | "a": 255 437 | }, 438 | "_cascadeOpacityEnabled": true, 439 | "_anchorPoint": { 440 | "__type__": "cc.Vec2", 441 | "x": 0.5, 442 | "y": 0.5 443 | }, 444 | "_contentSize": { 445 | "__type__": "cc.Size", 446 | "width": 0, 447 | "height": 0 448 | }, 449 | "_rotationX": 0, 450 | "_rotationY": 0, 451 | "_scaleX": 1, 452 | "_scaleY": 1, 453 | "_position": { 454 | "__type__": "cc.Vec2", 455 | "x": 0, 456 | "y": 144 457 | }, 458 | "_skewX": 0, 459 | "_skewY": 0, 460 | "_localZOrder": 0, 461 | "_globalZOrder": 0, 462 | "_opacityModifyRGB": false, 463 | "groupIndex": 0 464 | }, 465 | { 466 | "__type__": "cc.PrefabInfo", 467 | "root": { 468 | "__id__": 1 469 | }, 470 | "asset": { 471 | "__uuid__": "72b0b9ad-9043-4d55-b479-5f4551913072" 472 | }, 473 | "fileId": "bayqXQrwpKgLTmbZCgD+7Q", 474 | "sync": false 475 | }, 476 | { 477 | "__type__": "cc.Node", 478 | "_name": "上", 479 | "_objFlags": 0, 480 | "_parent": { 481 | "__id__": 1 482 | }, 483 | "_children": [], 484 | "_tag": -1, 485 | "_active": true, 486 | "_components": [], 487 | "_prefab": { 488 | "__id__": 16 489 | }, 490 | "_id": "", 491 | "_opacity": 255, 492 | "_color": { 493 | "__type__": "cc.Color", 494 | "r": 255, 495 | "g": 255, 496 | "b": 255, 497 | "a": 255 498 | }, 499 | "_cascadeOpacityEnabled": true, 500 | "_anchorPoint": { 501 | "__type__": "cc.Vec2", 502 | "x": 0.5, 503 | "y": 0.5 504 | }, 505 | "_contentSize": { 506 | "__type__": "cc.Size", 507 | "width": 0, 508 | "height": 0 509 | }, 510 | "_rotationX": 0, 511 | "_rotationY": 0, 512 | "_scaleX": 1, 513 | "_scaleY": 1, 514 | "_position": { 515 | "__type__": "cc.Vec2", 516 | "x": 31, 517 | "y": 160 518 | }, 519 | "_skewX": 0, 520 | "_skewY": 0, 521 | "_localZOrder": 0, 522 | "_globalZOrder": 0, 523 | "_opacityModifyRGB": false, 524 | "groupIndex": 0 525 | }, 526 | { 527 | "__type__": "cc.PrefabInfo", 528 | "root": { 529 | "__id__": 1 530 | }, 531 | "asset": { 532 | "__uuid__": "72b0b9ad-9043-4d55-b479-5f4551913072" 533 | }, 534 | "fileId": "34Tv94diFOmIhw2GRTvILA", 535 | "sync": false 536 | }, 537 | { 538 | "__type__": "cc.Node", 539 | "_name": "下", 540 | "_objFlags": 0, 541 | "_parent": { 542 | "__id__": 1 543 | }, 544 | "_children": [], 545 | "_tag": -1, 546 | "_active": true, 547 | "_components": [], 548 | "_prefab": { 549 | "__id__": 18 550 | }, 551 | "_id": "", 552 | "_opacity": 255, 553 | "_color": { 554 | "__type__": "cc.Color", 555 | "r": 255, 556 | "g": 255, 557 | "b": 255, 558 | "a": 255 559 | }, 560 | "_cascadeOpacityEnabled": true, 561 | "_anchorPoint": { 562 | "__type__": "cc.Vec2", 563 | "x": 0.5, 564 | "y": 0.5 565 | }, 566 | "_contentSize": { 567 | "__type__": "cc.Size", 568 | "width": 0, 569 | "height": 0 570 | }, 571 | "_rotationX": 0, 572 | "_rotationY": 0, 573 | "_scaleX": 1, 574 | "_scaleY": 1, 575 | "_position": { 576 | "__type__": "cc.Vec2", 577 | "x": -37, 578 | "y": 120 579 | }, 580 | "_skewX": 0, 581 | "_skewY": 0, 582 | "_localZOrder": 0, 583 | "_globalZOrder": 0, 584 | "_opacityModifyRGB": false, 585 | "groupIndex": 0 586 | }, 587 | { 588 | "__type__": "cc.PrefabInfo", 589 | "root": { 590 | "__id__": 1 591 | }, 592 | "asset": { 593 | "__uuid__": "72b0b9ad-9043-4d55-b479-5f4551913072" 594 | }, 595 | "fileId": "362Pw2xIRPUL7ib1eChzLn", 596 | "sync": false 597 | }, 598 | { 599 | "__type__": "cc.Node", 600 | "_name": "左", 601 | "_objFlags": 0, 602 | "_parent": { 603 | "__id__": 1 604 | }, 605 | "_children": [], 606 | "_tag": -1, 607 | "_active": true, 608 | "_components": [], 609 | "_prefab": { 610 | "__id__": 20 611 | }, 612 | "_id": "", 613 | "_opacity": 255, 614 | "_color": { 615 | "__type__": "cc.Color", 616 | "r": 255, 617 | "g": 255, 618 | "b": 255, 619 | "a": 255 620 | }, 621 | "_cascadeOpacityEnabled": true, 622 | "_anchorPoint": { 623 | "__type__": "cc.Vec2", 624 | "x": 0.5, 625 | "y": 0.5 626 | }, 627 | "_contentSize": { 628 | "__type__": "cc.Size", 629 | "width": 0, 630 | "height": 0 631 | }, 632 | "_rotationX": 0, 633 | "_rotationY": 0, 634 | "_scaleX": 1, 635 | "_scaleY": 1, 636 | "_position": { 637 | "__type__": "cc.Vec2", 638 | "x": -27, 639 | "y": 164 640 | }, 641 | "_skewX": 0, 642 | "_skewY": 0, 643 | "_localZOrder": 0, 644 | "_globalZOrder": 0, 645 | "_opacityModifyRGB": false, 646 | "groupIndex": 0 647 | }, 648 | { 649 | "__type__": "cc.PrefabInfo", 650 | "root": { 651 | "__id__": 1 652 | }, 653 | "asset": { 654 | "__uuid__": "72b0b9ad-9043-4d55-b479-5f4551913072" 655 | }, 656 | "fileId": "b9GI4DPUZPyJNiGkfeJrPW", 657 | "sync": false 658 | }, 659 | { 660 | "__type__": "cc.Node", 661 | "_name": "右", 662 | "_objFlags": 0, 663 | "_parent": { 664 | "__id__": 1 665 | }, 666 | "_children": [], 667 | "_tag": -1, 668 | "_active": true, 669 | "_components": [], 670 | "_prefab": { 671 | "__id__": 22 672 | }, 673 | "_id": "", 674 | "_opacity": 255, 675 | "_color": { 676 | "__type__": "cc.Color", 677 | "r": 255, 678 | "g": 255, 679 | "b": 255, 680 | "a": 255 681 | }, 682 | "_cascadeOpacityEnabled": true, 683 | "_anchorPoint": { 684 | "__type__": "cc.Vec2", 685 | "x": 0.5, 686 | "y": 0.5 687 | }, 688 | "_contentSize": { 689 | "__type__": "cc.Size", 690 | "width": 0, 691 | "height": 0 692 | }, 693 | "_rotationX": 0, 694 | "_rotationY": 0, 695 | "_scaleX": 1, 696 | "_scaleY": 1, 697 | "_position": { 698 | "__type__": "cc.Vec2", 699 | "x": 35, 700 | "y": 118 701 | }, 702 | "_skewX": 0, 703 | "_skewY": 0, 704 | "_localZOrder": 0, 705 | "_globalZOrder": 0, 706 | "_opacityModifyRGB": false, 707 | "groupIndex": 0 708 | }, 709 | { 710 | "__type__": "cc.PrefabInfo", 711 | "root": { 712 | "__id__": 1 713 | }, 714 | "asset": { 715 | "__uuid__": "72b0b9ad-9043-4d55-b479-5f4551913072" 716 | }, 717 | "fileId": "cbuRjl9H5NapoTljnOPber", 718 | "sync": false 719 | }, 720 | { 721 | "__type__": "007507xQ0hEcbmFDxV+eRZJ", 722 | "_name": "", 723 | "_objFlags": 0, 724 | "node": { 725 | "__id__": 1 726 | }, 727 | "_enabled": true, 728 | "maxScale": 1, 729 | "minScale": 1, 730 | "minDistance": 200, 731 | "maxDistance": 400, 732 | "anchorOffset": 100, 733 | "score": 1, 734 | "rightAnchorList": [ 735 | { 736 | "__id__": 17 737 | }, 738 | { 739 | "__id__": 13 740 | }, 741 | { 742 | "__id__": 15 743 | } 744 | ], 745 | "leftAnchorList": [ 746 | { 747 | "__id__": 19 748 | }, 749 | { 750 | "__id__": 13 751 | }, 752 | { 753 | "__id__": 21 754 | } 755 | ], 756 | "centerAnchor": { 757 | "__id__": 13 758 | }, 759 | "p1": { 760 | "__id__": 9 761 | }, 762 | "p2": { 763 | "__id__": 11 764 | } 765 | }, 766 | { 767 | "__type__": "cc.Animation", 768 | "_name": "", 769 | "_objFlags": 0, 770 | "node": { 771 | "__id__": 1 772 | }, 773 | "_enabled": true, 774 | "_defaultClip": null, 775 | "_clips": [ 776 | { 777 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 778 | } 779 | ], 780 | "playOnLoad": false 781 | }, 782 | { 783 | "__type__": "cc.PrefabInfo", 784 | "root": { 785 | "__id__": 1 786 | }, 787 | "asset": { 788 | "__uuid__": "72b0b9ad-9043-4d55-b479-5f4551913072" 789 | }, 790 | "fileId": "d9rymN3+pHIpr9SUtrlJXM", 791 | "sync": false 792 | } 793 | ] -------------------------------------------------------------------------------- /assets/res/prefabs/Block1.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "72b0b9ad-9043-4d55-b479-5f4551913072", 4 | "asyncLoadAssets": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/prefabs/Block2.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_rawFiles": null, 7 | "data": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Node", 13 | "_name": "Block2", 14 | "_objFlags": 0, 15 | "_parent": null, 16 | "_children": [ 17 | { 18 | "__id__": 2 19 | }, 20 | { 21 | "__id__": 6 22 | }, 23 | { 24 | "__id__": 9 25 | }, 26 | { 27 | "__id__": 11 28 | }, 29 | { 30 | "__id__": 13 31 | }, 32 | { 33 | "__id__": 15 34 | }, 35 | { 36 | "__id__": 17 37 | }, 38 | { 39 | "__id__": 19 40 | }, 41 | { 42 | "__id__": 21 43 | } 44 | ], 45 | "_tag": -1, 46 | "_active": true, 47 | "_components": [ 48 | { 49 | "__id__": 23 50 | } 51 | ], 52 | "_prefab": { 53 | "__id__": 24 54 | }, 55 | "_id": "", 56 | "_opacity": 255, 57 | "_color": { 58 | "__type__": "cc.Color", 59 | "r": 255, 60 | "g": 255, 61 | "b": 255, 62 | "a": 255 63 | }, 64 | "_cascadeOpacityEnabled": true, 65 | "_anchorPoint": { 66 | "__type__": "cc.Vec2", 67 | "x": 0.5, 68 | "y": 0.5 69 | }, 70 | "_contentSize": { 71 | "__type__": "cc.Size", 72 | "width": 0, 73 | "height": 0 74 | }, 75 | "_rotationX": 0, 76 | "_rotationY": 0, 77 | "_scaleX": 1, 78 | "_scaleY": 1, 79 | "_position": { 80 | "__type__": "cc.Vec2", 81 | "x": 0, 82 | "y": 0 83 | }, 84 | "_skewX": 0, 85 | "_skewY": 0, 86 | "_localZOrder": 0, 87 | "_globalZOrder": 0, 88 | "_opacityModifyRGB": false, 89 | "groupIndex": 0 90 | }, 91 | { 92 | "__type__": "cc.Node", 93 | "_name": "score", 94 | "_objFlags": 0, 95 | "_parent": { 96 | "__id__": 1 97 | }, 98 | "_children": [], 99 | "_tag": -1, 100 | "_active": true, 101 | "_components": [ 102 | { 103 | "__id__": 3 104 | }, 105 | { 106 | "__id__": 4 107 | } 108 | ], 109 | "_prefab": { 110 | "__id__": 5 111 | }, 112 | "_id": "", 113 | "_opacity": 255, 114 | "_color": { 115 | "__type__": "cc.Color", 116 | "r": 0, 117 | "g": 0, 118 | "b": 0, 119 | "a": 255 120 | }, 121 | "_cascadeOpacityEnabled": true, 122 | "_anchorPoint": { 123 | "__type__": "cc.Vec2", 124 | "x": 0.5, 125 | "y": 0.5 126 | }, 127 | "_contentSize": { 128 | "__type__": "cc.Size", 129 | "width": 97.87, 130 | "height": 40 131 | }, 132 | "_rotationX": 0, 133 | "_rotationY": 0, 134 | "_scaleX": 1, 135 | "_scaleY": 1, 136 | "_position": { 137 | "__type__": "cc.Vec2", 138 | "x": 0, 139 | "y": 185 140 | }, 141 | "_skewX": 0, 142 | "_skewY": 0, 143 | "_localZOrder": 0, 144 | "_globalZOrder": 0, 145 | "_opacityModifyRGB": false, 146 | "groupIndex": 0 147 | }, 148 | { 149 | "__type__": "cc.Label", 150 | "_name": "", 151 | "_objFlags": 0, 152 | "node": { 153 | "__id__": 2 154 | }, 155 | "_enabled": true, 156 | "_useOriginalSize": false, 157 | "_actualFontSize": 40, 158 | "_fontSize": 40, 159 | "_lineHeight": 40, 160 | "_enableWrapText": true, 161 | "_N$file": null, 162 | "_isSystemFontUsed": true, 163 | "_spacingX": 0, 164 | "_N$string": "Label", 165 | "_N$horizontalAlign": 1, 166 | "_N$verticalAlign": 1, 167 | "_N$fontFamily": "Arial", 168 | "_N$overflow": 0 169 | }, 170 | { 171 | "__type__": "cc.Animation", 172 | "_name": "", 173 | "_objFlags": 0, 174 | "node": { 175 | "__id__": 2 176 | }, 177 | "_enabled": true, 178 | "_defaultClip": { 179 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 180 | }, 181 | "_clips": [ 182 | { 183 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 184 | } 185 | ], 186 | "playOnLoad": false 187 | }, 188 | { 189 | "__type__": "cc.PrefabInfo", 190 | "root": { 191 | "__id__": 1 192 | }, 193 | "asset": { 194 | "__uuid__": "0301f3aa-524f-46e6-a89e-65fc22ce1b2d" 195 | }, 196 | "fileId": "10aetLR7pNto3hlVvjKjkH", 197 | "sync": false 198 | }, 199 | { 200 | "__type__": "cc.Node", 201 | "_name": "sprite", 202 | "_objFlags": 0, 203 | "_parent": { 204 | "__id__": 1 205 | }, 206 | "_children": [], 207 | "_tag": -1, 208 | "_active": true, 209 | "_components": [ 210 | { 211 | "__id__": 7 212 | } 213 | ], 214 | "_prefab": { 215 | "__id__": 8 216 | }, 217 | "_id": "", 218 | "_opacity": 255, 219 | "_color": { 220 | "__type__": "cc.Color", 221 | "r": 255, 222 | "g": 255, 223 | "b": 255, 224 | "a": 255 225 | }, 226 | "_cascadeOpacityEnabled": true, 227 | "_anchorPoint": { 228 | "__type__": "cc.Vec2", 229 | "x": 0.5, 230 | "y": 0.5 231 | }, 232 | "_contentSize": { 233 | "__type__": "cc.Size", 234 | "width": 358, 235 | "height": 240 236 | }, 237 | "_rotationX": 0, 238 | "_rotationY": 0, 239 | "_scaleX": 1, 240 | "_scaleY": 1, 241 | "_position": { 242 | "__type__": "cc.Vec2", 243 | "x": -43.4, 244 | "y": 119 245 | }, 246 | "_skewX": 0, 247 | "_skewY": 0, 248 | "_localZOrder": 0, 249 | "_globalZOrder": 0, 250 | "_opacityModifyRGB": false, 251 | "groupIndex": 0 252 | }, 253 | { 254 | "__type__": "cc.Sprite", 255 | "_name": "", 256 | "_objFlags": 0, 257 | "node": { 258 | "__id__": 6 259 | }, 260 | "_enabled": true, 261 | "_spriteFrame": { 262 | "__uuid__": "01a8e5d8-ff3d-485f-9690-4b1fe7a3893d" 263 | }, 264 | "_type": 0, 265 | "_sizeMode": 1, 266 | "_fillType": 0, 267 | "_fillCenter": { 268 | "__type__": "cc.Vec2", 269 | "x": 0, 270 | "y": 0 271 | }, 272 | "_fillStart": 0, 273 | "_fillRange": 0, 274 | "_isTrimmedMode": true, 275 | "_srcBlendFactor": 770, 276 | "_dstBlendFactor": 771, 277 | "_atlas": null 278 | }, 279 | { 280 | "__type__": "cc.PrefabInfo", 281 | "root": { 282 | "__id__": 1 283 | }, 284 | "asset": { 285 | "__uuid__": "0301f3aa-524f-46e6-a89e-65fc22ce1b2d" 286 | }, 287 | "fileId": "0dj1kBkZlCG7d9pjkQFPsM", 288 | "sync": false 289 | }, 290 | { 291 | "__type__": "cc.Node", 292 | "_name": "p1", 293 | "_objFlags": 0, 294 | "_parent": { 295 | "__id__": 1 296 | }, 297 | "_children": [], 298 | "_tag": -1, 299 | "_active": true, 300 | "_components": [], 301 | "_prefab": { 302 | "__id__": 10 303 | }, 304 | "_id": "", 305 | "_opacity": 255, 306 | "_color": { 307 | "__type__": "cc.Color", 308 | "r": 255, 309 | "g": 255, 310 | "b": 255, 311 | "a": 255 312 | }, 313 | "_cascadeOpacityEnabled": true, 314 | "_anchorPoint": { 315 | "__type__": "cc.Vec2", 316 | "x": 0.5, 317 | "y": 0.5 318 | }, 319 | "_contentSize": { 320 | "__type__": "cc.Size", 321 | "width": 0, 322 | "height": 0 323 | }, 324 | "_rotationX": 0, 325 | "_rotationY": 0, 326 | "_scaleX": 1, 327 | "_scaleY": 1, 328 | "_position": { 329 | "__type__": "cc.Vec2", 330 | "x": -133.2, 331 | "y": 74.2 332 | }, 333 | "_skewX": 0, 334 | "_skewY": 0, 335 | "_localZOrder": 0, 336 | "_globalZOrder": 0, 337 | "_opacityModifyRGB": false, 338 | "groupIndex": 0 339 | }, 340 | { 341 | "__type__": "cc.PrefabInfo", 342 | "root": { 343 | "__id__": 1 344 | }, 345 | "asset": { 346 | "__uuid__": "0301f3aa-524f-46e6-a89e-65fc22ce1b2d" 347 | }, 348 | "fileId": "22hn3a/gNIZpdqMcGy4tOl", 349 | "sync": false 350 | }, 351 | { 352 | "__type__": "cc.Node", 353 | "_name": "p2", 354 | "_objFlags": 0, 355 | "_parent": { 356 | "__id__": 1 357 | }, 358 | "_children": [], 359 | "_tag": -1, 360 | "_active": true, 361 | "_components": [], 362 | "_prefab": { 363 | "__id__": 12 364 | }, 365 | "_id": "", 366 | "_opacity": 255, 367 | "_color": { 368 | "__type__": "cc.Color", 369 | "r": 255, 370 | "g": 255, 371 | "b": 255, 372 | "a": 255 373 | }, 374 | "_cascadeOpacityEnabled": true, 375 | "_anchorPoint": { 376 | "__type__": "cc.Vec2", 377 | "x": 0.5, 378 | "y": 0.5 379 | }, 380 | "_contentSize": { 381 | "__type__": "cc.Size", 382 | "width": 0, 383 | "height": 0 384 | }, 385 | "_rotationX": 0, 386 | "_rotationY": 0, 387 | "_scaleX": 1, 388 | "_scaleY": 1, 389 | "_position": { 390 | "__type__": "cc.Vec2", 391 | "x": 135.6, 392 | "y": 75.4 393 | }, 394 | "_skewX": 0, 395 | "_skewY": 0, 396 | "_localZOrder": 0, 397 | "_globalZOrder": 0, 398 | "_opacityModifyRGB": false, 399 | "groupIndex": 0 400 | }, 401 | { 402 | "__type__": "cc.PrefabInfo", 403 | "root": { 404 | "__id__": 1 405 | }, 406 | "asset": { 407 | "__uuid__": "0301f3aa-524f-46e6-a89e-65fc22ce1b2d" 408 | }, 409 | "fileId": "c1ZaW1vZhFGpK3Fa3eZW0Y", 410 | "sync": false 411 | }, 412 | { 413 | "__type__": "cc.Node", 414 | "_name": "中", 415 | "_objFlags": 0, 416 | "_parent": { 417 | "__id__": 1 418 | }, 419 | "_children": [], 420 | "_tag": -1, 421 | "_active": true, 422 | "_components": [], 423 | "_prefab": { 424 | "__id__": 14 425 | }, 426 | "_id": "", 427 | "_opacity": 255, 428 | "_color": { 429 | "__type__": "cc.Color", 430 | "r": 255, 431 | "g": 255, 432 | "b": 255, 433 | "a": 255 434 | }, 435 | "_cascadeOpacityEnabled": true, 436 | "_anchorPoint": { 437 | "__type__": "cc.Vec2", 438 | "x": 0.5, 439 | "y": 0.5 440 | }, 441 | "_contentSize": { 442 | "__type__": "cc.Size", 443 | "width": 0, 444 | "height": 0 445 | }, 446 | "_rotationX": 0, 447 | "_rotationY": 0, 448 | "_scaleX": 1, 449 | "_scaleY": 1, 450 | "_position": { 451 | "__type__": "cc.Vec2", 452 | "x": 0, 453 | "y": 144 454 | }, 455 | "_skewX": 0, 456 | "_skewY": 0, 457 | "_localZOrder": 0, 458 | "_globalZOrder": 0, 459 | "_opacityModifyRGB": false, 460 | "groupIndex": 0 461 | }, 462 | { 463 | "__type__": "cc.PrefabInfo", 464 | "root": { 465 | "__id__": 1 466 | }, 467 | "asset": { 468 | "__uuid__": "0301f3aa-524f-46e6-a89e-65fc22ce1b2d" 469 | }, 470 | "fileId": "763YEsJRlFZ7nh1afdegZt", 471 | "sync": false 472 | }, 473 | { 474 | "__type__": "cc.Node", 475 | "_name": "上", 476 | "_objFlags": 0, 477 | "_parent": { 478 | "__id__": 1 479 | }, 480 | "_children": [], 481 | "_tag": -1, 482 | "_active": true, 483 | "_components": [], 484 | "_prefab": { 485 | "__id__": 16 486 | }, 487 | "_id": "", 488 | "_opacity": 255, 489 | "_color": { 490 | "__type__": "cc.Color", 491 | "r": 255, 492 | "g": 255, 493 | "b": 255, 494 | "a": 255 495 | }, 496 | "_cascadeOpacityEnabled": true, 497 | "_anchorPoint": { 498 | "__type__": "cc.Vec2", 499 | "x": 0.5, 500 | "y": 0.5 501 | }, 502 | "_contentSize": { 503 | "__type__": "cc.Size", 504 | "width": 0, 505 | "height": 0 506 | }, 507 | "_rotationX": 0, 508 | "_rotationY": 0, 509 | "_scaleX": 1, 510 | "_scaleY": 1, 511 | "_position": { 512 | "__type__": "cc.Vec2", 513 | "x": 31, 514 | "y": 160 515 | }, 516 | "_skewX": 0, 517 | "_skewY": 0, 518 | "_localZOrder": 0, 519 | "_globalZOrder": 0, 520 | "_opacityModifyRGB": false, 521 | "groupIndex": 0 522 | }, 523 | { 524 | "__type__": "cc.PrefabInfo", 525 | "root": { 526 | "__id__": 1 527 | }, 528 | "asset": { 529 | "__uuid__": "0301f3aa-524f-46e6-a89e-65fc22ce1b2d" 530 | }, 531 | "fileId": "33qUrn13VATKnd2IMID2g5", 532 | "sync": false 533 | }, 534 | { 535 | "__type__": "cc.Node", 536 | "_name": "下", 537 | "_objFlags": 0, 538 | "_parent": { 539 | "__id__": 1 540 | }, 541 | "_children": [], 542 | "_tag": -1, 543 | "_active": true, 544 | "_components": [], 545 | "_prefab": { 546 | "__id__": 18 547 | }, 548 | "_id": "", 549 | "_opacity": 255, 550 | "_color": { 551 | "__type__": "cc.Color", 552 | "r": 255, 553 | "g": 255, 554 | "b": 255, 555 | "a": 255 556 | }, 557 | "_cascadeOpacityEnabled": true, 558 | "_anchorPoint": { 559 | "__type__": "cc.Vec2", 560 | "x": 0.5, 561 | "y": 0.5 562 | }, 563 | "_contentSize": { 564 | "__type__": "cc.Size", 565 | "width": 0, 566 | "height": 0 567 | }, 568 | "_rotationX": 0, 569 | "_rotationY": 0, 570 | "_scaleX": 1, 571 | "_scaleY": 1, 572 | "_position": { 573 | "__type__": "cc.Vec2", 574 | "x": -37, 575 | "y": 120 576 | }, 577 | "_skewX": 0, 578 | "_skewY": 0, 579 | "_localZOrder": 0, 580 | "_globalZOrder": 0, 581 | "_opacityModifyRGB": false, 582 | "groupIndex": 0 583 | }, 584 | { 585 | "__type__": "cc.PrefabInfo", 586 | "root": { 587 | "__id__": 1 588 | }, 589 | "asset": { 590 | "__uuid__": "0301f3aa-524f-46e6-a89e-65fc22ce1b2d" 591 | }, 592 | "fileId": "154cLi+NBHhItRVDlKDOmM", 593 | "sync": false 594 | }, 595 | { 596 | "__type__": "cc.Node", 597 | "_name": "左", 598 | "_objFlags": 0, 599 | "_parent": { 600 | "__id__": 1 601 | }, 602 | "_children": [], 603 | "_tag": -1, 604 | "_active": true, 605 | "_components": [], 606 | "_prefab": { 607 | "__id__": 20 608 | }, 609 | "_id": "", 610 | "_opacity": 255, 611 | "_color": { 612 | "__type__": "cc.Color", 613 | "r": 255, 614 | "g": 255, 615 | "b": 255, 616 | "a": 255 617 | }, 618 | "_cascadeOpacityEnabled": true, 619 | "_anchorPoint": { 620 | "__type__": "cc.Vec2", 621 | "x": 0.5, 622 | "y": 0.5 623 | }, 624 | "_contentSize": { 625 | "__type__": "cc.Size", 626 | "width": 0, 627 | "height": 0 628 | }, 629 | "_rotationX": 0, 630 | "_rotationY": 0, 631 | "_scaleX": 1, 632 | "_scaleY": 1, 633 | "_position": { 634 | "__type__": "cc.Vec2", 635 | "x": -27, 636 | "y": 164 637 | }, 638 | "_skewX": 0, 639 | "_skewY": 0, 640 | "_localZOrder": 0, 641 | "_globalZOrder": 0, 642 | "_opacityModifyRGB": false, 643 | "groupIndex": 0 644 | }, 645 | { 646 | "__type__": "cc.PrefabInfo", 647 | "root": { 648 | "__id__": 1 649 | }, 650 | "asset": { 651 | "__uuid__": "0301f3aa-524f-46e6-a89e-65fc22ce1b2d" 652 | }, 653 | "fileId": "9eee30GLNAq6CC4wTaA6rq", 654 | "sync": false 655 | }, 656 | { 657 | "__type__": "cc.Node", 658 | "_name": "右", 659 | "_objFlags": 0, 660 | "_parent": { 661 | "__id__": 1 662 | }, 663 | "_children": [], 664 | "_tag": -1, 665 | "_active": true, 666 | "_components": [], 667 | "_prefab": { 668 | "__id__": 22 669 | }, 670 | "_id": "", 671 | "_opacity": 255, 672 | "_color": { 673 | "__type__": "cc.Color", 674 | "r": 255, 675 | "g": 255, 676 | "b": 255, 677 | "a": 255 678 | }, 679 | "_cascadeOpacityEnabled": true, 680 | "_anchorPoint": { 681 | "__type__": "cc.Vec2", 682 | "x": 0.5, 683 | "y": 0.5 684 | }, 685 | "_contentSize": { 686 | "__type__": "cc.Size", 687 | "width": 0, 688 | "height": 0 689 | }, 690 | "_rotationX": 0, 691 | "_rotationY": 0, 692 | "_scaleX": 1, 693 | "_scaleY": 1, 694 | "_position": { 695 | "__type__": "cc.Vec2", 696 | "x": 35, 697 | "y": 118 698 | }, 699 | "_skewX": 0, 700 | "_skewY": 0, 701 | "_localZOrder": 0, 702 | "_globalZOrder": 0, 703 | "_opacityModifyRGB": false, 704 | "groupIndex": 0 705 | }, 706 | { 707 | "__type__": "cc.PrefabInfo", 708 | "root": { 709 | "__id__": 1 710 | }, 711 | "asset": { 712 | "__uuid__": "0301f3aa-524f-46e6-a89e-65fc22ce1b2d" 713 | }, 714 | "fileId": "23HZ09r6JA86TJzMIZ8PL4", 715 | "sync": false 716 | }, 717 | { 718 | "__type__": "007507xQ0hEcbmFDxV+eRZJ", 719 | "_name": "", 720 | "_objFlags": 0, 721 | "node": { 722 | "__id__": 1 723 | }, 724 | "_enabled": true, 725 | "maxScale": 1, 726 | "minScale": 1, 727 | "minDistance": 200, 728 | "maxDistance": 400, 729 | "anchorOffset": 100, 730 | "score": 1, 731 | "rightAnchorList": [ 732 | { 733 | "__id__": 17 734 | }, 735 | { 736 | "__id__": 13 737 | }, 738 | { 739 | "__id__": 15 740 | } 741 | ], 742 | "leftAnchorList": [ 743 | { 744 | "__id__": 19 745 | }, 746 | { 747 | "__id__": 13 748 | }, 749 | { 750 | "__id__": 21 751 | } 752 | ], 753 | "centerAnchor": { 754 | "__id__": 13 755 | }, 756 | "p1": { 757 | "__id__": 9 758 | }, 759 | "p2": { 760 | "__id__": 11 761 | } 762 | }, 763 | { 764 | "__type__": "cc.PrefabInfo", 765 | "root": { 766 | "__id__": 1 767 | }, 768 | "asset": { 769 | "__uuid__": "0301f3aa-524f-46e6-a89e-65fc22ce1b2d" 770 | }, 771 | "fileId": "40HoyicZBAob8hzBkVH1w9", 772 | "sync": false 773 | } 774 | ] -------------------------------------------------------------------------------- /assets/res/prefabs/Block2.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "0301f3aa-524f-46e6-a89e-65fc22ce1b2d", 4 | "asyncLoadAssets": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/prefabs/Block3.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_rawFiles": null, 7 | "data": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Node", 13 | "_name": "Block3", 14 | "_objFlags": 0, 15 | "_parent": null, 16 | "_children": [ 17 | { 18 | "__id__": 2 19 | }, 20 | { 21 | "__id__": 6 22 | }, 23 | { 24 | "__id__": 9 25 | }, 26 | { 27 | "__id__": 11 28 | }, 29 | { 30 | "__id__": 13 31 | }, 32 | { 33 | "__id__": 15 34 | }, 35 | { 36 | "__id__": 17 37 | }, 38 | { 39 | "__id__": 19 40 | }, 41 | { 42 | "__id__": 21 43 | } 44 | ], 45 | "_tag": -1, 46 | "_active": true, 47 | "_components": [ 48 | { 49 | "__id__": 23 50 | } 51 | ], 52 | "_prefab": { 53 | "__id__": 24 54 | }, 55 | "_id": "", 56 | "_opacity": 255, 57 | "_color": { 58 | "__type__": "cc.Color", 59 | "r": 255, 60 | "g": 255, 61 | "b": 255, 62 | "a": 255 63 | }, 64 | "_cascadeOpacityEnabled": true, 65 | "_anchorPoint": { 66 | "__type__": "cc.Vec2", 67 | "x": 0.5, 68 | "y": 0.5 69 | }, 70 | "_contentSize": { 71 | "__type__": "cc.Size", 72 | "width": 0, 73 | "height": 0 74 | }, 75 | "_rotationX": 0, 76 | "_rotationY": 0, 77 | "_scaleX": 1, 78 | "_scaleY": 1, 79 | "_position": { 80 | "__type__": "cc.Vec2", 81 | "x": 0, 82 | "y": 0 83 | }, 84 | "_skewX": 0, 85 | "_skewY": 0, 86 | "_localZOrder": 0, 87 | "_globalZOrder": 0, 88 | "_opacityModifyRGB": false, 89 | "groupIndex": 0 90 | }, 91 | { 92 | "__type__": "cc.Node", 93 | "_name": "score", 94 | "_objFlags": 0, 95 | "_parent": { 96 | "__id__": 1 97 | }, 98 | "_children": [], 99 | "_tag": -1, 100 | "_active": true, 101 | "_components": [ 102 | { 103 | "__id__": 3 104 | }, 105 | { 106 | "__id__": 4 107 | } 108 | ], 109 | "_prefab": { 110 | "__id__": 5 111 | }, 112 | "_id": "", 113 | "_opacity": 255, 114 | "_color": { 115 | "__type__": "cc.Color", 116 | "r": 0, 117 | "g": 0, 118 | "b": 0, 119 | "a": 255 120 | }, 121 | "_cascadeOpacityEnabled": true, 122 | "_anchorPoint": { 123 | "__type__": "cc.Vec2", 124 | "x": 0.5, 125 | "y": 0.5 126 | }, 127 | "_contentSize": { 128 | "__type__": "cc.Size", 129 | "width": 97.87, 130 | "height": 40 131 | }, 132 | "_rotationX": 0, 133 | "_rotationY": 0, 134 | "_scaleX": 1, 135 | "_scaleY": 1, 136 | "_position": { 137 | "__type__": "cc.Vec2", 138 | "x": 0, 139 | "y": 185 140 | }, 141 | "_skewX": 0, 142 | "_skewY": 0, 143 | "_localZOrder": 0, 144 | "_globalZOrder": 0, 145 | "_opacityModifyRGB": false, 146 | "groupIndex": 0 147 | }, 148 | { 149 | "__type__": "cc.Label", 150 | "_name": "", 151 | "_objFlags": 0, 152 | "node": { 153 | "__id__": 2 154 | }, 155 | "_enabled": true, 156 | "_useOriginalSize": false, 157 | "_actualFontSize": 40, 158 | "_fontSize": 40, 159 | "_lineHeight": 40, 160 | "_enableWrapText": true, 161 | "_N$file": null, 162 | "_isSystemFontUsed": true, 163 | "_spacingX": 0, 164 | "_N$string": "Label", 165 | "_N$horizontalAlign": 1, 166 | "_N$verticalAlign": 1, 167 | "_N$fontFamily": "Arial", 168 | "_N$overflow": 0 169 | }, 170 | { 171 | "__type__": "cc.Animation", 172 | "_name": "", 173 | "_objFlags": 0, 174 | "node": { 175 | "__id__": 2 176 | }, 177 | "_enabled": true, 178 | "_defaultClip": { 179 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 180 | }, 181 | "_clips": [ 182 | { 183 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 184 | } 185 | ], 186 | "playOnLoad": false 187 | }, 188 | { 189 | "__type__": "cc.PrefabInfo", 190 | "root": { 191 | "__id__": 1 192 | }, 193 | "asset": { 194 | "__uuid__": "096ce9bb-0162-4255-9636-cff5fe821930" 195 | }, 196 | "fileId": "05myX7shFFgJn4nAy4Y95p", 197 | "sync": false 198 | }, 199 | { 200 | "__type__": "cc.Node", 201 | "_name": "sprite", 202 | "_objFlags": 0, 203 | "_parent": { 204 | "__id__": 1 205 | }, 206 | "_children": [], 207 | "_tag": -1, 208 | "_active": true, 209 | "_components": [ 210 | { 211 | "__id__": 7 212 | } 213 | ], 214 | "_prefab": { 215 | "__id__": 8 216 | }, 217 | "_id": "", 218 | "_opacity": 255, 219 | "_color": { 220 | "__type__": "cc.Color", 221 | "r": 255, 222 | "g": 255, 223 | "b": 255, 224 | "a": 255 225 | }, 226 | "_cascadeOpacityEnabled": true, 227 | "_anchorPoint": { 228 | "__type__": "cc.Vec2", 229 | "x": 0.5, 230 | "y": 0.5 231 | }, 232 | "_contentSize": { 233 | "__type__": "cc.Size", 234 | "width": 358, 235 | "height": 240 236 | }, 237 | "_rotationX": 0, 238 | "_rotationY": 0, 239 | "_scaleX": 1, 240 | "_scaleY": 1, 241 | "_position": { 242 | "__type__": "cc.Vec2", 243 | "x": -43.4, 244 | "y": 119 245 | }, 246 | "_skewX": 0, 247 | "_skewY": 0, 248 | "_localZOrder": 0, 249 | "_globalZOrder": 0, 250 | "_opacityModifyRGB": false, 251 | "groupIndex": 0 252 | }, 253 | { 254 | "__type__": "cc.Sprite", 255 | "_name": "", 256 | "_objFlags": 0, 257 | "node": { 258 | "__id__": 6 259 | }, 260 | "_enabled": true, 261 | "_spriteFrame": { 262 | "__uuid__": "bb68c246-792b-4ad8-b40d-5bd3e14c2ad7" 263 | }, 264 | "_type": 0, 265 | "_sizeMode": 1, 266 | "_fillType": 0, 267 | "_fillCenter": { 268 | "__type__": "cc.Vec2", 269 | "x": 0, 270 | "y": 0 271 | }, 272 | "_fillStart": 0, 273 | "_fillRange": 0, 274 | "_isTrimmedMode": true, 275 | "_srcBlendFactor": 770, 276 | "_dstBlendFactor": 771, 277 | "_atlas": null 278 | }, 279 | { 280 | "__type__": "cc.PrefabInfo", 281 | "root": { 282 | "__id__": 1 283 | }, 284 | "asset": { 285 | "__uuid__": "096ce9bb-0162-4255-9636-cff5fe821930" 286 | }, 287 | "fileId": "cfL4l7fmJP6KV3hTlTSUbn", 288 | "sync": false 289 | }, 290 | { 291 | "__type__": "cc.Node", 292 | "_name": "p1", 293 | "_objFlags": 0, 294 | "_parent": { 295 | "__id__": 1 296 | }, 297 | "_children": [], 298 | "_tag": -1, 299 | "_active": true, 300 | "_components": [], 301 | "_prefab": { 302 | "__id__": 10 303 | }, 304 | "_id": "", 305 | "_opacity": 255, 306 | "_color": { 307 | "__type__": "cc.Color", 308 | "r": 255, 309 | "g": 255, 310 | "b": 255, 311 | "a": 255 312 | }, 313 | "_cascadeOpacityEnabled": true, 314 | "_anchorPoint": { 315 | "__type__": "cc.Vec2", 316 | "x": 0.5, 317 | "y": 0.5 318 | }, 319 | "_contentSize": { 320 | "__type__": "cc.Size", 321 | "width": 0, 322 | "height": 0 323 | }, 324 | "_rotationX": 0, 325 | "_rotationY": 0, 326 | "_scaleX": 1, 327 | "_scaleY": 1, 328 | "_position": { 329 | "__type__": "cc.Vec2", 330 | "x": -133.2, 331 | "y": 74.2 332 | }, 333 | "_skewX": 0, 334 | "_skewY": 0, 335 | "_localZOrder": 0, 336 | "_globalZOrder": 0, 337 | "_opacityModifyRGB": false, 338 | "groupIndex": 0 339 | }, 340 | { 341 | "__type__": "cc.PrefabInfo", 342 | "root": { 343 | "__id__": 1 344 | }, 345 | "asset": { 346 | "__uuid__": "096ce9bb-0162-4255-9636-cff5fe821930" 347 | }, 348 | "fileId": "40nQXSJ9BDZKeXff4KoRfj", 349 | "sync": false 350 | }, 351 | { 352 | "__type__": "cc.Node", 353 | "_name": "p2", 354 | "_objFlags": 0, 355 | "_parent": { 356 | "__id__": 1 357 | }, 358 | "_children": [], 359 | "_tag": -1, 360 | "_active": true, 361 | "_components": [], 362 | "_prefab": { 363 | "__id__": 12 364 | }, 365 | "_id": "", 366 | "_opacity": 255, 367 | "_color": { 368 | "__type__": "cc.Color", 369 | "r": 255, 370 | "g": 255, 371 | "b": 255, 372 | "a": 255 373 | }, 374 | "_cascadeOpacityEnabled": true, 375 | "_anchorPoint": { 376 | "__type__": "cc.Vec2", 377 | "x": 0.5, 378 | "y": 0.5 379 | }, 380 | "_contentSize": { 381 | "__type__": "cc.Size", 382 | "width": 0, 383 | "height": 0 384 | }, 385 | "_rotationX": 0, 386 | "_rotationY": 0, 387 | "_scaleX": 1, 388 | "_scaleY": 1, 389 | "_position": { 390 | "__type__": "cc.Vec2", 391 | "x": 135.6, 392 | "y": 75.4 393 | }, 394 | "_skewX": 0, 395 | "_skewY": 0, 396 | "_localZOrder": 0, 397 | "_globalZOrder": 0, 398 | "_opacityModifyRGB": false, 399 | "groupIndex": 0 400 | }, 401 | { 402 | "__type__": "cc.PrefabInfo", 403 | "root": { 404 | "__id__": 1 405 | }, 406 | "asset": { 407 | "__uuid__": "096ce9bb-0162-4255-9636-cff5fe821930" 408 | }, 409 | "fileId": "5f+deLBjRGO6HOux0X3vld", 410 | "sync": false 411 | }, 412 | { 413 | "__type__": "cc.Node", 414 | "_name": "中", 415 | "_objFlags": 0, 416 | "_parent": { 417 | "__id__": 1 418 | }, 419 | "_children": [], 420 | "_tag": -1, 421 | "_active": true, 422 | "_components": [], 423 | "_prefab": { 424 | "__id__": 14 425 | }, 426 | "_id": "", 427 | "_opacity": 255, 428 | "_color": { 429 | "__type__": "cc.Color", 430 | "r": 255, 431 | "g": 255, 432 | "b": 255, 433 | "a": 255 434 | }, 435 | "_cascadeOpacityEnabled": true, 436 | "_anchorPoint": { 437 | "__type__": "cc.Vec2", 438 | "x": 0.5, 439 | "y": 0.5 440 | }, 441 | "_contentSize": { 442 | "__type__": "cc.Size", 443 | "width": 0, 444 | "height": 0 445 | }, 446 | "_rotationX": 0, 447 | "_rotationY": 0, 448 | "_scaleX": 1, 449 | "_scaleY": 1, 450 | "_position": { 451 | "__type__": "cc.Vec2", 452 | "x": 0, 453 | "y": 144 454 | }, 455 | "_skewX": 0, 456 | "_skewY": 0, 457 | "_localZOrder": 0, 458 | "_globalZOrder": 0, 459 | "_opacityModifyRGB": false, 460 | "groupIndex": 0 461 | }, 462 | { 463 | "__type__": "cc.PrefabInfo", 464 | "root": { 465 | "__id__": 1 466 | }, 467 | "asset": { 468 | "__uuid__": "096ce9bb-0162-4255-9636-cff5fe821930" 469 | }, 470 | "fileId": "fdSZsZ/U1NipAvSdQLRfBH", 471 | "sync": false 472 | }, 473 | { 474 | "__type__": "cc.Node", 475 | "_name": "上", 476 | "_objFlags": 0, 477 | "_parent": { 478 | "__id__": 1 479 | }, 480 | "_children": [], 481 | "_tag": -1, 482 | "_active": true, 483 | "_components": [], 484 | "_prefab": { 485 | "__id__": 16 486 | }, 487 | "_id": "", 488 | "_opacity": 255, 489 | "_color": { 490 | "__type__": "cc.Color", 491 | "r": 255, 492 | "g": 255, 493 | "b": 255, 494 | "a": 255 495 | }, 496 | "_cascadeOpacityEnabled": true, 497 | "_anchorPoint": { 498 | "__type__": "cc.Vec2", 499 | "x": 0.5, 500 | "y": 0.5 501 | }, 502 | "_contentSize": { 503 | "__type__": "cc.Size", 504 | "width": 0, 505 | "height": 0 506 | }, 507 | "_rotationX": 0, 508 | "_rotationY": 0, 509 | "_scaleX": 1, 510 | "_scaleY": 1, 511 | "_position": { 512 | "__type__": "cc.Vec2", 513 | "x": 31, 514 | "y": 160 515 | }, 516 | "_skewX": 0, 517 | "_skewY": 0, 518 | "_localZOrder": 0, 519 | "_globalZOrder": 0, 520 | "_opacityModifyRGB": false, 521 | "groupIndex": 0 522 | }, 523 | { 524 | "__type__": "cc.PrefabInfo", 525 | "root": { 526 | "__id__": 1 527 | }, 528 | "asset": { 529 | "__uuid__": "096ce9bb-0162-4255-9636-cff5fe821930" 530 | }, 531 | "fileId": "30GCaTZ+VJaZhyVpZ/uzMj", 532 | "sync": false 533 | }, 534 | { 535 | "__type__": "cc.Node", 536 | "_name": "下", 537 | "_objFlags": 0, 538 | "_parent": { 539 | "__id__": 1 540 | }, 541 | "_children": [], 542 | "_tag": -1, 543 | "_active": true, 544 | "_components": [], 545 | "_prefab": { 546 | "__id__": 18 547 | }, 548 | "_id": "", 549 | "_opacity": 255, 550 | "_color": { 551 | "__type__": "cc.Color", 552 | "r": 255, 553 | "g": 255, 554 | "b": 255, 555 | "a": 255 556 | }, 557 | "_cascadeOpacityEnabled": true, 558 | "_anchorPoint": { 559 | "__type__": "cc.Vec2", 560 | "x": 0.5, 561 | "y": 0.5 562 | }, 563 | "_contentSize": { 564 | "__type__": "cc.Size", 565 | "width": 0, 566 | "height": 0 567 | }, 568 | "_rotationX": 0, 569 | "_rotationY": 0, 570 | "_scaleX": 1, 571 | "_scaleY": 1, 572 | "_position": { 573 | "__type__": "cc.Vec2", 574 | "x": -37, 575 | "y": 120 576 | }, 577 | "_skewX": 0, 578 | "_skewY": 0, 579 | "_localZOrder": 0, 580 | "_globalZOrder": 0, 581 | "_opacityModifyRGB": false, 582 | "groupIndex": 0 583 | }, 584 | { 585 | "__type__": "cc.PrefabInfo", 586 | "root": { 587 | "__id__": 1 588 | }, 589 | "asset": { 590 | "__uuid__": "096ce9bb-0162-4255-9636-cff5fe821930" 591 | }, 592 | "fileId": "07/PokruxLZaXS9N83lzBR", 593 | "sync": false 594 | }, 595 | { 596 | "__type__": "cc.Node", 597 | "_name": "左", 598 | "_objFlags": 0, 599 | "_parent": { 600 | "__id__": 1 601 | }, 602 | "_children": [], 603 | "_tag": -1, 604 | "_active": true, 605 | "_components": [], 606 | "_prefab": { 607 | "__id__": 20 608 | }, 609 | "_id": "", 610 | "_opacity": 255, 611 | "_color": { 612 | "__type__": "cc.Color", 613 | "r": 255, 614 | "g": 255, 615 | "b": 255, 616 | "a": 255 617 | }, 618 | "_cascadeOpacityEnabled": true, 619 | "_anchorPoint": { 620 | "__type__": "cc.Vec2", 621 | "x": 0.5, 622 | "y": 0.5 623 | }, 624 | "_contentSize": { 625 | "__type__": "cc.Size", 626 | "width": 0, 627 | "height": 0 628 | }, 629 | "_rotationX": 0, 630 | "_rotationY": 0, 631 | "_scaleX": 1, 632 | "_scaleY": 1, 633 | "_position": { 634 | "__type__": "cc.Vec2", 635 | "x": -27, 636 | "y": 164 637 | }, 638 | "_skewX": 0, 639 | "_skewY": 0, 640 | "_localZOrder": 0, 641 | "_globalZOrder": 0, 642 | "_opacityModifyRGB": false, 643 | "groupIndex": 0 644 | }, 645 | { 646 | "__type__": "cc.PrefabInfo", 647 | "root": { 648 | "__id__": 1 649 | }, 650 | "asset": { 651 | "__uuid__": "096ce9bb-0162-4255-9636-cff5fe821930" 652 | }, 653 | "fileId": "92B4ExhwlETpif6p8wRAPx", 654 | "sync": false 655 | }, 656 | { 657 | "__type__": "cc.Node", 658 | "_name": "右", 659 | "_objFlags": 0, 660 | "_parent": { 661 | "__id__": 1 662 | }, 663 | "_children": [], 664 | "_tag": -1, 665 | "_active": true, 666 | "_components": [], 667 | "_prefab": { 668 | "__id__": 22 669 | }, 670 | "_id": "", 671 | "_opacity": 255, 672 | "_color": { 673 | "__type__": "cc.Color", 674 | "r": 255, 675 | "g": 255, 676 | "b": 255, 677 | "a": 255 678 | }, 679 | "_cascadeOpacityEnabled": true, 680 | "_anchorPoint": { 681 | "__type__": "cc.Vec2", 682 | "x": 0.5, 683 | "y": 0.5 684 | }, 685 | "_contentSize": { 686 | "__type__": "cc.Size", 687 | "width": 0, 688 | "height": 0 689 | }, 690 | "_rotationX": 0, 691 | "_rotationY": 0, 692 | "_scaleX": 1, 693 | "_scaleY": 1, 694 | "_position": { 695 | "__type__": "cc.Vec2", 696 | "x": 35, 697 | "y": 118 698 | }, 699 | "_skewX": 0, 700 | "_skewY": 0, 701 | "_localZOrder": 0, 702 | "_globalZOrder": 0, 703 | "_opacityModifyRGB": false, 704 | "groupIndex": 0 705 | }, 706 | { 707 | "__type__": "cc.PrefabInfo", 708 | "root": { 709 | "__id__": 1 710 | }, 711 | "asset": { 712 | "__uuid__": "096ce9bb-0162-4255-9636-cff5fe821930" 713 | }, 714 | "fileId": "49zvezyApJQqafFT2f4OLS", 715 | "sync": false 716 | }, 717 | { 718 | "__type__": "007507xQ0hEcbmFDxV+eRZJ", 719 | "_name": "", 720 | "_objFlags": 0, 721 | "node": { 722 | "__id__": 1 723 | }, 724 | "_enabled": true, 725 | "maxScale": 1, 726 | "minScale": 1, 727 | "minDistance": 200, 728 | "maxDistance": 400, 729 | "anchorOffset": 100, 730 | "score": 1, 731 | "rightAnchorList": [ 732 | { 733 | "__id__": 17 734 | }, 735 | { 736 | "__id__": 13 737 | }, 738 | { 739 | "__id__": 15 740 | } 741 | ], 742 | "leftAnchorList": [ 743 | { 744 | "__id__": 19 745 | }, 746 | { 747 | "__id__": 13 748 | }, 749 | { 750 | "__id__": 21 751 | } 752 | ], 753 | "centerAnchor": { 754 | "__id__": 13 755 | }, 756 | "p1": { 757 | "__id__": 9 758 | }, 759 | "p2": { 760 | "__id__": 11 761 | } 762 | }, 763 | { 764 | "__type__": "cc.PrefabInfo", 765 | "root": { 766 | "__id__": 1 767 | }, 768 | "asset": { 769 | "__uuid__": "096ce9bb-0162-4255-9636-cff5fe821930" 770 | }, 771 | "fileId": "deTxgI6yhKuoFpcmk+w+Rd", 772 | "sync": false 773 | } 774 | ] -------------------------------------------------------------------------------- /assets/res/prefabs/Block3.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "096ce9bb-0162-4255-9636-cff5fe821930", 4 | "asyncLoadAssets": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/prefabs/Block4.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_rawFiles": null, 7 | "data": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Node", 13 | "_name": "Block4", 14 | "_objFlags": 0, 15 | "_parent": null, 16 | "_children": [ 17 | { 18 | "__id__": 2 19 | }, 20 | { 21 | "__id__": 6 22 | }, 23 | { 24 | "__id__": 12 25 | }, 26 | { 27 | "__id__": 14 28 | }, 29 | { 30 | "__id__": 16 31 | }, 32 | { 33 | "__id__": 18 34 | }, 35 | { 36 | "__id__": 20 37 | }, 38 | { 39 | "__id__": 22 40 | }, 41 | { 42 | "__id__": 24 43 | } 44 | ], 45 | "_tag": -1, 46 | "_active": true, 47 | "_components": [ 48 | { 49 | "__id__": 26 50 | }, 51 | { 52 | "__id__": 27 53 | } 54 | ], 55 | "_prefab": { 56 | "__id__": 28 57 | }, 58 | "_id": "", 59 | "_opacity": 255, 60 | "_color": { 61 | "__type__": "cc.Color", 62 | "r": 255, 63 | "g": 255, 64 | "b": 255, 65 | "a": 255 66 | }, 67 | "_cascadeOpacityEnabled": true, 68 | "_anchorPoint": { 69 | "__type__": "cc.Vec2", 70 | "x": 0.5, 71 | "y": 0.5 72 | }, 73 | "_contentSize": { 74 | "__type__": "cc.Size", 75 | "width": 0, 76 | "height": 0 77 | }, 78 | "_rotationX": 0, 79 | "_rotationY": 0, 80 | "_scaleX": 1, 81 | "_scaleY": 1, 82 | "_position": { 83 | "__type__": "cc.Vec2", 84 | "x": 335, 85 | "y": 53 86 | }, 87 | "_skewX": 0, 88 | "_skewY": 0, 89 | "_localZOrder": 0, 90 | "_globalZOrder": 0, 91 | "_opacityModifyRGB": false, 92 | "groupIndex": 0 93 | }, 94 | { 95 | "__type__": "cc.Node", 96 | "_name": "score", 97 | "_objFlags": 0, 98 | "_parent": { 99 | "__id__": 1 100 | }, 101 | "_children": [], 102 | "_tag": -1, 103 | "_active": true, 104 | "_components": [ 105 | { 106 | "__id__": 3 107 | }, 108 | { 109 | "__id__": 4 110 | } 111 | ], 112 | "_prefab": { 113 | "__id__": 5 114 | }, 115 | "_id": "", 116 | "_opacity": 255, 117 | "_color": { 118 | "__type__": "cc.Color", 119 | "r": 0, 120 | "g": 0, 121 | "b": 0, 122 | "a": 255 123 | }, 124 | "_cascadeOpacityEnabled": true, 125 | "_anchorPoint": { 126 | "__type__": "cc.Vec2", 127 | "x": 0.5, 128 | "y": 0.5 129 | }, 130 | "_contentSize": { 131 | "__type__": "cc.Size", 132 | "width": 97.87, 133 | "height": 40 134 | }, 135 | "_rotationX": 0, 136 | "_rotationY": 0, 137 | "_scaleX": 1, 138 | "_scaleY": 1, 139 | "_position": { 140 | "__type__": "cc.Vec2", 141 | "x": 0, 142 | "y": 185 143 | }, 144 | "_skewX": 0, 145 | "_skewY": 0, 146 | "_localZOrder": 0, 147 | "_globalZOrder": 0, 148 | "_opacityModifyRGB": false, 149 | "groupIndex": 0 150 | }, 151 | { 152 | "__type__": "cc.Label", 153 | "_name": "", 154 | "_objFlags": 0, 155 | "node": { 156 | "__id__": 2 157 | }, 158 | "_enabled": true, 159 | "_useOriginalSize": false, 160 | "_actualFontSize": 40, 161 | "_fontSize": 40, 162 | "_lineHeight": 40, 163 | "_enableWrapText": true, 164 | "_N$file": null, 165 | "_isSystemFontUsed": true, 166 | "_spacingX": 0, 167 | "_N$string": "Label", 168 | "_N$horizontalAlign": 1, 169 | "_N$verticalAlign": 1, 170 | "_N$fontFamily": "Arial", 171 | "_N$overflow": 0 172 | }, 173 | { 174 | "__type__": "cc.Animation", 175 | "_name": "", 176 | "_objFlags": 0, 177 | "node": { 178 | "__id__": 2 179 | }, 180 | "_enabled": true, 181 | "_defaultClip": { 182 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 183 | }, 184 | "_clips": [ 185 | { 186 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 187 | } 188 | ], 189 | "playOnLoad": false 190 | }, 191 | { 192 | "__type__": "cc.PrefabInfo", 193 | "root": { 194 | "__id__": 1 195 | }, 196 | "asset": { 197 | "__id__": 0 198 | }, 199 | "fileId": "4cNXV10VZHapojERpAUFtz", 200 | "sync": false 201 | }, 202 | { 203 | "__type__": "cc.Node", 204 | "_name": "sprite", 205 | "_objFlags": 0, 206 | "_parent": { 207 | "__id__": 1 208 | }, 209 | "_children": [ 210 | { 211 | "__id__": 7 212 | } 213 | ], 214 | "_tag": -1, 215 | "_active": true, 216 | "_components": [ 217 | { 218 | "__id__": 10 219 | } 220 | ], 221 | "_prefab": { 222 | "__id__": 11 223 | }, 224 | "_id": "", 225 | "_opacity": 255, 226 | "_color": { 227 | "__type__": "cc.Color", 228 | "r": 255, 229 | "g": 255, 230 | "b": 255, 231 | "a": 255 232 | }, 233 | "_cascadeOpacityEnabled": true, 234 | "_anchorPoint": { 235 | "__type__": "cc.Vec2", 236 | "x": 0.5, 237 | "y": 0.5 238 | }, 239 | "_contentSize": { 240 | "__type__": "cc.Size", 241 | "width": 358, 242 | "height": 240 243 | }, 244 | "_rotationX": 0, 245 | "_rotationY": 0, 246 | "_scaleX": 1, 247 | "_scaleY": 1, 248 | "_position": { 249 | "__type__": "cc.Vec2", 250 | "x": -43.4, 251 | "y": 119 252 | }, 253 | "_skewX": 0, 254 | "_skewY": 0, 255 | "_localZOrder": 0, 256 | "_globalZOrder": 0, 257 | "_opacityModifyRGB": false, 258 | "groupIndex": 0 259 | }, 260 | { 261 | "__type__": "cc.Node", 262 | "_name": "zhe", 263 | "_objFlags": 0, 264 | "_parent": { 265 | "__id__": 6 266 | }, 267 | "_children": [], 268 | "_tag": -1, 269 | "_active": true, 270 | "_components": [ 271 | { 272 | "__id__": 8 273 | } 274 | ], 275 | "_prefab": { 276 | "__id__": 9 277 | }, 278 | "_id": "", 279 | "_opacity": 255, 280 | "_color": { 281 | "__type__": "cc.Color", 282 | "r": 255, 283 | "g": 255, 284 | "b": 255, 285 | "a": 255 286 | }, 287 | "_cascadeOpacityEnabled": true, 288 | "_anchorPoint": { 289 | "__type__": "cc.Vec2", 290 | "x": 0.5, 291 | "y": 0.5 292 | }, 293 | "_contentSize": { 294 | "__type__": "cc.Size", 295 | "width": 45, 296 | "height": 45 297 | }, 298 | "_rotationX": 0, 299 | "_rotationY": 0, 300 | "_scaleX": 1, 301 | "_scaleY": 1, 302 | "_position": { 303 | "__type__": "cc.Vec2", 304 | "x": 42.4, 305 | "y": 43 306 | }, 307 | "_skewX": 60, 308 | "_skewY": -30, 309 | "_localZOrder": 0, 310 | "_globalZOrder": 0, 311 | "_opacityModifyRGB": false, 312 | "groupIndex": 0 313 | }, 314 | { 315 | "__type__": "cc.Sprite", 316 | "_name": "", 317 | "_objFlags": 0, 318 | "node": { 319 | "__id__": 7 320 | }, 321 | "_enabled": true, 322 | "_spriteFrame": { 323 | "__uuid__": "02273a93-d8d0-4419-b013-23b902d372aa" 324 | }, 325 | "_type": 0, 326 | "_sizeMode": 1, 327 | "_fillType": 0, 328 | "_fillCenter": { 329 | "__type__": "cc.Vec2", 330 | "x": 0, 331 | "y": 0 332 | }, 333 | "_fillStart": 0, 334 | "_fillRange": 0, 335 | "_isTrimmedMode": true, 336 | "_srcBlendFactor": 770, 337 | "_dstBlendFactor": 771, 338 | "_atlas": null 339 | }, 340 | { 341 | "__type__": "cc.PrefabInfo", 342 | "root": { 343 | "__id__": 1 344 | }, 345 | "asset": { 346 | "__id__": 0 347 | }, 348 | "fileId": "c5cu836VVOc4U/N3nomDwU", 349 | "sync": false 350 | }, 351 | { 352 | "__type__": "cc.Sprite", 353 | "_name": "", 354 | "_objFlags": 0, 355 | "node": { 356 | "__id__": 6 357 | }, 358 | "_enabled": true, 359 | "_spriteFrame": { 360 | "__uuid__": "01a8e5d8-ff3d-485f-9690-4b1fe7a3893d" 361 | }, 362 | "_type": 0, 363 | "_sizeMode": 1, 364 | "_fillType": 0, 365 | "_fillCenter": { 366 | "__type__": "cc.Vec2", 367 | "x": 0, 368 | "y": 0 369 | }, 370 | "_fillStart": 0, 371 | "_fillRange": 0, 372 | "_isTrimmedMode": true, 373 | "_srcBlendFactor": 770, 374 | "_dstBlendFactor": 771, 375 | "_atlas": null 376 | }, 377 | { 378 | "__type__": "cc.PrefabInfo", 379 | "root": { 380 | "__id__": 1 381 | }, 382 | "asset": { 383 | "__id__": 0 384 | }, 385 | "fileId": "37p3TTRpJM6IN+qUEgsPBY", 386 | "sync": false 387 | }, 388 | { 389 | "__type__": "cc.Node", 390 | "_name": "p1", 391 | "_objFlags": 0, 392 | "_parent": { 393 | "__id__": 1 394 | }, 395 | "_children": [], 396 | "_tag": -1, 397 | "_active": true, 398 | "_components": [], 399 | "_prefab": { 400 | "__id__": 13 401 | }, 402 | "_id": "", 403 | "_opacity": 255, 404 | "_color": { 405 | "__type__": "cc.Color", 406 | "r": 255, 407 | "g": 255, 408 | "b": 255, 409 | "a": 255 410 | }, 411 | "_cascadeOpacityEnabled": true, 412 | "_anchorPoint": { 413 | "__type__": "cc.Vec2", 414 | "x": 0.5, 415 | "y": 0.5 416 | }, 417 | "_contentSize": { 418 | "__type__": "cc.Size", 419 | "width": 0, 420 | "height": 0 421 | }, 422 | "_rotationX": 0, 423 | "_rotationY": 0, 424 | "_scaleX": 1, 425 | "_scaleY": 1, 426 | "_position": { 427 | "__type__": "cc.Vec2", 428 | "x": -133.2, 429 | "y": 74.2 430 | }, 431 | "_skewX": 0, 432 | "_skewY": 0, 433 | "_localZOrder": 0, 434 | "_globalZOrder": 0, 435 | "_opacityModifyRGB": false, 436 | "groupIndex": 0 437 | }, 438 | { 439 | "__type__": "cc.PrefabInfo", 440 | "root": { 441 | "__id__": 1 442 | }, 443 | "asset": { 444 | "__id__": 0 445 | }, 446 | "fileId": "caDgnZVwhLm7yvE5L6EeDe", 447 | "sync": false 448 | }, 449 | { 450 | "__type__": "cc.Node", 451 | "_name": "p2", 452 | "_objFlags": 0, 453 | "_parent": { 454 | "__id__": 1 455 | }, 456 | "_children": [], 457 | "_tag": -1, 458 | "_active": true, 459 | "_components": [], 460 | "_prefab": { 461 | "__id__": 15 462 | }, 463 | "_id": "", 464 | "_opacity": 255, 465 | "_color": { 466 | "__type__": "cc.Color", 467 | "r": 255, 468 | "g": 255, 469 | "b": 255, 470 | "a": 255 471 | }, 472 | "_cascadeOpacityEnabled": true, 473 | "_anchorPoint": { 474 | "__type__": "cc.Vec2", 475 | "x": 0.5, 476 | "y": 0.5 477 | }, 478 | "_contentSize": { 479 | "__type__": "cc.Size", 480 | "width": 0, 481 | "height": 0 482 | }, 483 | "_rotationX": 0, 484 | "_rotationY": 0, 485 | "_scaleX": 1, 486 | "_scaleY": 1, 487 | "_position": { 488 | "__type__": "cc.Vec2", 489 | "x": 135.6, 490 | "y": 75.4 491 | }, 492 | "_skewX": 0, 493 | "_skewY": 0, 494 | "_localZOrder": 0, 495 | "_globalZOrder": 0, 496 | "_opacityModifyRGB": false, 497 | "groupIndex": 0 498 | }, 499 | { 500 | "__type__": "cc.PrefabInfo", 501 | "root": { 502 | "__id__": 1 503 | }, 504 | "asset": { 505 | "__id__": 0 506 | }, 507 | "fileId": "adg02EIJRHD6qTlgxL3ixD", 508 | "sync": false 509 | }, 510 | { 511 | "__type__": "cc.Node", 512 | "_name": "中", 513 | "_objFlags": 0, 514 | "_parent": { 515 | "__id__": 1 516 | }, 517 | "_children": [], 518 | "_tag": -1, 519 | "_active": true, 520 | "_components": [], 521 | "_prefab": { 522 | "__id__": 17 523 | }, 524 | "_id": "", 525 | "_opacity": 255, 526 | "_color": { 527 | "__type__": "cc.Color", 528 | "r": 255, 529 | "g": 255, 530 | "b": 255, 531 | "a": 255 532 | }, 533 | "_cascadeOpacityEnabled": true, 534 | "_anchorPoint": { 535 | "__type__": "cc.Vec2", 536 | "x": 0.5, 537 | "y": 0.5 538 | }, 539 | "_contentSize": { 540 | "__type__": "cc.Size", 541 | "width": 0, 542 | "height": 0 543 | }, 544 | "_rotationX": 0, 545 | "_rotationY": 0, 546 | "_scaleX": 1, 547 | "_scaleY": 1, 548 | "_position": { 549 | "__type__": "cc.Vec2", 550 | "x": 0, 551 | "y": 144 552 | }, 553 | "_skewX": 0, 554 | "_skewY": 0, 555 | "_localZOrder": 0, 556 | "_globalZOrder": 0, 557 | "_opacityModifyRGB": false, 558 | "groupIndex": 0 559 | }, 560 | { 561 | "__type__": "cc.PrefabInfo", 562 | "root": { 563 | "__id__": 1 564 | }, 565 | "asset": { 566 | "__id__": 0 567 | }, 568 | "fileId": "f2fK7k8lFBh49N5HsmW/wu", 569 | "sync": false 570 | }, 571 | { 572 | "__type__": "cc.Node", 573 | "_name": "上", 574 | "_objFlags": 0, 575 | "_parent": { 576 | "__id__": 1 577 | }, 578 | "_children": [], 579 | "_tag": -1, 580 | "_active": true, 581 | "_components": [], 582 | "_prefab": { 583 | "__id__": 19 584 | }, 585 | "_id": "", 586 | "_opacity": 255, 587 | "_color": { 588 | "__type__": "cc.Color", 589 | "r": 255, 590 | "g": 255, 591 | "b": 255, 592 | "a": 255 593 | }, 594 | "_cascadeOpacityEnabled": true, 595 | "_anchorPoint": { 596 | "__type__": "cc.Vec2", 597 | "x": 0.5, 598 | "y": 0.5 599 | }, 600 | "_contentSize": { 601 | "__type__": "cc.Size", 602 | "width": 0, 603 | "height": 0 604 | }, 605 | "_rotationX": 0, 606 | "_rotationY": 0, 607 | "_scaleX": 1, 608 | "_scaleY": 1, 609 | "_position": { 610 | "__type__": "cc.Vec2", 611 | "x": 31, 612 | "y": 160 613 | }, 614 | "_skewX": 0, 615 | "_skewY": 0, 616 | "_localZOrder": 0, 617 | "_globalZOrder": 0, 618 | "_opacityModifyRGB": false, 619 | "groupIndex": 0 620 | }, 621 | { 622 | "__type__": "cc.PrefabInfo", 623 | "root": { 624 | "__id__": 1 625 | }, 626 | "asset": { 627 | "__id__": 0 628 | }, 629 | "fileId": "e4ChGs4llC54ypOtP4/MRm", 630 | "sync": false 631 | }, 632 | { 633 | "__type__": "cc.Node", 634 | "_name": "下", 635 | "_objFlags": 0, 636 | "_parent": { 637 | "__id__": 1 638 | }, 639 | "_children": [], 640 | "_tag": -1, 641 | "_active": true, 642 | "_components": [], 643 | "_prefab": { 644 | "__id__": 21 645 | }, 646 | "_id": "", 647 | "_opacity": 255, 648 | "_color": { 649 | "__type__": "cc.Color", 650 | "r": 255, 651 | "g": 255, 652 | "b": 255, 653 | "a": 255 654 | }, 655 | "_cascadeOpacityEnabled": true, 656 | "_anchorPoint": { 657 | "__type__": "cc.Vec2", 658 | "x": 0.5, 659 | "y": 0.5 660 | }, 661 | "_contentSize": { 662 | "__type__": "cc.Size", 663 | "width": 0, 664 | "height": 0 665 | }, 666 | "_rotationX": 0, 667 | "_rotationY": 0, 668 | "_scaleX": 1, 669 | "_scaleY": 1, 670 | "_position": { 671 | "__type__": "cc.Vec2", 672 | "x": -37, 673 | "y": 120 674 | }, 675 | "_skewX": 0, 676 | "_skewY": 0, 677 | "_localZOrder": 0, 678 | "_globalZOrder": 0, 679 | "_opacityModifyRGB": false, 680 | "groupIndex": 0 681 | }, 682 | { 683 | "__type__": "cc.PrefabInfo", 684 | "root": { 685 | "__id__": 1 686 | }, 687 | "asset": { 688 | "__id__": 0 689 | }, 690 | "fileId": "979JcvTCVLeaweyYHVdKs0", 691 | "sync": false 692 | }, 693 | { 694 | "__type__": "cc.Node", 695 | "_name": "左", 696 | "_objFlags": 0, 697 | "_parent": { 698 | "__id__": 1 699 | }, 700 | "_children": [], 701 | "_tag": -1, 702 | "_active": true, 703 | "_components": [], 704 | "_prefab": { 705 | "__id__": 23 706 | }, 707 | "_id": "", 708 | "_opacity": 255, 709 | "_color": { 710 | "__type__": "cc.Color", 711 | "r": 255, 712 | "g": 255, 713 | "b": 255, 714 | "a": 255 715 | }, 716 | "_cascadeOpacityEnabled": true, 717 | "_anchorPoint": { 718 | "__type__": "cc.Vec2", 719 | "x": 0.5, 720 | "y": 0.5 721 | }, 722 | "_contentSize": { 723 | "__type__": "cc.Size", 724 | "width": 0, 725 | "height": 0 726 | }, 727 | "_rotationX": 0, 728 | "_rotationY": 0, 729 | "_scaleX": 1, 730 | "_scaleY": 1, 731 | "_position": { 732 | "__type__": "cc.Vec2", 733 | "x": -27, 734 | "y": 164 735 | }, 736 | "_skewX": 0, 737 | "_skewY": 0, 738 | "_localZOrder": 0, 739 | "_globalZOrder": 0, 740 | "_opacityModifyRGB": false, 741 | "groupIndex": 0 742 | }, 743 | { 744 | "__type__": "cc.PrefabInfo", 745 | "root": { 746 | "__id__": 1 747 | }, 748 | "asset": { 749 | "__id__": 0 750 | }, 751 | "fileId": "681m4WXElH65bTgLb1lzLk", 752 | "sync": false 753 | }, 754 | { 755 | "__type__": "cc.Node", 756 | "_name": "右", 757 | "_objFlags": 0, 758 | "_parent": { 759 | "__id__": 1 760 | }, 761 | "_children": [], 762 | "_tag": -1, 763 | "_active": true, 764 | "_components": [], 765 | "_prefab": { 766 | "__id__": 25 767 | }, 768 | "_id": "", 769 | "_opacity": 255, 770 | "_color": { 771 | "__type__": "cc.Color", 772 | "r": 255, 773 | "g": 255, 774 | "b": 255, 775 | "a": 255 776 | }, 777 | "_cascadeOpacityEnabled": true, 778 | "_anchorPoint": { 779 | "__type__": "cc.Vec2", 780 | "x": 0.5, 781 | "y": 0.5 782 | }, 783 | "_contentSize": { 784 | "__type__": "cc.Size", 785 | "width": 0, 786 | "height": 0 787 | }, 788 | "_rotationX": 0, 789 | "_rotationY": 0, 790 | "_scaleX": 1, 791 | "_scaleY": 1, 792 | "_position": { 793 | "__type__": "cc.Vec2", 794 | "x": 35, 795 | "y": 118 796 | }, 797 | "_skewX": 0, 798 | "_skewY": 0, 799 | "_localZOrder": 0, 800 | "_globalZOrder": 0, 801 | "_opacityModifyRGB": false, 802 | "groupIndex": 0 803 | }, 804 | { 805 | "__type__": "cc.PrefabInfo", 806 | "root": { 807 | "__id__": 1 808 | }, 809 | "asset": { 810 | "__id__": 0 811 | }, 812 | "fileId": "6cms+eBapOy5HDmGawIcHj", 813 | "sync": false 814 | }, 815 | { 816 | "__type__": "007507xQ0hEcbmFDxV+eRZJ", 817 | "_name": "", 818 | "_objFlags": 0, 819 | "node": { 820 | "__id__": 1 821 | }, 822 | "_enabled": true, 823 | "maxScale": 1, 824 | "minScale": 1, 825 | "minDistance": 200, 826 | "maxDistance": 400, 827 | "anchorOffset": 100, 828 | "score": 10, 829 | "rightAnchorList": [ 830 | { 831 | "__id__": 20 832 | }, 833 | { 834 | "__id__": 16 835 | }, 836 | { 837 | "__id__": 18 838 | } 839 | ], 840 | "leftAnchorList": [ 841 | { 842 | "__id__": 22 843 | }, 844 | { 845 | "__id__": 16 846 | }, 847 | { 848 | "__id__": 24 849 | } 850 | ], 851 | "centerAnchor": { 852 | "__id__": 16 853 | }, 854 | "p1": { 855 | "__id__": 12 856 | }, 857 | "p2": { 858 | "__id__": 14 859 | } 860 | }, 861 | { 862 | "__type__": "cc.Animation", 863 | "_name": "", 864 | "_objFlags": 0, 865 | "node": { 866 | "__id__": 1 867 | }, 868 | "_enabled": true, 869 | "_defaultClip": null, 870 | "_clips": [ 871 | { 872 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 873 | } 874 | ], 875 | "playOnLoad": false 876 | }, 877 | { 878 | "__type__": "cc.PrefabInfo", 879 | "root": { 880 | "__id__": 1 881 | }, 882 | "asset": { 883 | "__id__": 0 884 | }, 885 | "fileId": "74c1qomtRAYri2h/wU66a6", 886 | "sync": false 887 | } 888 | ] -------------------------------------------------------------------------------- /assets/res/prefabs/Block4.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "d4dfb868-b7ec-4568-9817-a5ea3ce1f6eb", 4 | "asyncLoadAssets": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/prefabs/Block5.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_rawFiles": null, 7 | "data": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Node", 13 | "_name": "Block5", 14 | "_objFlags": 0, 15 | "_parent": null, 16 | "_children": [ 17 | { 18 | "__id__": 2 19 | }, 20 | { 21 | "__id__": 6 22 | }, 23 | { 24 | "__id__": 12 25 | }, 26 | { 27 | "__id__": 14 28 | }, 29 | { 30 | "__id__": 16 31 | }, 32 | { 33 | "__id__": 18 34 | }, 35 | { 36 | "__id__": 20 37 | }, 38 | { 39 | "__id__": 22 40 | }, 41 | { 42 | "__id__": 24 43 | } 44 | ], 45 | "_tag": -1, 46 | "_active": true, 47 | "_components": [ 48 | { 49 | "__id__": 26 50 | }, 51 | { 52 | "__id__": 27 53 | } 54 | ], 55 | "_prefab": { 56 | "__id__": 28 57 | }, 58 | "_id": "", 59 | "_opacity": 255, 60 | "_color": { 61 | "__type__": "cc.Color", 62 | "r": 255, 63 | "g": 255, 64 | "b": 255, 65 | "a": 255 66 | }, 67 | "_cascadeOpacityEnabled": true, 68 | "_anchorPoint": { 69 | "__type__": "cc.Vec2", 70 | "x": 0.5, 71 | "y": 0.5 72 | }, 73 | "_contentSize": { 74 | "__type__": "cc.Size", 75 | "width": 0, 76 | "height": 0 77 | }, 78 | "_rotationX": 0, 79 | "_rotationY": 0, 80 | "_scaleX": 1, 81 | "_scaleY": 1, 82 | "_position": { 83 | "__type__": "cc.Vec2", 84 | "x": -314, 85 | "y": 153 86 | }, 87 | "_skewX": 0, 88 | "_skewY": 0, 89 | "_localZOrder": 0, 90 | "_globalZOrder": 0, 91 | "_opacityModifyRGB": false, 92 | "groupIndex": 0 93 | }, 94 | { 95 | "__type__": "cc.Node", 96 | "_name": "score", 97 | "_objFlags": 0, 98 | "_parent": { 99 | "__id__": 1 100 | }, 101 | "_children": [], 102 | "_tag": -1, 103 | "_active": true, 104 | "_components": [ 105 | { 106 | "__id__": 3 107 | }, 108 | { 109 | "__id__": 4 110 | } 111 | ], 112 | "_prefab": { 113 | "__id__": 5 114 | }, 115 | "_id": "", 116 | "_opacity": 255, 117 | "_color": { 118 | "__type__": "cc.Color", 119 | "r": 0, 120 | "g": 0, 121 | "b": 0, 122 | "a": 255 123 | }, 124 | "_cascadeOpacityEnabled": true, 125 | "_anchorPoint": { 126 | "__type__": "cc.Vec2", 127 | "x": 0.5, 128 | "y": 0.5 129 | }, 130 | "_contentSize": { 131 | "__type__": "cc.Size", 132 | "width": 97.87, 133 | "height": 40 134 | }, 135 | "_rotationX": 0, 136 | "_rotationY": 0, 137 | "_scaleX": 1, 138 | "_scaleY": 1, 139 | "_position": { 140 | "__type__": "cc.Vec2", 141 | "x": 0, 142 | "y": 185 143 | }, 144 | "_skewX": 0, 145 | "_skewY": 0, 146 | "_localZOrder": 0, 147 | "_globalZOrder": 0, 148 | "_opacityModifyRGB": false, 149 | "groupIndex": 0 150 | }, 151 | { 152 | "__type__": "cc.Label", 153 | "_name": "", 154 | "_objFlags": 0, 155 | "node": { 156 | "__id__": 2 157 | }, 158 | "_enabled": true, 159 | "_useOriginalSize": false, 160 | "_actualFontSize": 40, 161 | "_fontSize": 40, 162 | "_lineHeight": 40, 163 | "_enableWrapText": true, 164 | "_N$file": null, 165 | "_isSystemFontUsed": true, 166 | "_spacingX": 0, 167 | "_N$string": "Label", 168 | "_N$horizontalAlign": 1, 169 | "_N$verticalAlign": 1, 170 | "_N$fontFamily": "Arial", 171 | "_N$overflow": 0 172 | }, 173 | { 174 | "__type__": "cc.Animation", 175 | "_name": "", 176 | "_objFlags": 0, 177 | "node": { 178 | "__id__": 2 179 | }, 180 | "_enabled": true, 181 | "_defaultClip": { 182 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 183 | }, 184 | "_clips": [ 185 | { 186 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 187 | } 188 | ], 189 | "playOnLoad": false 190 | }, 191 | { 192 | "__type__": "cc.PrefabInfo", 193 | "root": { 194 | "__id__": 1 195 | }, 196 | "asset": { 197 | "__id__": 0 198 | }, 199 | "fileId": "92yuCwrL5PboDh6naCbVBl", 200 | "sync": false 201 | }, 202 | { 203 | "__type__": "cc.Node", 204 | "_name": "sprite", 205 | "_objFlags": 0, 206 | "_parent": { 207 | "__id__": 1 208 | }, 209 | "_children": [ 210 | { 211 | "__id__": 7 212 | } 213 | ], 214 | "_tag": -1, 215 | "_active": true, 216 | "_components": [ 217 | { 218 | "__id__": 10 219 | } 220 | ], 221 | "_prefab": { 222 | "__id__": 11 223 | }, 224 | "_id": "", 225 | "_opacity": 255, 226 | "_color": { 227 | "__type__": "cc.Color", 228 | "r": 255, 229 | "g": 255, 230 | "b": 255, 231 | "a": 255 232 | }, 233 | "_cascadeOpacityEnabled": true, 234 | "_anchorPoint": { 235 | "__type__": "cc.Vec2", 236 | "x": 0.5, 237 | "y": 0.5 238 | }, 239 | "_contentSize": { 240 | "__type__": "cc.Size", 241 | "width": 358, 242 | "height": 240 243 | }, 244 | "_rotationX": 0, 245 | "_rotationY": 0, 246 | "_scaleX": 1, 247 | "_scaleY": 1, 248 | "_position": { 249 | "__type__": "cc.Vec2", 250 | "x": -43.4, 251 | "y": 119 252 | }, 253 | "_skewX": 0, 254 | "_skewY": 0, 255 | "_localZOrder": 0, 256 | "_globalZOrder": 0, 257 | "_opacityModifyRGB": false, 258 | "groupIndex": 0 259 | }, 260 | { 261 | "__type__": "cc.Node", 262 | "_name": "zhe", 263 | "_objFlags": 0, 264 | "_parent": { 265 | "__id__": 6 266 | }, 267 | "_children": [], 268 | "_tag": -1, 269 | "_active": true, 270 | "_components": [ 271 | { 272 | "__id__": 8 273 | } 274 | ], 275 | "_prefab": { 276 | "__id__": 9 277 | }, 278 | "_id": "", 279 | "_opacity": 255, 280 | "_color": { 281 | "__type__": "cc.Color", 282 | "r": 255, 283 | "g": 255, 284 | "b": 255, 285 | "a": 255 286 | }, 287 | "_cascadeOpacityEnabled": true, 288 | "_anchorPoint": { 289 | "__type__": "cc.Vec2", 290 | "x": 0.5, 291 | "y": 0.5 292 | }, 293 | "_contentSize": { 294 | "__type__": "cc.Size", 295 | "width": 45, 296 | "height": 45 297 | }, 298 | "_rotationX": 0, 299 | "_rotationY": 0, 300 | "_scaleX": 1, 301 | "_scaleY": 1, 302 | "_position": { 303 | "__type__": "cc.Vec2", 304 | "x": 42.4, 305 | "y": 43 306 | }, 307 | "_skewX": 60, 308 | "_skewY": -30, 309 | "_localZOrder": 0, 310 | "_globalZOrder": 0, 311 | "_opacityModifyRGB": false, 312 | "groupIndex": 0 313 | }, 314 | { 315 | "__type__": "cc.Sprite", 316 | "_name": "", 317 | "_objFlags": 0, 318 | "node": { 319 | "__id__": 7 320 | }, 321 | "_enabled": true, 322 | "_spriteFrame": { 323 | "__uuid__": "94c697e8-041d-457c-8892-90ddabf6975f" 324 | }, 325 | "_type": 0, 326 | "_sizeMode": 1, 327 | "_fillType": 0, 328 | "_fillCenter": { 329 | "__type__": "cc.Vec2", 330 | "x": 0, 331 | "y": 0 332 | }, 333 | "_fillStart": 0, 334 | "_fillRange": 0, 335 | "_isTrimmedMode": true, 336 | "_srcBlendFactor": 770, 337 | "_dstBlendFactor": 771, 338 | "_atlas": null 339 | }, 340 | { 341 | "__type__": "cc.PrefabInfo", 342 | "root": { 343 | "__id__": 1 344 | }, 345 | "asset": { 346 | "__id__": 0 347 | }, 348 | "fileId": "42SAuawzFH44Q40qG1Kt4W", 349 | "sync": false 350 | }, 351 | { 352 | "__type__": "cc.Sprite", 353 | "_name": "", 354 | "_objFlags": 0, 355 | "node": { 356 | "__id__": 6 357 | }, 358 | "_enabled": true, 359 | "_spriteFrame": { 360 | "__uuid__": "a925a0fc-db81-4e07-b4f7-e36f1f4c9a65" 361 | }, 362 | "_type": 0, 363 | "_sizeMode": 1, 364 | "_fillType": 0, 365 | "_fillCenter": { 366 | "__type__": "cc.Vec2", 367 | "x": 0, 368 | "y": 0 369 | }, 370 | "_fillStart": 0, 371 | "_fillRange": 0, 372 | "_isTrimmedMode": true, 373 | "_srcBlendFactor": 770, 374 | "_dstBlendFactor": 771, 375 | "_atlas": null 376 | }, 377 | { 378 | "__type__": "cc.PrefabInfo", 379 | "root": { 380 | "__id__": 1 381 | }, 382 | "asset": { 383 | "__id__": 0 384 | }, 385 | "fileId": "54sKDsWiFKI5745jSuemY8", 386 | "sync": false 387 | }, 388 | { 389 | "__type__": "cc.Node", 390 | "_name": "p1", 391 | "_objFlags": 0, 392 | "_parent": { 393 | "__id__": 1 394 | }, 395 | "_children": [], 396 | "_tag": -1, 397 | "_active": true, 398 | "_components": [], 399 | "_prefab": { 400 | "__id__": 13 401 | }, 402 | "_id": "", 403 | "_opacity": 255, 404 | "_color": { 405 | "__type__": "cc.Color", 406 | "r": 255, 407 | "g": 255, 408 | "b": 255, 409 | "a": 255 410 | }, 411 | "_cascadeOpacityEnabled": true, 412 | "_anchorPoint": { 413 | "__type__": "cc.Vec2", 414 | "x": 0.5, 415 | "y": 0.5 416 | }, 417 | "_contentSize": { 418 | "__type__": "cc.Size", 419 | "width": 0, 420 | "height": 0 421 | }, 422 | "_rotationX": 0, 423 | "_rotationY": 0, 424 | "_scaleX": 1, 425 | "_scaleY": 1, 426 | "_position": { 427 | "__type__": "cc.Vec2", 428 | "x": -133.2, 429 | "y": 74.2 430 | }, 431 | "_skewX": 0, 432 | "_skewY": 0, 433 | "_localZOrder": 0, 434 | "_globalZOrder": 0, 435 | "_opacityModifyRGB": false, 436 | "groupIndex": 0 437 | }, 438 | { 439 | "__type__": "cc.PrefabInfo", 440 | "root": { 441 | "__id__": 1 442 | }, 443 | "asset": { 444 | "__id__": 0 445 | }, 446 | "fileId": "c3xkpTXrxIO4vZA0NFlNa9", 447 | "sync": false 448 | }, 449 | { 450 | "__type__": "cc.Node", 451 | "_name": "p2", 452 | "_objFlags": 0, 453 | "_parent": { 454 | "__id__": 1 455 | }, 456 | "_children": [], 457 | "_tag": -1, 458 | "_active": true, 459 | "_components": [], 460 | "_prefab": { 461 | "__id__": 15 462 | }, 463 | "_id": "", 464 | "_opacity": 255, 465 | "_color": { 466 | "__type__": "cc.Color", 467 | "r": 255, 468 | "g": 255, 469 | "b": 255, 470 | "a": 255 471 | }, 472 | "_cascadeOpacityEnabled": true, 473 | "_anchorPoint": { 474 | "__type__": "cc.Vec2", 475 | "x": 0.5, 476 | "y": 0.5 477 | }, 478 | "_contentSize": { 479 | "__type__": "cc.Size", 480 | "width": 0, 481 | "height": 0 482 | }, 483 | "_rotationX": 0, 484 | "_rotationY": 0, 485 | "_scaleX": 1, 486 | "_scaleY": 1, 487 | "_position": { 488 | "__type__": "cc.Vec2", 489 | "x": 135.6, 490 | "y": 75.4 491 | }, 492 | "_skewX": 0, 493 | "_skewY": 0, 494 | "_localZOrder": 0, 495 | "_globalZOrder": 0, 496 | "_opacityModifyRGB": false, 497 | "groupIndex": 0 498 | }, 499 | { 500 | "__type__": "cc.PrefabInfo", 501 | "root": { 502 | "__id__": 1 503 | }, 504 | "asset": { 505 | "__id__": 0 506 | }, 507 | "fileId": "caTikmZI5Nwahpvsl1aSw1", 508 | "sync": false 509 | }, 510 | { 511 | "__type__": "cc.Node", 512 | "_name": "中", 513 | "_objFlags": 0, 514 | "_parent": { 515 | "__id__": 1 516 | }, 517 | "_children": [], 518 | "_tag": -1, 519 | "_active": true, 520 | "_components": [], 521 | "_prefab": { 522 | "__id__": 17 523 | }, 524 | "_id": "", 525 | "_opacity": 255, 526 | "_color": { 527 | "__type__": "cc.Color", 528 | "r": 255, 529 | "g": 255, 530 | "b": 255, 531 | "a": 255 532 | }, 533 | "_cascadeOpacityEnabled": true, 534 | "_anchorPoint": { 535 | "__type__": "cc.Vec2", 536 | "x": 0.5, 537 | "y": 0.5 538 | }, 539 | "_contentSize": { 540 | "__type__": "cc.Size", 541 | "width": 0, 542 | "height": 0 543 | }, 544 | "_rotationX": 0, 545 | "_rotationY": 0, 546 | "_scaleX": 1, 547 | "_scaleY": 1, 548 | "_position": { 549 | "__type__": "cc.Vec2", 550 | "x": 0, 551 | "y": 144 552 | }, 553 | "_skewX": 0, 554 | "_skewY": 0, 555 | "_localZOrder": 0, 556 | "_globalZOrder": 0, 557 | "_opacityModifyRGB": false, 558 | "groupIndex": 0 559 | }, 560 | { 561 | "__type__": "cc.PrefabInfo", 562 | "root": { 563 | "__id__": 1 564 | }, 565 | "asset": { 566 | "__id__": 0 567 | }, 568 | "fileId": "a6r3oDDtdBmLT3a+QI8qII", 569 | "sync": false 570 | }, 571 | { 572 | "__type__": "cc.Node", 573 | "_name": "上", 574 | "_objFlags": 0, 575 | "_parent": { 576 | "__id__": 1 577 | }, 578 | "_children": [], 579 | "_tag": -1, 580 | "_active": true, 581 | "_components": [], 582 | "_prefab": { 583 | "__id__": 19 584 | }, 585 | "_id": "", 586 | "_opacity": 255, 587 | "_color": { 588 | "__type__": "cc.Color", 589 | "r": 255, 590 | "g": 255, 591 | "b": 255, 592 | "a": 255 593 | }, 594 | "_cascadeOpacityEnabled": true, 595 | "_anchorPoint": { 596 | "__type__": "cc.Vec2", 597 | "x": 0.5, 598 | "y": 0.5 599 | }, 600 | "_contentSize": { 601 | "__type__": "cc.Size", 602 | "width": 0, 603 | "height": 0 604 | }, 605 | "_rotationX": 0, 606 | "_rotationY": 0, 607 | "_scaleX": 1, 608 | "_scaleY": 1, 609 | "_position": { 610 | "__type__": "cc.Vec2", 611 | "x": 31, 612 | "y": 160 613 | }, 614 | "_skewX": 0, 615 | "_skewY": 0, 616 | "_localZOrder": 0, 617 | "_globalZOrder": 0, 618 | "_opacityModifyRGB": false, 619 | "groupIndex": 0 620 | }, 621 | { 622 | "__type__": "cc.PrefabInfo", 623 | "root": { 624 | "__id__": 1 625 | }, 626 | "asset": { 627 | "__id__": 0 628 | }, 629 | "fileId": "4foe3jNXNPmZaelqXTrl1M", 630 | "sync": false 631 | }, 632 | { 633 | "__type__": "cc.Node", 634 | "_name": "下", 635 | "_objFlags": 0, 636 | "_parent": { 637 | "__id__": 1 638 | }, 639 | "_children": [], 640 | "_tag": -1, 641 | "_active": true, 642 | "_components": [], 643 | "_prefab": { 644 | "__id__": 21 645 | }, 646 | "_id": "", 647 | "_opacity": 255, 648 | "_color": { 649 | "__type__": "cc.Color", 650 | "r": 255, 651 | "g": 255, 652 | "b": 255, 653 | "a": 255 654 | }, 655 | "_cascadeOpacityEnabled": true, 656 | "_anchorPoint": { 657 | "__type__": "cc.Vec2", 658 | "x": 0.5, 659 | "y": 0.5 660 | }, 661 | "_contentSize": { 662 | "__type__": "cc.Size", 663 | "width": 0, 664 | "height": 0 665 | }, 666 | "_rotationX": 0, 667 | "_rotationY": 0, 668 | "_scaleX": 1, 669 | "_scaleY": 1, 670 | "_position": { 671 | "__type__": "cc.Vec2", 672 | "x": -37, 673 | "y": 120 674 | }, 675 | "_skewX": 0, 676 | "_skewY": 0, 677 | "_localZOrder": 0, 678 | "_globalZOrder": 0, 679 | "_opacityModifyRGB": false, 680 | "groupIndex": 0 681 | }, 682 | { 683 | "__type__": "cc.PrefabInfo", 684 | "root": { 685 | "__id__": 1 686 | }, 687 | "asset": { 688 | "__id__": 0 689 | }, 690 | "fileId": "f9Vvu+HWFFJakilsRyaCir", 691 | "sync": false 692 | }, 693 | { 694 | "__type__": "cc.Node", 695 | "_name": "左", 696 | "_objFlags": 0, 697 | "_parent": { 698 | "__id__": 1 699 | }, 700 | "_children": [], 701 | "_tag": -1, 702 | "_active": true, 703 | "_components": [], 704 | "_prefab": { 705 | "__id__": 23 706 | }, 707 | "_id": "", 708 | "_opacity": 255, 709 | "_color": { 710 | "__type__": "cc.Color", 711 | "r": 255, 712 | "g": 255, 713 | "b": 255, 714 | "a": 255 715 | }, 716 | "_cascadeOpacityEnabled": true, 717 | "_anchorPoint": { 718 | "__type__": "cc.Vec2", 719 | "x": 0.5, 720 | "y": 0.5 721 | }, 722 | "_contentSize": { 723 | "__type__": "cc.Size", 724 | "width": 0, 725 | "height": 0 726 | }, 727 | "_rotationX": 0, 728 | "_rotationY": 0, 729 | "_scaleX": 1, 730 | "_scaleY": 1, 731 | "_position": { 732 | "__type__": "cc.Vec2", 733 | "x": -27, 734 | "y": 164 735 | }, 736 | "_skewX": 0, 737 | "_skewY": 0, 738 | "_localZOrder": 0, 739 | "_globalZOrder": 0, 740 | "_opacityModifyRGB": false, 741 | "groupIndex": 0 742 | }, 743 | { 744 | "__type__": "cc.PrefabInfo", 745 | "root": { 746 | "__id__": 1 747 | }, 748 | "asset": { 749 | "__id__": 0 750 | }, 751 | "fileId": "8aO068UstMLIaRtsY49Zny", 752 | "sync": false 753 | }, 754 | { 755 | "__type__": "cc.Node", 756 | "_name": "右", 757 | "_objFlags": 0, 758 | "_parent": { 759 | "__id__": 1 760 | }, 761 | "_children": [], 762 | "_tag": -1, 763 | "_active": true, 764 | "_components": [], 765 | "_prefab": { 766 | "__id__": 25 767 | }, 768 | "_id": "", 769 | "_opacity": 255, 770 | "_color": { 771 | "__type__": "cc.Color", 772 | "r": 255, 773 | "g": 255, 774 | "b": 255, 775 | "a": 255 776 | }, 777 | "_cascadeOpacityEnabled": true, 778 | "_anchorPoint": { 779 | "__type__": "cc.Vec2", 780 | "x": 0.5, 781 | "y": 0.5 782 | }, 783 | "_contentSize": { 784 | "__type__": "cc.Size", 785 | "width": 0, 786 | "height": 0 787 | }, 788 | "_rotationX": 0, 789 | "_rotationY": 0, 790 | "_scaleX": 1, 791 | "_scaleY": 1, 792 | "_position": { 793 | "__type__": "cc.Vec2", 794 | "x": 35, 795 | "y": 118 796 | }, 797 | "_skewX": 0, 798 | "_skewY": 0, 799 | "_localZOrder": 0, 800 | "_globalZOrder": 0, 801 | "_opacityModifyRGB": false, 802 | "groupIndex": 0 803 | }, 804 | { 805 | "__type__": "cc.PrefabInfo", 806 | "root": { 807 | "__id__": 1 808 | }, 809 | "asset": { 810 | "__id__": 0 811 | }, 812 | "fileId": "19YKTsTP9OBqH4meBFoGnf", 813 | "sync": false 814 | }, 815 | { 816 | "__type__": "007507xQ0hEcbmFDxV+eRZJ", 817 | "_name": "", 818 | "_objFlags": 0, 819 | "node": { 820 | "__id__": 1 821 | }, 822 | "_enabled": true, 823 | "maxScale": 1, 824 | "minScale": 1, 825 | "minDistance": 200, 826 | "maxDistance": 400, 827 | "anchorOffset": 100, 828 | "score": 30, 829 | "rightAnchorList": [ 830 | { 831 | "__id__": 20 832 | }, 833 | { 834 | "__id__": 16 835 | }, 836 | { 837 | "__id__": 18 838 | } 839 | ], 840 | "leftAnchorList": [ 841 | { 842 | "__id__": 22 843 | }, 844 | { 845 | "__id__": 16 846 | }, 847 | { 848 | "__id__": 24 849 | } 850 | ], 851 | "centerAnchor": { 852 | "__id__": 16 853 | }, 854 | "p1": { 855 | "__id__": 12 856 | }, 857 | "p2": { 858 | "__id__": 14 859 | } 860 | }, 861 | { 862 | "__type__": "cc.Animation", 863 | "_name": "", 864 | "_objFlags": 0, 865 | "node": { 866 | "__id__": 1 867 | }, 868 | "_enabled": true, 869 | "_defaultClip": null, 870 | "_clips": [ 871 | { 872 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 873 | } 874 | ], 875 | "playOnLoad": false 876 | }, 877 | { 878 | "__type__": "cc.PrefabInfo", 879 | "root": { 880 | "__id__": 1 881 | }, 882 | "asset": { 883 | "__id__": 0 884 | }, 885 | "fileId": "e7VTYQXKpIj7dd0kZtzVOq", 886 | "sync": false 887 | } 888 | ] -------------------------------------------------------------------------------- /assets/res/prefabs/Block5.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "5b30a62f-a731-4da1-8d40-2a8136f08024", 4 | "asyncLoadAssets": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/prefabs/Block6.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_rawFiles": null, 7 | "data": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Node", 13 | "_name": "Block6", 14 | "_objFlags": 0, 15 | "_parent": null, 16 | "_children": [ 17 | { 18 | "__id__": 2 19 | }, 20 | { 21 | "__id__": 6 22 | }, 23 | { 24 | "__id__": 12 25 | }, 26 | { 27 | "__id__": 14 28 | }, 29 | { 30 | "__id__": 16 31 | }, 32 | { 33 | "__id__": 18 34 | }, 35 | { 36 | "__id__": 20 37 | }, 38 | { 39 | "__id__": 22 40 | }, 41 | { 42 | "__id__": 24 43 | } 44 | ], 45 | "_tag": -1, 46 | "_active": true, 47 | "_components": [ 48 | { 49 | "__id__": 26 50 | }, 51 | { 52 | "__id__": 27 53 | } 54 | ], 55 | "_prefab": { 56 | "__id__": 28 57 | }, 58 | "_id": "", 59 | "_opacity": 255, 60 | "_color": { 61 | "__type__": "cc.Color", 62 | "r": 255, 63 | "g": 255, 64 | "b": 255, 65 | "a": 255 66 | }, 67 | "_cascadeOpacityEnabled": true, 68 | "_anchorPoint": { 69 | "__type__": "cc.Vec2", 70 | "x": 0.5, 71 | "y": 0.5 72 | }, 73 | "_contentSize": { 74 | "__type__": "cc.Size", 75 | "width": 0, 76 | "height": 0 77 | }, 78 | "_rotationX": 0, 79 | "_rotationY": 0, 80 | "_scaleX": 1, 81 | "_scaleY": 1, 82 | "_position": { 83 | "__type__": "cc.Vec2", 84 | "x": 0, 85 | "y": 0 86 | }, 87 | "_skewX": 0, 88 | "_skewY": 0, 89 | "_localZOrder": 0, 90 | "_globalZOrder": 0, 91 | "_opacityModifyRGB": false, 92 | "groupIndex": 0 93 | }, 94 | { 95 | "__type__": "cc.Node", 96 | "_name": "score", 97 | "_objFlags": 0, 98 | "_parent": { 99 | "__id__": 1 100 | }, 101 | "_children": [], 102 | "_tag": -1, 103 | "_active": true, 104 | "_components": [ 105 | { 106 | "__id__": 3 107 | }, 108 | { 109 | "__id__": 4 110 | } 111 | ], 112 | "_prefab": { 113 | "__id__": 5 114 | }, 115 | "_id": "", 116 | "_opacity": 255, 117 | "_color": { 118 | "__type__": "cc.Color", 119 | "r": 0, 120 | "g": 0, 121 | "b": 0, 122 | "a": 255 123 | }, 124 | "_cascadeOpacityEnabled": true, 125 | "_anchorPoint": { 126 | "__type__": "cc.Vec2", 127 | "x": 0.5, 128 | "y": 0.5 129 | }, 130 | "_contentSize": { 131 | "__type__": "cc.Size", 132 | "width": 97.87, 133 | "height": 40 134 | }, 135 | "_rotationX": 0, 136 | "_rotationY": 0, 137 | "_scaleX": 1, 138 | "_scaleY": 1, 139 | "_position": { 140 | "__type__": "cc.Vec2", 141 | "x": 0, 142 | "y": 185 143 | }, 144 | "_skewX": 0, 145 | "_skewY": 0, 146 | "_localZOrder": 0, 147 | "_globalZOrder": 0, 148 | "_opacityModifyRGB": false, 149 | "groupIndex": 0 150 | }, 151 | { 152 | "__type__": "cc.Label", 153 | "_name": "", 154 | "_objFlags": 0, 155 | "node": { 156 | "__id__": 2 157 | }, 158 | "_enabled": true, 159 | "_useOriginalSize": false, 160 | "_actualFontSize": 40, 161 | "_fontSize": 40, 162 | "_lineHeight": 40, 163 | "_enableWrapText": true, 164 | "_N$file": null, 165 | "_isSystemFontUsed": true, 166 | "_spacingX": 0, 167 | "_N$string": "Label", 168 | "_N$horizontalAlign": 1, 169 | "_N$verticalAlign": 1, 170 | "_N$fontFamily": "Arial", 171 | "_N$overflow": 0 172 | }, 173 | { 174 | "__type__": "cc.Animation", 175 | "_name": "", 176 | "_objFlags": 0, 177 | "node": { 178 | "__id__": 2 179 | }, 180 | "_enabled": true, 181 | "_defaultClip": { 182 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 183 | }, 184 | "_clips": [ 185 | { 186 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 187 | } 188 | ], 189 | "playOnLoad": false 190 | }, 191 | { 192 | "__type__": "cc.PrefabInfo", 193 | "root": { 194 | "__id__": 1 195 | }, 196 | "asset": { 197 | "__id__": 0 198 | }, 199 | "fileId": "0eZB8TQkBFHLIvo5Rjdo78", 200 | "sync": false 201 | }, 202 | { 203 | "__type__": "cc.Node", 204 | "_name": "sprite", 205 | "_objFlags": 0, 206 | "_parent": { 207 | "__id__": 1 208 | }, 209 | "_children": [ 210 | { 211 | "__id__": 7 212 | } 213 | ], 214 | "_tag": -1, 215 | "_active": true, 216 | "_components": [ 217 | { 218 | "__id__": 10 219 | } 220 | ], 221 | "_prefab": { 222 | "__id__": 11 223 | }, 224 | "_id": "", 225 | "_opacity": 255, 226 | "_color": { 227 | "__type__": "cc.Color", 228 | "r": 255, 229 | "g": 255, 230 | "b": 255, 231 | "a": 255 232 | }, 233 | "_cascadeOpacityEnabled": true, 234 | "_anchorPoint": { 235 | "__type__": "cc.Vec2", 236 | "x": 0.5, 237 | "y": 0.5 238 | }, 239 | "_contentSize": { 240 | "__type__": "cc.Size", 241 | "width": 358, 242 | "height": 240 243 | }, 244 | "_rotationX": 0, 245 | "_rotationY": 0, 246 | "_scaleX": 1, 247 | "_scaleY": 1, 248 | "_position": { 249 | "__type__": "cc.Vec2", 250 | "x": -43.4, 251 | "y": 119 252 | }, 253 | "_skewX": 0, 254 | "_skewY": 0, 255 | "_localZOrder": 0, 256 | "_globalZOrder": 0, 257 | "_opacityModifyRGB": false, 258 | "groupIndex": 0 259 | }, 260 | { 261 | "__type__": "cc.Node", 262 | "_name": "zhe", 263 | "_objFlags": 0, 264 | "_parent": { 265 | "__id__": 6 266 | }, 267 | "_children": [], 268 | "_tag": -1, 269 | "_active": true, 270 | "_components": [ 271 | { 272 | "__id__": 8 273 | } 274 | ], 275 | "_prefab": { 276 | "__id__": 9 277 | }, 278 | "_id": "", 279 | "_opacity": 255, 280 | "_color": { 281 | "__type__": "cc.Color", 282 | "r": 255, 283 | "g": 255, 284 | "b": 255, 285 | "a": 255 286 | }, 287 | "_cascadeOpacityEnabled": true, 288 | "_anchorPoint": { 289 | "__type__": "cc.Vec2", 290 | "x": 0.5, 291 | "y": 0.5 292 | }, 293 | "_contentSize": { 294 | "__type__": "cc.Size", 295 | "width": 45, 296 | "height": 45 297 | }, 298 | "_rotationX": 0, 299 | "_rotationY": 0, 300 | "_scaleX": 1, 301 | "_scaleY": 1, 302 | "_position": { 303 | "__type__": "cc.Vec2", 304 | "x": 42.4, 305 | "y": 43 306 | }, 307 | "_skewX": 60, 308 | "_skewY": -30, 309 | "_localZOrder": 0, 310 | "_globalZOrder": 0, 311 | "_opacityModifyRGB": false, 312 | "groupIndex": 0 313 | }, 314 | { 315 | "__type__": "cc.Sprite", 316 | "_name": "", 317 | "_objFlags": 0, 318 | "node": { 319 | "__id__": 7 320 | }, 321 | "_enabled": true, 322 | "_spriteFrame": { 323 | "__uuid__": "2ca99182-c0c3-442f-8662-45b254a0ae8a" 324 | }, 325 | "_type": 0, 326 | "_sizeMode": 1, 327 | "_fillType": 0, 328 | "_fillCenter": { 329 | "__type__": "cc.Vec2", 330 | "x": 0, 331 | "y": 0 332 | }, 333 | "_fillStart": 0, 334 | "_fillRange": 0, 335 | "_isTrimmedMode": true, 336 | "_srcBlendFactor": 770, 337 | "_dstBlendFactor": 771, 338 | "_atlas": null 339 | }, 340 | { 341 | "__type__": "cc.PrefabInfo", 342 | "root": { 343 | "__id__": 1 344 | }, 345 | "asset": { 346 | "__id__": 0 347 | }, 348 | "fileId": "a34msOj7VF2qZCwsVNLIx6", 349 | "sync": false 350 | }, 351 | { 352 | "__type__": "cc.Sprite", 353 | "_name": "", 354 | "_objFlags": 0, 355 | "node": { 356 | "__id__": 6 357 | }, 358 | "_enabled": true, 359 | "_spriteFrame": { 360 | "__uuid__": "bb68c246-792b-4ad8-b40d-5bd3e14c2ad7" 361 | }, 362 | "_type": 0, 363 | "_sizeMode": 1, 364 | "_fillType": 0, 365 | "_fillCenter": { 366 | "__type__": "cc.Vec2", 367 | "x": 0, 368 | "y": 0 369 | }, 370 | "_fillStart": 0, 371 | "_fillRange": 0, 372 | "_isTrimmedMode": true, 373 | "_srcBlendFactor": 770, 374 | "_dstBlendFactor": 771, 375 | "_atlas": null 376 | }, 377 | { 378 | "__type__": "cc.PrefabInfo", 379 | "root": { 380 | "__id__": 1 381 | }, 382 | "asset": { 383 | "__id__": 0 384 | }, 385 | "fileId": "b9dQ/yNONDPLgqoCHN+k4F", 386 | "sync": false 387 | }, 388 | { 389 | "__type__": "cc.Node", 390 | "_name": "p1", 391 | "_objFlags": 0, 392 | "_parent": { 393 | "__id__": 1 394 | }, 395 | "_children": [], 396 | "_tag": -1, 397 | "_active": true, 398 | "_components": [], 399 | "_prefab": { 400 | "__id__": 13 401 | }, 402 | "_id": "", 403 | "_opacity": 255, 404 | "_color": { 405 | "__type__": "cc.Color", 406 | "r": 255, 407 | "g": 255, 408 | "b": 255, 409 | "a": 255 410 | }, 411 | "_cascadeOpacityEnabled": true, 412 | "_anchorPoint": { 413 | "__type__": "cc.Vec2", 414 | "x": 0.5, 415 | "y": 0.5 416 | }, 417 | "_contentSize": { 418 | "__type__": "cc.Size", 419 | "width": 0, 420 | "height": 0 421 | }, 422 | "_rotationX": 0, 423 | "_rotationY": 0, 424 | "_scaleX": 1, 425 | "_scaleY": 1, 426 | "_position": { 427 | "__type__": "cc.Vec2", 428 | "x": -133.2, 429 | "y": 74.2 430 | }, 431 | "_skewX": 0, 432 | "_skewY": 0, 433 | "_localZOrder": 0, 434 | "_globalZOrder": 0, 435 | "_opacityModifyRGB": false, 436 | "groupIndex": 0 437 | }, 438 | { 439 | "__type__": "cc.PrefabInfo", 440 | "root": { 441 | "__id__": 1 442 | }, 443 | "asset": { 444 | "__id__": 0 445 | }, 446 | "fileId": "52M+Ua7i9Of6j6z0jOEiZ9", 447 | "sync": false 448 | }, 449 | { 450 | "__type__": "cc.Node", 451 | "_name": "p2", 452 | "_objFlags": 0, 453 | "_parent": { 454 | "__id__": 1 455 | }, 456 | "_children": [], 457 | "_tag": -1, 458 | "_active": true, 459 | "_components": [], 460 | "_prefab": { 461 | "__id__": 15 462 | }, 463 | "_id": "", 464 | "_opacity": 255, 465 | "_color": { 466 | "__type__": "cc.Color", 467 | "r": 255, 468 | "g": 255, 469 | "b": 255, 470 | "a": 255 471 | }, 472 | "_cascadeOpacityEnabled": true, 473 | "_anchorPoint": { 474 | "__type__": "cc.Vec2", 475 | "x": 0.5, 476 | "y": 0.5 477 | }, 478 | "_contentSize": { 479 | "__type__": "cc.Size", 480 | "width": 0, 481 | "height": 0 482 | }, 483 | "_rotationX": 0, 484 | "_rotationY": 0, 485 | "_scaleX": 1, 486 | "_scaleY": 1, 487 | "_position": { 488 | "__type__": "cc.Vec2", 489 | "x": 135.6, 490 | "y": 75.4 491 | }, 492 | "_skewX": 0, 493 | "_skewY": 0, 494 | "_localZOrder": 0, 495 | "_globalZOrder": 0, 496 | "_opacityModifyRGB": false, 497 | "groupIndex": 0 498 | }, 499 | { 500 | "__type__": "cc.PrefabInfo", 501 | "root": { 502 | "__id__": 1 503 | }, 504 | "asset": { 505 | "__id__": 0 506 | }, 507 | "fileId": "aaPBoIEilIqq/K5Em1V2XL", 508 | "sync": false 509 | }, 510 | { 511 | "__type__": "cc.Node", 512 | "_name": "中", 513 | "_objFlags": 0, 514 | "_parent": { 515 | "__id__": 1 516 | }, 517 | "_children": [], 518 | "_tag": -1, 519 | "_active": true, 520 | "_components": [], 521 | "_prefab": { 522 | "__id__": 17 523 | }, 524 | "_id": "", 525 | "_opacity": 255, 526 | "_color": { 527 | "__type__": "cc.Color", 528 | "r": 255, 529 | "g": 255, 530 | "b": 255, 531 | "a": 255 532 | }, 533 | "_cascadeOpacityEnabled": true, 534 | "_anchorPoint": { 535 | "__type__": "cc.Vec2", 536 | "x": 0.5, 537 | "y": 0.5 538 | }, 539 | "_contentSize": { 540 | "__type__": "cc.Size", 541 | "width": 0, 542 | "height": 0 543 | }, 544 | "_rotationX": 0, 545 | "_rotationY": 0, 546 | "_scaleX": 1, 547 | "_scaleY": 1, 548 | "_position": { 549 | "__type__": "cc.Vec2", 550 | "x": 0, 551 | "y": 144 552 | }, 553 | "_skewX": 0, 554 | "_skewY": 0, 555 | "_localZOrder": 0, 556 | "_globalZOrder": 0, 557 | "_opacityModifyRGB": false, 558 | "groupIndex": 0 559 | }, 560 | { 561 | "__type__": "cc.PrefabInfo", 562 | "root": { 563 | "__id__": 1 564 | }, 565 | "asset": { 566 | "__id__": 0 567 | }, 568 | "fileId": "c63dglW7RHrILl8pJPsgR3", 569 | "sync": false 570 | }, 571 | { 572 | "__type__": "cc.Node", 573 | "_name": "上", 574 | "_objFlags": 0, 575 | "_parent": { 576 | "__id__": 1 577 | }, 578 | "_children": [], 579 | "_tag": -1, 580 | "_active": true, 581 | "_components": [], 582 | "_prefab": { 583 | "__id__": 19 584 | }, 585 | "_id": "", 586 | "_opacity": 255, 587 | "_color": { 588 | "__type__": "cc.Color", 589 | "r": 255, 590 | "g": 255, 591 | "b": 255, 592 | "a": 255 593 | }, 594 | "_cascadeOpacityEnabled": true, 595 | "_anchorPoint": { 596 | "__type__": "cc.Vec2", 597 | "x": 0.5, 598 | "y": 0.5 599 | }, 600 | "_contentSize": { 601 | "__type__": "cc.Size", 602 | "width": 0, 603 | "height": 0 604 | }, 605 | "_rotationX": 0, 606 | "_rotationY": 0, 607 | "_scaleX": 1, 608 | "_scaleY": 1, 609 | "_position": { 610 | "__type__": "cc.Vec2", 611 | "x": 31, 612 | "y": 160 613 | }, 614 | "_skewX": 0, 615 | "_skewY": 0, 616 | "_localZOrder": 0, 617 | "_globalZOrder": 0, 618 | "_opacityModifyRGB": false, 619 | "groupIndex": 0 620 | }, 621 | { 622 | "__type__": "cc.PrefabInfo", 623 | "root": { 624 | "__id__": 1 625 | }, 626 | "asset": { 627 | "__id__": 0 628 | }, 629 | "fileId": "ceTt5F/mJI6KGHfI0YZx91", 630 | "sync": false 631 | }, 632 | { 633 | "__type__": "cc.Node", 634 | "_name": "下", 635 | "_objFlags": 0, 636 | "_parent": { 637 | "__id__": 1 638 | }, 639 | "_children": [], 640 | "_tag": -1, 641 | "_active": true, 642 | "_components": [], 643 | "_prefab": { 644 | "__id__": 21 645 | }, 646 | "_id": "", 647 | "_opacity": 255, 648 | "_color": { 649 | "__type__": "cc.Color", 650 | "r": 255, 651 | "g": 255, 652 | "b": 255, 653 | "a": 255 654 | }, 655 | "_cascadeOpacityEnabled": true, 656 | "_anchorPoint": { 657 | "__type__": "cc.Vec2", 658 | "x": 0.5, 659 | "y": 0.5 660 | }, 661 | "_contentSize": { 662 | "__type__": "cc.Size", 663 | "width": 0, 664 | "height": 0 665 | }, 666 | "_rotationX": 0, 667 | "_rotationY": 0, 668 | "_scaleX": 1, 669 | "_scaleY": 1, 670 | "_position": { 671 | "__type__": "cc.Vec2", 672 | "x": -37, 673 | "y": 120 674 | }, 675 | "_skewX": 0, 676 | "_skewY": 0, 677 | "_localZOrder": 0, 678 | "_globalZOrder": 0, 679 | "_opacityModifyRGB": false, 680 | "groupIndex": 0 681 | }, 682 | { 683 | "__type__": "cc.PrefabInfo", 684 | "root": { 685 | "__id__": 1 686 | }, 687 | "asset": { 688 | "__id__": 0 689 | }, 690 | "fileId": "208FgneN1MQrn50J3Lz51V", 691 | "sync": false 692 | }, 693 | { 694 | "__type__": "cc.Node", 695 | "_name": "左", 696 | "_objFlags": 0, 697 | "_parent": { 698 | "__id__": 1 699 | }, 700 | "_children": [], 701 | "_tag": -1, 702 | "_active": true, 703 | "_components": [], 704 | "_prefab": { 705 | "__id__": 23 706 | }, 707 | "_id": "", 708 | "_opacity": 255, 709 | "_color": { 710 | "__type__": "cc.Color", 711 | "r": 255, 712 | "g": 255, 713 | "b": 255, 714 | "a": 255 715 | }, 716 | "_cascadeOpacityEnabled": true, 717 | "_anchorPoint": { 718 | "__type__": "cc.Vec2", 719 | "x": 0.5, 720 | "y": 0.5 721 | }, 722 | "_contentSize": { 723 | "__type__": "cc.Size", 724 | "width": 0, 725 | "height": 0 726 | }, 727 | "_rotationX": 0, 728 | "_rotationY": 0, 729 | "_scaleX": 1, 730 | "_scaleY": 1, 731 | "_position": { 732 | "__type__": "cc.Vec2", 733 | "x": -27, 734 | "y": 164 735 | }, 736 | "_skewX": 0, 737 | "_skewY": 0, 738 | "_localZOrder": 0, 739 | "_globalZOrder": 0, 740 | "_opacityModifyRGB": false, 741 | "groupIndex": 0 742 | }, 743 | { 744 | "__type__": "cc.PrefabInfo", 745 | "root": { 746 | "__id__": 1 747 | }, 748 | "asset": { 749 | "__id__": 0 750 | }, 751 | "fileId": "8dJ75cApNEDYWbrbP2Ohsi", 752 | "sync": false 753 | }, 754 | { 755 | "__type__": "cc.Node", 756 | "_name": "右", 757 | "_objFlags": 0, 758 | "_parent": { 759 | "__id__": 1 760 | }, 761 | "_children": [], 762 | "_tag": -1, 763 | "_active": true, 764 | "_components": [], 765 | "_prefab": { 766 | "__id__": 25 767 | }, 768 | "_id": "", 769 | "_opacity": 255, 770 | "_color": { 771 | "__type__": "cc.Color", 772 | "r": 255, 773 | "g": 255, 774 | "b": 255, 775 | "a": 255 776 | }, 777 | "_cascadeOpacityEnabled": true, 778 | "_anchorPoint": { 779 | "__type__": "cc.Vec2", 780 | "x": 0.5, 781 | "y": 0.5 782 | }, 783 | "_contentSize": { 784 | "__type__": "cc.Size", 785 | "width": 0, 786 | "height": 0 787 | }, 788 | "_rotationX": 0, 789 | "_rotationY": 0, 790 | "_scaleX": 1, 791 | "_scaleY": 1, 792 | "_position": { 793 | "__type__": "cc.Vec2", 794 | "x": 35, 795 | "y": 118 796 | }, 797 | "_skewX": 0, 798 | "_skewY": 0, 799 | "_localZOrder": 0, 800 | "_globalZOrder": 0, 801 | "_opacityModifyRGB": false, 802 | "groupIndex": 0 803 | }, 804 | { 805 | "__type__": "cc.PrefabInfo", 806 | "root": { 807 | "__id__": 1 808 | }, 809 | "asset": { 810 | "__id__": 0 811 | }, 812 | "fileId": "bbNMbQIWBFFZA7Uczpvsob", 813 | "sync": false 814 | }, 815 | { 816 | "__type__": "007507xQ0hEcbmFDxV+eRZJ", 817 | "_name": "", 818 | "_objFlags": 0, 819 | "node": { 820 | "__id__": 1 821 | }, 822 | "_enabled": true, 823 | "maxScale": 1, 824 | "minScale": 1, 825 | "minDistance": 200, 826 | "maxDistance": 400, 827 | "anchorOffset": 100, 828 | "score": 10, 829 | "rightAnchorList": [ 830 | { 831 | "__id__": 20 832 | }, 833 | { 834 | "__id__": 16 835 | }, 836 | { 837 | "__id__": 18 838 | } 839 | ], 840 | "leftAnchorList": [ 841 | { 842 | "__id__": 22 843 | }, 844 | { 845 | "__id__": 16 846 | }, 847 | { 848 | "__id__": 24 849 | } 850 | ], 851 | "centerAnchor": { 852 | "__id__": 16 853 | }, 854 | "p1": { 855 | "__id__": 12 856 | }, 857 | "p2": { 858 | "__id__": 14 859 | } 860 | }, 861 | { 862 | "__type__": "cc.Animation", 863 | "_name": "", 864 | "_objFlags": 0, 865 | "node": { 866 | "__id__": 1 867 | }, 868 | "_enabled": true, 869 | "_defaultClip": null, 870 | "_clips": [ 871 | { 872 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 873 | } 874 | ], 875 | "playOnLoad": false 876 | }, 877 | { 878 | "__type__": "cc.PrefabInfo", 879 | "root": { 880 | "__id__": 1 881 | }, 882 | "asset": { 883 | "__id__": 0 884 | }, 885 | "fileId": "1dY2Z8ITNGLYWhLPFUo6e7", 886 | "sync": false 887 | } 888 | ] -------------------------------------------------------------------------------- /assets/res/prefabs/Block6.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "e64298f0-6574-4b9b-8434-ac9d8d0f5a6a", 4 | "asyncLoadAssets": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/prefabs/Block7.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_rawFiles": null, 7 | "data": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Node", 13 | "_name": "Block7", 14 | "_objFlags": 0, 15 | "_parent": null, 16 | "_children": [ 17 | { 18 | "__id__": 2 19 | }, 20 | { 21 | "__id__": 6 22 | }, 23 | { 24 | "__id__": 12 25 | }, 26 | { 27 | "__id__": 14 28 | }, 29 | { 30 | "__id__": 16 31 | }, 32 | { 33 | "__id__": 18 34 | }, 35 | { 36 | "__id__": 20 37 | }, 38 | { 39 | "__id__": 22 40 | }, 41 | { 42 | "__id__": 24 43 | } 44 | ], 45 | "_tag": -1, 46 | "_active": true, 47 | "_components": [ 48 | { 49 | "__id__": 26 50 | }, 51 | { 52 | "__id__": 27 53 | } 54 | ], 55 | "_prefab": { 56 | "__id__": 28 57 | }, 58 | "_id": "", 59 | "_opacity": 255, 60 | "_color": { 61 | "__type__": "cc.Color", 62 | "r": 255, 63 | "g": 255, 64 | "b": 255, 65 | "a": 255 66 | }, 67 | "_cascadeOpacityEnabled": true, 68 | "_anchorPoint": { 69 | "__type__": "cc.Vec2", 70 | "x": 0.5, 71 | "y": 0.5 72 | }, 73 | "_contentSize": { 74 | "__type__": "cc.Size", 75 | "width": 0, 76 | "height": 0 77 | }, 78 | "_rotationX": 0, 79 | "_rotationY": 0, 80 | "_scaleX": 1, 81 | "_scaleY": 1, 82 | "_position": { 83 | "__type__": "cc.Vec2", 84 | "x": -90, 85 | "y": 273 86 | }, 87 | "_skewX": 0, 88 | "_skewY": 0, 89 | "_localZOrder": 0, 90 | "_globalZOrder": 0, 91 | "_opacityModifyRGB": false, 92 | "groupIndex": 0 93 | }, 94 | { 95 | "__type__": "cc.Node", 96 | "_name": "score", 97 | "_objFlags": 0, 98 | "_parent": { 99 | "__id__": 1 100 | }, 101 | "_children": [], 102 | "_tag": -1, 103 | "_active": true, 104 | "_components": [ 105 | { 106 | "__id__": 3 107 | }, 108 | { 109 | "__id__": 4 110 | } 111 | ], 112 | "_prefab": { 113 | "__id__": 5 114 | }, 115 | "_id": "", 116 | "_opacity": 255, 117 | "_color": { 118 | "__type__": "cc.Color", 119 | "r": 0, 120 | "g": 0, 121 | "b": 0, 122 | "a": 255 123 | }, 124 | "_cascadeOpacityEnabled": true, 125 | "_anchorPoint": { 126 | "__type__": "cc.Vec2", 127 | "x": 0.5, 128 | "y": 0.5 129 | }, 130 | "_contentSize": { 131 | "__type__": "cc.Size", 132 | "width": 97.87, 133 | "height": 40 134 | }, 135 | "_rotationX": 0, 136 | "_rotationY": 0, 137 | "_scaleX": 1, 138 | "_scaleY": 1, 139 | "_position": { 140 | "__type__": "cc.Vec2", 141 | "x": 0, 142 | "y": 185 143 | }, 144 | "_skewX": 0, 145 | "_skewY": 0, 146 | "_localZOrder": 0, 147 | "_globalZOrder": 0, 148 | "_opacityModifyRGB": false, 149 | "groupIndex": 0 150 | }, 151 | { 152 | "__type__": "cc.Label", 153 | "_name": "", 154 | "_objFlags": 0, 155 | "node": { 156 | "__id__": 2 157 | }, 158 | "_enabled": true, 159 | "_useOriginalSize": false, 160 | "_actualFontSize": 40, 161 | "_fontSize": 40, 162 | "_lineHeight": 40, 163 | "_enableWrapText": true, 164 | "_N$file": null, 165 | "_isSystemFontUsed": true, 166 | "_spacingX": 0, 167 | "_N$string": "Label", 168 | "_N$horizontalAlign": 1, 169 | "_N$verticalAlign": 1, 170 | "_N$fontFamily": "Arial", 171 | "_N$overflow": 0 172 | }, 173 | { 174 | "__type__": "cc.Animation", 175 | "_name": "", 176 | "_objFlags": 0, 177 | "node": { 178 | "__id__": 2 179 | }, 180 | "_enabled": true, 181 | "_defaultClip": { 182 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 183 | }, 184 | "_clips": [ 185 | { 186 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 187 | } 188 | ], 189 | "playOnLoad": false 190 | }, 191 | { 192 | "__type__": "cc.PrefabInfo", 193 | "root": { 194 | "__id__": 1 195 | }, 196 | "asset": { 197 | "__id__": 0 198 | }, 199 | "fileId": "1fOz9uMfRGlrtqBdqPmzfN", 200 | "sync": false 201 | }, 202 | { 203 | "__type__": "cc.Node", 204 | "_name": "sprite", 205 | "_objFlags": 0, 206 | "_parent": { 207 | "__id__": 1 208 | }, 209 | "_children": [ 210 | { 211 | "__id__": 7 212 | } 213 | ], 214 | "_tag": -1, 215 | "_active": true, 216 | "_components": [ 217 | { 218 | "__id__": 10 219 | } 220 | ], 221 | "_prefab": { 222 | "__id__": 11 223 | }, 224 | "_id": "", 225 | "_opacity": 255, 226 | "_color": { 227 | "__type__": "cc.Color", 228 | "r": 255, 229 | "g": 255, 230 | "b": 255, 231 | "a": 255 232 | }, 233 | "_cascadeOpacityEnabled": true, 234 | "_anchorPoint": { 235 | "__type__": "cc.Vec2", 236 | "x": 0.5, 237 | "y": 0.5 238 | }, 239 | "_contentSize": { 240 | "__type__": "cc.Size", 241 | "width": 358, 242 | "height": 240 243 | }, 244 | "_rotationX": 0, 245 | "_rotationY": 0, 246 | "_scaleX": 1, 247 | "_scaleY": 1, 248 | "_position": { 249 | "__type__": "cc.Vec2", 250 | "x": -43.4, 251 | "y": 119 252 | }, 253 | "_skewX": 0, 254 | "_skewY": 0, 255 | "_localZOrder": 0, 256 | "_globalZOrder": 0, 257 | "_opacityModifyRGB": false, 258 | "groupIndex": 0 259 | }, 260 | { 261 | "__type__": "cc.Node", 262 | "_name": "zhe", 263 | "_objFlags": 0, 264 | "_parent": { 265 | "__id__": 6 266 | }, 267 | "_children": [], 268 | "_tag": -1, 269 | "_active": true, 270 | "_components": [ 271 | { 272 | "__id__": 8 273 | } 274 | ], 275 | "_prefab": { 276 | "__id__": 9 277 | }, 278 | "_id": "", 279 | "_opacity": 255, 280 | "_color": { 281 | "__type__": "cc.Color", 282 | "r": 255, 283 | "g": 255, 284 | "b": 255, 285 | "a": 255 286 | }, 287 | "_cascadeOpacityEnabled": true, 288 | "_anchorPoint": { 289 | "__type__": "cc.Vec2", 290 | "x": 0.5, 291 | "y": 0.5 292 | }, 293 | "_contentSize": { 294 | "__type__": "cc.Size", 295 | "width": 45, 296 | "height": 45 297 | }, 298 | "_rotationX": 0, 299 | "_rotationY": 0, 300 | "_scaleX": 1, 301 | "_scaleY": 1, 302 | "_position": { 303 | "__type__": "cc.Vec2", 304 | "x": 42.4, 305 | "y": 43 306 | }, 307 | "_skewX": 60, 308 | "_skewY": -30, 309 | "_localZOrder": 0, 310 | "_globalZOrder": 0, 311 | "_opacityModifyRGB": false, 312 | "groupIndex": 0 313 | }, 314 | { 315 | "__type__": "cc.Sprite", 316 | "_name": "", 317 | "_objFlags": 0, 318 | "node": { 319 | "__id__": 7 320 | }, 321 | "_enabled": true, 322 | "_spriteFrame": { 323 | "__uuid__": "513f9af9-1e8e-4fe9-a32c-9998376f4f10" 324 | }, 325 | "_type": 0, 326 | "_sizeMode": 1, 327 | "_fillType": 0, 328 | "_fillCenter": { 329 | "__type__": "cc.Vec2", 330 | "x": 0, 331 | "y": 0 332 | }, 333 | "_fillStart": 0, 334 | "_fillRange": 0, 335 | "_isTrimmedMode": true, 336 | "_srcBlendFactor": 770, 337 | "_dstBlendFactor": 771, 338 | "_atlas": null 339 | }, 340 | { 341 | "__type__": "cc.PrefabInfo", 342 | "root": { 343 | "__id__": 1 344 | }, 345 | "asset": { 346 | "__id__": 0 347 | }, 348 | "fileId": "0fHd6VAEZIuqVc9SksN5VX", 349 | "sync": false 350 | }, 351 | { 352 | "__type__": "cc.Sprite", 353 | "_name": "", 354 | "_objFlags": 0, 355 | "node": { 356 | "__id__": 6 357 | }, 358 | "_enabled": true, 359 | "_spriteFrame": { 360 | "__uuid__": "a925a0fc-db81-4e07-b4f7-e36f1f4c9a65" 361 | }, 362 | "_type": 0, 363 | "_sizeMode": 1, 364 | "_fillType": 0, 365 | "_fillCenter": { 366 | "__type__": "cc.Vec2", 367 | "x": 0, 368 | "y": 0 369 | }, 370 | "_fillStart": 0, 371 | "_fillRange": 0, 372 | "_isTrimmedMode": true, 373 | "_srcBlendFactor": 770, 374 | "_dstBlendFactor": 771, 375 | "_atlas": null 376 | }, 377 | { 378 | "__type__": "cc.PrefabInfo", 379 | "root": { 380 | "__id__": 1 381 | }, 382 | "asset": { 383 | "__id__": 0 384 | }, 385 | "fileId": "2blz1AiadDDLCZIYtBYtob", 386 | "sync": false 387 | }, 388 | { 389 | "__type__": "cc.Node", 390 | "_name": "p1", 391 | "_objFlags": 0, 392 | "_parent": { 393 | "__id__": 1 394 | }, 395 | "_children": [], 396 | "_tag": -1, 397 | "_active": true, 398 | "_components": [], 399 | "_prefab": { 400 | "__id__": 13 401 | }, 402 | "_id": "", 403 | "_opacity": 255, 404 | "_color": { 405 | "__type__": "cc.Color", 406 | "r": 255, 407 | "g": 255, 408 | "b": 255, 409 | "a": 255 410 | }, 411 | "_cascadeOpacityEnabled": true, 412 | "_anchorPoint": { 413 | "__type__": "cc.Vec2", 414 | "x": 0.5, 415 | "y": 0.5 416 | }, 417 | "_contentSize": { 418 | "__type__": "cc.Size", 419 | "width": 0, 420 | "height": 0 421 | }, 422 | "_rotationX": 0, 423 | "_rotationY": 0, 424 | "_scaleX": 1, 425 | "_scaleY": 1, 426 | "_position": { 427 | "__type__": "cc.Vec2", 428 | "x": -133.2, 429 | "y": 74.2 430 | }, 431 | "_skewX": 0, 432 | "_skewY": 0, 433 | "_localZOrder": 0, 434 | "_globalZOrder": 0, 435 | "_opacityModifyRGB": false, 436 | "groupIndex": 0 437 | }, 438 | { 439 | "__type__": "cc.PrefabInfo", 440 | "root": { 441 | "__id__": 1 442 | }, 443 | "asset": { 444 | "__id__": 0 445 | }, 446 | "fileId": "71Xb9XiItBHK3qdSceLvf9", 447 | "sync": false 448 | }, 449 | { 450 | "__type__": "cc.Node", 451 | "_name": "p2", 452 | "_objFlags": 0, 453 | "_parent": { 454 | "__id__": 1 455 | }, 456 | "_children": [], 457 | "_tag": -1, 458 | "_active": true, 459 | "_components": [], 460 | "_prefab": { 461 | "__id__": 15 462 | }, 463 | "_id": "", 464 | "_opacity": 255, 465 | "_color": { 466 | "__type__": "cc.Color", 467 | "r": 255, 468 | "g": 255, 469 | "b": 255, 470 | "a": 255 471 | }, 472 | "_cascadeOpacityEnabled": true, 473 | "_anchorPoint": { 474 | "__type__": "cc.Vec2", 475 | "x": 0.5, 476 | "y": 0.5 477 | }, 478 | "_contentSize": { 479 | "__type__": "cc.Size", 480 | "width": 0, 481 | "height": 0 482 | }, 483 | "_rotationX": 0, 484 | "_rotationY": 0, 485 | "_scaleX": 1, 486 | "_scaleY": 1, 487 | "_position": { 488 | "__type__": "cc.Vec2", 489 | "x": 135.6, 490 | "y": 75.4 491 | }, 492 | "_skewX": 0, 493 | "_skewY": 0, 494 | "_localZOrder": 0, 495 | "_globalZOrder": 0, 496 | "_opacityModifyRGB": false, 497 | "groupIndex": 0 498 | }, 499 | { 500 | "__type__": "cc.PrefabInfo", 501 | "root": { 502 | "__id__": 1 503 | }, 504 | "asset": { 505 | "__id__": 0 506 | }, 507 | "fileId": "bfZIKMO8BNUqFjdJ6xhLD3", 508 | "sync": false 509 | }, 510 | { 511 | "__type__": "cc.Node", 512 | "_name": "中", 513 | "_objFlags": 0, 514 | "_parent": { 515 | "__id__": 1 516 | }, 517 | "_children": [], 518 | "_tag": -1, 519 | "_active": true, 520 | "_components": [], 521 | "_prefab": { 522 | "__id__": 17 523 | }, 524 | "_id": "", 525 | "_opacity": 255, 526 | "_color": { 527 | "__type__": "cc.Color", 528 | "r": 255, 529 | "g": 255, 530 | "b": 255, 531 | "a": 255 532 | }, 533 | "_cascadeOpacityEnabled": true, 534 | "_anchorPoint": { 535 | "__type__": "cc.Vec2", 536 | "x": 0.5, 537 | "y": 0.5 538 | }, 539 | "_contentSize": { 540 | "__type__": "cc.Size", 541 | "width": 0, 542 | "height": 0 543 | }, 544 | "_rotationX": 0, 545 | "_rotationY": 0, 546 | "_scaleX": 1, 547 | "_scaleY": 1, 548 | "_position": { 549 | "__type__": "cc.Vec2", 550 | "x": 0, 551 | "y": 144 552 | }, 553 | "_skewX": 0, 554 | "_skewY": 0, 555 | "_localZOrder": 0, 556 | "_globalZOrder": 0, 557 | "_opacityModifyRGB": false, 558 | "groupIndex": 0 559 | }, 560 | { 561 | "__type__": "cc.PrefabInfo", 562 | "root": { 563 | "__id__": 1 564 | }, 565 | "asset": { 566 | "__id__": 0 567 | }, 568 | "fileId": "44cb0aBDpGd4zqzzFfNDPv", 569 | "sync": false 570 | }, 571 | { 572 | "__type__": "cc.Node", 573 | "_name": "上", 574 | "_objFlags": 0, 575 | "_parent": { 576 | "__id__": 1 577 | }, 578 | "_children": [], 579 | "_tag": -1, 580 | "_active": true, 581 | "_components": [], 582 | "_prefab": { 583 | "__id__": 19 584 | }, 585 | "_id": "", 586 | "_opacity": 255, 587 | "_color": { 588 | "__type__": "cc.Color", 589 | "r": 255, 590 | "g": 255, 591 | "b": 255, 592 | "a": 255 593 | }, 594 | "_cascadeOpacityEnabled": true, 595 | "_anchorPoint": { 596 | "__type__": "cc.Vec2", 597 | "x": 0.5, 598 | "y": 0.5 599 | }, 600 | "_contentSize": { 601 | "__type__": "cc.Size", 602 | "width": 0, 603 | "height": 0 604 | }, 605 | "_rotationX": 0, 606 | "_rotationY": 0, 607 | "_scaleX": 1, 608 | "_scaleY": 1, 609 | "_position": { 610 | "__type__": "cc.Vec2", 611 | "x": 31, 612 | "y": 160 613 | }, 614 | "_skewX": 0, 615 | "_skewY": 0, 616 | "_localZOrder": 0, 617 | "_globalZOrder": 0, 618 | "_opacityModifyRGB": false, 619 | "groupIndex": 0 620 | }, 621 | { 622 | "__type__": "cc.PrefabInfo", 623 | "root": { 624 | "__id__": 1 625 | }, 626 | "asset": { 627 | "__id__": 0 628 | }, 629 | "fileId": "28ePcwQSdHRpsV1AGG/mEo", 630 | "sync": false 631 | }, 632 | { 633 | "__type__": "cc.Node", 634 | "_name": "下", 635 | "_objFlags": 0, 636 | "_parent": { 637 | "__id__": 1 638 | }, 639 | "_children": [], 640 | "_tag": -1, 641 | "_active": true, 642 | "_components": [], 643 | "_prefab": { 644 | "__id__": 21 645 | }, 646 | "_id": "", 647 | "_opacity": 255, 648 | "_color": { 649 | "__type__": "cc.Color", 650 | "r": 255, 651 | "g": 255, 652 | "b": 255, 653 | "a": 255 654 | }, 655 | "_cascadeOpacityEnabled": true, 656 | "_anchorPoint": { 657 | "__type__": "cc.Vec2", 658 | "x": 0.5, 659 | "y": 0.5 660 | }, 661 | "_contentSize": { 662 | "__type__": "cc.Size", 663 | "width": 0, 664 | "height": 0 665 | }, 666 | "_rotationX": 0, 667 | "_rotationY": 0, 668 | "_scaleX": 1, 669 | "_scaleY": 1, 670 | "_position": { 671 | "__type__": "cc.Vec2", 672 | "x": -37, 673 | "y": 120 674 | }, 675 | "_skewX": 0, 676 | "_skewY": 0, 677 | "_localZOrder": 0, 678 | "_globalZOrder": 0, 679 | "_opacityModifyRGB": false, 680 | "groupIndex": 0 681 | }, 682 | { 683 | "__type__": "cc.PrefabInfo", 684 | "root": { 685 | "__id__": 1 686 | }, 687 | "asset": { 688 | "__id__": 0 689 | }, 690 | "fileId": "60dw1a0NlDX7sAvtmwvVIn", 691 | "sync": false 692 | }, 693 | { 694 | "__type__": "cc.Node", 695 | "_name": "左", 696 | "_objFlags": 0, 697 | "_parent": { 698 | "__id__": 1 699 | }, 700 | "_children": [], 701 | "_tag": -1, 702 | "_active": true, 703 | "_components": [], 704 | "_prefab": { 705 | "__id__": 23 706 | }, 707 | "_id": "", 708 | "_opacity": 255, 709 | "_color": { 710 | "__type__": "cc.Color", 711 | "r": 255, 712 | "g": 255, 713 | "b": 255, 714 | "a": 255 715 | }, 716 | "_cascadeOpacityEnabled": true, 717 | "_anchorPoint": { 718 | "__type__": "cc.Vec2", 719 | "x": 0.5, 720 | "y": 0.5 721 | }, 722 | "_contentSize": { 723 | "__type__": "cc.Size", 724 | "width": 0, 725 | "height": 0 726 | }, 727 | "_rotationX": 0, 728 | "_rotationY": 0, 729 | "_scaleX": 1, 730 | "_scaleY": 1, 731 | "_position": { 732 | "__type__": "cc.Vec2", 733 | "x": -27, 734 | "y": 164 735 | }, 736 | "_skewX": 0, 737 | "_skewY": 0, 738 | "_localZOrder": 0, 739 | "_globalZOrder": 0, 740 | "_opacityModifyRGB": false, 741 | "groupIndex": 0 742 | }, 743 | { 744 | "__type__": "cc.PrefabInfo", 745 | "root": { 746 | "__id__": 1 747 | }, 748 | "asset": { 749 | "__id__": 0 750 | }, 751 | "fileId": "cazVhmzSdLmpTcOGwRJL2B", 752 | "sync": false 753 | }, 754 | { 755 | "__type__": "cc.Node", 756 | "_name": "右", 757 | "_objFlags": 0, 758 | "_parent": { 759 | "__id__": 1 760 | }, 761 | "_children": [], 762 | "_tag": -1, 763 | "_active": true, 764 | "_components": [], 765 | "_prefab": { 766 | "__id__": 25 767 | }, 768 | "_id": "", 769 | "_opacity": 255, 770 | "_color": { 771 | "__type__": "cc.Color", 772 | "r": 255, 773 | "g": 255, 774 | "b": 255, 775 | "a": 255 776 | }, 777 | "_cascadeOpacityEnabled": true, 778 | "_anchorPoint": { 779 | "__type__": "cc.Vec2", 780 | "x": 0.5, 781 | "y": 0.5 782 | }, 783 | "_contentSize": { 784 | "__type__": "cc.Size", 785 | "width": 0, 786 | "height": 0 787 | }, 788 | "_rotationX": 0, 789 | "_rotationY": 0, 790 | "_scaleX": 1, 791 | "_scaleY": 1, 792 | "_position": { 793 | "__type__": "cc.Vec2", 794 | "x": 35, 795 | "y": 118 796 | }, 797 | "_skewX": 0, 798 | "_skewY": 0, 799 | "_localZOrder": 0, 800 | "_globalZOrder": 0, 801 | "_opacityModifyRGB": false, 802 | "groupIndex": 0 803 | }, 804 | { 805 | "__type__": "cc.PrefabInfo", 806 | "root": { 807 | "__id__": 1 808 | }, 809 | "asset": { 810 | "__id__": 0 811 | }, 812 | "fileId": "b8a/STPKFKaL94CEDjPude", 813 | "sync": false 814 | }, 815 | { 816 | "__type__": "007507xQ0hEcbmFDxV+eRZJ", 817 | "_name": "", 818 | "_objFlags": 0, 819 | "node": { 820 | "__id__": 1 821 | }, 822 | "_enabled": true, 823 | "maxScale": 1, 824 | "minScale": 1, 825 | "minDistance": 200, 826 | "maxDistance": 400, 827 | "anchorOffset": 100, 828 | "score": 10, 829 | "rightAnchorList": [ 830 | { 831 | "__id__": 20 832 | }, 833 | { 834 | "__id__": 16 835 | }, 836 | { 837 | "__id__": 18 838 | } 839 | ], 840 | "leftAnchorList": [ 841 | { 842 | "__id__": 22 843 | }, 844 | { 845 | "__id__": 16 846 | }, 847 | { 848 | "__id__": 24 849 | } 850 | ], 851 | "centerAnchor": { 852 | "__id__": 16 853 | }, 854 | "p1": { 855 | "__id__": 12 856 | }, 857 | "p2": { 858 | "__id__": 14 859 | } 860 | }, 861 | { 862 | "__type__": "cc.Animation", 863 | "_name": "", 864 | "_objFlags": 0, 865 | "node": { 866 | "__id__": 1 867 | }, 868 | "_enabled": true, 869 | "_defaultClip": null, 870 | "_clips": [ 871 | { 872 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 873 | } 874 | ], 875 | "playOnLoad": false 876 | }, 877 | { 878 | "__type__": "cc.PrefabInfo", 879 | "root": { 880 | "__id__": 1 881 | }, 882 | "asset": { 883 | "__id__": 0 884 | }, 885 | "fileId": "e3xojqcgxAY6eblNlyjLwr", 886 | "sync": false 887 | } 888 | ] -------------------------------------------------------------------------------- /assets/res/prefabs/Block7.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "7a54c1aa-a943-4706-8ff9-78dc26c7b66c", 4 | "asyncLoadAssets": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/prefabs/Block8.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_rawFiles": null, 7 | "data": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Node", 13 | "_name": "Block8", 14 | "_objFlags": 0, 15 | "_parent": null, 16 | "_children": [ 17 | { 18 | "__id__": 2 19 | }, 20 | { 21 | "__id__": 6 22 | }, 23 | { 24 | "__id__": 12 25 | }, 26 | { 27 | "__id__": 14 28 | }, 29 | { 30 | "__id__": 16 31 | }, 32 | { 33 | "__id__": 18 34 | }, 35 | { 36 | "__id__": 20 37 | }, 38 | { 39 | "__id__": 22 40 | }, 41 | { 42 | "__id__": 24 43 | } 44 | ], 45 | "_tag": -1, 46 | "_active": true, 47 | "_components": [ 48 | { 49 | "__id__": 26 50 | }, 51 | { 52 | "__id__": 27 53 | } 54 | ], 55 | "_prefab": { 56 | "__id__": 28 57 | }, 58 | "_id": "", 59 | "_opacity": 255, 60 | "_color": { 61 | "__type__": "cc.Color", 62 | "r": 255, 63 | "g": 255, 64 | "b": 255, 65 | "a": 255 66 | }, 67 | "_cascadeOpacityEnabled": true, 68 | "_anchorPoint": { 69 | "__type__": "cc.Vec2", 70 | "x": 0.5, 71 | "y": 0.5 72 | }, 73 | "_contentSize": { 74 | "__type__": "cc.Size", 75 | "width": 0, 76 | "height": 0 77 | }, 78 | "_rotationX": 0, 79 | "_rotationY": 0, 80 | "_scaleX": 1, 81 | "_scaleY": 1, 82 | "_position": { 83 | "__type__": "cc.Vec2", 84 | "x": -428, 85 | "y": -78 86 | }, 87 | "_skewX": 0, 88 | "_skewY": 0, 89 | "_localZOrder": 0, 90 | "_globalZOrder": 0, 91 | "_opacityModifyRGB": false, 92 | "groupIndex": 0 93 | }, 94 | { 95 | "__type__": "cc.Node", 96 | "_name": "score", 97 | "_objFlags": 0, 98 | "_parent": { 99 | "__id__": 1 100 | }, 101 | "_children": [], 102 | "_tag": -1, 103 | "_active": true, 104 | "_components": [ 105 | { 106 | "__id__": 3 107 | }, 108 | { 109 | "__id__": 4 110 | } 111 | ], 112 | "_prefab": { 113 | "__id__": 5 114 | }, 115 | "_id": "", 116 | "_opacity": 255, 117 | "_color": { 118 | "__type__": "cc.Color", 119 | "r": 0, 120 | "g": 0, 121 | "b": 0, 122 | "a": 255 123 | }, 124 | "_cascadeOpacityEnabled": true, 125 | "_anchorPoint": { 126 | "__type__": "cc.Vec2", 127 | "x": 0.5, 128 | "y": 0.5 129 | }, 130 | "_contentSize": { 131 | "__type__": "cc.Size", 132 | "width": 97.87, 133 | "height": 40 134 | }, 135 | "_rotationX": 0, 136 | "_rotationY": 0, 137 | "_scaleX": 1, 138 | "_scaleY": 1, 139 | "_position": { 140 | "__type__": "cc.Vec2", 141 | "x": 0, 142 | "y": 185 143 | }, 144 | "_skewX": 0, 145 | "_skewY": 0, 146 | "_localZOrder": 0, 147 | "_globalZOrder": 0, 148 | "_opacityModifyRGB": false, 149 | "groupIndex": 0 150 | }, 151 | { 152 | "__type__": "cc.Label", 153 | "_name": "", 154 | "_objFlags": 0, 155 | "node": { 156 | "__id__": 2 157 | }, 158 | "_enabled": true, 159 | "_useOriginalSize": false, 160 | "_actualFontSize": 40, 161 | "_fontSize": 40, 162 | "_lineHeight": 40, 163 | "_enableWrapText": true, 164 | "_N$file": null, 165 | "_isSystemFontUsed": true, 166 | "_spacingX": 0, 167 | "_N$string": "Label", 168 | "_N$horizontalAlign": 1, 169 | "_N$verticalAlign": 1, 170 | "_N$fontFamily": "Arial", 171 | "_N$overflow": 0 172 | }, 173 | { 174 | "__type__": "cc.Animation", 175 | "_name": "", 176 | "_objFlags": 0, 177 | "node": { 178 | "__id__": 2 179 | }, 180 | "_enabled": true, 181 | "_defaultClip": { 182 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 183 | }, 184 | "_clips": [ 185 | { 186 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 187 | } 188 | ], 189 | "playOnLoad": false 190 | }, 191 | { 192 | "__type__": "cc.PrefabInfo", 193 | "root": { 194 | "__id__": 1 195 | }, 196 | "asset": { 197 | "__id__": 0 198 | }, 199 | "fileId": "4cISkUNIVMXoLqf4kXD14d", 200 | "sync": false 201 | }, 202 | { 203 | "__type__": "cc.Node", 204 | "_name": "sprite", 205 | "_objFlags": 0, 206 | "_parent": { 207 | "__id__": 1 208 | }, 209 | "_children": [ 210 | { 211 | "__id__": 7 212 | } 213 | ], 214 | "_tag": -1, 215 | "_active": true, 216 | "_components": [ 217 | { 218 | "__id__": 10 219 | } 220 | ], 221 | "_prefab": { 222 | "__id__": 11 223 | }, 224 | "_id": "", 225 | "_opacity": 255, 226 | "_color": { 227 | "__type__": "cc.Color", 228 | "r": 255, 229 | "g": 255, 230 | "b": 255, 231 | "a": 255 232 | }, 233 | "_cascadeOpacityEnabled": true, 234 | "_anchorPoint": { 235 | "__type__": "cc.Vec2", 236 | "x": 0.5, 237 | "y": 0.5 238 | }, 239 | "_contentSize": { 240 | "__type__": "cc.Size", 241 | "width": 358, 242 | "height": 240 243 | }, 244 | "_rotationX": 0, 245 | "_rotationY": 0, 246 | "_scaleX": 1, 247 | "_scaleY": 1, 248 | "_position": { 249 | "__type__": "cc.Vec2", 250 | "x": -43.4, 251 | "y": 119 252 | }, 253 | "_skewX": 0, 254 | "_skewY": 0, 255 | "_localZOrder": 0, 256 | "_globalZOrder": 0, 257 | "_opacityModifyRGB": false, 258 | "groupIndex": 0 259 | }, 260 | { 261 | "__type__": "cc.Node", 262 | "_name": "zhe", 263 | "_objFlags": 0, 264 | "_parent": { 265 | "__id__": 6 266 | }, 267 | "_children": [], 268 | "_tag": -1, 269 | "_active": true, 270 | "_components": [ 271 | { 272 | "__id__": 8 273 | } 274 | ], 275 | "_prefab": { 276 | "__id__": 9 277 | }, 278 | "_id": "", 279 | "_opacity": 255, 280 | "_color": { 281 | "__type__": "cc.Color", 282 | "r": 255, 283 | "g": 255, 284 | "b": 255, 285 | "a": 255 286 | }, 287 | "_cascadeOpacityEnabled": true, 288 | "_anchorPoint": { 289 | "__type__": "cc.Vec2", 290 | "x": 0.5, 291 | "y": 0.5 292 | }, 293 | "_contentSize": { 294 | "__type__": "cc.Size", 295 | "width": 45, 296 | "height": 45 297 | }, 298 | "_rotationX": 0, 299 | "_rotationY": 0, 300 | "_scaleX": 1, 301 | "_scaleY": 1, 302 | "_position": { 303 | "__type__": "cc.Vec2", 304 | "x": 42.4, 305 | "y": 43 306 | }, 307 | "_skewX": 60, 308 | "_skewY": -30, 309 | "_localZOrder": 0, 310 | "_globalZOrder": 0, 311 | "_opacityModifyRGB": false, 312 | "groupIndex": 0 313 | }, 314 | { 315 | "__type__": "cc.Sprite", 316 | "_name": "", 317 | "_objFlags": 0, 318 | "node": { 319 | "__id__": 7 320 | }, 321 | "_enabled": true, 322 | "_spriteFrame": { 323 | "__uuid__": "50564a87-7355-4279-bd34-8c4e68948a30" 324 | }, 325 | "_type": 0, 326 | "_sizeMode": 1, 327 | "_fillType": 0, 328 | "_fillCenter": { 329 | "__type__": "cc.Vec2", 330 | "x": 0, 331 | "y": 0 332 | }, 333 | "_fillStart": 0, 334 | "_fillRange": 0, 335 | "_isTrimmedMode": true, 336 | "_srcBlendFactor": 770, 337 | "_dstBlendFactor": 771, 338 | "_atlas": null 339 | }, 340 | { 341 | "__type__": "cc.PrefabInfo", 342 | "root": { 343 | "__id__": 1 344 | }, 345 | "asset": { 346 | "__id__": 0 347 | }, 348 | "fileId": "26o2JFYbNNYICgEhZwu0Pp", 349 | "sync": false 350 | }, 351 | { 352 | "__type__": "cc.Sprite", 353 | "_name": "", 354 | "_objFlags": 0, 355 | "node": { 356 | "__id__": 6 357 | }, 358 | "_enabled": true, 359 | "_spriteFrame": { 360 | "__uuid__": "bb68c246-792b-4ad8-b40d-5bd3e14c2ad7" 361 | }, 362 | "_type": 0, 363 | "_sizeMode": 1, 364 | "_fillType": 0, 365 | "_fillCenter": { 366 | "__type__": "cc.Vec2", 367 | "x": 0, 368 | "y": 0 369 | }, 370 | "_fillStart": 0, 371 | "_fillRange": 0, 372 | "_isTrimmedMode": true, 373 | "_srcBlendFactor": 770, 374 | "_dstBlendFactor": 771, 375 | "_atlas": null 376 | }, 377 | { 378 | "__type__": "cc.PrefabInfo", 379 | "root": { 380 | "__id__": 1 381 | }, 382 | "asset": { 383 | "__id__": 0 384 | }, 385 | "fileId": "f6YiP5d5lA36tZVOlSrldm", 386 | "sync": false 387 | }, 388 | { 389 | "__type__": "cc.Node", 390 | "_name": "p1", 391 | "_objFlags": 0, 392 | "_parent": { 393 | "__id__": 1 394 | }, 395 | "_children": [], 396 | "_tag": -1, 397 | "_active": true, 398 | "_components": [], 399 | "_prefab": { 400 | "__id__": 13 401 | }, 402 | "_id": "", 403 | "_opacity": 255, 404 | "_color": { 405 | "__type__": "cc.Color", 406 | "r": 255, 407 | "g": 255, 408 | "b": 255, 409 | "a": 255 410 | }, 411 | "_cascadeOpacityEnabled": true, 412 | "_anchorPoint": { 413 | "__type__": "cc.Vec2", 414 | "x": 0.5, 415 | "y": 0.5 416 | }, 417 | "_contentSize": { 418 | "__type__": "cc.Size", 419 | "width": 0, 420 | "height": 0 421 | }, 422 | "_rotationX": 0, 423 | "_rotationY": 0, 424 | "_scaleX": 1, 425 | "_scaleY": 1, 426 | "_position": { 427 | "__type__": "cc.Vec2", 428 | "x": -133.2, 429 | "y": 74.2 430 | }, 431 | "_skewX": 0, 432 | "_skewY": 0, 433 | "_localZOrder": 0, 434 | "_globalZOrder": 0, 435 | "_opacityModifyRGB": false, 436 | "groupIndex": 0 437 | }, 438 | { 439 | "__type__": "cc.PrefabInfo", 440 | "root": { 441 | "__id__": 1 442 | }, 443 | "asset": { 444 | "__id__": 0 445 | }, 446 | "fileId": "09V1DPm31KzaKwJHD+lUUy", 447 | "sync": false 448 | }, 449 | { 450 | "__type__": "cc.Node", 451 | "_name": "p2", 452 | "_objFlags": 0, 453 | "_parent": { 454 | "__id__": 1 455 | }, 456 | "_children": [], 457 | "_tag": -1, 458 | "_active": true, 459 | "_components": [], 460 | "_prefab": { 461 | "__id__": 15 462 | }, 463 | "_id": "", 464 | "_opacity": 255, 465 | "_color": { 466 | "__type__": "cc.Color", 467 | "r": 255, 468 | "g": 255, 469 | "b": 255, 470 | "a": 255 471 | }, 472 | "_cascadeOpacityEnabled": true, 473 | "_anchorPoint": { 474 | "__type__": "cc.Vec2", 475 | "x": 0.5, 476 | "y": 0.5 477 | }, 478 | "_contentSize": { 479 | "__type__": "cc.Size", 480 | "width": 0, 481 | "height": 0 482 | }, 483 | "_rotationX": 0, 484 | "_rotationY": 0, 485 | "_scaleX": 1, 486 | "_scaleY": 1, 487 | "_position": { 488 | "__type__": "cc.Vec2", 489 | "x": 135.6, 490 | "y": 75.4 491 | }, 492 | "_skewX": 0, 493 | "_skewY": 0, 494 | "_localZOrder": 0, 495 | "_globalZOrder": 0, 496 | "_opacityModifyRGB": false, 497 | "groupIndex": 0 498 | }, 499 | { 500 | "__type__": "cc.PrefabInfo", 501 | "root": { 502 | "__id__": 1 503 | }, 504 | "asset": { 505 | "__id__": 0 506 | }, 507 | "fileId": "8f2Tsf+hVL0qkXyrD6AncW", 508 | "sync": false 509 | }, 510 | { 511 | "__type__": "cc.Node", 512 | "_name": "中", 513 | "_objFlags": 0, 514 | "_parent": { 515 | "__id__": 1 516 | }, 517 | "_children": [], 518 | "_tag": -1, 519 | "_active": true, 520 | "_components": [], 521 | "_prefab": { 522 | "__id__": 17 523 | }, 524 | "_id": "", 525 | "_opacity": 255, 526 | "_color": { 527 | "__type__": "cc.Color", 528 | "r": 255, 529 | "g": 255, 530 | "b": 255, 531 | "a": 255 532 | }, 533 | "_cascadeOpacityEnabled": true, 534 | "_anchorPoint": { 535 | "__type__": "cc.Vec2", 536 | "x": 0.5, 537 | "y": 0.5 538 | }, 539 | "_contentSize": { 540 | "__type__": "cc.Size", 541 | "width": 0, 542 | "height": 0 543 | }, 544 | "_rotationX": 0, 545 | "_rotationY": 0, 546 | "_scaleX": 1, 547 | "_scaleY": 1, 548 | "_position": { 549 | "__type__": "cc.Vec2", 550 | "x": 0, 551 | "y": 144 552 | }, 553 | "_skewX": 0, 554 | "_skewY": 0, 555 | "_localZOrder": 0, 556 | "_globalZOrder": 0, 557 | "_opacityModifyRGB": false, 558 | "groupIndex": 0 559 | }, 560 | { 561 | "__type__": "cc.PrefabInfo", 562 | "root": { 563 | "__id__": 1 564 | }, 565 | "asset": { 566 | "__id__": 0 567 | }, 568 | "fileId": "ceNOMVPutLVYx4mkdNI95r", 569 | "sync": false 570 | }, 571 | { 572 | "__type__": "cc.Node", 573 | "_name": "上", 574 | "_objFlags": 0, 575 | "_parent": { 576 | "__id__": 1 577 | }, 578 | "_children": [], 579 | "_tag": -1, 580 | "_active": true, 581 | "_components": [], 582 | "_prefab": { 583 | "__id__": 19 584 | }, 585 | "_id": "", 586 | "_opacity": 255, 587 | "_color": { 588 | "__type__": "cc.Color", 589 | "r": 255, 590 | "g": 255, 591 | "b": 255, 592 | "a": 255 593 | }, 594 | "_cascadeOpacityEnabled": true, 595 | "_anchorPoint": { 596 | "__type__": "cc.Vec2", 597 | "x": 0.5, 598 | "y": 0.5 599 | }, 600 | "_contentSize": { 601 | "__type__": "cc.Size", 602 | "width": 0, 603 | "height": 0 604 | }, 605 | "_rotationX": 0, 606 | "_rotationY": 0, 607 | "_scaleX": 1, 608 | "_scaleY": 1, 609 | "_position": { 610 | "__type__": "cc.Vec2", 611 | "x": 31, 612 | "y": 160 613 | }, 614 | "_skewX": 0, 615 | "_skewY": 0, 616 | "_localZOrder": 0, 617 | "_globalZOrder": 0, 618 | "_opacityModifyRGB": false, 619 | "groupIndex": 0 620 | }, 621 | { 622 | "__type__": "cc.PrefabInfo", 623 | "root": { 624 | "__id__": 1 625 | }, 626 | "asset": { 627 | "__id__": 0 628 | }, 629 | "fileId": "b0qJtIby9CAYgCPdUjdSIO", 630 | "sync": false 631 | }, 632 | { 633 | "__type__": "cc.Node", 634 | "_name": "下", 635 | "_objFlags": 0, 636 | "_parent": { 637 | "__id__": 1 638 | }, 639 | "_children": [], 640 | "_tag": -1, 641 | "_active": true, 642 | "_components": [], 643 | "_prefab": { 644 | "__id__": 21 645 | }, 646 | "_id": "", 647 | "_opacity": 255, 648 | "_color": { 649 | "__type__": "cc.Color", 650 | "r": 255, 651 | "g": 255, 652 | "b": 255, 653 | "a": 255 654 | }, 655 | "_cascadeOpacityEnabled": true, 656 | "_anchorPoint": { 657 | "__type__": "cc.Vec2", 658 | "x": 0.5, 659 | "y": 0.5 660 | }, 661 | "_contentSize": { 662 | "__type__": "cc.Size", 663 | "width": 0, 664 | "height": 0 665 | }, 666 | "_rotationX": 0, 667 | "_rotationY": 0, 668 | "_scaleX": 1, 669 | "_scaleY": 1, 670 | "_position": { 671 | "__type__": "cc.Vec2", 672 | "x": -37, 673 | "y": 120 674 | }, 675 | "_skewX": 0, 676 | "_skewY": 0, 677 | "_localZOrder": 0, 678 | "_globalZOrder": 0, 679 | "_opacityModifyRGB": false, 680 | "groupIndex": 0 681 | }, 682 | { 683 | "__type__": "cc.PrefabInfo", 684 | "root": { 685 | "__id__": 1 686 | }, 687 | "asset": { 688 | "__id__": 0 689 | }, 690 | "fileId": "89d+Rqx7pOcKDhoyz9CF+Y", 691 | "sync": false 692 | }, 693 | { 694 | "__type__": "cc.Node", 695 | "_name": "左", 696 | "_objFlags": 0, 697 | "_parent": { 698 | "__id__": 1 699 | }, 700 | "_children": [], 701 | "_tag": -1, 702 | "_active": true, 703 | "_components": [], 704 | "_prefab": { 705 | "__id__": 23 706 | }, 707 | "_id": "", 708 | "_opacity": 255, 709 | "_color": { 710 | "__type__": "cc.Color", 711 | "r": 255, 712 | "g": 255, 713 | "b": 255, 714 | "a": 255 715 | }, 716 | "_cascadeOpacityEnabled": true, 717 | "_anchorPoint": { 718 | "__type__": "cc.Vec2", 719 | "x": 0.5, 720 | "y": 0.5 721 | }, 722 | "_contentSize": { 723 | "__type__": "cc.Size", 724 | "width": 0, 725 | "height": 0 726 | }, 727 | "_rotationX": 0, 728 | "_rotationY": 0, 729 | "_scaleX": 1, 730 | "_scaleY": 1, 731 | "_position": { 732 | "__type__": "cc.Vec2", 733 | "x": -27, 734 | "y": 164 735 | }, 736 | "_skewX": 0, 737 | "_skewY": 0, 738 | "_localZOrder": 0, 739 | "_globalZOrder": 0, 740 | "_opacityModifyRGB": false, 741 | "groupIndex": 0 742 | }, 743 | { 744 | "__type__": "cc.PrefabInfo", 745 | "root": { 746 | "__id__": 1 747 | }, 748 | "asset": { 749 | "__id__": 0 750 | }, 751 | "fileId": "c4K2CNhu1IV5CJUGCRTs+m", 752 | "sync": false 753 | }, 754 | { 755 | "__type__": "cc.Node", 756 | "_name": "右", 757 | "_objFlags": 0, 758 | "_parent": { 759 | "__id__": 1 760 | }, 761 | "_children": [], 762 | "_tag": -1, 763 | "_active": true, 764 | "_components": [], 765 | "_prefab": { 766 | "__id__": 25 767 | }, 768 | "_id": "", 769 | "_opacity": 255, 770 | "_color": { 771 | "__type__": "cc.Color", 772 | "r": 255, 773 | "g": 255, 774 | "b": 255, 775 | "a": 255 776 | }, 777 | "_cascadeOpacityEnabled": true, 778 | "_anchorPoint": { 779 | "__type__": "cc.Vec2", 780 | "x": 0.5, 781 | "y": 0.5 782 | }, 783 | "_contentSize": { 784 | "__type__": "cc.Size", 785 | "width": 0, 786 | "height": 0 787 | }, 788 | "_rotationX": 0, 789 | "_rotationY": 0, 790 | "_scaleX": 1, 791 | "_scaleY": 1, 792 | "_position": { 793 | "__type__": "cc.Vec2", 794 | "x": 35, 795 | "y": 118 796 | }, 797 | "_skewX": 0, 798 | "_skewY": 0, 799 | "_localZOrder": 0, 800 | "_globalZOrder": 0, 801 | "_opacityModifyRGB": false, 802 | "groupIndex": 0 803 | }, 804 | { 805 | "__type__": "cc.PrefabInfo", 806 | "root": { 807 | "__id__": 1 808 | }, 809 | "asset": { 810 | "__id__": 0 811 | }, 812 | "fileId": "82IOxfxdVD/7kc4yQB4bmS", 813 | "sync": false 814 | }, 815 | { 816 | "__type__": "007507xQ0hEcbmFDxV+eRZJ", 817 | "_name": "", 818 | "_objFlags": 0, 819 | "node": { 820 | "__id__": 1 821 | }, 822 | "_enabled": true, 823 | "maxScale": 1, 824 | "minScale": 1, 825 | "minDistance": 200, 826 | "maxDistance": 400, 827 | "anchorOffset": 100, 828 | "score": 10, 829 | "rightAnchorList": [ 830 | { 831 | "__id__": 20 832 | }, 833 | { 834 | "__id__": 16 835 | }, 836 | { 837 | "__id__": 18 838 | } 839 | ], 840 | "leftAnchorList": [ 841 | { 842 | "__id__": 22 843 | }, 844 | { 845 | "__id__": 16 846 | }, 847 | { 848 | "__id__": 24 849 | } 850 | ], 851 | "centerAnchor": { 852 | "__id__": 16 853 | }, 854 | "p1": { 855 | "__id__": 12 856 | }, 857 | "p2": { 858 | "__id__": 14 859 | } 860 | }, 861 | { 862 | "__type__": "cc.Animation", 863 | "_name": "", 864 | "_objFlags": 0, 865 | "node": { 866 | "__id__": 1 867 | }, 868 | "_enabled": true, 869 | "_defaultClip": null, 870 | "_clips": [ 871 | { 872 | "__uuid__": "d5e3f7c8-386a-4709-886c-36672838cc0f" 873 | } 874 | ], 875 | "playOnLoad": false 876 | }, 877 | { 878 | "__type__": "cc.PrefabInfo", 879 | "root": { 880 | "__id__": 1 881 | }, 882 | "asset": { 883 | "__id__": 0 884 | }, 885 | "fileId": "79ila9AJhNZIZuZVaJRZe1", 886 | "sync": false 887 | } 888 | ] -------------------------------------------------------------------------------- /assets/res/prefabs/Block8.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "1010cb9e-b4fb-4a41-85e2-e8b8ca90b4b1", 4 | "asyncLoadAssets": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/res/rextures.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "31c54206-c375-4593-b73b-44ef2393d927", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/res/rextures/back_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/back_btn.png -------------------------------------------------------------------------------- /assets/res/rextures/back_btn.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "a2ec8dc6-6ba9-4be0-84c7-d958cc41ae84", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "back_btn": { 9 | "ver": "1.0.3", 10 | "uuid": "8328757c-07fb-43e9-b24e-19ab0ad0979d", 11 | "rawTextureUuid": "a2ec8dc6-6ba9-4be0-84c7-d958cc41ae84", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 57, 20 | "height": 57, 21 | "rawWidth": 57, 22 | "rawHeight": 57, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/bg.jpg -------------------------------------------------------------------------------- /assets/res/rextures/bg.jpg.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "4bd9a1e0-0699-404e-8146-d48146a3cded", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "bg": { 9 | "ver": "1.0.3", 10 | "uuid": "7b585413-797e-4f4e-a456-cb88eb4d1f85", 11 | "rawTextureUuid": "4bd9a1e0-0699-404e-8146-d48146a3cded", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 640, 20 | "height": 1136, 21 | "rawWidth": 640, 22 | "rawHeight": 1136, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/block1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/block1.png -------------------------------------------------------------------------------- /assets/res/rextures/block1.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "45f6ccea-9b52-49ba-b695-ca1bd617c92f", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "block1": { 9 | "ver": "1.0.3", 10 | "uuid": "a925a0fc-db81-4e07-b4f7-e36f1f4c9a65", 11 | "rawTextureUuid": "45f6ccea-9b52-49ba-b695-ca1bd617c92f", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 358, 20 | "height": 240, 21 | "rawWidth": 358, 22 | "rawHeight": 240, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/block2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/block2.png -------------------------------------------------------------------------------- /assets/res/rextures/block2.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "c742cf68-432e-437f-b45e-4c4c3a421972", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "block2": { 9 | "ver": "1.0.3", 10 | "uuid": "01a8e5d8-ff3d-485f-9690-4b1fe7a3893d", 11 | "rawTextureUuid": "c742cf68-432e-437f-b45e-4c4c3a421972", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 358, 20 | "height": 240, 21 | "rawWidth": 358, 22 | "rawHeight": 240, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/block3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/block3.png -------------------------------------------------------------------------------- /assets/res/rextures/block3.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "73b096c4-aedd-4be3-b3ab-a4be99b771a8", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "block3": { 9 | "ver": "1.0.3", 10 | "uuid": "bb68c246-792b-4ad8-b40d-5bd3e14c2ad7", 11 | "rawTextureUuid": "73b096c4-aedd-4be3-b3ab-a4be99b771a8", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 358, 20 | "height": 240, 21 | "rawWidth": 358, 22 | "rawHeight": 240, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/cwt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/cwt.jpg -------------------------------------------------------------------------------- /assets/res/rextures/cwt.jpg.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "3c31d4e5-e29c-411c-8ff4-b3bfa9322cff", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "cwt": { 9 | "ver": "1.0.3", 10 | "uuid": "ed3f08f4-36ae-4552-bc17-dae9ea0ad331", 11 | "rawTextureUuid": "3c31d4e5-e29c-411c-8ff4-b3bfa9322cff", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 167, 20 | "height": 276, 21 | "rawWidth": 167, 22 | "rawHeight": 276, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/dumganhar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/dumganhar.png -------------------------------------------------------------------------------- /assets/res/rextures/dumganhar.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "b85c4386-81cc-4691-9621-5062d1fb88fe", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "dumganhar": { 9 | "ver": "1.0.3", 10 | "uuid": "2ca99182-c0c3-442f-8662-45b254a0ae8a", 11 | "rawTextureUuid": "b85c4386-81cc-4691-9621-5062d1fb88fe", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 45, 20 | "height": 45, 21 | "rawWidth": 45, 22 | "rawHeight": 45, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/finger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/finger.png -------------------------------------------------------------------------------- /assets/res/rextures/finger.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "b8ff4c6e-3112-4a17-90e2-adaba4a5abac", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "finger": { 9 | "ver": "1.0.3", 10 | "uuid": "1c4d52ef-3102-45fb-b5e2-bf2ce55843b6", 11 | "rawTextureUuid": "b8ff4c6e-3112-4a17-90e2-adaba4a5abac", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 18, 18 | "trimY": 3, 19 | "width": 84, 20 | "height": 114, 21 | "rawWidth": 120, 22 | "rawHeight": 120, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/jare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/jare.png -------------------------------------------------------------------------------- /assets/res/rextures/jare.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "cc4a9272-aeab-4a51-886f-d79f25fc2371", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "jare": { 9 | "ver": "1.0.3", 10 | "uuid": "02273a93-d8d0-4419-b013-23b902d372aa", 11 | "rawTextureUuid": "cc4a9272-aeab-4a51-886f-d79f25fc2371", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 45, 20 | "height": 45, 21 | "rawWidth": 45, 22 | "rawHeight": 45, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/knox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/knox.png -------------------------------------------------------------------------------- /assets/res/rextures/knox.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "381766da-a2fe-4d89-9c7c-ab0af4360152", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "knox": { 9 | "ver": "1.0.3", 10 | "uuid": "50564a87-7355-4279-bd34-8c4e68948a30", 11 | "rawTextureUuid": "381766da-a2fe-4d89-9c7c-ab0af4360152", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 45, 20 | "height": 45, 21 | "rawWidth": 45, 22 | "rawHeight": 45, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/panda.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/panda.png -------------------------------------------------------------------------------- /assets/res/rextures/panda.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "1b3c5ae1-3817-4b03-8f06-980c586a4336", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "panda": { 9 | "ver": "1.0.3", 10 | "uuid": "513f9af9-1e8e-4fe9-a32c-9998376f4f10", 11 | "rawTextureUuid": "1b3c5ae1-3817-4b03-8f06-980c586a4336", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 45, 20 | "height": 45, 21 | "rawWidth": 45, 22 | "rawHeight": 45, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/piece.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/piece.png -------------------------------------------------------------------------------- /assets/res/rextures/piece.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "96928ccd-cb8e-4663-b3c5-36acdfe9f036", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "piece": { 9 | "ver": "1.0.3", 10 | "uuid": "8596a7f3-e485-41ba-840f-9fe1bcf8b95e", 11 | "rawTextureUuid": "96928ccd-cb8e-4663-b3c5-36acdfe9f036", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": -1.5, 16 | "offsetY": 0, 17 | "trimX": 2, 18 | "trimY": 0, 19 | "width": 73, 20 | "height": 130, 21 | "rawWidth": 80, 22 | "rawHeight": 130, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/relive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/relive.png -------------------------------------------------------------------------------- /assets/res/rextures/relive.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "5df9b058-fda1-4c7c-b843-112f5fc2408f", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "relive": { 9 | "ver": "1.0.3", 10 | "uuid": "96a3644b-1d12-4b30-b913-bb742cf34c32", 11 | "rawTextureUuid": "5df9b058-fda1-4c7c-b843-112f5fc2408f", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": -0.5, 16 | "offsetY": 0.5, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 306, 20 | "height": 104, 21 | "rawWidth": 307, 22 | "rawHeight": 105, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/restart_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/restart_btn.png -------------------------------------------------------------------------------- /assets/res/rextures/restart_btn.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "42cf9aca-b6f8-43c8-b794-94bc02d84a2f", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "restart_btn": { 9 | "ver": "1.0.3", 10 | "uuid": "0546cfad-4853-4f72-b47b-f3632b47ff1c", 11 | "rawTextureUuid": "42cf9aca-b6f8-43c8-b794-94bc02d84a2f", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": -0.5, 16 | "offsetY": 0.5, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 306, 20 | "height": 104, 21 | "rawWidth": 307, 22 | "rawHeight": 105, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/setting_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/setting_bg.jpg -------------------------------------------------------------------------------- /assets/res/rextures/setting_bg.jpg.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "41edea28-99a1-43e9-b20f-3da9b6f5c7cd", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "setting_bg": { 9 | "ver": "1.0.3", 10 | "uuid": "e97abf22-0daa-4deb-b08a-c0c1baba5e41", 11 | "rawTextureUuid": "41edea28-99a1-43e9-b20f-3da9b6f5c7cd", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 640, 20 | "height": 1136, 21 | "rawWidth": 640, 22 | "rawHeight": 1136, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/setting_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/setting_btn.png -------------------------------------------------------------------------------- /assets/res/rextures/setting_btn.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "28d85f52-fffe-456e-94be-110b39a95907", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "setting_btn": { 9 | "ver": "1.0.3", 10 | "uuid": "891d225e-563d-45a6-90cd-3a9973415497", 11 | "rawTextureUuid": "28d85f52-fffe-456e-94be-110b39a95907", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 52, 20 | "height": 52, 21 | "rawWidth": 52, 22 | "rawHeight": 52, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/setting_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/setting_off.png -------------------------------------------------------------------------------- /assets/res/rextures/setting_off.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "a2c0f1fe-8582-4143-a12f-6eecb5f744ef", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "setting_off": { 9 | "ver": "1.0.3", 10 | "uuid": "a1315ae8-561c-4262-90f2-d700e83d7dd2", 11 | "rawTextureUuid": "a2c0f1fe-8582-4143-a12f-6eecb5f744ef", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": -4.5, 16 | "offsetY": -2, 17 | "trimX": 24, 18 | "trimY": 24, 19 | "width": 55, 20 | "height": 57, 21 | "rawWidth": 112, 22 | "rawHeight": 101, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/setting_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/setting_on.png -------------------------------------------------------------------------------- /assets/res/rextures/setting_on.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "c8971f9e-a78f-49fa-9703-f05f69e46f78", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "setting_on": { 9 | "ver": "1.0.3", 10 | "uuid": "ca73188d-c522-4867-b792-0bc1d0f0bf7d", 11 | "rawTextureUuid": "c8971f9e-a78f-49fa-9703-f05f69e46f78", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": -6.5, 16 | "offsetY": -2, 17 | "trimX": 19, 18 | "trimY": 24, 19 | "width": 61, 20 | "height": 57, 21 | "rawWidth": 112, 22 | "rawHeight": 101, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/start_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/start_btn.png -------------------------------------------------------------------------------- /assets/res/rextures/start_btn.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "7f0cedce-f04d-4f09-a69b-ea5608d29e0f", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "start_btn": { 9 | "ver": "1.0.3", 10 | "uuid": "7c885541-537e-4ad8-ab8f-ae0c125904fa", 11 | "rawTextureUuid": "7f0cedce-f04d-4f09-a69b-ea5608d29e0f", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": -0.5, 16 | "offsetY": 0.5, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 306, 20 | "height": 104, 21 | "rawWidth": 307, 22 | "rawHeight": 105, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/streak.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/streak.png -------------------------------------------------------------------------------- /assets/res/rextures/streak.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "3614b080-9fc1-44da-a28a-0a6099f5e02d", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "streak": { 9 | "ver": "1.0.3", 10 | "uuid": "5298f1c5-3cc9-465b-95c1-38a902ecfdac", 11 | "rawTextureUuid": "3614b080-9fc1-44da-a28a-0a6099f5e02d", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 64, 20 | "height": 64, 21 | "rawWidth": 64, 22 | "rawHeight": 64, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/wx.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/wx.jpg -------------------------------------------------------------------------------- /assets/res/rextures/wx.jpg.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "2721d5f4-6784-442f-b685-305d66a0aa17", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "wx": { 9 | "ver": "1.0.3", 10 | "uuid": "4c5c3455-8173-4222-961b-1a75a8454cfa", 11 | "rawTextureUuid": "2721d5f4-6784-442f-b685-305d66a0aa17", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 258, 20 | "height": 258, 21 | "rawWidth": 258, 22 | "rawHeight": 258, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/rextures/zhe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/potato47/jump/68197decf0d22daa807cc5dc91a49646f7d7356b/assets/res/rextures/zhe.png -------------------------------------------------------------------------------- /assets/res/rextures/zhe.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "480c5ae7-e707-48cf-a7d5-03efffc03043", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "zhe": { 9 | "ver": "1.0.3", 10 | "uuid": "94c697e8-041d-457c-8892-90ddabf6975f", 11 | "rawTextureUuid": "480c5ae7-e707-48cf-a7d5-03efffc03043", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 45, 20 | "height": 45, 21 | "rawWidth": 45, 22 | "rawHeight": 45, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/res/scenes.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "2102ec38-fb31-4613-89e3-afcebb77c212", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/res/scenes/game.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "33568997-ff9c-4e18-b7a6-2c45e8b2c28c", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/res/scenes/menu.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "f052c3be-22fe-4d57-9740-cb9e391d9eae", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/src.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "3eb969f2-b6f6-4bbe-a212-d8720148204a", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/src/G.ts: -------------------------------------------------------------------------------- 1 | import { GameScene } from "./components/game/GameScene"; 2 | 3 | export class Global extends cc.EventTarget { 4 | public static readonly Instance:Global = new Global(); 5 | 6 | private constructor() { 7 | super(); 8 | } 9 | 10 | public startGame(selectedPlayer:number) { 11 | cc.director.loadScene("game",(err,scene)=>{ 12 | if(!err) { 13 | let gameScene:GameScene = scene.getChildByName("Canvas").getComponent(GameScene); 14 | cc.audioEngine.play(gameScene.bgm,true,1); 15 | } 16 | }); 17 | } 18 | 19 | } 20 | 21 | export const G = Global.Instance; -------------------------------------------------------------------------------- /assets/src/G.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "4eb76df8-ecf2-41c1-9287-feb7715398ff", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/src/components.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "ae3d6679-e700-44c4-8ee5-754cecaffcab", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/src/components/game.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "b07f733e-9808-45df-9551-45b2ecb9dcdb", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/src/components/game/GameScene.ts: -------------------------------------------------------------------------------- 1 | import { OverPanel } from "./OverPanel"; 2 | import { G } from "../../G"; 3 | import { Stage } from "./stage/Stage"; 4 | import { PlayerDieEvent } from "../../events/PlayerDieEvent"; 5 | import { PlayerJumpSuccessEvent } from "../../events/PlayerJumpSuccessEvent"; 6 | import { Player } from "./stage/Player"; 7 | 8 | const {ccclass, property} = cc._decorator; 9 | 10 | @ccclass 11 | export class GameScene extends cc.Component { 12 | 13 | @property(Stage) 14 | private stage:Stage = null; 15 | @property(cc.Label) 16 | private scoreLabel = null; 17 | private score = 0; 18 | @property(OverPanel) 19 | private overPanel:OverPanel = null; 20 | @property(cc.AudioClip) 21 | public bgm = null; 22 | 23 | onLoad(){ 24 | if(cc.sys.isMobile) { 25 | cc.find("Canvas").getComponent(cc.Canvas).fitHeight = false; 26 | cc.find("Canvas").getComponent(cc.Canvas).fitWidth = true; 27 | } 28 | } 29 | 30 | start () { 31 | this.addListeners(); 32 | this.startGame(); 33 | } 34 | 35 | startGame() { 36 | this.stage.reset(); 37 | this.stage.enableTouch(); 38 | } 39 | 40 | onPlayerJumpSuccess(event:PlayerJumpSuccessEvent) { 41 | let score = event.score; 42 | this.addSocre(score); 43 | this.stage.updateStage(()=>{ 44 | this.stage.addBlock(); 45 | }); 46 | } 47 | 48 | addSocre(s) { 49 | this.score+=s; 50 | this.scoreLabel.string = this.score; 51 | } 52 | 53 | onOver() { 54 | this.stage.disableTouch(); 55 | setTimeout(()=> { 56 | this.overPanel.show(this.score,this.onRestart,this); 57 | },500); 58 | cc.log("游戏结束") 59 | } 60 | 61 | onRestart() { 62 | this.overPanel.hide(); 63 | cc.director.loadScene("game"); 64 | } 65 | 66 | addListeners() { 67 | G.on(PlayerDieEvent.NAME,this.onOver,this); 68 | G.on(PlayerJumpSuccessEvent.NAME,this.onPlayerJumpSuccess,this); 69 | } 70 | 71 | removeListeners() { 72 | G.off(PlayerDieEvent.NAME,this.onOver,this); 73 | G.off(PlayerJumpSuccessEvent.NAME,this.onPlayerJumpSuccess,this); 74 | } 75 | 76 | 77 | } 78 | -------------------------------------------------------------------------------- /assets/src/components/game/GameScene.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "670f2864-b10e-4bc3-bbce-5d9898a3c73e", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/src/components/game/OverPanel.ts: -------------------------------------------------------------------------------- 1 | const { ccclass, property } = cc._decorator; 2 | 3 | @ccclass 4 | export class OverPanel extends cc.Component { 5 | 6 | @property(cc.Label) 7 | private messageLabel: cc.Label = null; 8 | @property(cc.Node) 9 | private restartButton: cc.Node = null; 10 | 11 | public show(score: number,cb,target?:any) { 12 | this.node.active = true; 13 | this.messageLabel.string = score + ""; 14 | this.restartButton.once(cc.Node.EventType.TOUCH_END,cb,target); 15 | } 16 | 17 | public hide() { 18 | this.node.active = false; 19 | } 20 | } -------------------------------------------------------------------------------- /assets/src/components/game/OverPanel.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "b702f580-df26-4685-aeac-3aa186396a5d", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/src/components/game/stage.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "48b8b2eb-5e5b-40ca-abc4-4ee2878e46fb", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/src/components/game/stage/Block.ts: -------------------------------------------------------------------------------- 1 | const { ccclass, property } = cc._decorator; 2 | 3 | @ccclass 4 | export class Block extends cc.Component { 5 | 6 | @property(cc.Float) 7 | public maxScale: number = 0; 8 | @property(cc.Float) 9 | public minScale: number = 0; 10 | @property(cc.Float) 11 | public minDistance: number = 0; 12 | @property(cc.Float) 13 | public maxDistance: number = 0; 14 | @property(cc.Float) 15 | public anchorOffset: number = 0; 16 | @property(cc.Integer) 17 | public score: number = 1; 18 | 19 | @property([cc.Node]) 20 | private rightAnchorList: Array = []; 21 | @property([cc.Node]) 22 | private leftAnchorList: Array = []; 23 | @property(cc.Node) 24 | private centerAnchor: cc.Node = null; 25 | 26 | @property(cc.Node) 27 | private p1:cc.Node = null; 28 | @property(cc.Node) 29 | private p2:cc.Node = null; 30 | 31 | public getCenterPosition():cc.Vec2 { 32 | return this.centerAnchor.parent.convertToWorldSpaceAR(this.centerAnchor.position); 33 | } 34 | 35 | public getAnchorLocation(worldPos:cc.Vec2,direction:number):cc.Vec2 { 36 | let localPos = this.node.convertToNodeSpaceAR(worldPos); 37 | let anchorList = direction>0?this.rightAnchorList:this.leftAnchorList 38 | let nearAnchor = anchorList[0]; 39 | for(let i = 1;i < anchorList.length;i++) { 40 | if(cc.pDistance(anchorList[i].position,localPos) < cc.pDistance(nearAnchor.position,localPos)){ 41 | nearAnchor = anchorList[i]; 42 | } 43 | } 44 | if(cc.pDistance(nearAnchor.position,localPos)<=this.anchorOffset) { 45 | return nearAnchor.parent.convertToWorldSpaceAR(nearAnchor.position); 46 | }else{ 47 | return null; 48 | } 49 | } 50 | 51 | public getLeftTan():number { 52 | return this.p1.y/(-this.p1.x); 53 | } 54 | 55 | public getRightTan():number { 56 | cc.log(this.p2.y/this.p2.x); 57 | return this.p2.y/this.p2.x; 58 | } 59 | 60 | public playScoreAnim() { 61 | cc.find("score",this.node).getComponent(cc.Label).string = "+"+this.score; 62 | cc.find("score",this.node).getComponent(cc.Animation).play(); 63 | } 64 | 65 | // public shrink() { 66 | // // cc.find("sprite",this.node).runAction(cc.scaleTo(2,1,0.5)); 67 | // this.node.runAction(cc.scaleTo(2,1,0.5)); 68 | // } 69 | 70 | // public stopShrink() { 71 | // // cc.find("sprite",this.node).stopAllActions(); 72 | // this.node.stopAllActions(); 73 | // } 74 | 75 | // public enlarge() { 76 | // cc.find("sprite",this.node).runAction(cc.scaleTo(1,1,1)); 77 | // this.node.runAction(cc.scaleTo(1,1,1)); 78 | // } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /assets/src/components/game/stage/Block.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "00750ef1-4348-4471-b985-0f157e791649", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/src/components/game/stage/Player.ts: -------------------------------------------------------------------------------- 1 | import { G } from "../../../G"; 2 | 3 | 4 | const { ccclass, property } = cc._decorator; 5 | 6 | @ccclass 7 | export class Player extends cc.Component { 8 | 9 | @property(cc.Float) 10 | public jumpDistance: number = 0; 11 | 12 | @property(cc.Integer) 13 | public power: number = 0; 14 | @property(cc.Float) 15 | public initSpeed: number = 0; 16 | 17 | public speed: number = 0; 18 | 19 | public isReadyJump: boolean = false; 20 | 21 | public direction: number = 1; 22 | 23 | @property(cc.AudioClip) 24 | private readyJumpAudio = null; 25 | private readyJumpAudioId = -1; 26 | @property(cc.AudioClip) 27 | private jumpAudio = null; 28 | private jumpAudioId = -1; 29 | 30 | onLoad() { 31 | cc.find("title",this.node).active = false; 32 | } 33 | 34 | public readyJump() { 35 | this.readyJumpAudioId = cc.audioEngine.play(this.readyJumpAudio,false,1); 36 | cc.find("title",this.node).active = true; 37 | cc.find("rotateAnchor/sprite",this.node).runAction(cc.scaleTo(2,1,0.5)); 38 | this.speed = this.initSpeed; 39 | this.isReadyJump = true; 40 | } 41 | 42 | public jumpTo(worldPos:cc.Vec2,cb:Function,cbTarget?:any) { 43 | cc.audioEngine.stop(this.readyJumpAudioId); 44 | this.jumpAudioId = cc.audioEngine.play(this.jumpAudio,false,1); 45 | cc.find("rotateAnchor/sprite",this.node).stopAllActions(); 46 | cc.find("title",this.node).active = false; 47 | let targetPos = this.node.parent.convertToNodeSpaceAR(worldPos) 48 | this.node.color = cc.Color.WHITE; 49 | this.isReadyJump = false; 50 | let resetAction = cc.scaleTo(1,1,1); 51 | let jumpAction = cc.jumpTo(0.5,targetPos,200,1); 52 | let rotateAction = cc.rotateBy(0.5,this.direction*360); 53 | let finished = cc.callFunc(()=>{ 54 | this.direction = Math.random()>0.5?1:-1; 55 | this.speed = 0; 56 | this.jumpDistance = 0; 57 | cb(); 58 | },cbTarget); 59 | cc.find("rotateAnchor/sprite",this.node).runAction(resetAction); 60 | cc.find("rotateAnchor",this.node).runAction(rotateAction); 61 | this.node.runAction(cc.sequence(jumpAction,finished)) 62 | 63 | } 64 | 65 | public update(dt) { 66 | if(this.isReadyJump) { 67 | this.speed += dt * this.power; 68 | this.jumpDistance += this.speed * dt; 69 | } 70 | } 71 | 72 | } 73 | -------------------------------------------------------------------------------- /assets/src/components/game/stage/Player.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "9bd49b93-9670-4bac-b19a-74991e737a5f", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/src/components/game/stage/Stage.ts: -------------------------------------------------------------------------------- 1 | import { Player } from "./Player"; 2 | import { Block } from "./Block"; 3 | import { G } from "../../../G"; 4 | import { PlayerDieEvent } from "../../../events/PlayerDieEvent"; 5 | import { PlayerJumpSuccessEvent } from "../../../events/PlayerJumpSuccessEvent"; 6 | 7 | 8 | const { ccclass, property } = cc._decorator; 9 | 10 | @ccclass 11 | export class Stage extends cc.Component { 12 | 13 | @property(Player) 14 | private player: Player = null; 15 | 16 | @property(cc.Vec2) 17 | public leftOrigin: cc.Vec2 = cc.v2(); 18 | @property(cc.Vec2) 19 | public rightOrigin: cc.Vec2 = cc.v2(); 20 | @property(cc.Node) 21 | public blockLayer: cc.Node = null; 22 | @property(cc.Float) 23 | public arrayRatio: number = 0.556047197640118; 24 | 25 | @property([cc.Prefab]) 26 | private blockList: Array = []; 27 | 28 | private currBlock: Block = null; 29 | 30 | private nextBlock: Block = null; 31 | 32 | public reset() { 33 | this.blockLayer.removeAllChildren(); 34 | 35 | // 添加第一个方块 36 | let blockNode = cc.instantiate(this.blockList[0]); 37 | this.blockLayer.addChild(blockNode); 38 | let block = blockNode.getComponent(Block); 39 | blockNode.position = this.blockLayer.parent.convertToNodeSpaceAR(this.leftOrigin); 40 | 41 | this.currBlock = block; 42 | this.nextBlock = block; 43 | this.player.node.position = this.node.parent.convertToNodeSpaceAR(this.currBlock.getCenterPosition()); 44 | 45 | this.addBlock(); 46 | } 47 | 48 | public enableTouch() { 49 | cc.find("Canvas").on(cc.Node.EventType.TOUCH_START, this.onReadyJump, this); 50 | cc.find("Canvas").on(cc.Node.EventType.TOUCH_END, this.onJump, this); 51 | cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, this.onKeyDown, this); 52 | cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP, this.onKeyUp, this); 53 | } 54 | 55 | public disableTouch() { 56 | cc.find("Canvas").targetOff(this); 57 | cc.systemEvent.targetOff(this); 58 | } 59 | 60 | private onKeyDown(event) { 61 | if (event.keyCode === cc.KEY.space) { 62 | this.onReadyJump(); 63 | } 64 | } 65 | 66 | private onKeyUp(event) { 67 | if (event.keyCode === cc.KEY.space) { 68 | this.onJump(); 69 | } 70 | } 71 | 72 | private onReadyJump() { 73 | this.player.readyJump(); 74 | } 75 | 76 | private onJump() { 77 | let jumpDistance = this.player.jumpDistance; 78 | let dir = this.player.direction; 79 | let targetPos = cc.p(this.player.node.x + jumpDistance*dir,this.player.node.y + jumpDistance*this.arrayRatio); 80 | let targetWorldPos = this.player.node.parent.convertToWorldSpaceAR(targetPos); 81 | let formatPos = this.nextBlock.getAnchorLocation(targetWorldPos,dir); 82 | if(formatPos !== null) { 83 | this.player.jumpTo(formatPos,()=>{ 84 | this.currBlock = this.nextBlock; 85 | this.currBlock.playScoreAnim(); 86 | G.dispatchEvent(new PlayerJumpSuccessEvent(this.currBlock.score)); 87 | }); 88 | }else{ 89 | this.player.jumpTo(targetWorldPos,()=>{ 90 | G.dispatchEvent(new PlayerDieEvent()); 91 | }); 92 | } 93 | } 94 | 95 | public addBlock() { 96 | let n = Math.floor(Math.random() * this.blockList.length); 97 | let blockNode = cc.instantiate(this.blockList[n]); 98 | this.blockLayer.addChild(blockNode); 99 | let block = blockNode.getComponent(Block); 100 | let scale = block.minScale + Math.random() * (block.maxScale - block.minScale); 101 | let distance = block.minDistance + Math.random() * (block.maxDistance - block.minDistance); 102 | blockNode.scale = scale; 103 | if (this.player.direction > 0) { 104 | blockNode.x = this.currBlock.node.x + distance; 105 | blockNode.y = this.currBlock.node.y + distance * this.arrayRatio; 106 | } else { 107 | blockNode.x = this.currBlock.node.x - distance; 108 | blockNode.y = this.currBlock.node.y + distance * this.arrayRatio; 109 | } 110 | this.currBlock = this.nextBlock; 111 | this.nextBlock = block; 112 | return block; 113 | } 114 | 115 | public removeBlock() { 116 | 117 | } 118 | 119 | public checkOver(): boolean { 120 | return cc.pDistance(this.player.node.position, this.currBlock.node.position) > this.currBlock.node.width / 2 * this.currBlock.node.scale; 121 | } 122 | 123 | public updateStage(cb:Function,cbTarget?:any) { 124 | let moveVector; 125 | let playerWorldPos = this.player.node.parent.convertToWorldSpaceAR(this.player.node.position); 126 | if(this.player.direction > 0) { 127 | moveVector = cc.pSub(playerWorldPos,this.leftOrigin); 128 | }else { 129 | moveVector = cc.pSub(playerWorldPos,this.rightOrigin); 130 | } 131 | let finished = cc.callFunc(cb, cbTarget); 132 | let action = cc.sequence(cc.moveTo(0.5,cc.pSub(this.node.position,moveVector)),finished); 133 | this.node.runAction(action); 134 | } 135 | 136 | } 137 | -------------------------------------------------------------------------------- /assets/src/components/game/stage/Stage.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "40b80e04-be72-4fac-8247-1467bf30c658", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/src/components/menu.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "78864c07-59d3-42f1-b6a0-b9863ef9c7f5", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/src/components/menu/MenuScene.ts: -------------------------------------------------------------------------------- 1 | import { G } from "../../G"; 2 | 3 | const {ccclass, property} = cc._decorator; 4 | 5 | @ccclass 6 | export class MenuScene extends cc.Component { 7 | 8 | @property(cc.Node) 9 | private startButton:cc.Node = null; 10 | @property(cc.PageView) 11 | private selectPage:cc.PageView = null; 12 | 13 | onLoad() { 14 | if(cc.sys.isMobile) { 15 | cc.find("Canvas").getComponent(cc.Canvas).fitHeight = false; 16 | cc.find("Canvas").getComponent(cc.Canvas).fitWidth = true; 17 | } 18 | } 19 | 20 | start() { 21 | this.addListeners(); 22 | } 23 | 24 | onBtnStart() { 25 | cc.find("Canvas/mask").active = true; 26 | let n = this.selectPage.getCurrentPageIndex(); 27 | G.startGame(n); 28 | } 29 | 30 | addListeners() { 31 | this.startButton.on(cc.Node.EventType.TOUCH_END,this.onBtnStart,this); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /assets/src/components/menu/MenuScene.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "d5394e00-14cf-47a6-b394-3ce81b16d2de", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/src/events.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "bf0b5798-70b8-4439-9a4d-5ca867c03045", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/src/events/PlayerDieEvent.ts: -------------------------------------------------------------------------------- 1 | export class PlayerDieEvent extends cc.Event.EventCustom { 2 | public static readonly NAME = "PlayerDie"; 3 | 4 | public constructor() { 5 | super(PlayerDieEvent.NAME,true); 6 | } 7 | 8 | } -------------------------------------------------------------------------------- /assets/src/events/PlayerDieEvent.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "0598a3fd-c3fa-4ae2-a1d0-9204d6b17f7f", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/src/events/PlayerJumpSuccessEvent.ts: -------------------------------------------------------------------------------- 1 | export class PlayerJumpSuccessEvent extends cc.Event.EventCustom { 2 | public static readonly NAME:string = "PlayerJumpSuccess"; 3 | public score: number 4 | public constructor(score:number) { 5 | super(PlayerJumpSuccessEvent.NAME,true); 6 | this.score = score; 7 | } 8 | } -------------------------------------------------------------------------------- /assets/src/events/PlayerJumpSuccessEvent.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "c94d85cd-1939-4d23-9408-fe4c106c3210", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/src/utils.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "34d8031e-d89c-405d-b3ca-01f30aaff114", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/src/utils/Audio.ts: -------------------------------------------------------------------------------- 1 | export class Audio { 2 | private bgmVolume = 1.0; 3 | private sfxVolume = 1.0; 4 | private bgmAudioID = -1; 5 | private playing = ""; 6 | 7 | public constructor() { 8 | let t = cc.sys.localStorage.getItem("bgmVolume"); 9 | if (t !== null || t !== undefined) { 10 | this.bgmVolume = parseFloat(t); 11 | } 12 | t = cc.sys.localStorage.getItem("sfxVolume"); 13 | if (t !== null || t !== undefined) { 14 | this.sfxVolume = parseFloat(t); 15 | } 16 | cc.game.on(cc.game.EVENT_HIDE, function () { 17 | console.log("cc.audioEngine.pauseAll"); 18 | cc.audioEngine.pauseAll(); 19 | }); 20 | cc.game.on(cc.game.EVENT_SHOW, function () { 21 | console.log("cc.audioEngine.resumeAll"); 22 | cc.audioEngine.resumeAll(); 23 | }); 24 | } 25 | getUrl(url): string { 26 | return cc.url.raw("resources/sounds/" + url); 27 | } 28 | playBGM(url) { 29 | this.playing = url; 30 | var audioUrl = this.getUrl(url); 31 | console.log(audioUrl); 32 | if (this.bgmAudioID >= 0) { 33 | cc.audioEngine.stop(this.bgmAudioID); 34 | } 35 | this.bgmAudioID = cc.audioEngine.play(audioUrl, true, this.bgmVolume); 36 | } 37 | playSFX(url: string) { 38 | var audioUrl = this.getUrl(url); 39 | if (this.sfxVolume > 0) { 40 | var audioId = cc.audioEngine.play(audioUrl, false, this.sfxVolume); 41 | } 42 | } 43 | setSFXVolume(v: number) { 44 | if (this.sfxVolume !== v) { 45 | // cc.sys.localStorage.setItem("sfxVolume",v); 46 | this.sfxVolume = v; 47 | } 48 | } 49 | public setBGMVolume(v: number, force: boolean) { 50 | if (this.bgmAudioID >= 0) { 51 | if (v > 0) { 52 | cc.audioEngine.resume(this.bgmAudioID); 53 | } else { 54 | cc.audioEngine.pause(this.bgmAudioID); 55 | } 56 | //cc.audioEngine.setVolume(this.bgmAudioID,this.bgmVolume); 57 | } 58 | if (this.bgmVolume !== v || force) { 59 | // cc.sys.localStorage.setItem("bgmVolume",v); 60 | this.bgmVolume = v; 61 | cc.audioEngine.setVolume(this.bgmAudioID, v); 62 | } 63 | } 64 | public pauseAll() { 65 | cc.audioEngine.pauseAll(); 66 | } 67 | public resumeAll() { 68 | cc.audioEngine.resumeAll(); 69 | } 70 | public save() { 71 | cc.sys.localStorage.setItem("sfxVolume", this.sfxVolume); 72 | cc.sys.localStorage.setItem("bgmVolume", this.bgmVolume); 73 | } 74 | } -------------------------------------------------------------------------------- /assets/src/utils/Audio.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "24e7c7d0-0c35-45a9-a6c1-649d482a1420", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "module": "commonjs", 5 | "experimentalDecorators": true 6 | }, 7 | "exclude": [ 8 | "node_modules", 9 | ".vscode", 10 | "library", 11 | "local", 12 | "settings", 13 | "temp" 14 | ] 15 | } -------------------------------------------------------------------------------- /project.json: -------------------------------------------------------------------------------- 1 | { 2 | "engine": "cocos-creator-js", 3 | "packages": "packages" 4 | } -------------------------------------------------------------------------------- /settings/builder.json: -------------------------------------------------------------------------------- 1 | { 2 | "appKey": "", 3 | "appSecret": "", 4 | "encryptJs": true, 5 | "excludeScenes": [], 6 | "includeAnySDK": false, 7 | "includeSDKBox": false, 8 | "inlineSpriteFrames": true, 9 | "inlineSpriteFrames_native": true, 10 | "jailbreakPlatform": false, 11 | "md5Cache": true, 12 | "mergeStartScene": false, 13 | "oauthLoginServer": "", 14 | "optimizeHotUpdate": false, 15 | "orientation": { 16 | "landscapeLeft": true, 17 | "landscapeRight": true, 18 | "portrait": false, 19 | "upsideDown": false 20 | }, 21 | "packageName": "org.cocos2d.jump", 22 | "privateKey": "", 23 | "renderMode": "0", 24 | "startScene": "f052c3be-22fe-4d57-9740-cb9e391d9eae", 25 | "title": "jump", 26 | "webOrientation": "portrait", 27 | "xxteaKey": "1d413dab-b87a-4f" 28 | } -------------------------------------------------------------------------------- /settings/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "start-scene": "current", 3 | "group-list": [ 4 | "default" 5 | ], 6 | "collision-matrix": [ 7 | [ 8 | true 9 | ] 10 | ], 11 | "excluded-modules": [], 12 | "design-resolution-width": 960, 13 | "design-resolution-height": 640, 14 | "fit-width": false, 15 | "fit-height": true, 16 | "use-project-simulator-setting": false, 17 | "simulator-orientation": false, 18 | "use-customize-simulator": false, 19 | "simulator-resolution": { 20 | "width": 960, 21 | "height": 640 22 | }, 23 | "cocos-analytics": { 24 | "enable": false, 25 | "appID": "13798", 26 | "appSecret": "959b3ac0037d0f3c2fdce94f8421a9b2" 27 | } 28 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ "dom", "es5", "es2015.promise" ], 5 | "target": "es5", 6 | "experimentalDecorators": true, 7 | "skipLibCheck": true 8 | }, 9 | "exclude": [ 10 | "node_modules", 11 | "library", 12 | "local", 13 | "temp", 14 | "build", 15 | "settings" 16 | ] 17 | } --------------------------------------------------------------------------------