├── .gitignore ├── README.md ├── assets ├── Prefabs.meta ├── Scene.meta ├── Scene │ ├── Boom.fire │ ├── Boom.fire.meta │ ├── MainGame.fire │ ├── MainGame.fire.meta │ ├── helloworld.fire │ └── helloworld.fire.meta ├── Script.meta ├── Script │ ├── Boom.js │ ├── Boom.js.meta │ ├── Controller.meta │ ├── Controller │ │ ├── GameManager.ts │ │ └── GameManager.ts.meta │ ├── HelloWorld.js │ ├── HelloWorld.js.meta │ ├── Model.meta │ ├── Model │ │ ├── CellModel.ts │ │ ├── CellModel.ts.meta │ │ ├── Constant.ts │ │ ├── Constant.ts.meta │ │ ├── GameModel.ts │ │ └── GameModel.ts.meta │ ├── Utils.meta │ ├── Utils │ │ ├── AudioUtils.ts │ │ └── AudioUtils.ts.meta │ ├── View.meta │ └── View │ │ ├── CellView.ts │ │ ├── CellView.ts.meta │ │ ├── EffectLayer.ts │ │ ├── EffectLayer.ts.meta │ │ ├── GridView.ts │ │ └── GridView.ts.meta ├── Texture.meta ├── Texture │ ├── HelloWorld.png │ ├── HelloWorld.png.meta │ ├── boom.meta │ ├── boom │ │ ├── bsddbz_1.png │ │ ├── bsddbz_1.png.meta │ │ ├── bsddbz_2.png │ │ ├── bsddbz_2.png.meta │ │ ├── bsddbz_3.png │ │ ├── bsddbz_3.png.meta │ │ ├── bsddbz_4.png │ │ ├── bsddbz_4.png.meta │ │ ├── bsddbz_5.png │ │ ├── bsddbz_5.png.meta │ │ ├── bsddbz_6.png │ │ ├── bsddbz_6.png.meta │ │ ├── bsddbz_7.png │ │ ├── bsddbz_7.png.meta │ │ ├── bsddbz_8.png │ │ ├── bsddbz_8.png.meta │ │ ├── bsddbz_9.png │ │ └── bsddbz_9.png.meta │ ├── singleColor.png │ └── singleColor.png.meta ├── animation.meta └── animation │ ├── small.anim │ └── small.anim.meta ├── jsconfig.json ├── project.json ├── settings ├── builder.json ├── builder.panel.json └── project.json ├── template-banner.png ├── template.json └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | #///////////////////////////////////////////////////////////////////////////// 2 | # Cocos Creator Projects 3 | #///////////////////////////////////////////////////////////////////////////// 4 | 5 | build/ 6 | library/ 7 | temp/ 8 | local/ 9 | jsb-default/ 10 | jsb-binary/ 11 | jsb-link/ 12 | web-desktop/ 13 | web-mobile/ 14 | runtime/ 15 | build/ 16 | jsb/ 17 | export/ 18 | 19 | #///////////////////////////////////////////////////////////////////////////// 20 | # Logs and databases 21 | #///////////////////////////////////////////////////////////////////////////// 22 | 23 | *.log 24 | *.sql 25 | *.sqlite 26 | 27 | #///////////////////////////////////////////////////////////////////////////// 28 | # files for debugger 29 | #///////////////////////////////////////////////////////////////////////////// 30 | 31 | *.sln 32 | *.csproj 33 | *.pidb 34 | *.unityproj 35 | *.suo 36 | 37 | #///////////////////////////////////////////////////////////////////////////// 38 | # OS generated files 39 | #///////////////////////////////////////////////////////////////////////////// 40 | 41 | .DS_Store 42 | ehthumbs.db 43 | Thumbs.db 44 | 45 | #///////////////////////////////////////////////////////////////////////////// 46 | # exvim files 47 | #///////////////////////////////////////////////////////////////////////////// 48 | 49 | *UnityVS.meta 50 | *.err 51 | *.err.meta 52 | *.exvim 53 | *.exvim.meta 54 | *.vimentry 55 | *.vimentry.meta 56 | *.vimproject 57 | *.vimproject.meta 58 | .vimfiles.*/ 59 | .exvim.*/ 60 | quick_gen_project_*_autogen.bat 61 | quick_gen_project_*_autogen.bat.meta 62 | quick_gen_project_*_autogen.sh 63 | quick_gen_project_*_autogen.sh.meta 64 | .exvim.app 65 | 66 | #///////////////////////////////////////////////////////////////////////////// 67 | # webstorm files 68 | #///////////////////////////////////////////////////////////////////////////// 69 | 70 | .idea/ 71 | 72 | #///////////////////////////////////////////////////////////////////////////// 73 | # VSCode files 74 | #///////////////////////////////////////////////////////////////////////////// 75 | 76 | creator.d.ts 77 | .vscode/ 78 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 奶瓶消除小游戏 2 | cocos-creator 三消游戏 3 | -------------------------------------------------------------------------------- /assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "210f23c8-e605-4688-b713-27d6d4672645", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Scene.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Scene/Boom.fire: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.SceneAsset", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "scene": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Scene", 13 | "_objFlags": 0, 14 | "_parent": null, 15 | "_children": [ 16 | { 17 | "__id__": 2 18 | } 19 | ], 20 | "_active": true, 21 | "_level": 0, 22 | "_components": [], 23 | "_prefab": null, 24 | "_opacity": 255, 25 | "_color": { 26 | "__type__": "cc.Color", 27 | "r": 255, 28 | "g": 255, 29 | "b": 255, 30 | "a": 255 31 | }, 32 | "_contentSize": { 33 | "__type__": "cc.Size", 34 | "width": 0, 35 | "height": 0 36 | }, 37 | "_anchorPoint": { 38 | "__type__": "cc.Vec2", 39 | "x": 0, 40 | "y": 0 41 | }, 42 | "_scale": { 43 | "__type__": "cc.Vec3", 44 | "x": 1, 45 | "y": 1, 46 | "z": 1 47 | }, 48 | "_quat": { 49 | "__type__": "cc.Quat", 50 | "x": 0, 51 | "y": 0, 52 | "z": 0, 53 | "w": 1 54 | }, 55 | "_zIndex": 0, 56 | "groupIndex": 0, 57 | "autoReleaseAssets": false, 58 | "_id": "f2cdf4f7-ba02-4e4b-8101-15813caa65ea" 59 | }, 60 | { 61 | "__type__": "cc.Node", 62 | "_name": "Canvas", 63 | "_objFlags": 0, 64 | "_parent": { 65 | "__id__": 1 66 | }, 67 | "_children": [ 68 | { 69 | "__id__": 3 70 | }, 71 | { 72 | "__id__": 5 73 | } 74 | ], 75 | "_active": true, 76 | "_level": 1, 77 | "_components": [ 78 | { 79 | "__id__": 9 80 | } 81 | ], 82 | "_prefab": null, 83 | "_opacity": 255, 84 | "_color": { 85 | "__type__": "cc.Color", 86 | "r": 255, 87 | "g": 255, 88 | "b": 255, 89 | "a": 255 90 | }, 91 | "_contentSize": { 92 | "__type__": "cc.Size", 93 | "width": 960, 94 | "height": 640 95 | }, 96 | "_anchorPoint": { 97 | "__type__": "cc.Vec2", 98 | "x": 0.5, 99 | "y": 0.5 100 | }, 101 | "_position": { 102 | "__type__": "cc.Vec3", 103 | "x": 480, 104 | "y": 320, 105 | "z": 0 106 | }, 107 | "_scale": { 108 | "__type__": "cc.Vec3", 109 | "x": 1, 110 | "y": 1, 111 | "z": 1 112 | }, 113 | "_rotationX": 0, 114 | "_rotationY": 0, 115 | "_quat": { 116 | "__type__": "cc.Quat", 117 | "x": 0, 118 | "y": 0, 119 | "z": 0, 120 | "w": 1 121 | }, 122 | "_skewX": 0, 123 | "_skewY": 0, 124 | "_zIndex": 0, 125 | "groupIndex": 0, 126 | "_id": "afS8ny9llC2I7SOxS8BuYV" 127 | }, 128 | { 129 | "__type__": "cc.Node", 130 | "_name": "Main Camera", 131 | "_objFlags": 0, 132 | "_parent": { 133 | "__id__": 2 134 | }, 135 | "_children": [], 136 | "_active": true, 137 | "_level": 2, 138 | "_components": [ 139 | { 140 | "__id__": 4 141 | } 142 | ], 143 | "_prefab": null, 144 | "_opacity": 255, 145 | "_color": { 146 | "__type__": "cc.Color", 147 | "r": 255, 148 | "g": 255, 149 | "b": 255, 150 | "a": 255 151 | }, 152 | "_contentSize": { 153 | "__type__": "cc.Size", 154 | "width": 0, 155 | "height": 0 156 | }, 157 | "_anchorPoint": { 158 | "__type__": "cc.Vec2", 159 | "x": 0.5, 160 | "y": 0.5 161 | }, 162 | "_position": { 163 | "__type__": "cc.Vec3", 164 | "x": 0, 165 | "y": 0, 166 | "z": 0 167 | }, 168 | "_scale": { 169 | "__type__": "cc.Vec3", 170 | "x": 1, 171 | "y": 1, 172 | "z": 1 173 | }, 174 | "_rotationX": 0, 175 | "_rotationY": 0, 176 | "_quat": { 177 | "__type__": "cc.Quat", 178 | "x": 0, 179 | "y": 0, 180 | "z": 0, 181 | "w": 1 182 | }, 183 | "_skewX": 0, 184 | "_skewY": 0, 185 | "_zIndex": 0, 186 | "groupIndex": 0, 187 | "_id": "c4TYZDNRxCl7zfIwjYrUfh" 188 | }, 189 | { 190 | "__type__": "cc.Camera", 191 | "_name": "", 192 | "_objFlags": 0, 193 | "node": { 194 | "__id__": 3 195 | }, 196 | "_enabled": true, 197 | "_cullingMask": 4294967295, 198 | "_clearFlags": 7, 199 | "_backgroundColor": { 200 | "__type__": "cc.Color", 201 | "r": 0, 202 | "g": 0, 203 | "b": 0, 204 | "a": 255 205 | }, 206 | "_depth": -1, 207 | "_zoomRatio": 1, 208 | "_targetTexture": null, 209 | "_id": "80pSXuiShIg6nk3TxaUGmC" 210 | }, 211 | { 212 | "__type__": "cc.Node", 213 | "_name": "boom", 214 | "_objFlags": 0, 215 | "_parent": { 216 | "__id__": 2 217 | }, 218 | "_children": [], 219 | "_active": true, 220 | "_level": 2, 221 | "_components": [ 222 | { 223 | "__id__": 6 224 | }, 225 | { 226 | "__id__": 7 227 | }, 228 | { 229 | "__id__": 8 230 | } 231 | ], 232 | "_prefab": null, 233 | "_opacity": 255, 234 | "_color": { 235 | "__type__": "cc.Color", 236 | "r": 255, 237 | "g": 255, 238 | "b": 255, 239 | "a": 255 240 | }, 241 | "_contentSize": { 242 | "__type__": "cc.Size", 243 | "width": 44, 244 | "height": 42 245 | }, 246 | "_anchorPoint": { 247 | "__type__": "cc.Vec2", 248 | "x": 0.5, 249 | "y": 0.5 250 | }, 251 | "_position": { 252 | "__type__": "cc.Vec3", 253 | "x": 0, 254 | "y": 0, 255 | "z": 0 256 | }, 257 | "_scale": { 258 | "__type__": "cc.Vec3", 259 | "x": 1, 260 | "y": 1, 261 | "z": 1 262 | }, 263 | "_rotationX": 0, 264 | "_rotationY": 0, 265 | "_quat": { 266 | "__type__": "cc.Quat", 267 | "x": 0, 268 | "y": 0, 269 | "z": 0, 270 | "w": 1 271 | }, 272 | "_skewX": 0, 273 | "_skewY": 0, 274 | "_zIndex": 0, 275 | "groupIndex": 0, 276 | "_id": "9b8P11fhZJOJJYa2zcABmt" 277 | }, 278 | { 279 | "__type__": "f2aa0ZyWTZHvY8X65ebE7Lw", 280 | "_name": "", 281 | "_objFlags": 0, 282 | "node": { 283 | "__id__": 5 284 | }, 285 | "_enabled": true, 286 | "_id": "0czYXcaehHVLv4P2kDubgt" 287 | }, 288 | { 289 | "__type__": "cc.Animation", 290 | "_name": "", 291 | "_objFlags": 0, 292 | "node": { 293 | "__id__": 5 294 | }, 295 | "_enabled": true, 296 | "_defaultClip": { 297 | "__uuid__": "f5d82014-d599-4c62-933b-efcb75a53db4" 298 | }, 299 | "_clips": [ 300 | { 301 | "__uuid__": "f5d82014-d599-4c62-933b-efcb75a53db4" 302 | } 303 | ], 304 | "playOnLoad": false, 305 | "_id": "86DpdRtpJKVbomQZ9IGr7t" 306 | }, 307 | { 308 | "__type__": "cc.Sprite", 309 | "_name": "", 310 | "_objFlags": 0, 311 | "node": { 312 | "__id__": 5 313 | }, 314 | "_enabled": true, 315 | "_srcBlendFactor": 770, 316 | "_dstBlendFactor": 771, 317 | "_spriteFrame": null, 318 | "_type": 0, 319 | "_sizeMode": 1, 320 | "_fillType": 0, 321 | "_fillCenter": { 322 | "__type__": "cc.Vec2", 323 | "x": 0, 324 | "y": 0 325 | }, 326 | "_fillStart": 0, 327 | "_fillRange": 0, 328 | "_isTrimmedMode": true, 329 | "_state": 0, 330 | "_atlas": null, 331 | "_id": "922xcN5VNE/JK70II6kGge" 332 | }, 333 | { 334 | "__type__": "cc.Canvas", 335 | "_name": "", 336 | "_objFlags": 0, 337 | "node": { 338 | "__id__": 2 339 | }, 340 | "_enabled": true, 341 | "_designResolution": { 342 | "__type__": "cc.Size", 343 | "width": 960, 344 | "height": 640 345 | }, 346 | "_fitWidth": false, 347 | "_fitHeight": true, 348 | "_id": "561S1ohhxFkJFiWetQGWbV" 349 | } 350 | ] -------------------------------------------------------------------------------- /assets/Scene/Boom.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "f2cdf4f7-ba02-4e4b-8101-15813caa65ea", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Scene/MainGame.fire: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.SceneAsset", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "scene": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Scene", 13 | "_objFlags": 0, 14 | "_parent": null, 15 | "_children": [ 16 | { 17 | "__id__": 2 18 | } 19 | ], 20 | "_active": true, 21 | "_level": 0, 22 | "_components": [], 23 | "_prefab": null, 24 | "_opacity": 255, 25 | "_color": { 26 | "__type__": "cc.Color", 27 | "r": 255, 28 | "g": 255, 29 | "b": 255, 30 | "a": 255 31 | }, 32 | "_contentSize": { 33 | "__type__": "cc.Size", 34 | "width": 0, 35 | "height": 0 36 | }, 37 | "_anchorPoint": { 38 | "__type__": "cc.Vec2", 39 | "x": 0, 40 | "y": 0 41 | }, 42 | "_scale": { 43 | "__type__": "cc.Vec3", 44 | "x": 0.5158730158730159, 45 | "y": 0.5158730158730159, 46 | "z": 1 47 | }, 48 | "_quat": { 49 | "__type__": "cc.Quat", 50 | "x": 0, 51 | "y": 0, 52 | "z": 0, 53 | "w": 1 54 | }, 55 | "_zIndex": 0, 56 | "groupIndex": 0, 57 | "autoReleaseAssets": false, 58 | "_id": "589ecda6-7c3b-4215-b74e-61808246523a" 59 | }, 60 | { 61 | "__type__": "cc.Node", 62 | "_name": "Canvas", 63 | "_objFlags": 0, 64 | "_parent": { 65 | "__id__": 1 66 | }, 67 | "_children": [ 68 | { 69 | "__id__": 3 70 | }, 71 | { 72 | "__id__": 5 73 | }, 74 | { 75 | "__id__": 12 76 | } 77 | ], 78 | "_active": true, 79 | "_level": 1, 80 | "_components": [ 81 | { 82 | "__id__": 13 83 | } 84 | ], 85 | "_prefab": null, 86 | "_opacity": 255, 87 | "_color": { 88 | "__type__": "cc.Color", 89 | "r": 255, 90 | "g": 255, 91 | "b": 255, 92 | "a": 255 93 | }, 94 | "_contentSize": { 95 | "__type__": "cc.Size", 96 | "width": 640, 97 | "height": 1136 98 | }, 99 | "_anchorPoint": { 100 | "__type__": "cc.Vec2", 101 | "x": 0.5, 102 | "y": 0.5 103 | }, 104 | "_position": { 105 | "__type__": "cc.Vec3", 106 | "x": 320, 107 | "y": 568, 108 | "z": 0 109 | }, 110 | "_scale": { 111 | "__type__": "cc.Vec3", 112 | "x": 1, 113 | "y": 1, 114 | "z": 1 115 | }, 116 | "_rotationX": 0, 117 | "_rotationY": 0, 118 | "_quat": { 119 | "__type__": "cc.Quat", 120 | "x": 0, 121 | "y": 0, 122 | "z": 0, 123 | "w": 1 124 | }, 125 | "_skewX": 0, 126 | "_skewY": 0, 127 | "_zIndex": 0, 128 | "groupIndex": 0, 129 | "_id": "89mProIJhCEb/bK1nwVFCj" 130 | }, 131 | { 132 | "__type__": "cc.Node", 133 | "_name": "Main Camera", 134 | "_objFlags": 0, 135 | "_parent": { 136 | "__id__": 2 137 | }, 138 | "_children": [], 139 | "_active": true, 140 | "_level": 2, 141 | "_components": [ 142 | { 143 | "__id__": 4 144 | } 145 | ], 146 | "_prefab": null, 147 | "_opacity": 255, 148 | "_color": { 149 | "__type__": "cc.Color", 150 | "r": 255, 151 | "g": 255, 152 | "b": 255, 153 | "a": 255 154 | }, 155 | "_contentSize": { 156 | "__type__": "cc.Size", 157 | "width": 0, 158 | "height": 0 159 | }, 160 | "_anchorPoint": { 161 | "__type__": "cc.Vec2", 162 | "x": 0.5, 163 | "y": 0.5 164 | }, 165 | "_position": { 166 | "__type__": "cc.Vec3", 167 | "x": 0, 168 | "y": 0, 169 | "z": 0 170 | }, 171 | "_scale": { 172 | "__type__": "cc.Vec3", 173 | "x": 1, 174 | "y": 1, 175 | "z": 1 176 | }, 177 | "_rotationX": 0, 178 | "_rotationY": 0, 179 | "_quat": { 180 | "__type__": "cc.Quat", 181 | "x": 0, 182 | "y": 0, 183 | "z": 0, 184 | "w": 1 185 | }, 186 | "_skewX": 0, 187 | "_skewY": 0, 188 | "_zIndex": 0, 189 | "groupIndex": 0, 190 | "_id": "a7iDntDHJP7aPKrep28kUC" 191 | }, 192 | { 193 | "__type__": "cc.Camera", 194 | "_name": "", 195 | "_objFlags": 0, 196 | "node": { 197 | "__id__": 3 198 | }, 199 | "_enabled": true, 200 | "_cullingMask": 4294967295, 201 | "_clearFlags": 7, 202 | "_backgroundColor": { 203 | "__type__": "cc.Color", 204 | "r": 0, 205 | "g": 0, 206 | "b": 0, 207 | "a": 255 208 | }, 209 | "_depth": -1, 210 | "_zoomRatio": 1, 211 | "_targetTexture": null, 212 | "_id": "f5asWqzBVIArOSQtEBODq6" 213 | }, 214 | { 215 | "__type__": "cc.Node", 216 | "_name": "GameManager", 217 | "_objFlags": 0, 218 | "_parent": { 219 | "__id__": 2 220 | }, 221 | "_children": [ 222 | { 223 | "__id__": 6 224 | }, 225 | { 226 | "__id__": 10 227 | } 228 | ], 229 | "_active": true, 230 | "_level": 2, 231 | "_components": [ 232 | { 233 | "__id__": 11 234 | } 235 | ], 236 | "_prefab": null, 237 | "_opacity": 255, 238 | "_color": { 239 | "__type__": "cc.Color", 240 | "r": 255, 241 | "g": 255, 242 | "b": 255, 243 | "a": 255 244 | }, 245 | "_contentSize": { 246 | "__type__": "cc.Size", 247 | "width": 0, 248 | "height": 0 249 | }, 250 | "_anchorPoint": { 251 | "__type__": "cc.Vec2", 252 | "x": 0.5, 253 | "y": 0.5 254 | }, 255 | "_position": { 256 | "__type__": "cc.Vec3", 257 | "x": 0, 258 | "y": 0, 259 | "z": 0 260 | }, 261 | "_scale": { 262 | "__type__": "cc.Vec3", 263 | "x": 1, 264 | "y": 1, 265 | "z": 1 266 | }, 267 | "_rotationX": 0, 268 | "_rotationY": 0, 269 | "_quat": { 270 | "__type__": "cc.Quat", 271 | "x": 0, 272 | "y": 0, 273 | "z": 0, 274 | "w": 1 275 | }, 276 | "_skewX": 0, 277 | "_skewY": 0, 278 | "_zIndex": 0, 279 | "groupIndex": 0, 280 | "_id": "1cy8vgpiJBgKH7UHYTyrNa" 281 | }, 282 | { 283 | "__type__": "cc.Node", 284 | "_name": "Grid", 285 | "_objFlags": 0, 286 | "_parent": { 287 | "__id__": 5 288 | }, 289 | "_children": [ 290 | { 291 | "__id__": 7 292 | } 293 | ], 294 | "_active": true, 295 | "_level": 3, 296 | "_components": [ 297 | { 298 | "__id__": 9 299 | } 300 | ], 301 | "_prefab": null, 302 | "_opacity": 52, 303 | "_color": { 304 | "__type__": "cc.Color", 305 | "r": 211, 306 | "g": 44, 307 | "b": 44, 308 | "a": 255 309 | }, 310 | "_contentSize": { 311 | "__type__": "cc.Size", 312 | "width": 0, 313 | "height": 0 314 | }, 315 | "_anchorPoint": { 316 | "__type__": "cc.Vec2", 317 | "x": 0, 318 | "y": 0 319 | }, 320 | "_position": { 321 | "__type__": "cc.Vec3", 322 | "x": -316, 323 | "y": -279, 324 | "z": 0 325 | }, 326 | "_scale": { 327 | "__type__": "cc.Vec3", 328 | "x": 1, 329 | "y": 1, 330 | "z": 1 331 | }, 332 | "_rotationX": 0, 333 | "_rotationY": 0, 334 | "_quat": { 335 | "__type__": "cc.Quat", 336 | "x": 0, 337 | "y": 0, 338 | "z": 0, 339 | "w": 1 340 | }, 341 | "_skewX": 0, 342 | "_skewY": 0, 343 | "_zIndex": 0, 344 | "groupIndex": 0, 345 | "_id": "0dZsojFPRN/pyZcpvywRnS" 346 | }, 347 | { 348 | "__type__": "cc.Node", 349 | "_name": "bg", 350 | "_objFlags": 0, 351 | "_parent": { 352 | "__id__": 6 353 | }, 354 | "_children": [], 355 | "_active": true, 356 | "_level": 4, 357 | "_components": [ 358 | { 359 | "__id__": 8 360 | } 361 | ], 362 | "_prefab": null, 363 | "_opacity": 255, 364 | "_color": { 365 | "__type__": "cc.Color", 366 | "r": 228, 367 | "g": 98, 368 | "b": 84, 369 | "a": 255 370 | }, 371 | "_contentSize": { 372 | "__type__": "cc.Size", 373 | "width": 630, 374 | "height": 630 375 | }, 376 | "_anchorPoint": { 377 | "__type__": "cc.Vec2", 378 | "x": 0, 379 | "y": 0 380 | }, 381 | "_position": { 382 | "__type__": "cc.Vec3", 383 | "x": 0, 384 | "y": 0, 385 | "z": 0 386 | }, 387 | "_scale": { 388 | "__type__": "cc.Vec3", 389 | "x": 1, 390 | "y": 1, 391 | "z": 1 392 | }, 393 | "_rotationX": 0, 394 | "_rotationY": 0, 395 | "_quat": { 396 | "__type__": "cc.Quat", 397 | "x": 0, 398 | "y": 0, 399 | "z": 0, 400 | "w": 1 401 | }, 402 | "_skewX": 0, 403 | "_skewY": 0, 404 | "_zIndex": 0, 405 | "groupIndex": 0, 406 | "_id": "cdQ9Rfr/1OgZo4Ua+M7F2h" 407 | }, 408 | { 409 | "__type__": "cc.Sprite", 410 | "_name": "", 411 | "_objFlags": 0, 412 | "node": { 413 | "__id__": 7 414 | }, 415 | "_enabled": true, 416 | "_srcBlendFactor": 770, 417 | "_dstBlendFactor": 771, 418 | "_spriteFrame": null, 419 | "_type": 0, 420 | "_sizeMode": 1, 421 | "_fillType": 0, 422 | "_fillCenter": { 423 | "__type__": "cc.Vec2", 424 | "x": 0, 425 | "y": 0 426 | }, 427 | "_fillStart": 0, 428 | "_fillRange": 0, 429 | "_isTrimmedMode": true, 430 | "_state": 0, 431 | "_atlas": null, 432 | "_id": "b1M0C9/apGAZZrFFeN4alf" 433 | }, 434 | { 435 | "__type__": "0483exOlmVKl6LkyJXSEAIK", 436 | "_name": "", 437 | "_objFlags": 0, 438 | "node": { 439 | "__id__": 6 440 | }, 441 | "_enabled": true, 442 | "cellPrefabs": [ 443 | null, 444 | null, 445 | null, 446 | null, 447 | null, 448 | null, 449 | null, 450 | null 451 | ], 452 | "effectLayer": null, 453 | "audioUtils": null, 454 | "_id": "54to+2+IZNKJTHuVcOW0jS" 455 | }, 456 | { 457 | "__type__": "cc.Node", 458 | "_name": "EffectLayer", 459 | "_objFlags": 0, 460 | "_parent": { 461 | "__id__": 5 462 | }, 463 | "_children": [], 464 | "_active": true, 465 | "_level": 3, 466 | "_components": [], 467 | "_prefab": null, 468 | "_opacity": 255, 469 | "_color": { 470 | "__type__": "cc.Color", 471 | "r": 255, 472 | "g": 255, 473 | "b": 255, 474 | "a": 255 475 | }, 476 | "_contentSize": { 477 | "__type__": "cc.Size", 478 | "width": 0, 479 | "height": 0 480 | }, 481 | "_anchorPoint": { 482 | "__type__": "cc.Vec2", 483 | "x": 0.5, 484 | "y": 0.5 485 | }, 486 | "_position": { 487 | "__type__": "cc.Vec3", 488 | "x": 0, 489 | "y": 0, 490 | "z": 0 491 | }, 492 | "_scale": { 493 | "__type__": "cc.Vec3", 494 | "x": 1, 495 | "y": 1, 496 | "z": 1 497 | }, 498 | "_rotationX": 0, 499 | "_rotationY": 0, 500 | "_quat": { 501 | "__type__": "cc.Quat", 502 | "x": 0, 503 | "y": 0, 504 | "z": 0, 505 | "w": 1 506 | }, 507 | "_skewX": 0, 508 | "_skewY": 0, 509 | "_zIndex": 0, 510 | "groupIndex": 0, 511 | "_id": "69yfXn8zhIHpRGZf9S8xay" 512 | }, 513 | { 514 | "__type__": "1c088IcMAxO3qoJ6wjZGT9N", 515 | "_name": "", 516 | "_objFlags": 0, 517 | "node": { 518 | "__id__": 5 519 | }, 520 | "_enabled": true, 521 | "grid": { 522 | "__id__": 6 523 | }, 524 | "_id": "588D8HZXJJ/q2IBwhF2i5V" 525 | }, 526 | { 527 | "__type__": "cc.Node", 528 | "_name": "AudioUtils", 529 | "_objFlags": 0, 530 | "_parent": { 531 | "__id__": 2 532 | }, 533 | "_children": [], 534 | "_active": true, 535 | "_level": 2, 536 | "_components": [], 537 | "_prefab": null, 538 | "_opacity": 255, 539 | "_color": { 540 | "__type__": "cc.Color", 541 | "r": 255, 542 | "g": 255, 543 | "b": 255, 544 | "a": 255 545 | }, 546 | "_contentSize": { 547 | "__type__": "cc.Size", 548 | "width": 0, 549 | "height": 0 550 | }, 551 | "_anchorPoint": { 552 | "__type__": "cc.Vec2", 553 | "x": 0.5, 554 | "y": 0.5 555 | }, 556 | "_position": { 557 | "__type__": "cc.Vec3", 558 | "x": 0, 559 | "y": 0, 560 | "z": 0 561 | }, 562 | "_scale": { 563 | "__type__": "cc.Vec3", 564 | "x": 1, 565 | "y": 1, 566 | "z": 1 567 | }, 568 | "_rotationX": 0, 569 | "_rotationY": 0, 570 | "_quat": { 571 | "__type__": "cc.Quat", 572 | "x": 0, 573 | "y": 0, 574 | "z": 0, 575 | "w": 1 576 | }, 577 | "_skewX": 0, 578 | "_skewY": 0, 579 | "_zIndex": 0, 580 | "groupIndex": 0, 581 | "_id": "e8vpg7I/RFjbkOKOv3qu/b" 582 | }, 583 | { 584 | "__type__": "cc.Canvas", 585 | "_name": "", 586 | "_objFlags": 0, 587 | "node": { 588 | "__id__": 2 589 | }, 590 | "_enabled": true, 591 | "_designResolution": { 592 | "__type__": "cc.Size", 593 | "width": 640, 594 | "height": 1136 595 | }, 596 | "_fitWidth": true, 597 | "_fitHeight": false, 598 | "_id": "1e9BgVDztG8ZdT5MwfpqDr" 599 | } 600 | ] -------------------------------------------------------------------------------- /assets/Scene/MainGame.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "589ecda6-7c3b-4215-b74e-61808246523a", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Scene/helloworld.fire: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.SceneAsset", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_rawFiles": null, 7 | "scene": { 8 | "__id__": 1 9 | } 10 | }, 11 | { 12 | "__type__": "cc.Scene", 13 | "_name": "", 14 | "_objFlags": 0, 15 | "_opacity": 255, 16 | "_color": { 17 | "__type__": "cc.Color", 18 | "r": 255, 19 | "g": 255, 20 | "b": 255, 21 | "a": 255 22 | }, 23 | "_cascadeOpacityEnabled": true, 24 | "_parent": null, 25 | "_anchorPoint": { 26 | "__type__": "cc.Vec2", 27 | "x": 0, 28 | "y": 0 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 0, 33 | "height": 0 34 | }, 35 | "_children": [ 36 | { 37 | "__id__": 2 38 | } 39 | ], 40 | "_localZOrder": 0, 41 | "_globalZOrder": 0, 42 | "_ignoreAnchorPointForPosition": false, 43 | "_tag": -1, 44 | "_opacityModifyRGB": false, 45 | "_id": "2d2f792f-a40c-49bb-a189-ed176a246e49" 46 | }, 47 | { 48 | "__type__": "cc.Node", 49 | "_name": "Canvas", 50 | "_objFlags": 0, 51 | "_opacity": 255, 52 | "_color": { 53 | "__type__": "cc.Color", 54 | "r": 252, 55 | "g": 252, 56 | "b": 252, 57 | "a": 255 58 | }, 59 | "_cascadeOpacityEnabled": true, 60 | "_parent": { 61 | "__id__": 1 62 | }, 63 | "_anchorPoint": { 64 | "__type__": "cc.Vec2", 65 | "x": 0.5, 66 | "y": 0.5 67 | }, 68 | "_contentSize": { 69 | "__type__": "cc.Size", 70 | "width": 960, 71 | "height": 640 72 | }, 73 | "_children": [ 74 | { 75 | "__id__": 3 76 | }, 77 | { 78 | "__id__": 6 79 | }, 80 | { 81 | "__id__": 8 82 | } 83 | ], 84 | "_rotationX": 0, 85 | "_rotationY": 0, 86 | "_scaleX": 1, 87 | "_scaleY": 1, 88 | "_position": { 89 | "__type__": "cc.Vec2", 90 | "x": 480, 91 | "y": 320 92 | }, 93 | "_skewX": 0, 94 | "_skewY": 0, 95 | "_localZOrder": 0, 96 | "_globalZOrder": 0, 97 | "_ignoreAnchorPointForPosition": false, 98 | "_tag": -1, 99 | "_opacityModifyRGB": false, 100 | "_id": "a286bbGknJLZpRpxROV6M94", 101 | "_active": true, 102 | "_components": [ 103 | { 104 | "__id__": 10 105 | }, 106 | { 107 | "__id__": 11 108 | } 109 | ], 110 | "_prefab": null 111 | }, 112 | { 113 | "__type__": "cc.Node", 114 | "_name": "background", 115 | "_objFlags": 0, 116 | "_opacity": 255, 117 | "_color": { 118 | "__type__": "cc.Color", 119 | "r": 27, 120 | "g": 38, 121 | "b": 46, 122 | "a": 255 123 | }, 124 | "_cascadeOpacityEnabled": true, 125 | "_parent": { 126 | "__id__": 2 127 | }, 128 | "_anchorPoint": { 129 | "__type__": "cc.Vec2", 130 | "x": 0.5, 131 | "y": 0.5 132 | }, 133 | "_contentSize": { 134 | "__type__": "cc.Size", 135 | "width": 960, 136 | "height": 640 137 | }, 138 | "_children": [], 139 | "_rotationX": 0, 140 | "_rotationY": 0, 141 | "_scaleX": 1, 142 | "_scaleY": 1, 143 | "_position": { 144 | "__type__": "cc.Vec2", 145 | "x": 0, 146 | "y": 0 147 | }, 148 | "_skewX": 0, 149 | "_skewY": 0, 150 | "_localZOrder": 0, 151 | "_globalZOrder": 0, 152 | "_ignoreAnchorPointForPosition": false, 153 | "_tag": -1, 154 | "_opacityModifyRGB": false, 155 | "_id": "e2e0crkOLxGrpMxpbC4iQg1", 156 | "_active": true, 157 | "_components": [ 158 | { 159 | "__id__": 4 160 | }, 161 | { 162 | "__id__": 5 163 | } 164 | ], 165 | "_prefab": null 166 | }, 167 | { 168 | "__type__": "cc.Widget", 169 | "_name": "", 170 | "_objFlags": 0, 171 | "node": { 172 | "__id__": 3 173 | }, 174 | "_enabled": true, 175 | "_alignFlags": 45, 176 | "_left": 0, 177 | "_right": 0, 178 | "_top": 0, 179 | "_bottom": 0, 180 | "_isAbsLeft": true, 181 | "_isAbsRight": true, 182 | "_isAbsTop": true, 183 | "_isAbsBottom": true, 184 | "_originalWidth": 200, 185 | "_originalHeight": 150 186 | }, 187 | { 188 | "__type__": "cc.Sprite", 189 | "_name": "", 190 | "_objFlags": 0, 191 | "node": { 192 | "__id__": 3 193 | }, 194 | "_enabled": true, 195 | "_spriteFrame": { 196 | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" 197 | }, 198 | "_type": 1, 199 | "_useOriginalSize": false, 200 | "_atlas": null 201 | }, 202 | { 203 | "__type__": "cc.Node", 204 | "_name": "cocos", 205 | "_objFlags": 0, 206 | "_opacity": 255, 207 | "_color": { 208 | "__type__": "cc.Color", 209 | "r": 255, 210 | "g": 255, 211 | "b": 255, 212 | "a": 255 213 | }, 214 | "_cascadeOpacityEnabled": true, 215 | "_parent": { 216 | "__id__": 2 217 | }, 218 | "_anchorPoint": { 219 | "__type__": "cc.Vec2", 220 | "x": 0.5, 221 | "y": 0.5 222 | }, 223 | "_contentSize": { 224 | "__type__": "cc.Size", 225 | "width": 195, 226 | "height": 270 227 | }, 228 | "_children": [], 229 | "_rotationX": 0, 230 | "_rotationY": 0, 231 | "_scaleX": 1, 232 | "_scaleY": 1, 233 | "_position": { 234 | "__type__": "cc.Vec2", 235 | "x": 0, 236 | "y": 50 237 | }, 238 | "_skewX": 0, 239 | "_skewY": 0, 240 | "_localZOrder": 0, 241 | "_globalZOrder": 0, 242 | "_ignoreAnchorPointForPosition": false, 243 | "_tag": -1, 244 | "_opacityModifyRGB": false, 245 | "_id": "c4f30YOS65G64U2TwufdJ+2", 246 | "_active": true, 247 | "_components": [ 248 | { 249 | "__id__": 7 250 | } 251 | ], 252 | "_prefab": null 253 | }, 254 | { 255 | "__type__": "cc.Sprite", 256 | "_name": "", 257 | "_objFlags": 0, 258 | "node": { 259 | "__id__": 6 260 | }, 261 | "_enabled": true, 262 | "_spriteFrame": { 263 | "__uuid__": "31bc895a-c003-4566-a9f3-2e54ae1c17dc" 264 | }, 265 | "_type": 0, 266 | "_useOriginalSize": true, 267 | "_atlas": null 268 | }, 269 | { 270 | "__type__": "cc.Node", 271 | "_name": "label", 272 | "_objFlags": 0, 273 | "_opacity": 255, 274 | "_color": { 275 | "__type__": "cc.Color", 276 | "r": 255, 277 | "g": 255, 278 | "b": 255, 279 | "a": 255 280 | }, 281 | "_cascadeOpacityEnabled": true, 282 | "_parent": { 283 | "__id__": 2 284 | }, 285 | "_anchorPoint": { 286 | "__type__": "cc.Vec2", 287 | "x": 0.5, 288 | "y": 0.5 289 | }, 290 | "_contentSize": { 291 | "__type__": "cc.Size", 292 | "width": 492, 293 | "height": 112 294 | }, 295 | "_children": [], 296 | "_rotationX": 0, 297 | "_rotationY": 0, 298 | "_scaleX": 1, 299 | "_scaleY": 1, 300 | "_position": { 301 | "__type__": "cc.Vec2", 302 | "x": 0, 303 | "y": -180 304 | }, 305 | "_skewX": 0, 306 | "_skewY": 0, 307 | "_localZOrder": 0, 308 | "_globalZOrder": 0, 309 | "_ignoreAnchorPointForPosition": false, 310 | "_tag": -1, 311 | "_opacityModifyRGB": false, 312 | "_id": "31f1bH7V69Ajr1iXhluMpTB", 313 | "_active": true, 314 | "_components": [ 315 | { 316 | "__id__": 9 317 | } 318 | ], 319 | "_prefab": null 320 | }, 321 | { 322 | "__type__": "cc.Label", 323 | "_name": "", 324 | "_objFlags": 0, 325 | "node": { 326 | "__id__": 8 327 | }, 328 | "_enabled": true, 329 | "_useOriginalSize": false, 330 | "_fontSize": 60, 331 | "_lineHeight": 60, 332 | "_enableWrapText": true, 333 | "_isSystemFontUsed": true, 334 | "_N$string": "Label", 335 | "_N$horizontalAlign": 1, 336 | "_N$verticalAlign": 1, 337 | "_N$overflow": 0 338 | }, 339 | { 340 | "__type__": "cc.Canvas", 341 | "_name": "", 342 | "_objFlags": 0, 343 | "node": { 344 | "__id__": 2 345 | }, 346 | "_enabled": true, 347 | "_designResolution": { 348 | "__type__": "cc.Size", 349 | "width": 960, 350 | "height": 640 351 | }, 352 | "_fitWidth": false, 353 | "_fitHeight": true 354 | }, 355 | { 356 | "__type__": "280c3rsZJJKnZ9RqbALVwtK", 357 | "_name": "", 358 | "_objFlags": 0, 359 | "node": { 360 | "__id__": 2 361 | }, 362 | "_enabled": true, 363 | "label": { 364 | "__id__": 9 365 | }, 366 | "text": "Hello, World!" 367 | } 368 | ] -------------------------------------------------------------------------------- /assets/Scene/helloworld.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Script.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/Boom.js: -------------------------------------------------------------------------------- 1 | // Learn cc.Class: 2 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html 3 | // - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html 4 | // Learn Attribute: 5 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html 6 | // - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html 7 | // Learn life-cycle callbacks: 8 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html 9 | // - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html 10 | 11 | cc.Class({ 12 | extends: cc.Component, 13 | 14 | properties: { 15 | // foo: { 16 | // // ATTRIBUTES: 17 | // default: null, // The default value will be used only when the component attaching 18 | // // to a node for the first time 19 | // type: cc.SpriteFrame, // optional, default is typeof default 20 | // serializable: true, // optional, default is true 21 | // }, 22 | // bar: { 23 | // get () { 24 | // return this._bar; 25 | // }, 26 | // set (value) { 27 | // this._bar = value; 28 | // } 29 | // }, 30 | }, 31 | 32 | // LIFE-CYCLE CALLBACKS: 33 | 34 | onLoad () { 35 | cc.log("xxxx") 36 | let animation = this.getComponent(cc.Animation); 37 | 38 | let animationStates = animation.play("small"); 39 | 40 | animationStates.repeatCount = Infinity 41 | 42 | }, 43 | 44 | start () { 45 | 46 | }, 47 | 48 | // update (dt) {}, 49 | }); 50 | -------------------------------------------------------------------------------- /assets/Script/Boom.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "f2aa0672-5936-47bd-8f17-eb979b13b2f0", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/Controller.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "f93dd738-7e7b-45fe-b1ec-c615f3b43216", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Script/Controller/GameManager.ts: -------------------------------------------------------------------------------- 1 | // Learn TypeScript: 2 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/typescript.html 3 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html 4 | // Learn Attribute: 5 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html 6 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html 7 | // Learn life-cycle callbacks: 8 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html 9 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html 10 | 11 | const {ccclass, property} = cc._decorator; 12 | import GameModel from "../Model/GameModel"; 13 | import GridView from "../View/GridView"; 14 | 15 | @ccclass 16 | export class GameManager extends cc.Component { 17 | 18 | @property(cc.Node) 19 | grid: cc.Node = null; 20 | // 21 | // @property({ 22 | // type: String, 23 | // visible: false 24 | // }) 25 | // private text: string = 'hello'; 26 | 27 | // LIFE-CYCLE CALLBACKS: 28 | 29 | private gameModel: GameModel = null; 30 | private gridScript: GridView = null; 31 | 32 | onLoad () { 33 | this.gameModel = new GameModel(); 34 | this.gameModel.init(5); //准备游戏模型 35 | 36 | this.gridScript = this.grid.getComponent("GridView"); 37 | this.gridScript.setController(this); 38 | this.gridScript.initWithCellModels(this.gameModel.getCells()); //在网格中初始化 39 | cc.sys.openURL("https://www.qq.com"); 40 | } 41 | 42 | start () { 43 | 44 | } 45 | 46 | // update (dt) {} 47 | 48 | } 49 | -------------------------------------------------------------------------------- /assets/Script/Controller/GameManager.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "1c08821c-300c-4ede-aa09-eb08d9193f4d", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/HelloWorld.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | label: { 6 | default: null, 7 | type: cc.Label 8 | }, 9 | // defaults, set visually when attaching this script to the Canvas 10 | text: 'Hello, World!' 11 | }, 12 | 13 | // use this for initialization 14 | onLoad: function () { 15 | this.label.string = this.text; 16 | }, 17 | 18 | // called every frame 19 | update: function (dt) { 20 | 21 | }, 22 | }); 23 | -------------------------------------------------------------------------------- /assets/Script/HelloWorld.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "280c3aec-6492-4a9d-9f51-a9b00b570b4a", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/Model.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "6679cb48-1adb-4705-9458-e49d58282946", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Script/Model/CellModel.ts: -------------------------------------------------------------------------------- 1 | import {CELL_TYPE, ANITIME, CELL_STATUS, GRID_ROW} from "./Constant"; 2 | 3 | export default class CellModel { 4 | type:number = null; 5 | status: string = CELL_STATUS.COMMON; 6 | x:number = 1; 7 | y:number = 1; 8 | startX:number = 1; 9 | startY:number = 1; 10 | cmd = []; 11 | isDeath:boolean = false; 12 | objecCount = Math.floor(Math.random() * 1000); 13 | 14 | init(type:number, x:number, y:number) { 15 | this.type = type; 16 | this.x = x; 17 | this.y = y; 18 | this.startX = x; 19 | this.startY = y; 20 | return this; 21 | } 22 | } -------------------------------------------------------------------------------- /assets/Script/Model/CellModel.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "41b119a7-b672-4e88-87a7-b6d4bbc19611", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/Model/Constant.ts: -------------------------------------------------------------------------------- 1 | 2 | export const CELL_TYPE = { 3 | EMPTY : 0, 4 | A : 1, 5 | B : 2, 6 | C : 3, 7 | D : 4, 8 | E : 5, 9 | F : 6, 10 | BIRD : 7 11 | } 12 | export const CELL_BASENUM = 6; 13 | export const CELL_STATUS = { 14 | COMMON: '0' , 15 | CLICK: "click", 16 | LINE: "line", 17 | COLUMN: "column", 18 | WRAP: "wrap", 19 | BIRD: "bird" 20 | } 21 | 22 | export const GRID_COLUMN = 9; 23 | export const GRID_ROW = 9; 24 | 25 | export const CELL_WIDTH = 70; 26 | export const CELL_HEIGHT = 70; 27 | 28 | export const GRID_PIXEL_WIDTH = GRID_COLUMN * CELL_WIDTH; 29 | export const GRID_PIXEL_HEIGHT = GRID_ROW * CELL_HEIGHT; 30 | 31 | 32 | // ******************** 时间表 animation time ************************** 33 | export const ANITIME = { 34 | TOUCH_MOVE: 0.3, 35 | DIE: 0.2, 36 | DOWN: 0.5, 37 | BOMB_DELAY: 0.3, 38 | BOMB_BIRD_DELAY: 0.7, 39 | DIE_SHAKE: 0.4 // 死前抖动 40 | } 41 | -------------------------------------------------------------------------------- /assets/Script/Model/Constant.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "886db344-0720-4080-b284-28bb2a348323", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/Model/GameModel.ts: -------------------------------------------------------------------------------- 1 | import CellModel from "./CellModel"; 2 | import {CELL_TYPE, CELL_BASENUM, CELL_STATUS, GRID_COLUMN, GRID_ROW, ANITIME} from "./Constant"; 3 | 4 | 5 | export default class GameModel { 6 | private cells = null; 7 | private cellBgs = null; 8 | private lastPos = cc.v2(-1, -1); 9 | private cellTypeNum = 5; 10 | private cellCreateType = []; // 生成种类只在这个数组里面查找 11 | 12 | init(cellTypeNum: number) { 13 | this.cells = []; 14 | this.setCellTypeNum(cellTypeNum || this.cellTypeNum); 15 | for (let y_row = 1; y_row <= GRID_ROW; y_row++) { 16 | this.cells[y_row] = []; 17 | for (let x_col = 1; x_col <= GRID_COLUMN; x_col++) { 18 | let c: CellModel = new CellModel(); 19 | this.cells[y_row][x_col] = c.init(1, x_col, y_row); 20 | // this.cells[x_col][y_row] = c; 21 | } 22 | } 23 | } 24 | 25 | // 设置种类 26 | setCellTypeNum(cellTypeNum: number) { 27 | this.cellTypeNum = cellTypeNum; 28 | this.cellCreateType = []; 29 | // cc.log(CELL_BASENUM) 30 | for (let i = 1; i < cellTypeNum; i++) { 31 | while (true) { 32 | let randomNum = Math.floor(Math.random() * CELL_BASENUM) + 1; 33 | if (this.cellCreateType.indexOf(randomNum) === -1) { 34 | this.cellCreateType.push(randomNum); 35 | break; 36 | } 37 | } 38 | } 39 | } 40 | 41 | getCells() { 42 | return this.cells; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /assets/Script/Model/GameModel.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "cf7e75a4-a543-4b0c-9ff4-7272efb8dd71", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/Utils.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "93e10007-af0b-4e14-9ace-dea51a69fac8", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Script/Utils/AudioUtils.ts: -------------------------------------------------------------------------------- 1 | // Learn TypeScript: 2 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/typescript.html 3 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html 4 | // Learn Attribute: 5 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html 6 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html 7 | // Learn life-cycle callbacks: 8 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html 9 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html 10 | 11 | const {ccclass, property} = cc._decorator; 12 | 13 | @ccclass 14 | export default class AudioUtils extends cc.Component { 15 | 16 | @property(cc.Label) 17 | label: cc.Label = null; 18 | 19 | @property 20 | text: string = 'hello'; 21 | 22 | // LIFE-CYCLE CALLBACKS: 23 | 24 | // onLoad () {} 25 | 26 | start () { 27 | 28 | } 29 | 30 | // update (dt) {} 31 | } 32 | -------------------------------------------------------------------------------- /assets/Script/Utils/AudioUtils.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "524330cf-5b31-4a8d-8819-30ae1f4970de", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/View.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "c34dfa80-c44c-4c79-aee7-d71b765204dc", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Script/View/CellView.ts: -------------------------------------------------------------------------------- 1 | // Learn TypeScript: 2 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/typescript.html 3 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html 4 | // Learn Attribute: 5 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html 6 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html 7 | // Learn life-cycle callbacks: 8 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html 9 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html 10 | 11 | import {CELL_HEIGHT, CELL_STATUS, CELL_WIDTH} from "../Model/Constant"; 12 | import CellModel from "../Model/CellModel"; 13 | 14 | const {ccclass, property} = cc._decorator; 15 | 16 | @ccclass 17 | export default class CellView extends cc.Component { 18 | 19 | @property(cc.Sprite) 20 | defaultFrame: cc.Sprite = null; 21 | 22 | private isSlect: boolean; 23 | 24 | private model: CellModel; 25 | 26 | // @property 27 | // text: string = 'hello'; 28 | 29 | // LIFE-CYCLE CALLBACKS: 30 | 31 | onLoad () { 32 | this.isSlect = false; 33 | } 34 | 35 | initWithModel(model: CellModel) { 36 | 37 | this.model = model; 38 | this.node.x = CELL_WIDTH * (this.model.startX - 0.5); 39 | this.node.y = CELL_HEIGHT * (this.model.startY - 0.5); 40 | let animation: cc.Animation = this.node.getComponent(cc.Animation); 41 | if (this.model.status === CELL_STATUS.COMMON) { 42 | animation.stop(); 43 | } else { 44 | animation.play(model.status); 45 | 46 | } 47 | 48 | 49 | } 50 | 51 | start () { 52 | 53 | } 54 | 55 | // update (dt) {} 56 | } 57 | -------------------------------------------------------------------------------- /assets/Script/View/CellView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "1fb51a1f-3c94-42b9-899c-3dba75e6904c", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/View/EffectLayer.ts: -------------------------------------------------------------------------------- 1 | // Learn TypeScript: 2 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/typescript.html 3 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html 4 | // Learn Attribute: 5 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html 6 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html 7 | // Learn life-cycle callbacks: 8 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html 9 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html 10 | 11 | const {ccclass, property} = cc._decorator; 12 | 13 | @ccclass 14 | export default class EffectLayer extends cc.Component { 15 | 16 | @property(cc.Label) 17 | label: cc.Label = null; 18 | 19 | @property 20 | text: string = 'hello'; 21 | 22 | // LIFE-CYCLE CALLBACKS: 23 | 24 | // onLoad () {} 25 | 26 | start () { 27 | 28 | } 29 | 30 | // update (dt) {} 31 | } 32 | -------------------------------------------------------------------------------- /assets/Script/View/EffectLayer.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "9f38f544-d1d4-4f19-92ee-9bbbc312feec", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Script/View/GridView.ts: -------------------------------------------------------------------------------- 1 | // Learn TypeScript: 2 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/typescript.html 3 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html 4 | // Learn Attribute: 5 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html 6 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html 7 | // Learn life-cycle callbacks: 8 | // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html 9 | // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html 10 | 11 | import CellModel from "../Model/CellModel"; 12 | import {GRID_ROW, GRID_COLUMN} from "../Model/Constant"; 13 | import AudioUtils from "../Utils/AudioUtils"; 14 | 15 | const {ccclass, property} = cc._decorator; 16 | 17 | @ccclass 18 | export default class GridView extends cc.Component { 19 | 20 | // @property(cc.Label) 21 | // label: cc.Label = null; 22 | // 23 | // @property 24 | // text: string = 'hello'; 25 | 26 | // LIFE-CYCLE CALLBACKS: 27 | 28 | @property([cc.Prefab]) 29 | private cellPrefabs: [cc.Prefab] = []; 30 | 31 | @property(cc.Node) 32 | private effectLayer: cc.Node = null; 33 | 34 | @property(AudioUtils) 35 | private audioUtils: AudioUtils = null; 36 | 37 | private controller; 38 | private cellViews; 39 | 40 | // onLoad () {} 41 | 42 | start() { 43 | 44 | } 45 | 46 | setController(controller) { 47 | this.controller = controller; 48 | } 49 | 50 | initWithCellModels(cellsModels: [CellModel][CellModel]) { 51 | // cc.log(cellsModels) 52 | this.cellViews = []; 53 | for (let y_row = 1; y_row <= GRID_ROW; y_row++) { 54 | this.cellViews[y_row] = []; 55 | for (let x_column = 1; x_column <= GRID_COLUMN; x_column++) { 56 | // if (cellsModels[i][j] !== undefined) { 57 | cc.log(x_column + " " + y_row) 58 | cc.log(cellsModels[y_row][x_column]) 59 | let type = cellsModels[y_row][x_column].type 60 | // } 61 | // let animationView = cc.instantiate(this.an) 62 | } 63 | 64 | } 65 | 66 | } 67 | 68 | 69 | // update (dt) {} 70 | } 71 | -------------------------------------------------------------------------------- /assets/Script/View/GridView.ts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "0483ec4e-9665-4a97-a2e4-c895d210020a", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/Texture.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Texture/HelloWorld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/assets/Texture/HelloWorld.png -------------------------------------------------------------------------------- /assets/Texture/HelloWorld.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "HelloWorld": { 10 | "ver": "1.0.3", 11 | "uuid": "31bc895a-c003-4566-a9f3-2e54ae1c17dc", 12 | "rawTextureUuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": 0, 17 | "offsetY": 0, 18 | "trimX": 0, 19 | "trimY": 0, 20 | "width": 195, 21 | "height": 270, 22 | "rawWidth": 195, 23 | "rawHeight": 270, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/Texture/boom.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "6e4e719c-89aa-4eb5-a771-7b53a1498da0", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/assets/Texture/boom/bsddbz_1.png -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_1.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "09479fc5-aa47-4da9-94c9-66dbeb4cbc71", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "bsddbz_1": { 10 | "ver": "1.0.3", 11 | "uuid": "eab60aa2-670e-4f28-baf2-b691875920f0", 12 | "rawTextureUuid": "09479fc5-aa47-4da9-94c9-66dbeb4cbc71", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": -2.5, 17 | "offsetY": 4, 18 | "trimX": 55, 19 | "trimY": 53, 20 | "width": 44, 21 | "height": 42, 22 | "rawWidth": 159, 23 | "rawHeight": 156, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/assets/Texture/boom/bsddbz_2.png -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_2.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "fcb2e8e7-213e-4f1e-a8b5-f80b48579dc1", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "bsddbz_2": { 10 | "ver": "1.0.3", 11 | "uuid": "de693d97-0ac1-4448-a663-385aaea651ab", 12 | "rawTextureUuid": "fcb2e8e7-213e-4f1e-a8b5-f80b48579dc1", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": 1, 17 | "offsetY": 9.5, 18 | "trimX": 17, 19 | "trimY": 5, 20 | "width": 127, 21 | "height": 127, 22 | "rawWidth": 159, 23 | "rawHeight": 156, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/assets/Texture/boom/bsddbz_3.png -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_3.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "6b28c53c-4583-4d26-9344-cf80941fcce4", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "bsddbz_3": { 10 | "ver": "1.0.3", 11 | "uuid": "885ca1b9-81ea-4df3-837f-9c088adb8e87", 12 | "rawTextureUuid": "6b28c53c-4583-4d26-9344-cf80941fcce4", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": 7, 17 | "offsetY": 6, 18 | "trimX": 14, 19 | "trimY": 8, 20 | "width": 145, 21 | "height": 128, 22 | "rawWidth": 159, 23 | "rawHeight": 156, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/assets/Texture/boom/bsddbz_4.png -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_4.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "6b6b9706-dec7-4f35-84ef-935990367a1d", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "bsddbz_4": { 10 | "ver": "1.0.3", 11 | "uuid": "c2e4aec8-0d03-4053-a626-8801ec6e0a4e", 12 | "rawTextureUuid": "6b6b9706-dec7-4f35-84ef-935990367a1d", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": 6, 17 | "offsetY": 0.5, 18 | "trimX": 13, 19 | "trimY": 16, 20 | "width": 145, 21 | "height": 123, 22 | "rawWidth": 159, 23 | "rawHeight": 156, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/assets/Texture/boom/bsddbz_5.png -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_5.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "63ea072a-1c2e-475c-acff-dcc6778018a6", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "bsddbz_5": { 10 | "ver": "1.0.3", 11 | "uuid": "43591ecc-b3d0-41ff-8696-1a6745d38935", 12 | "rawTextureUuid": "63ea072a-1c2e-475c-acff-dcc6778018a6", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": -4, 17 | "offsetY": 2, 18 | "trimX": 16, 19 | "trimY": 21, 20 | "width": 119, 21 | "height": 110, 22 | "rawWidth": 159, 23 | "rawHeight": 156, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/assets/Texture/boom/bsddbz_6.png -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_6.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "72db25ad-b628-4108-ae5c-cf52064c6d36", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "bsddbz_6": { 10 | "ver": "1.0.3", 11 | "uuid": "cafc2619-6cfa-4066-af0f-14098092f44c", 12 | "rawTextureUuid": "72db25ad-b628-4108-ae5c-cf52064c6d36", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": -1.5, 17 | "offsetY": 6, 18 | "trimX": 11, 19 | "trimY": 7, 20 | "width": 134, 21 | "height": 130, 22 | "rawWidth": 159, 23 | "rawHeight": 156, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/assets/Texture/boom/bsddbz_7.png -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_7.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "96f08f96-f3fb-41d0-8129-e98d34391668", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "bsddbz_7": { 10 | "ver": "1.0.3", 11 | "uuid": "6b0cac78-00dd-430c-8bad-e2b377851e4e", 12 | "rawTextureUuid": "96f08f96-f3fb-41d0-8129-e98d34391668", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": -1.5, 17 | "offsetY": 0, 18 | "trimX": 12, 19 | "trimY": 12, 20 | "width": 132, 21 | "height": 132, 22 | "rawWidth": 159, 23 | "rawHeight": 156, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/assets/Texture/boom/bsddbz_8.png -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_8.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "0173d7ee-2bc7-4e41-a15f-ae7f321d8747", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "bsddbz_8": { 10 | "ver": "1.0.3", 11 | "uuid": "32a42f7a-01f0-4127-8dad-51fa8e2770df", 12 | "rawTextureUuid": "0173d7ee-2bc7-4e41-a15f-ae7f321d8747", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": -1.5, 17 | "offsetY": 0.5, 18 | "trimX": 6, 19 | "trimY": 5, 20 | "width": 144, 21 | "height": 145, 22 | "rawWidth": 159, 23 | "rawHeight": 156, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/assets/Texture/boom/bsddbz_9.png -------------------------------------------------------------------------------- /assets/Texture/boom/bsddbz_9.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "94032cb6-3d94-4bc7-82ae-88ab86e80794", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "bsddbz_9": { 10 | "ver": "1.0.3", 11 | "uuid": "a0314ea0-482a-436e-a08c-7a9b099921e6", 12 | "rawTextureUuid": "94032cb6-3d94-4bc7-82ae-88ab86e80794", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": -1.5, 17 | "offsetY": 0, 18 | "trimX": 0, 19 | "trimY": 0, 20 | "width": 156, 21 | "height": 156, 22 | "rawWidth": 159, 23 | "rawHeight": 156, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/Texture/singleColor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/assets/Texture/singleColor.png -------------------------------------------------------------------------------- /assets/Texture/singleColor.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.2.0", 3 | "uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "subMetas": { 9 | "singleColor": { 10 | "ver": "1.0.3", 11 | "uuid": "410fb916-8721-4663-bab8-34397391ace7", 12 | "rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba", 13 | "trimType": "auto", 14 | "trimThreshold": 1, 15 | "rotated": false, 16 | "offsetX": 0, 17 | "offsetY": 0, 18 | "trimX": 0, 19 | "trimY": 0, 20 | "width": 2, 21 | "height": 2, 22 | "rawWidth": 2, 23 | "rawHeight": 2, 24 | "borderTop": 0, 25 | "borderBottom": 0, 26 | "borderLeft": 0, 27 | "borderRight": 0, 28 | "subMetas": {} 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /assets/animation.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "7656f5e2-bb20-4e5b-9ecc-057081bd3a0e", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/animation/small.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "small", 4 | "_objFlags": 0, 5 | "_native": "", 6 | "_duration": 0.6833333333333333, 7 | "sample": 60, 8 | "speed": 1, 9 | "wrapMode": 1, 10 | "curveData": { 11 | "comps": { 12 | "cc.Sprite": { 13 | "spriteFrame": [ 14 | { 15 | "frame": 0, 16 | "value": { 17 | "__uuid__": "eab60aa2-670e-4f28-baf2-b691875920f0" 18 | } 19 | }, 20 | { 21 | "frame": 0.08333333333333333, 22 | "value": { 23 | "__uuid__": "de693d97-0ac1-4448-a663-385aaea651ab" 24 | } 25 | }, 26 | { 27 | "frame": 0.16666666666666666, 28 | "value": { 29 | "__uuid__": "885ca1b9-81ea-4df3-837f-9c088adb8e87" 30 | } 31 | }, 32 | { 33 | "frame": 0.25, 34 | "value": { 35 | "__uuid__": "c2e4aec8-0d03-4053-a626-8801ec6e0a4e" 36 | } 37 | }, 38 | { 39 | "frame": 0.3333333333333333, 40 | "value": { 41 | "__uuid__": "43591ecc-b3d0-41ff-8696-1a6745d38935" 42 | } 43 | }, 44 | { 45 | "frame": 0.4166666666666667, 46 | "value": { 47 | "__uuid__": "cafc2619-6cfa-4066-af0f-14098092f44c" 48 | } 49 | }, 50 | { 51 | "frame": 0.5, 52 | "value": { 53 | "__uuid__": "6b0cac78-00dd-430c-8bad-e2b377851e4e" 54 | } 55 | }, 56 | { 57 | "frame": 0.5833333333333334, 58 | "value": { 59 | "__uuid__": "32a42f7a-01f0-4127-8dad-51fa8e2770df" 60 | } 61 | }, 62 | { 63 | "frame": 0.6666666666666666, 64 | "value": { 65 | "__uuid__": "a0314ea0-482a-436e-a08c-7a9b099921e6" 66 | } 67 | } 68 | ] 69 | } 70 | } 71 | }, 72 | "events": [] 73 | } -------------------------------------------------------------------------------- /assets/animation/small.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "f5d82014-d599-4c62-933b-efcb75a53db4", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /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": "cocos2d-html5", 3 | "packages": "packages" 4 | } -------------------------------------------------------------------------------- /settings/builder.json: -------------------------------------------------------------------------------- 1 | { 2 | "appKey": "", 3 | "appSecret": "", 4 | "encryptJs": true, 5 | "excludeScenes": [], 6 | "fb-instant-games": {}, 7 | "includeAnySDK": false, 8 | "includeSDKBox": false, 9 | "inlineSpriteFrames": true, 10 | "inlineSpriteFrames_native": true, 11 | "jailbreakPlatform": false, 12 | "md5Cache": false, 13 | "mergeStartScene": false, 14 | "oauthLoginServer": "", 15 | "optimizeHotUpdate": false, 16 | "orientation": { 17 | "landscapeLeft": true, 18 | "landscapeRight": true, 19 | "portrait": false, 20 | "upsideDown": false 21 | }, 22 | "packageName": "org.cocos2d.helloworld", 23 | "privateKey": "", 24 | "qqplay": { 25 | "REMOTE_SERVER_ROOT": "", 26 | "orientation": "portrait" 27 | }, 28 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49", 29 | "title": "hello_world", 30 | "webOrientation": "portrait", 31 | "wechatgame": { 32 | "REMOTE_SERVER_ROOT": "", 33 | "appid": "wx6ac3f5090a6b99c5", 34 | "isSubdomain": false, 35 | "orientation": "portrait", 36 | "subContext": "" 37 | }, 38 | "xxteaKey": "d225ed0e-0a7e-4b", 39 | "zipCompressJs": true 40 | } -------------------------------------------------------------------------------- /settings/builder.panel.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludeScenes": [], 3 | "packageName": "org.cocos2d.helloworld", 4 | "platform": "web-mobile", 5 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49", 6 | "title": "HelloWorld" 7 | } -------------------------------------------------------------------------------- /settings/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "collision-matrix": [ 3 | [ 4 | true 5 | ] 6 | ], 7 | "excluded-modules": [], 8 | "group-list": [ 9 | "default" 10 | ], 11 | "start-scene": "current", 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 | } -------------------------------------------------------------------------------- /template-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2fx0one/cocos-BottleWasher/ca6f17076bc5442d62bbc78ed9732323e6aa62fb/template-banner.png -------------------------------------------------------------------------------- /template.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TEMPLATES.helloworld.name", 3 | "desc": "TEMPLATES.helloworld.desc", 4 | "banner": "template-banner.png" 5 | } -------------------------------------------------------------------------------- /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 | } --------------------------------------------------------------------------------