├── project.json ├── readmepic ├── end.jpg ├── start.jpg ├── history.jpg ├── main_1.jpg └── main_2.jpg ├── assets ├── Texture │ ├── btnbg.png │ ├── shoot.png │ ├── HelloWorld.png │ ├── btnbgPress.png │ ├── singleColor.png │ ├── shoot_background.png │ ├── btnbg.png.meta │ ├── singleColor.png.meta │ ├── HelloWorld.png.meta │ ├── btnbgPress.png.meta │ ├── shoot.png.meta │ ├── shoot_background.png.meta │ ├── shoot_background.plist │ ├── shoot_background.plist.meta │ ├── shoot.plist │ └── shoot.plist.meta ├── sound │ ├── bullet.mp3 │ ├── button.mp3 │ ├── game_music.mp3 │ ├── game_over.mp3 │ ├── get_bomb.mp3 │ ├── out_porp.mp3 │ ├── use_bomb.mp3 │ ├── achievement.mp3 │ ├── enemy1_down.mp3 │ ├── enemy2_down.mp3 │ ├── enemy3_down.mp3 │ ├── get_double_laser.mp3 │ ├── big_spaceship_flying.mp3 │ ├── bullet.mp3.meta │ ├── button.mp3.meta │ ├── achievement.mp3.meta │ ├── enemy1_down.mp3.meta │ ├── enemy2_down.mp3.meta │ ├── enemy3_down.mp3.meta │ ├── game_music.mp3.meta │ ├── game_over.mp3.meta │ ├── get_bomb.mp3.meta │ ├── out_porp.mp3.meta │ ├── use_bomb.mp3.meta │ ├── get_double_laser.mp3.meta │ └── big_spaceship_flying.mp3.meta ├── animation │ ├── hero.anim.meta │ ├── enemy1ani.anim.meta │ ├── enemy2ani.anim.meta │ ├── enemy3ani.anim.meta │ ├── game_loading.anim.meta │ ├── hero_blowup_ani.anim.meta │ ├── hero.anim │ ├── enemy1ani.anim │ ├── enemy2ani.anim │ ├── hero_blowup_ani.anim │ ├── enemy3ani.anim │ └── game_loading.anim ├── prefab │ ├── bullet.prefab.meta │ ├── enemy1.prefab.meta │ ├── enemy2.prefab.meta │ ├── enemy3.prefab.meta │ ├── ufoBomb.prefab.meta │ ├── doubleLaser.prefab.meta │ ├── enemy1_no.prefab.meta │ ├── enemy1ani.prefab.meta │ ├── enemy2ani.prefab.meta │ ├── enemy3ani.prefab.meta │ ├── itemTemplate.prefab.meta │ ├── ufoBullet.prefab.meta │ ├── hero_blowup_ani.prefab.meta │ ├── enemy2ani.prefab │ ├── enemy1_no.prefab │ ├── enemy1ani.prefab │ ├── enemy3ani.prefab │ ├── hero_blowup_ani.prefab │ ├── ufoBomb.prefab │ ├── ufoBullet.prefab │ ├── doubleLaser.prefab │ ├── bullet.prefab │ ├── enemy2.prefab │ ├── enemy1.prefab │ ├── enemy3.prefab │ └── itemTemplate.prefab ├── Scene.meta ├── Script.meta ├── Texture.meta ├── prefab.meta ├── sound.meta ├── animation.meta ├── Script │ ├── bullet.js.meta │ ├── common.js.meta │ ├── end.js.meta │ ├── enemy.js.meta │ ├── globals.js.meta │ ├── hero.js.meta │ ├── main.js.meta │ ├── start.js.meta │ ├── ufo.js.meta │ ├── bulletGroup.js.meta │ ├── enemyGroup.js.meta │ ├── historyScore.js.meta │ ├── ufoGroup.js.meta │ ├── globals.js │ ├── scoreItemTemplate.js.meta │ ├── scoreItemTemplate.js │ ├── start.js │ ├── bullet.js │ ├── end.js │ ├── historyScore.js │ ├── ufo.js │ ├── ufoGroup.js │ ├── common.js │ ├── enemyGroup.js │ ├── hero.js │ ├── bulletGroup.js │ ├── enemy.js │ └── main.js └── Scene │ ├── end.fire.meta │ ├── main.fire.meta │ ├── start.fire.meta │ ├── historyScore.fire.meta │ ├── start.fire │ └── historyScore.fire ├── settings ├── builder.panel.json ├── builder.json └── project.json ├── jsconfig.json └── README.md /project.json: -------------------------------------------------------------------------------- 1 | { 2 | "engine": "cocos2d-html5", 3 | "packages": "packages" 4 | } -------------------------------------------------------------------------------- /readmepic/end.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/readmepic/end.jpg -------------------------------------------------------------------------------- /readmepic/start.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/readmepic/start.jpg -------------------------------------------------------------------------------- /readmepic/history.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/readmepic/history.jpg -------------------------------------------------------------------------------- /readmepic/main_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/readmepic/main_1.jpg -------------------------------------------------------------------------------- /readmepic/main_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/readmepic/main_2.jpg -------------------------------------------------------------------------------- /assets/Texture/btnbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/Texture/btnbg.png -------------------------------------------------------------------------------- /assets/Texture/shoot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/Texture/shoot.png -------------------------------------------------------------------------------- /assets/sound/bullet.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/bullet.mp3 -------------------------------------------------------------------------------- /assets/sound/button.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/button.mp3 -------------------------------------------------------------------------------- /assets/sound/game_music.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/game_music.mp3 -------------------------------------------------------------------------------- /assets/sound/game_over.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/game_over.mp3 -------------------------------------------------------------------------------- /assets/sound/get_bomb.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/get_bomb.mp3 -------------------------------------------------------------------------------- /assets/sound/out_porp.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/out_porp.mp3 -------------------------------------------------------------------------------- /assets/sound/use_bomb.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/use_bomb.mp3 -------------------------------------------------------------------------------- /assets/Texture/HelloWorld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/Texture/HelloWorld.png -------------------------------------------------------------------------------- /assets/Texture/btnbgPress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/Texture/btnbgPress.png -------------------------------------------------------------------------------- /assets/sound/achievement.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/achievement.mp3 -------------------------------------------------------------------------------- /assets/sound/enemy1_down.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/enemy1_down.mp3 -------------------------------------------------------------------------------- /assets/sound/enemy2_down.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/enemy2_down.mp3 -------------------------------------------------------------------------------- /assets/sound/enemy3_down.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/enemy3_down.mp3 -------------------------------------------------------------------------------- /assets/Texture/singleColor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/Texture/singleColor.png -------------------------------------------------------------------------------- /assets/sound/get_double_laser.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/get_double_laser.mp3 -------------------------------------------------------------------------------- /assets/Texture/shoot_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/Texture/shoot_background.png -------------------------------------------------------------------------------- /assets/sound/big_spaceship_flying.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/A123asdo11/aircraft_war/HEAD/assets/sound/big_spaceship_flying.mp3 -------------------------------------------------------------------------------- /assets/sound/bullet.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "20988b39-d238-4a2d-ae28-313e23e3274b", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound/button.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "d5991931-c727-4660-b88f-a374e2092735", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/animation/hero.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "3ac5e90c-7312-48c8-b8ae-cd1caa84190a", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/bullet.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "118d421e-4ff4-4fbe-9476-152d513c66d6", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/enemy1.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "14d358f9-685e-40fe-89e5-74f585572baf", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/enemy2.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "ebffb26c-cff1-4e57-93da-800b32f78b04", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/enemy3.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "2dc6d514-b864-4cf9-a91c-8b4de0254f43", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/ufoBomb.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "aae2e689-c280-45ab-9b3d-28d82176433b", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound/achievement.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "4557577f-fecf-400c-aae4-16cd328fdff8", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound/enemy1_down.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "4ab8fec8-46ee-4967-be57-ac7e60a4ff4d", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound/enemy2_down.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "ca72137e-5d38-403c-8450-7c7885307bd3", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound/enemy3_down.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "3168eee7-445c-43a8-bc5b-e8b080296087", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound/game_music.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "5fc919ae-6c65-4027-9f5a-b0e12ccdf9e0", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound/game_over.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "6a4a402d-1477-437b-8f40-f4f80d3c5352", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound/get_bomb.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "d73953e4-9d56-44b6-933d-63e52e9fcba8", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound/out_porp.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "52e4cb77-cca8-406b-977d-3adef4ccc757", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound/use_bomb.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "69c3fcf7-258a-4983-afd7-d8a77a9b96fb", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/animation/enemy1ani.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "17efd98c-890b-4c5a-90d5-ea8ebdcbd8b2", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/animation/enemy2ani.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "516f30f6-c1ea-4a01-878d-1812e625d0bd", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/animation/enemy3ani.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "5b769dce-9364-409d-8788-b246d24a807a", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/animation/game_loading.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "773c26bf-25ff-4c77-8a7c-00c98fcaab5d", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/doubleLaser.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "368b757f-23e0-4a59-8ff9-f9eb62b58ae7", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/enemy1_no.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "b2334c72-f116-4c4b-8d4e-fe32a2a236db", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/enemy1ani.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "b366fb3b-4b6d-4343-9856-62cd42699a7e", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/enemy2ani.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "8adb33e5-b9c1-416d-925e-5933e3d05244", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/enemy3ani.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "07f01ebd-1445-4dad-8220-abd0cbd7d66e", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/itemTemplate.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "ea4a8ff3-acbc-4992-b780-46cc5b831715", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab/ufoBullet.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "d173ec7c-2f7f-4cb2-a625-79e84979b6ba", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound/get_double_laser.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "3025f9c9-e499-410b-a139-71ace217bdad", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/Scene.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Texture.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/animation/hero_blowup_ani.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "d3a110e7-cbaa-49e7-bc4f-ab9899adf066", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "cbca491a-da60-437a-96b6-45ea5b712bb9", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/prefab/hero_blowup_ani.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "523f60af-c9ef-42fd-a0cb-04bc56790e30", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/sound.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "51233e69-9fe0-444e-993d-654d29389db0", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/sound/big_spaceship_flying.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "ab5378e2-67b4-4c26-bec2-f22323b4898c", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/animation.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "2ef44930-8e24-41bc-9509-173fd114d4e0", 4 | "isGroup": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/bullet.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "81be8d98-c12f-4bd4-b658-b9f5574ab08f", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/common.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "67917573-3201-46e0-b747-6ea8f0686918", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/end.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "c597baf8-922b-41fb-bb76-dad310065da4", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/enemy.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "14abe7bd-0a8c-42a1-b5a5-fe799e114bfc", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/globals.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "2db2295d-c356-4458-a014-521ab36e593b", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/hero.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "3f0cc1d4-79fc-4e2c-af7e-2b9ff3a76bf8", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/main.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "6afa0a61-17b7-4f91-aff3-959b45147a30", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/start.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "280c3aec-6492-4a9d-9f51-a9b00b570b4a", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/ufo.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "1e7a0cdf-22e2-40f8-a9fd-0c07d8e79e38", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/bulletGroup.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "3d2d9df3-7a04-4c79-aa1a-3c7c6e703327", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/enemyGroup.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "703ca35d-4890-4c1b-98f1-62f3c5c16bcf", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/historyScore.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "c11abad6-6403-4ed9-a559-484e1dc44bd6", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/ufoGroup.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "07c5835e-0105-442e-b3f7-2f64423b2ac0", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Script/globals.js: -------------------------------------------------------------------------------- 1 | // declare global variable "D" 2 | window.D = { 3 | // singletons 4 | common: null, //公共方法 5 | commonInfo: null, //定义的一些常量 6 | }; -------------------------------------------------------------------------------- /assets/Script/scoreItemTemplate.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.2", 3 | "uuid": "e7aaa8e9-1817-4001-a19a-522994e0c9c7", 4 | "isPlugin": false, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/Scene/end.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "f894eefe-bad7-43ed-8bd5-94cf2147d772", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Scene/main.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "54de3c84-52fa-4b60-937d-dc0d4cc5c0d5", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/Scene/start.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/Scene/historyScore.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "b2280733-4857-43c7-8f25-6f40c8ea5c6b", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /settings/builder.panel.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludeScenes": [], 3 | "packageName": "org.cocos2d.helloworld", 4 | "platform": "web-mobile", 5 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49", 6 | "title": "HelloWorld" 7 | } -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "module": "commonjs" 5 | }, 6 | "exclude": [ 7 | "node_modules", 8 | "library", 9 | "local", 10 | "settings", 11 | "temp" 12 | ] 13 | } -------------------------------------------------------------------------------- /settings/builder.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludeScenes": [], 3 | "includeAnysdk": false, 4 | "includeSdk": [ 5 | "anysdk" 6 | ], 7 | "orientation": { 8 | "landscapeLeft": false, 9 | "landscapeRight": false, 10 | "portrait": true, 11 | "upsideDown": false 12 | }, 13 | "packageName": "org.xxdafa.aircrafwar", 14 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49", 15 | "title": "AircraftWar", 16 | "webOrientation": "portrait" 17 | } -------------------------------------------------------------------------------- /assets/Script/scoreItemTemplate.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | itemScore: cc.Label, 6 | itemTime: cc.Label 7 | }, 8 | 9 | // use this for initialization 10 | onLoad: function () { 11 | 12 | }, 13 | init: function(data) { 14 | this.itemScore.string = '积分:' + data.score; 15 | this.itemTime.string = '时间:' + data.time; 16 | } 17 | 18 | // called every frame, uncomment this function to activate update callback 19 | // update: function (dt) { 20 | 21 | // }, 22 | }); 23 | -------------------------------------------------------------------------------- /assets/Script/start.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | game_loading: cc.Node 6 | }, 7 | 8 | // use this for initialization 9 | onLoad: function () { 10 | 11 | var gameloading = this.game_loading.getComponent(cc.Animation); 12 | gameloading.play(); 13 | cc.director.preloadScene('main'); 14 | }, 15 | 16 | //开始游戏 17 | startGame: function(){ 18 | cc.director.loadScene ('main',function(){ 19 | console.log('main is loaded'); 20 | }) 21 | }, 22 | // called every frame 23 | //update: function (dt) { 24 | //}, 25 | }); 26 | -------------------------------------------------------------------------------- /assets/animation/hero.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "hero", 4 | "_objFlags": 0, 5 | "_rawFiles": null, 6 | "_duration": 0.18333333333333332, 7 | "sample": 60, 8 | "speed": 1, 9 | "wrapMode": 2, 10 | "curveData": { 11 | "comps": { 12 | "cc.Sprite": { 13 | "spriteFrame": [ 14 | { 15 | "frame": 0, 16 | "value": { 17 | "__uuid__": "ccbb3308-e31b-4258-a3d6-a5537a42a99f" 18 | } 19 | }, 20 | { 21 | "frame": 0.16666666666666666, 22 | "value": { 23 | "__uuid__": "c12465aa-c3a1-4128-bc11-1ea23ca149ed" 24 | } 25 | } 26 | ] 27 | } 28 | } 29 | }, 30 | "events": [] 31 | } -------------------------------------------------------------------------------- /settings/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "collision-matrix": [ 3 | [ 4 | false, 5 | false, 6 | false, 7 | false, 8 | false 9 | ], 10 | [ 11 | false, 12 | false, 13 | true, 14 | false, 15 | false 16 | ], 17 | [ 18 | false, 19 | true, 20 | false, 21 | true, 22 | false 23 | ], 24 | [ 25 | false, 26 | false, 27 | true, 28 | false, 29 | true 30 | ], 31 | [ 32 | false, 33 | false, 34 | false, 35 | true, 36 | false 37 | ] 38 | ], 39 | "excluded-modules": [], 40 | "group-list": [ 41 | "default", 42 | "bullet", 43 | "enemy", 44 | "hero", 45 | "ufo" 46 | ], 47 | "start-scene": "current" 48 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # aircraft_war 2 | 该项目是模仿的微信经典飞机大战
3 | 用CocosCreator开发的。
4 | 应用了CC数据驱动的优势,让一些参数方便调整,道具更容易扩展
5 | 诸如:敌机的生成频率,速度,子弹的频率 速度,还可以很容易的增加子弹的种类,ufo的种类等
6 | 敌机 子弹 ufo等使用了对象池
7 | 历史分数纪录用到了本地存储
8 | 结构上自上而下的控制,main控制游戏主逻辑,暂停继续得分等
9 | main下有三个分组,敌机组 子弹组 ufo组,每个组又管理组员的生成逻辑 10 | ##起始页 11 | ![image](https://github.com/A123asdo11/aircraft_war/blob/master/readmepic/start.jpg)
12 | ##主游戏页面 13 | ![image](https://github.com/A123asdo11/aircraft_war/blob/master/readmepic/main_1.jpg)
14 | ![image](https://github.com/A123asdo11/aircraft_war/blob/master/readmepic/main_2.jpg)
15 | ##游戏结束页面 16 | ![image](https://github.com/A123asdo11/aircraft_war/blob/master/readmepic/end.jpg)
17 | ##历史分数页面 18 | ![image](https://github.com/A123asdo11/aircraft_war/blob/master/readmepic/history.jpg)
19 | 20 | -------------------------------------------------------------------------------- /assets/Texture/btnbg.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "1f9fa4a2-b58c-4f73-8ccb-3a7fbabafddc", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "btnbg": { 9 | "ver": "1.0.3", 10 | "uuid": "59b849cf-915d-40e7-bf98-dc10713ef61a", 11 | "rawTextureUuid": "1f9fa4a2-b58c-4f73-8ccb-3a7fbabafddc", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 1, 18 | "trimY": 1, 19 | "width": 98, 20 | "height": 38, 21 | "rawWidth": 100, 22 | "rawHeight": 40, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 17, 26 | "borderRight": 16, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/Texture/singleColor.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "singleColor": { 9 | "ver": "1.0.3", 10 | "uuid": "410fb916-8721-4663-bab8-34397391ace7", 11 | "rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 2, 20 | "height": 2, 21 | "rawWidth": 2, 22 | "rawHeight": 2, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/Texture/HelloWorld.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "HelloWorld": { 9 | "ver": "1.0.3", 10 | "uuid": "31bc895a-c003-4566-a9f3-2e54ae1c17dc", 11 | "rawTextureUuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 0, 18 | "trimY": 0, 19 | "width": 195, 20 | "height": 270, 21 | "rawWidth": 195, 22 | "rawHeight": 270, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/Texture/btnbgPress.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "7d941927-112c-4d6c-9ae1-084ecc7eb5fb", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "btnbgPress": { 9 | "ver": "1.0.3", 10 | "uuid": "43f3ffbe-ea8c-44ee-9337-3bccd5a8bdab", 11 | "rawTextureUuid": "7d941927-112c-4d6c-9ae1-084ecc7eb5fb", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": 0, 16 | "offsetY": 0, 17 | "trimX": 1, 18 | "trimY": 1, 19 | "width": 98, 20 | "height": 38, 21 | "rawWidth": 100, 22 | "rawHeight": 40, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 16, 26 | "borderRight": 16, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/Texture/shoot.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "shoot": { 9 | "ver": "1.0.3", 10 | "uuid": "410f8a7f-f98e-4e55-b690-14cee03df725", 11 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": -1.5, 16 | "offsetY": 179, 17 | "trimX": 2, 18 | "trimY": 2, 19 | "width": 1017, 20 | "height": 662, 21 | "rawWidth": 1024, 22 | "rawHeight": 1024, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/Texture/shoot_background.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.0", 3 | "uuid": "4e5b22eb-be6b-4c6a-9779-0ea81e8708b2", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "subMetas": { 8 | "shoot_background": { 9 | "ver": "1.0.3", 10 | "uuid": "0cfaed2a-d098-4dc6-9338-cf62b8e38318", 11 | "rawTextureUuid": "4e5b22eb-be6b-4c6a-9779-0ea81e8708b2", 12 | "trimType": "auto", 13 | "trimThreshold": 1, 14 | "rotated": false, 15 | "offsetX": -11.5, 16 | "offsetY": 2.5, 17 | "trimX": 2, 18 | "trimY": 2, 19 | "width": 485, 20 | "height": 2039, 21 | "rawWidth": 512, 22 | "rawHeight": 2048, 23 | "borderTop": 0, 24 | "borderBottom": 0, 25 | "borderLeft": 0, 26 | "borderRight": 0, 27 | "subMetas": {} 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /assets/Script/bullet.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | xSpeed: cc.Integer,//x轴速度 6 | ySpeed: cc.Integer,//y轴速度 7 | hpDrop: cc.Integer, //掉血 8 | 9 | }, 10 | 11 | // use this for initialization 12 | onLoad: function () { 13 | cc.director.getCollisionManager().enabled=true; 14 | }, 15 | 16 | //碰撞检测 17 | onCollisionEnter: function(other,self){ 18 | this.bulletGroup.bulletDied(self.node); 19 | }, 20 | // called every frame, uncomment this function to activate update callback 21 | update: function (dt) { 22 | if (this.bulletGroup.eState != D.commonInfo.gameState.start){ 23 | return ; 24 | } 25 | this.node.x += dt*this.xSpeed; 26 | this.node.y += dt*this.ySpeed; 27 | 28 | if ( this.node.y> this.node.parent.height){ 29 | this.bulletGroup.bulletDied(this.node); 30 | } 31 | }, 32 | 33 | }); 34 | -------------------------------------------------------------------------------- /assets/Script/end.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | topScore: cc.Label, 6 | currentScore: cc.Label 7 | }, 8 | 9 | // use this for initialization 10 | onLoad: function () { 11 | //读取最高分和这次的得分 12 | var _topScore = cc.sys.localStorage.getItem('topScore'); 13 | this.topScore.string = _topScore; 14 | var _currentScore = cc.sys.localStorage.getItem('currentScore'); 15 | this.currentScore.string = _currentScore; 16 | //历史得分 17 | cc.director.preloadScene('historyScore'); 18 | }, 19 | //游戏重新运行 20 | gameRestart: function(){ 21 | cc.director.loadScene('main'); 22 | //cc.director.resume(); 23 | }, 24 | // 退出游戏 25 | gameExit: function(){ 26 | cc.director.loadScene('start'); 27 | }, 28 | //历史得分 29 | gotoHistoryScore: function() { 30 | cc.director.loadScene('historyScore'); 31 | }, 32 | 33 | // called every frame, uncomment this function to activate update callback 34 | // update: function (dt) { 35 | 36 | // }, 37 | }); 38 | -------------------------------------------------------------------------------- /assets/animation/enemy1ani.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "enemy1ani", 4 | "_objFlags": 0, 5 | "_rawFiles": null, 6 | "_duration": 0.5166666666666667, 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__": "edbcc507-1257-499d-af25-b2016ea1d487" 18 | } 19 | }, 20 | { 21 | "frame": 0.16666666666666666, 22 | "value": { 23 | "__uuid__": "e4c3cf6c-513e-4b20-a449-f728eef0ee0b" 24 | } 25 | }, 26 | { 27 | "frame": 0.3333333333333333, 28 | "value": { 29 | "__uuid__": "652086ef-7f79-4230-8e02-5d854addaab2" 30 | } 31 | }, 32 | { 33 | "frame": 0.5, 34 | "value": { 35 | "__uuid__": "5fb87426-3d6f-42b0-a3ad-8d966b9a438f" 36 | } 37 | } 38 | ] 39 | } 40 | } 41 | }, 42 | "events": [] 43 | } -------------------------------------------------------------------------------- /assets/animation/enemy2ani.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "enemy2ani", 4 | "_objFlags": 0, 5 | "_rawFiles": null, 6 | "_duration": 0.5166666666666667, 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__": "2d114de7-5202-4b92-9d04-4cab45b3079f" 18 | } 19 | }, 20 | { 21 | "frame": 0.16666666666666666, 22 | "value": { 23 | "__uuid__": "dc6aa4ce-f260-49e6-ae20-19f0034c5f90" 24 | } 25 | }, 26 | { 27 | "frame": 0.3333333333333333, 28 | "value": { 29 | "__uuid__": "6b39ddfa-65a6-411b-a525-1caeba8acfb7" 30 | } 31 | }, 32 | { 33 | "frame": 0.5, 34 | "value": { 35 | "__uuid__": "e8748e52-d5c1-44e9-99b5-114792a66a4c" 36 | } 37 | } 38 | ] 39 | } 40 | } 41 | }, 42 | "events": [] 43 | } -------------------------------------------------------------------------------- /assets/animation/hero_blowup_ani.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "hero_blowup_ani", 4 | "_objFlags": 0, 5 | "_rawFiles": null, 6 | "_duration": 0.5166666666666667, 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__": "d6d68609-87fe-4443-b10e-dc10feae833a" 18 | } 19 | }, 20 | { 21 | "frame": 0.16666666666666666, 22 | "value": { 23 | "__uuid__": "bb54bdef-6d73-4ec6-bc16-9152c6a7ac41" 24 | } 25 | }, 26 | { 27 | "frame": 0.3333333333333333, 28 | "value": { 29 | "__uuid__": "413ff423-50cf-4348-9a28-fe4ee6c1ad37" 30 | } 31 | }, 32 | { 33 | "frame": 0.5, 34 | "value": { 35 | "__uuid__": "776dbf77-9943-43a7-bcc5-4855e177eca2" 36 | } 37 | } 38 | ] 39 | } 40 | } 41 | }, 42 | "events": [] 43 | } -------------------------------------------------------------------------------- /assets/Script/historyScore.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | itemPrefab: cc.Prefab, 6 | scrollContent: cc.Node, 7 | backGame: cc.Node 8 | }, 9 | 10 | // use this for initialization 11 | onLoad: function () { 12 | var infoData = JSON.parse(cc.sys.localStorage.getItem('score')); 13 | 14 | for (var i = 0; i < infoData.length; ++i) { 15 | 16 | var item = cc.instantiate(this.itemPrefab); 17 | 18 | var data = infoData[i]; 19 | 20 | this.scrollContent.addChild(item); 21 | 22 | item.getComponent('scoreItemTemplate').init({ 23 | 24 | score: data.score, 25 | time: data.time, 26 | 27 | }); 28 | } 29 | this.backGame.on('touchstart',this.backGameO,this); 30 | 31 | 32 | }, 33 | backGameO: function() { 34 | cc.director.loadScene('end'); 35 | } 36 | 37 | // called every frame, uncomment this function to activate update callback 38 | // update: function (dt) { 39 | 40 | // }, 41 | }); 42 | -------------------------------------------------------------------------------- /assets/animation/enemy3ani.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "enemy3ani", 4 | "_objFlags": 0, 5 | "_rawFiles": null, 6 | "_duration": 0.85, 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__": "5476395a-8bc5-4aa1-991a-60752acb9bfa" 18 | } 19 | }, 20 | { 21 | "frame": 0.16666666666666666, 22 | "value": { 23 | "__uuid__": "5476395a-8bc5-4aa1-991a-60752acb9bfa" 24 | } 25 | }, 26 | { 27 | "frame": 0.3333333333333333, 28 | "value": { 29 | "__uuid__": "a3eaf3c0-7da2-4a52-951f-317c7cb418e5" 30 | } 31 | }, 32 | { 33 | "frame": 0.5, 34 | "value": { 35 | "__uuid__": "cb4a5430-be95-4feb-b6ec-edcdaa814343" 36 | } 37 | }, 38 | { 39 | "frame": 0.6666666666666666, 40 | "value": { 41 | "__uuid__": "f3b7ba7b-d000-421b-b83f-0d5b4e656f44" 42 | } 43 | }, 44 | { 45 | "frame": 0.8333333333333334, 46 | "value": { 47 | "__uuid__": "de446ff8-25ca-4363-9139-bc11f4190a3a" 48 | } 49 | } 50 | ] 51 | } 52 | } 53 | }, 54 | "events": [] 55 | } -------------------------------------------------------------------------------- /assets/Script/ufo.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | xMinSpeed: { //x轴最小速度 6 | default:0, 7 | type:cc.Integer 8 | }, 9 | xMaxSpeed: {//x轴最大速度 10 | default:0, 11 | type:cc.Integer 12 | }, 13 | yMinSpeed: { 14 | default:0, 15 | type:cc.Integer 16 | },//y轴最小速度 17 | 18 | yMaxSpeed: { //y轴最大速度 19 | default:0, 20 | type:cc.Integer 21 | }, 22 | getUfoClip: cc.AudioClip, 23 | }, 24 | 25 | // use this for initialization 26 | onLoad: function () { 27 | cc.director.getCollisionManager().enabled=true; 28 | 29 | this.xSpeed = Math.random()*(this.xMaxSpeed-this.xMinSpeed) + this.xMinSpeed; 30 | this.ySpeed = cc.random0To1()*(this.yMaxSpeed-this.yMinSpeed) + this.yMinSpeed; 31 | this.ufoGroup = this.node.parent.getComponent('ufoGroup'); 32 | }, 33 | 34 | //碰撞检测 35 | onCollisionEnter: function(other,self){ 36 | this.node.destroy(); 37 | //D.game.ufoBomb(); 38 | cc.audioEngine.playEffect(this.getUfoClip, false); 39 | }, 40 | 41 | // called every frame, uncomment this function to activate update callback 42 | update: function (dt) { 43 | if (this.ufoGroup.eState != D.commonInfo.gameState.start){ 44 | return ; 45 | } 46 | this.node.x += dt*this.xSpeed; 47 | this.node.y += dt*this.ySpeed; 48 | //出屏幕后 49 | if (this.node.y < -this.node.parent.height/2){ 50 | this.ufoGroup.ufoDied(this.node); 51 | } 52 | }, 53 | }); 54 | -------------------------------------------------------------------------------- /assets/animation/game_loading.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "game_loading", 4 | "_objFlags": 0, 5 | "_rawFiles": null, 6 | "_duration": 1.8, 7 | "sample": 20, 8 | "speed": 1, 9 | "wrapMode": 2, 10 | "curveData": { 11 | "comps": { 12 | "cc.Sprite": { 13 | "spriteFrame": [ 14 | { 15 | "frame": 0, 16 | "value": { 17 | "__uuid__": "8d917615-d6b2-45f9-922e-0a51173bcb02" 18 | } 19 | }, 20 | { 21 | "frame": 0.5, 22 | "value": { 23 | "__uuid__": "10f90b01-34f0-4f8a-aabe-2b73e25aec2e" 24 | } 25 | }, 26 | { 27 | "frame": 1, 28 | "value": { 29 | "__uuid__": "52a3d043-c16d-416b-8574-01c8ac9ed923" 30 | } 31 | }, 32 | { 33 | "frame": 1.5, 34 | "value": { 35 | "__uuid__": "d8c4024c-a38d-431e-8694-271f243f5984" 36 | } 37 | }, 38 | { 39 | "frame": 1.75, 40 | "value": { 41 | "__uuid__": "d8c4024c-a38d-431e-8694-271f243f5984" 42 | } 43 | } 44 | ] 45 | } 46 | }, 47 | "props": { 48 | "x": [ 49 | { 50 | "frame": 0, 51 | "value": -96, 52 | "curve": "constant" 53 | }, 54 | { 55 | "frame": 0.5, 56 | "value": -48, 57 | "curve": "constant" 58 | }, 59 | { 60 | "frame": 1, 61 | "value": 0 62 | }, 63 | { 64 | "frame": 1.5, 65 | "value": 0 66 | } 67 | ] 68 | } 69 | }, 70 | "events": [] 71 | } -------------------------------------------------------------------------------- /assets/Script/ufoGroup.js: -------------------------------------------------------------------------------- 1 | 2 | //ufo组 3 | var ufoG = cc.Class({ 4 | name:'ufoG', 5 | properties: { 6 | name:'', 7 | freqTime:0, 8 | prefab:cc.Prefab, 9 | initPoolCount:0, 10 | minDelay:{ 11 | default:0, 12 | tooltip: '最小延迟', 13 | }, 14 | maxDelay:{ 15 | default:0, 16 | tooltip: '最大延迟', 17 | }, 18 | } 19 | }); 20 | 21 | cc.Class({ 22 | extends: cc.Component, 23 | 24 | properties: { 25 | ufoG: { 26 | default:[], 27 | type: ufoG 28 | }, 29 | }, 30 | 31 | // use this for initialization 32 | onLoad: function () { 33 | this.eState = D.commonInfo.gameState.none; 34 | //console.log(this.ufoG); 35 | D.common.batchInitObjPool(this,this.ufoG); 36 | 37 | }, 38 | startAction(){ 39 | // ufo 40 | this.eState = D.commonInfo.gameState.start; 41 | //定时生成敌机 42 | for (var ui=0; ui< this.ufoG.length; ++ui){ 43 | var freqTime = this.ufoG[ui].freqTime; 44 | var fName = 'callback_'+ui; 45 | this[fName] = function(e){ this.randNewUfo(this.ufoG[e]); }.bind(this, ui); 46 | this.schedule(this[fName], freqTime); 47 | } 48 | }, 49 | //随机时间生成敌机 50 | randNewUfo: function(ufoInfo){ 51 | var delay = Math.random()*(ufoInfo.maxDelay-ufoInfo.minDelay) + ufoInfo.minDelay; 52 | this.scheduleOnce(function(e) {this.getNewUfo(e);}.bind(this, ufoInfo), delay); 53 | }, 54 | //生成敌机 55 | getNewUfo: function(ufoInfo) { 56 | var poolName = ufoInfo.name + 'Pool'; 57 | var newNode = D.common.genNewNode(this[poolName],ufoInfo.prefab,this.node); 58 | var newV2 = this.getNewUfoPositon(newNode); 59 | newNode.setPosition(newV2); 60 | }, 61 | //敌机随机生成的位置 62 | getNewUfoPositon: function(newUfo) { 63 | //位于上方,先不可见 64 | var randx = cc.randomMinus1To1()*(this.node.parent.width/2-newUfo.width/2); 65 | var randy = this.node.parent.height/2+newUfo.height/2; 66 | return cc.v2(randx,randy); 67 | }, 68 | //重新开始 69 | resumeAction: function(){ 70 | this.enabled = true; 71 | this.eState = D.commonInfo.gameState.start; 72 | }, 73 | //暂停 74 | pauseAction: function(){ 75 | this.enabled = false; 76 | this.eState = D.commonInfo.gameState.pause; 77 | 78 | }, 79 | ufoDied: function(nodeinfo){ 80 | //回收节点 81 | D.common.backObjPool(this,nodeinfo); 82 | }, 83 | }); 84 | -------------------------------------------------------------------------------- /assets/Script/common.js: -------------------------------------------------------------------------------- 1 | var gameState = cc.Enum({ 2 | none: 0, 3 | start: 1, 4 | stop: 2, 5 | }); 6 | 7 | var common = cc.Class({ 8 | 9 | extends: cc.Component, 10 | 11 | properties: { 12 | 13 | }, 14 | statics: { 15 | gameState 16 | }, 17 | // use this for initialization 18 | onLoad: function () { 19 | D.commonInfo = common; 20 | D.common = this; 21 | }, 22 | //批量初始化对象池 23 | batchInitObjPool: function(thisO, objArray){ 24 | 25 | for(var i=0; i< objArray.length; i++) { 26 | var objinfo = objArray[i]; 27 | this.initObjPool(thisO, objinfo); 28 | } 29 | }, 30 | 31 | //初始化对象池 32 | initObjPool: function(thisO,objInfo){ 33 | 34 | var name = objInfo.name; 35 | var poolName = name+'Pool'; 36 | thisO[poolName] = new cc.NodePool(); 37 | 38 | let initPollCount = objInfo.initPollCount; 39 | 40 | for (let ii = 0; ii < initPollCount; ++ii) { 41 | let nodeO = cc.instantiate(objInfo.prefab); // 创建节点 42 | thisO[poolName].put(nodeO); // 通过 putInPool 接口放入对象池 43 | } 44 | }, 45 | 46 | //生成节点 47 | genNewNode: function(pool,prefab,nodeParent){ 48 | 49 | let newNode = null; 50 | if (pool.size() > 0) { // 通过 size 接口判断对象池中是否有空闲的对象 51 | newNode = pool.get(); 52 | } else { // 如果没有空闲对象,也就是对象池中备用对象不够时,我们就用 cc.instantiate 重新创建 53 | newNode = cc.instantiate(prefab); 54 | } 55 | nodeParent.addChild(newNode); 56 | return newNode; 57 | }, 58 | //放回对象池 59 | backObjPool: function(thisO,nodeinfo){ 60 | var poolName = nodeinfo.name + 'Pool'; 61 | thisO[poolName].put(nodeinfo); 62 | }, 63 | //时间格式化 64 | timeFmt: function (time,fmt) { //author: meizz 65 | var o = { 66 | "M+": time.getMonth() + 1, //月份 67 | "d+": time.getDate(), //日 68 | "h+": time.getHours(), //小时 69 | "m+": time.getMinutes(), //分 70 | "s+": time.getSeconds(), //秒 71 | "q+": Math.floor((time.getMonth() + 3) / 3), //季度 72 | "S": time.getMilliseconds() //毫秒 73 | }; 74 | if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (time.getFullYear() + "").substr(4 - RegExp.$1.length)); 75 | for (var k in o) 76 | if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); 77 | return fmt; 78 | }, 79 | 80 | }); 81 | -------------------------------------------------------------------------------- /assets/Script/enemyGroup.js: -------------------------------------------------------------------------------- 1 | 2 | //敌机组 3 | var enemyG = cc.Class({ 4 | name:'enemyG', 5 | properties: { 6 | name:'', 7 | freqTime:0, 8 | initPollCount:0, 9 | prefab:cc.Prefab 10 | } 11 | }); 12 | 13 | cc.Class({ 14 | extends: cc.Component, 15 | 16 | properties:()=>({ 17 | enemyG: { 18 | default:[], 19 | type: enemyG 20 | }, 21 | main: { 22 | default: null, 23 | type: require('main'), 24 | }, 25 | }), 26 | 27 | // use this for initialization 28 | onLoad: function () { 29 | //初始化敌机组 30 | this.eState = D.commonInfo.gameState.none; 31 | D.common.batchInitObjPool(this,this.enemyG); 32 | }, 33 | startAction: function(){ 34 | 35 | this.eState = D.commonInfo.gameState.start; 36 | //定时生成敌机 37 | for (var ei=0; ei< this.enemyG.length; ++ei){ 38 | var freqTime = this.enemyG[ei].freqTime; 39 | var fName = 'callback_'+ei; 40 | this[fName] = function(e){ this.getNewEnemy(this.enemyG[e]); }.bind(this, ei); 41 | this.schedule(this[fName], freqTime); 42 | } 43 | }, 44 | //重新开始 45 | resumeAction: function(){ 46 | this.enabled = true; 47 | this.eState = D.commonInfo.gameState.start; 48 | }, 49 | //暂停 50 | pauseAction: function(){ 51 | this.enabled = false; 52 | this.eState = D.commonInfo.gameState.pause; 53 | 54 | }, 55 | //生成敌机 56 | getNewEnemy: function(enemyInfo) { 57 | var poolName = enemyInfo.name + 'Pool'; 58 | var newNode = D.common.genNewNode(this[poolName],enemyInfo.prefab,this.node); 59 | var newV2 = this.getNewEnemyPositon(newNode); 60 | newNode.setPosition(newV2); 61 | newNode.getComponent('enemy').init(); 62 | }, 63 | //敌机随机生成的位置 64 | getNewEnemyPositon: function(newEnemy) { 65 | //位于上方,先不可见 66 | var randx = cc.randomMinus1To1()*(this.node.parent.width/2-newEnemy.width/2); 67 | var randy = this.node.parent.height/2+newEnemy.height/2; 68 | return cc.v2(randx,randy); 69 | }, 70 | enemyDied: function(nodeinfo,score){ 71 | //回收节点 72 | D.common.backObjPool(this,nodeinfo); 73 | //增加分数 74 | if (parseInt(score)>0){ 75 | this.main.gainScore(score); 76 | } 77 | }, 78 | getScore: function(){ 79 | return this.main.getScore(); 80 | }, 81 | // called every frame, uncomment this function to activate update callback 82 | //update: function (dt) { 83 | 84 | //}, 85 | 86 | }); 87 | -------------------------------------------------------------------------------- /assets/prefab/enemy2ani.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": "enemy2ani", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 69, 33 | "height": 93 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 0, 43 | "y": 0 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | } 60 | ], 61 | "_prefab": { 62 | "__id__": 4 63 | }, 64 | "groupIndex": 0 65 | }, 66 | { 67 | "__type__": "cc.Sprite", 68 | "_name": "", 69 | "_objFlags": 0, 70 | "node": { 71 | "__id__": 1 72 | }, 73 | "_enabled": true, 74 | "_spriteFrame": { 75 | "__uuid__": "2d114de7-5202-4b92-9d04-4cab45b3079f" 76 | }, 77 | "_type": 0, 78 | "_sizeMode": 1, 79 | "_fillType": 0, 80 | "_fillCenter": { 81 | "__type__": "cc.Vec2", 82 | "x": 0, 83 | "y": 0 84 | }, 85 | "_fillStart": 0, 86 | "_fillRange": 0, 87 | "_isTrimmedMode": true, 88 | "_srcBlendFactor": 770, 89 | "_dstBlendFactor": 771, 90 | "_atlas": { 91 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 92 | } 93 | }, 94 | { 95 | "__type__": "cc.Animation", 96 | "_name": "", 97 | "_objFlags": 0, 98 | "node": { 99 | "__id__": 1 100 | }, 101 | "_enabled": true, 102 | "_defaultClip": { 103 | "__uuid__": "516f30f6-c1ea-4a01-878d-1812e625d0bd" 104 | }, 105 | "_clips": [ 106 | { 107 | "__uuid__": "516f30f6-c1ea-4a01-878d-1812e625d0bd" 108 | } 109 | ], 110 | "playOnLoad": true 111 | }, 112 | { 113 | "__type__": "cc.PrefabInfo", 114 | "root": { 115 | "__id__": 1 116 | }, 117 | "asset": null, 118 | "fileId": "340ddPyZahHTIhs0hpxayFj" 119 | } 120 | ] -------------------------------------------------------------------------------- /assets/prefab/enemy1_no.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": "enemy1_no", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 51, 33 | "height": 39 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 0, 43 | "y": 0 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | } 60 | ], 61 | "_prefab": { 62 | "__id__": 4 63 | }, 64 | "groupIndex": 0 65 | }, 66 | { 67 | "__type__": "cc.Sprite", 68 | "_name": "", 69 | "_objFlags": 0, 70 | "node": { 71 | "__id__": 1 72 | }, 73 | "_enabled": true, 74 | "_spriteFrame": { 75 | "__uuid__": "88181abf-694c-4789-aaff-b5b0337f7748" 76 | }, 77 | "_type": 0, 78 | "_sizeMode": 1, 79 | "_fillType": 0, 80 | "_fillCenter": { 81 | "__type__": "cc.Vec2", 82 | "x": 0, 83 | "y": 0 84 | }, 85 | "_fillStart": 0, 86 | "_fillRange": 0, 87 | "_isTrimmedMode": true, 88 | "_srcBlendFactor": 770, 89 | "_dstBlendFactor": 771, 90 | "_atlas": { 91 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 92 | } 93 | }, 94 | { 95 | "__type__": "14abee9CoxCobWl/nmeEUv8", 96 | "_name": "", 97 | "_objFlags": 0, 98 | "node": { 99 | "__id__": 1 100 | }, 101 | "_enabled": true, 102 | "xMinSpeed": 0, 103 | "xMaxSpeed": 0, 104 | "yMinSpeed": 0, 105 | "yMaxSpeed": 0, 106 | "hP": 0, 107 | "score": 0, 108 | "aniPrefab": null, 109 | "main": null 110 | }, 111 | { 112 | "__type__": "cc.PrefabInfo", 113 | "root": { 114 | "__id__": 1 115 | }, 116 | "asset": { 117 | "__uuid__": "b2334c72-f116-4c4b-8d4e-fe32a2a236db" 118 | }, 119 | "fileId": "74ca8g+mKtM/bLta2tU7yxr" 120 | } 121 | ] -------------------------------------------------------------------------------- /assets/prefab/enemy1ani.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": "enemy1ani", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 51, 33 | "height": 39 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 0, 43 | "y": 0 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | } 60 | ], 61 | "_prefab": { 62 | "__id__": 4 63 | }, 64 | "groupIndex": 0 65 | }, 66 | { 67 | "__type__": "cc.Sprite", 68 | "_name": "", 69 | "_objFlags": 0, 70 | "node": { 71 | "__id__": 1 72 | }, 73 | "_enabled": true, 74 | "_spriteFrame": { 75 | "__uuid__": "edbcc507-1257-499d-af25-b2016ea1d487" 76 | }, 77 | "_type": 0, 78 | "_sizeMode": 1, 79 | "_fillType": 0, 80 | "_fillCenter": { 81 | "__type__": "cc.Vec2", 82 | "x": 0, 83 | "y": 0 84 | }, 85 | "_fillStart": 0, 86 | "_fillRange": 0, 87 | "_isTrimmedMode": true, 88 | "_srcBlendFactor": 770, 89 | "_dstBlendFactor": 771, 90 | "_atlas": { 91 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 92 | } 93 | }, 94 | { 95 | "__type__": "cc.Animation", 96 | "_name": "", 97 | "_objFlags": 0, 98 | "node": { 99 | "__id__": 1 100 | }, 101 | "_enabled": true, 102 | "_defaultClip": { 103 | "__uuid__": "17efd98c-890b-4c5a-90d5-ea8ebdcbd8b2" 104 | }, 105 | "_clips": [ 106 | { 107 | "__uuid__": "17efd98c-890b-4c5a-90d5-ea8ebdcbd8b2" 108 | } 109 | ], 110 | "playOnLoad": true 111 | }, 112 | { 113 | "__type__": "cc.PrefabInfo", 114 | "root": { 115 | "__id__": 1 116 | }, 117 | "asset": { 118 | "__uuid__": "b366fb3b-4b6d-4343-9856-62cd42699a7e" 119 | }, 120 | "fileId": "1b504j+q+NL7KqRtV4WJ+lq" 121 | } 122 | ] -------------------------------------------------------------------------------- /assets/prefab/enemy3ani.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": "enemy3_down1", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 165, 33 | "height": 255 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 0, 43 | "y": 0 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | } 60 | ], 61 | "_prefab": { 62 | "__id__": 4 63 | }, 64 | "groupIndex": 0 65 | }, 66 | { 67 | "__type__": "cc.Sprite", 68 | "_name": "", 69 | "_objFlags": 0, 70 | "node": { 71 | "__id__": 1 72 | }, 73 | "_enabled": true, 74 | "_spriteFrame": { 75 | "__uuid__": "5476395a-8bc5-4aa1-991a-60752acb9bfa" 76 | }, 77 | "_type": 0, 78 | "_sizeMode": 1, 79 | "_fillType": 0, 80 | "_fillCenter": { 81 | "__type__": "cc.Vec2", 82 | "x": 0, 83 | "y": 0 84 | }, 85 | "_fillStart": 0, 86 | "_fillRange": 0, 87 | "_isTrimmedMode": true, 88 | "_srcBlendFactor": 770, 89 | "_dstBlendFactor": 771, 90 | "_atlas": { 91 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 92 | } 93 | }, 94 | { 95 | "__type__": "cc.Animation", 96 | "_name": "", 97 | "_objFlags": 0, 98 | "node": { 99 | "__id__": 1 100 | }, 101 | "_enabled": true, 102 | "_defaultClip": { 103 | "__uuid__": "5b769dce-9364-409d-8788-b246d24a807a" 104 | }, 105 | "_clips": [ 106 | { 107 | "__uuid__": "5b769dce-9364-409d-8788-b246d24a807a" 108 | } 109 | ], 110 | "playOnLoad": true 111 | }, 112 | { 113 | "__type__": "cc.PrefabInfo", 114 | "root": { 115 | "__id__": 1 116 | }, 117 | "asset": { 118 | "__uuid__": "07f01ebd-1445-4dad-8220-abd0cbd7d66e" 119 | }, 120 | "fileId": "f84fdkacTdB1q5xPHPqf3BK" 121 | } 122 | ] -------------------------------------------------------------------------------- /assets/prefab/hero_blowup_ani.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": "hero_blowup_n1", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 98, 33 | "height": 124 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 0, 43 | "y": 0 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | } 60 | ], 61 | "_prefab": { 62 | "__id__": 4 63 | }, 64 | "groupIndex": 0 65 | }, 66 | { 67 | "__type__": "cc.Sprite", 68 | "_name": "", 69 | "_objFlags": 0, 70 | "node": { 71 | "__id__": 1 72 | }, 73 | "_enabled": true, 74 | "_spriteFrame": { 75 | "__uuid__": "d6d68609-87fe-4443-b10e-dc10feae833a" 76 | }, 77 | "_type": 0, 78 | "_sizeMode": 1, 79 | "_fillType": 0, 80 | "_fillCenter": { 81 | "__type__": "cc.Vec2", 82 | "x": 0, 83 | "y": 0 84 | }, 85 | "_fillStart": 0, 86 | "_fillRange": 0, 87 | "_isTrimmedMode": true, 88 | "_srcBlendFactor": 770, 89 | "_dstBlendFactor": 771, 90 | "_atlas": { 91 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 92 | } 93 | }, 94 | { 95 | "__type__": "cc.Animation", 96 | "_name": "", 97 | "_objFlags": 0, 98 | "node": { 99 | "__id__": 1 100 | }, 101 | "_enabled": true, 102 | "_defaultClip": { 103 | "__uuid__": "d3a110e7-cbaa-49e7-bc4f-ab9899adf066" 104 | }, 105 | "_clips": [ 106 | { 107 | "__uuid__": "d3a110e7-cbaa-49e7-bc4f-ab9899adf066" 108 | } 109 | ], 110 | "playOnLoad": true 111 | }, 112 | { 113 | "__type__": "cc.PrefabInfo", 114 | "root": { 115 | "__id__": 1 116 | }, 117 | "asset": { 118 | "__uuid__": "523f60af-c9ef-42fd-a0cb-04bc56790e30" 119 | }, 120 | "fileId": "233876d5FtC/ammJKTLqvXm" 121 | } 122 | ] -------------------------------------------------------------------------------- /assets/Script/hero.js: -------------------------------------------------------------------------------- 1 | 2 | cc.Class({ 3 | extends: cc.Component, 4 | 5 | properties:()=> ({ 6 | blowupani: { 7 | default: null, 8 | type:cc.Prefab, 9 | tooltip: '爆炸动画', 10 | }, 11 | 12 | gameOverClip: cc.AudioClip, 13 | main: { 14 | default: null, 15 | type: require('main'), 16 | }, 17 | bulletGroup: { 18 | default: null, 19 | type: require('bulletGroup'), 20 | } 21 | }), 22 | 23 | // use this for initialization 24 | onLoad: function () { 25 | this.eState = D.commonInfo.gameState.none; 26 | cc.director.getCollisionManager().enabled=true; 27 | this.onDrag(); 28 | 29 | }, 30 | 31 | //添加拖动监听 32 | onDrag: function(){ 33 | this.node.on('touchmove', this.dragMove, this); 34 | }, 35 | //去掉拖动监听 36 | offDrag: function(){ 37 | this.node.off('touchmove', this.dragMove, this); 38 | }, 39 | //拖动 40 | dragMove: function(event){ 41 | var locationv = event.getLocation(); 42 | var location = this.node.parent.convertToNodeSpaceAR(locationv); 43 | //飞机不移出屏幕 44 | var minX = -this.node.parent.width/2+this.node.width/2; 45 | var maxX = -minX; 46 | var minY = -this.node.parent.height/2+this.node.height/2; 47 | var maxY = -minY; 48 | if (location.x< minX){ 49 | location.x = minX; 50 | } 51 | if (location.x>maxX){ 52 | location.x = maxX; 53 | } 54 | if (location.y< minY){ 55 | location.y = minY; 56 | } 57 | if (location.y> maxY){ 58 | location.y = maxY; 59 | } 60 | this.node.setPosition(location); 61 | }, 62 | //碰撞监测 63 | onCollisionEnter: function(other,self) { 64 | if (other.node.group == 'ufo'){ 65 | if (other.node.name == 'ufoBullet'){ 66 | this.bulletGroup.changeBullet(other.node.name); 67 | } else if (other.node.name == 'ufoBomb'){ 68 | this.main.getUfoBomb(); 69 | } 70 | } else if (other.node.group == 'enemy'){ 71 | //播放动画 72 | var po = this.node.getPosition(); 73 | var blowup = cc.instantiate(this.blowupani); 74 | this.node.parent.addChild(blowup); 75 | blowup.setPosition(po); 76 | var animation = blowup.getComponent(cc.Animation); 77 | animation.on('finished', this.onFinished, blowup); 78 | //播放音效 79 | cc.audioEngine.playEffect(this.gameOverClip, false); 80 | //清除节点 81 | this.node.destroy(); 82 | //更新分数 83 | this.main.gameOver(); 84 | } else { 85 | return false; 86 | } 87 | 88 | }, 89 | 90 | onFinished: function(event) { //动画结束后 91 | this.destroy(); 92 | //cc.director.pause(); 93 | 94 | }, 95 | // called every frame, uncomment this function to activate update callback 96 | // update: function (dt) { 97 | 98 | // }, 99 | }); 100 | -------------------------------------------------------------------------------- /assets/prefab/ufoBomb.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": "ufoBomb", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 60, 33 | "height": 103 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 0, 43 | "y": 0 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | }, 60 | { 61 | "__id__": 4 62 | } 63 | ], 64 | "_prefab": { 65 | "__id__": 5 66 | }, 67 | "groupIndex": 4 68 | }, 69 | { 70 | "__type__": "cc.Sprite", 71 | "_name": "", 72 | "_objFlags": 0, 73 | "node": { 74 | "__id__": 1 75 | }, 76 | "_enabled": true, 77 | "_spriteFrame": { 78 | "__uuid__": "ffab0ce9-8f5e-4a0c-89fc-1e73a97bc0e5" 79 | }, 80 | "_type": 0, 81 | "_sizeMode": 1, 82 | "_fillType": 0, 83 | "_fillCenter": { 84 | "__type__": "cc.Vec2", 85 | "x": 0, 86 | "y": 0 87 | }, 88 | "_fillStart": 0, 89 | "_fillRange": 0, 90 | "_isTrimmedMode": true, 91 | "_srcBlendFactor": 770, 92 | "_dstBlendFactor": 771, 93 | "_atlas": { 94 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 95 | } 96 | }, 97 | { 98 | "__type__": "cc.BoxCollider", 99 | "_name": "", 100 | "_objFlags": 0, 101 | "node": { 102 | "__id__": 1 103 | }, 104 | "_enabled": true, 105 | "tag": 0, 106 | "_offset": { 107 | "__type__": "cc.Vec2", 108 | "x": 0.4, 109 | "y": 0 110 | }, 111 | "_size": { 112 | "__type__": "cc.Size", 113 | "width": 56.4, 114 | "height": 103.1 115 | } 116 | }, 117 | { 118 | "__type__": "1e7a0zfIuJA+Kn9DAfY5544", 119 | "_name": "", 120 | "_objFlags": 0, 121 | "node": { 122 | "__id__": 1 123 | }, 124 | "_enabled": true, 125 | "xMinSpeed": 0, 126 | "xMaxSpeed": 0, 127 | "yMinSpeed": -200, 128 | "yMaxSpeed": -200, 129 | "getUfoClip": { 130 | "__uuid__": "d73953e4-9d56-44b6-933d-63e52e9fcba8" 131 | } 132 | }, 133 | { 134 | "__type__": "cc.PrefabInfo", 135 | "root": { 136 | "__id__": 1 137 | }, 138 | "asset": { 139 | "__uuid__": "aae2e689-c280-45ab-9b3d-28d82176433b" 140 | }, 141 | "fileId": "3783aIesWlOSI6SS4eJG/Ek" 142 | } 143 | ] -------------------------------------------------------------------------------- /assets/prefab/ufoBullet.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": "ufoBullet", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 58, 33 | "height": 88 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 0, 43 | "y": 0 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | }, 60 | { 61 | "__id__": 4 62 | } 63 | ], 64 | "_prefab": { 65 | "__id__": 5 66 | }, 67 | "groupIndex": 4 68 | }, 69 | { 70 | "__type__": "cc.Sprite", 71 | "_name": "", 72 | "_objFlags": 0, 73 | "node": { 74 | "__id__": 1 75 | }, 76 | "_enabled": true, 77 | "_spriteFrame": { 78 | "__uuid__": "7a10badf-a3c7-4d5e-8380-7d669229aea4" 79 | }, 80 | "_type": 0, 81 | "_sizeMode": 1, 82 | "_fillType": 0, 83 | "_fillCenter": { 84 | "__type__": "cc.Vec2", 85 | "x": 0, 86 | "y": 0 87 | }, 88 | "_fillStart": 0, 89 | "_fillRange": 0, 90 | "_isTrimmedMode": true, 91 | "_srcBlendFactor": 770, 92 | "_dstBlendFactor": 771, 93 | "_atlas": { 94 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 95 | } 96 | }, 97 | { 98 | "__type__": "cc.BoxCollider", 99 | "_name": "", 100 | "_objFlags": 0, 101 | "node": { 102 | "__id__": 1 103 | }, 104 | "_enabled": true, 105 | "tag": 0, 106 | "_offset": { 107 | "__type__": "cc.Vec2", 108 | "x": 0.9, 109 | "y": 0.4 110 | }, 111 | "_size": { 112 | "__type__": "cc.Size", 113 | "width": 55.4, 114 | "height": 84.8 115 | } 116 | }, 117 | { 118 | "__type__": "1e7a0zfIuJA+Kn9DAfY5544", 119 | "_name": "", 120 | "_objFlags": 0, 121 | "node": { 122 | "__id__": 1 123 | }, 124 | "_enabled": true, 125 | "xMinSpeed": 0, 126 | "xMaxSpeed": 0, 127 | "yMinSpeed": -200, 128 | "yMaxSpeed": -200, 129 | "getUfoClip": { 130 | "__uuid__": "3025f9c9-e499-410b-a139-71ace217bdad" 131 | } 132 | }, 133 | { 134 | "__type__": "cc.PrefabInfo", 135 | "root": { 136 | "__id__": 1 137 | }, 138 | "asset": { 139 | "__uuid__": "d173ec7c-2f7f-4cb2-a625-79e84979b6ba" 140 | }, 141 | "fileId": "7d34dlF/ItAT7OxWiAHDBsz" 142 | } 143 | ] -------------------------------------------------------------------------------- /assets/prefab/doubleLaser.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": "doubleLaser", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 9, 33 | "height": 21 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 0, 43 | "y": 0 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | }, 60 | { 61 | "__id__": 4 62 | } 63 | ], 64 | "_prefab": { 65 | "__id__": 5 66 | }, 67 | "groupIndex": 1 68 | }, 69 | { 70 | "__type__": "cc.Sprite", 71 | "_name": "", 72 | "_objFlags": 0, 73 | "node": { 74 | "__id__": 1 75 | }, 76 | "_enabled": true, 77 | "_spriteFrame": { 78 | "__uuid__": "deace260-f255-436b-9672-d920111e0bed" 79 | }, 80 | "_type": 0, 81 | "_sizeMode": 1, 82 | "_fillType": 0, 83 | "_fillCenter": { 84 | "__type__": "cc.Vec2", 85 | "x": 0, 86 | "y": 0 87 | }, 88 | "_fillStart": 0, 89 | "_fillRange": 0, 90 | "_isTrimmedMode": true, 91 | "_srcBlendFactor": 770, 92 | "_dstBlendFactor": 771, 93 | "_atlas": { 94 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 95 | } 96 | }, 97 | { 98 | "__type__": "81be82YwS9L1LZYufVXSrCP", 99 | "_name": "", 100 | "_objFlags": 0, 101 | "node": { 102 | "__id__": 1 103 | }, 104 | "_enabled": true, 105 | "xSpeed": "0", 106 | "ySpeed": "1500", 107 | "hpDrop": "1" 108 | }, 109 | { 110 | "__type__": "cc.PolygonCollider", 111 | "_name": "", 112 | "_objFlags": 0, 113 | "node": { 114 | "__id__": 1 115 | }, 116 | "_enabled": true, 117 | "tag": 0, 118 | "_offset": { 119 | "__type__": "cc.Vec2", 120 | "x": 0, 121 | "y": 0 122 | }, 123 | "points": [ 124 | { 125 | "__type__": "cc.Vec2", 126 | "x": -1.08, 127 | "y": -10.47 128 | }, 129 | { 130 | "__type__": "cc.Vec2", 131 | "x": -4.57, 132 | "y": -5.88 133 | }, 134 | { 135 | "__type__": "cc.Vec2", 136 | "x": -4.44, 137 | "y": 6.77 138 | }, 139 | { 140 | "__type__": "cc.Vec2", 141 | "x": -1.18, 142 | "y": 10.47 143 | }, 144 | { 145 | "__type__": "cc.Vec2", 146 | "x": 1.9, 147 | "y": 10.51 148 | }, 149 | { 150 | "__type__": "cc.Vec2", 151 | "x": 4.48, 152 | "y": 5.83 153 | }, 154 | { 155 | "__type__": "cc.Vec2", 156 | "x": 4.57, 157 | "y": -6.15 158 | }, 159 | { 160 | "__type__": "cc.Vec2", 161 | "x": 1.28, 162 | "y": -10.5 163 | } 164 | ] 165 | }, 166 | { 167 | "__type__": "cc.PrefabInfo", 168 | "root": { 169 | "__id__": 1 170 | }, 171 | "asset": { 172 | "__uuid__": "368b757f-23e0-4a59-8ff9-f9eb62b58ae7" 173 | }, 174 | "fileId": "402433d8ZxEs7dtdBHn96Qb" 175 | } 176 | ] -------------------------------------------------------------------------------- /assets/prefab/bullet.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": "bullet", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 9, 33 | "height": 21 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 0, 43 | "y": 0 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | }, 60 | { 61 | "__id__": 4 62 | } 63 | ], 64 | "_prefab": { 65 | "__id__": 5 66 | }, 67 | "groupIndex": 1 68 | }, 69 | { 70 | "__type__": "cc.Sprite", 71 | "_name": "", 72 | "_objFlags": 0, 73 | "node": { 74 | "__id__": 1 75 | }, 76 | "_enabled": true, 77 | "_spriteFrame": { 78 | "__uuid__": "a39e0e8d-c932-4858-b7cf-c7eb56341d03" 79 | }, 80 | "_type": 0, 81 | "_sizeMode": 1, 82 | "_fillType": 0, 83 | "_fillCenter": { 84 | "__type__": "cc.Vec2", 85 | "x": 0, 86 | "y": 0 87 | }, 88 | "_fillStart": 0, 89 | "_fillRange": 0, 90 | "_isTrimmedMode": true, 91 | "_srcBlendFactor": 770, 92 | "_dstBlendFactor": 771, 93 | "_atlas": { 94 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 95 | } 96 | }, 97 | { 98 | "__type__": "81be82YwS9L1LZYufVXSrCP", 99 | "_name": "", 100 | "_objFlags": 0, 101 | "node": { 102 | "__id__": 1 103 | }, 104 | "_enabled": true, 105 | "xSpeed": "0", 106 | "ySpeed": "1500", 107 | "hpDrop": "1" 108 | }, 109 | { 110 | "__type__": "cc.PolygonCollider", 111 | "_name": "", 112 | "_objFlags": 0, 113 | "node": { 114 | "__id__": 1 115 | }, 116 | "_enabled": true, 117 | "tag": 0, 118 | "_offset": { 119 | "__type__": "cc.Vec2", 120 | "x": 0, 121 | "y": 0 122 | }, 123 | "points": [ 124 | { 125 | "__type__": "cc.Vec2", 126 | "x": -4.5, 127 | "y": -8.17 128 | }, 129 | { 130 | "__type__": "cc.Vec2", 131 | "x": -4.52, 132 | "y": 8.24 133 | }, 134 | { 135 | "__type__": "cc.Vec2", 136 | "x": -4.52, 137 | "y": 8.56 138 | }, 139 | { 140 | "__type__": "cc.Vec2", 141 | "x": -1.9, 142 | "y": 10.53 143 | }, 144 | { 145 | "__type__": "cc.Vec2", 146 | "x": 1.52, 147 | "y": 10.51 148 | }, 149 | { 150 | "__type__": "cc.Vec2", 151 | "x": 4.56, 152 | "y": 7.13 153 | }, 154 | { 155 | "__type__": "cc.Vec2", 156 | "x": 4.61, 157 | "y": -7.62 158 | }, 159 | { 160 | "__type__": "cc.Vec2", 161 | "x": 1.55, 162 | "y": -10.51 163 | }, 164 | { 165 | "__type__": "cc.Vec2", 166 | "x": -1.7, 167 | "y": -10.57 168 | } 169 | ] 170 | }, 171 | { 172 | "__type__": "cc.PrefabInfo", 173 | "root": { 174 | "__id__": 1 175 | }, 176 | "asset": { 177 | "__uuid__": "118d421e-4ff4-4fbe-9476-152d513c66d6" 178 | }, 179 | "fileId": "5578fAI15hCbJ12gl5b1hXn" 180 | } 181 | ] -------------------------------------------------------------------------------- /assets/Script/bulletGroup.js: -------------------------------------------------------------------------------- 1 | //子弹生成位置 2 | var bPosition = cc.Class({ 3 | name: 'bPosition', 4 | properties: { 5 | xAxis: { 6 | default:'', 7 | tooltip: '初始x轴,相对hero', 8 | }, 9 | yAxis: { 10 | default:'', 11 | tooltip: '初始y轴,相对hero' 12 | }, 13 | }, 14 | }); 15 | 16 | //不限时长子弹 17 | var bulletInfinite = cc.Class({ 18 | name:'bulletInfinite', 19 | properties: { 20 | name:'', 21 | freqTime:0, 22 | initPollCount:0, 23 | prefab:cc.Prefab, 24 | position: { 25 | default: [], 26 | type: bPosition, 27 | tooltip: '每次多少排子弹', 28 | } 29 | } 30 | }); 31 | 32 | //有限时长子弹组 33 | var bulletFiniteG = cc.Class({ 34 | name:'bulletFiniteG', 35 | extends:bulletInfinite, 36 | properties: { 37 | finiteTime:0, 38 | orginName:'', 39 | } 40 | }); 41 | 42 | cc.Class({ 43 | extends: cc.Component, 44 | 45 | properties:()=> ({ 46 | bulletInfinite: { 47 | default:null, 48 | type: bulletInfinite, 49 | tooltip:'无限时长子弹组' 50 | }, 51 | bulletFiniteG: { 52 | default:[], 53 | type: bulletFiniteG, 54 | tooltip:'有限时长子弹组' 55 | }, 56 | hero: cc.Node, 57 | }), 58 | 59 | // use this for initialization 60 | onLoad: function () { 61 | this.eState = D.commonInfo.gameState.none; 62 | //初始化无限子弹组 63 | D.common.initObjPool(this,this.bulletInfinite); 64 | //初始化🈶️限子弹组 65 | D.common.batchInitObjPool(this,this.bulletFiniteG); 66 | }, 67 | 68 | startAction: function(){ 69 | this.eState = D.commonInfo.gameState.start; 70 | //生成子弹 71 | this.getNewbullet(this.bulletInfinite); 72 | this.bICallback = function(){this.getNewbullet(this.bulletInfinite);}.bind(this); 73 | this.schedule(this.bICallback, this.bulletInfinite.freqTime); 74 | 75 | }, 76 | pauseAction: function(){ 77 | this.enabled = false; 78 | this.eState = D.commonInfo.gameState.pause; 79 | }, 80 | resumeAction: function(){ 81 | this.enabled = true; 82 | this.eState = D.commonInfo.gameState.start; 83 | }, 84 | //换子弹 85 | changeBullet: function(ufoBulletName){ 86 | this.unschedule(this.bICallback); 87 | this.unschedule(this.bFCallback); 88 | for (var bi=0; bi50000&&scores<=100000){ 80 | this.node.y += dt*this.ySpeed-0.5; 81 | } 82 | else if(scores>100000&&scores<=150000){ 83 | this.node.y += dt*this.ySpeed-1; 84 | } 85 | else if(scores>150000&&scores<=200000){ 86 | this.node.y += dt*this.ySpeed-1.5; 87 | } 88 | else if(scores>200000&&scores<=300000){ 89 | this.node.y += dt*this.ySpeed-2; 90 | } else{ 91 | this.node.y += dt*this.ySpeed-3; 92 | } 93 | this.node.x += dt*this.xSpeed; 94 | //出屏幕后 回收节点 95 | if (this.node.y < -this.node.parent.height/2){ 96 | this.enemyGroup.enemyDied(this.node,0); 97 | } 98 | }, 99 | //碰撞检测 100 | onCollisionEnter: function(other,self){ 101 | if (other.node.group != 'bullet'){ 102 | return ; 103 | } 104 | var bullet = other.node.getComponent('bullet'); 105 | 106 | if (this.hP>0){//防止再次碰撞 107 | this.hP -= bullet.hpDrop; 108 | } else { 109 | return ; 110 | } 111 | if (this.hP <= 0){ 112 | this.node.group = 'default'; //不让动画在执行碰撞 113 | //播放动画 114 | var anim = this.getComponent(cc.Animation); 115 | var animName = self.node.name + 'ani'; 116 | anim.play(animName); 117 | anim.on('finished', this.onFinished, this); 118 | //播放音效 119 | cc.audioEngine.playEffect(this.enemyDownClip, false); 120 | } 121 | }, 122 | //动画结束后 动画节点回收 123 | onFinished: function(event) { 124 | this.enemyGroup.enemyDied(this.node, this.score); 125 | }, 126 | 127 | }); 128 | -------------------------------------------------------------------------------- /assets/prefab/enemy2.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": "enemy2", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 69, 33 | "height": 89 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 0, 43 | "y": 0 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | }, 60 | { 61 | "__id__": 4 62 | }, 63 | { 64 | "__id__": 5 65 | } 66 | ], 67 | "_prefab": { 68 | "__id__": 6 69 | }, 70 | "groupIndex": 2 71 | }, 72 | { 73 | "__type__": "cc.Sprite", 74 | "_name": "", 75 | "_objFlags": 0, 76 | "node": { 77 | "__id__": 1 78 | }, 79 | "_enabled": true, 80 | "_spriteFrame": { 81 | "__uuid__": "7fb818d3-02f2-4d5f-823c-cef57f25f7fa" 82 | }, 83 | "_type": 0, 84 | "_sizeMode": 1, 85 | "_fillType": 0, 86 | "_fillCenter": { 87 | "__type__": "cc.Vec2", 88 | "x": 0, 89 | "y": 0 90 | }, 91 | "_fillStart": 0, 92 | "_fillRange": 0, 93 | "_isTrimmedMode": true, 94 | "_srcBlendFactor": 770, 95 | "_dstBlendFactor": 771, 96 | "_atlas": { 97 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 98 | } 99 | }, 100 | { 101 | "__type__": "14abee9CoxCobWl/nmeEUv8", 102 | "_name": "", 103 | "_objFlags": 0, 104 | "node": { 105 | "__id__": 1 106 | }, 107 | "_enabled": true, 108 | "xMinSpeed": 0, 109 | "xMaxSpeed": 0, 110 | "yMinSpeed": -50, 111 | "yMaxSpeed": -150, 112 | "initHP": 4, 113 | "initSpriteFrame": { 114 | "__uuid__": "7fb818d3-02f2-4d5f-823c-cef57f25f7fa" 115 | }, 116 | "score": 4000, 117 | "enemyDownClip": { 118 | "__uuid__": "ca72137e-5d38-403c-8450-7c7885307bd3" 119 | } 120 | }, 121 | { 122 | "__type__": "cc.PolygonCollider", 123 | "_name": "", 124 | "_objFlags": 0, 125 | "node": { 126 | "__id__": 1 127 | }, 128 | "_enabled": true, 129 | "tag": 0, 130 | "_offset": { 131 | "__type__": "cc.Vec2", 132 | "x": 0, 133 | "y": 0 134 | }, 135 | "points": [ 136 | { 137 | "__type__": "cc.Vec2", 138 | "x": -34.4, 139 | "y": -17.8 140 | }, 141 | { 142 | "__type__": "cc.Vec2", 143 | "x": -34.4, 144 | "y": 12.4 145 | }, 146 | { 147 | "__type__": "cc.Vec2", 148 | "x": -2.5, 149 | "y": 42.2 150 | }, 151 | { 152 | "__type__": "cc.Vec2", 153 | "x": 3, 154 | "y": 42 155 | }, 156 | { 157 | "__type__": "cc.Vec2", 158 | "x": 34.4, 159 | "y": 12.7 160 | }, 161 | { 162 | "__type__": "cc.Vec2", 163 | "x": 34.4, 164 | "y": -17 165 | }, 166 | { 167 | "__type__": "cc.Vec2", 168 | "x": 6.4, 169 | "y": -44.4 170 | }, 171 | { 172 | "__type__": "cc.Vec2", 173 | "x": -5.2, 174 | "y": -44.1 175 | } 176 | ] 177 | }, 178 | { 179 | "__type__": "cc.Animation", 180 | "_name": "", 181 | "_objFlags": 0, 182 | "node": { 183 | "__id__": 1 184 | }, 185 | "_enabled": true, 186 | "_defaultClip": null, 187 | "_clips": [ 188 | { 189 | "__uuid__": "516f30f6-c1ea-4a01-878d-1812e625d0bd" 190 | } 191 | ], 192 | "playOnLoad": false 193 | }, 194 | { 195 | "__type__": "cc.PrefabInfo", 196 | "root": { 197 | "__id__": 1 198 | }, 199 | "asset": { 200 | "__uuid__": "ebffb26c-cff1-4e57-93da-800b32f78b04" 201 | }, 202 | "fileId": "4cf932v2l9P1JznQgJBit92" 203 | } 204 | ] -------------------------------------------------------------------------------- /assets/prefab/enemy1.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": "enemy1", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 51, 33 | "height": 39 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 367, 43 | "y": 540 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | }, 60 | { 61 | "__id__": 4 62 | }, 63 | { 64 | "__id__": 5 65 | } 66 | ], 67 | "_prefab": { 68 | "__id__": 6 69 | }, 70 | "groupIndex": 2 71 | }, 72 | { 73 | "__type__": "cc.Sprite", 74 | "_name": "", 75 | "_objFlags": 0, 76 | "node": { 77 | "__id__": 1 78 | }, 79 | "_enabled": true, 80 | "_spriteFrame": { 81 | "__uuid__": "88181abf-694c-4789-aaff-b5b0337f7748" 82 | }, 83 | "_type": 1, 84 | "_sizeMode": 1, 85 | "_fillType": 0, 86 | "_fillCenter": { 87 | "__type__": "cc.Vec2", 88 | "x": 0, 89 | "y": 0 90 | }, 91 | "_fillStart": 0, 92 | "_fillRange": 0, 93 | "_isTrimmedMode": true, 94 | "_srcBlendFactor": 770, 95 | "_dstBlendFactor": 771, 96 | "_atlas": { 97 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 98 | } 99 | }, 100 | { 101 | "__type__": "cc.PolygonCollider", 102 | "_name": "", 103 | "_objFlags": 0, 104 | "node": { 105 | "__id__": 1 106 | }, 107 | "_enabled": true, 108 | "tag": 0, 109 | "_offset": { 110 | "__type__": "cc.Vec2", 111 | "x": 0, 112 | "y": 0 113 | }, 114 | "points": [ 115 | { 116 | "__type__": "cc.Vec2", 117 | "x": -23.7, 118 | "y": 3.7 119 | }, 120 | { 121 | "__type__": "cc.Vec2", 122 | "x": -22.2, 123 | "y": 8.6 124 | }, 125 | { 126 | "__type__": "cc.Vec2", 127 | "x": -12.4, 128 | "y": 18 129 | }, 130 | { 131 | "__type__": "cc.Vec2", 132 | "x": 12.2, 133 | "y": 18.2 134 | }, 135 | { 136 | "__type__": "cc.Vec2", 137 | "x": 21.6, 138 | "y": 10.1 139 | }, 140 | { 141 | "__type__": "cc.Vec2", 142 | "x": 26, 143 | "y": 5 144 | }, 145 | { 146 | "__type__": "cc.Vec2", 147 | "x": 14.5, 148 | "y": -7.9 149 | }, 150 | { 151 | "__type__": "cc.Vec2", 152 | "x": 5.3, 153 | "y": -16.4 154 | }, 155 | { 156 | "__type__": "cc.Vec2", 157 | "x": -2.8, 158 | "y": -16.5 159 | } 160 | ] 161 | }, 162 | { 163 | "__type__": "14abee9CoxCobWl/nmeEUv8", 164 | "_name": "", 165 | "_objFlags": 0, 166 | "node": { 167 | "__id__": 1 168 | }, 169 | "_enabled": true, 170 | "xMinSpeed": 0, 171 | "xMaxSpeed": 0, 172 | "yMinSpeed": -50, 173 | "yMaxSpeed": -200, 174 | "initHP": 1, 175 | "initSpriteFrame": { 176 | "__uuid__": "88181abf-694c-4789-aaff-b5b0337f7748" 177 | }, 178 | "score": 1000, 179 | "enemyDownClip": { 180 | "__uuid__": "4ab8fec8-46ee-4967-be57-ac7e60a4ff4d" 181 | } 182 | }, 183 | { 184 | "__type__": "cc.Animation", 185 | "_name": "", 186 | "_objFlags": 0, 187 | "node": { 188 | "__id__": 1 189 | }, 190 | "_enabled": true, 191 | "_defaultClip": null, 192 | "_clips": [ 193 | { 194 | "__uuid__": "17efd98c-890b-4c5a-90d5-ea8ebdcbd8b2" 195 | } 196 | ], 197 | "playOnLoad": false 198 | }, 199 | { 200 | "__type__": "cc.PrefabInfo", 201 | "root": { 202 | "__id__": 1 203 | }, 204 | "asset": { 205 | "__uuid__": "14d358f9-685e-40fe-89e5-74f585572baf" 206 | }, 207 | "fileId": "ca65dht/DpOm5QLc6LO8uf1" 208 | } 209 | ] -------------------------------------------------------------------------------- /assets/Texture/shoot_background.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | frames 6 | 7 | background.png 8 | 9 | frame 10 | {{2,856},{480,852}} 11 | offset 12 | {0,0} 13 | rotated 14 | 15 | sourceColorRect 16 | {{0,0},{480,852}} 17 | sourceSize 18 | {480,852} 19 | 20 | btn_finish.png 21 | 22 | frame 23 | {{2,1901},{140,48}} 24 | offset 25 | {0,0} 26 | rotated 27 | 28 | sourceColorRect 29 | {{5,0},{140,48}} 30 | sourceSize 31 | {150,48} 32 | 33 | game_loading1.png 34 | 35 | frame 36 | {{433,1710},{48,36}} 37 | offset 38 | {-69,0} 39 | rotated 40 | 41 | sourceColorRect 42 | {{0,1},{48,36}} 43 | sourceSize 44 | {186,38} 45 | 46 | game_loading2.png 47 | 48 | frame 49 | {{52,1901},{108,37}} 50 | offset 51 | {-35,0} 52 | rotated 53 | 54 | sourceColorRect 55 | {{4,0},{108,37}} 56 | sourceSize 57 | {186,37} 58 | 59 | game_loading3.png 60 | 61 | frame 62 | {{433,1748},{176,36}} 63 | offset 64 | {4,0} 65 | rotated 66 | 67 | sourceColorRect 68 | {{9,1},{176,36}} 69 | sourceSize 70 | {186,38} 71 | 72 | game_loading4.png 73 | 74 | frame 75 | {{484,2},{2,4}} 76 | offset 77 | {-51,-8} 78 | rotated 79 | 80 | sourceColorRect 81 | {{5,20},{2,4}} 82 | sourceSize 83 | {114,28} 84 | 85 | gameover.png 86 | 87 | frame 88 | {{2,2},{480,852}} 89 | offset 90 | {0,0} 91 | rotated 92 | 93 | sourceColorRect 94 | {{0,0},{480,852}} 95 | sourceSize 96 | {480,852} 97 | 98 | shoot_copyright.png 99 | 100 | frame 101 | {{2,1710},{429,189}} 102 | offset 103 | {-1,-15} 104 | rotated 105 | 106 | sourceColorRect 107 | {{5,33},{429,189}} 108 | sourceSize 109 | {441,225} 110 | 111 | 112 | metadata 113 | 114 | format 115 | 2 116 | realTextureFileName 117 | shoot_background.png 118 | size 119 | {512,2048} 120 | smartupdate 121 | $TexturePacker:SmartUpdate:a9ef8e0faf7f4b80e2bbef51fb847d9d$ 122 | textureFileName 123 | shoot_background.png 124 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /assets/prefab/enemy3.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": "enemy3", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 165, 33 | "height": 246 34 | }, 35 | "_children": [], 36 | "_rotationX": 0, 37 | "_rotationY": 0, 38 | "_scaleX": 1, 39 | "_scaleY": 1, 40 | "_position": { 41 | "__type__": "cc.Vec2", 42 | "x": 0, 43 | "y": 0 44 | }, 45 | "_skewX": 0, 46 | "_skewY": 0, 47 | "_localZOrder": 0, 48 | "_globalZOrder": 0, 49 | "_tag": -1, 50 | "_opacityModifyRGB": false, 51 | "_id": "", 52 | "_active": true, 53 | "_components": [ 54 | { 55 | "__id__": 2 56 | }, 57 | { 58 | "__id__": 3 59 | }, 60 | { 61 | "__id__": 4 62 | }, 63 | { 64 | "__id__": 5 65 | } 66 | ], 67 | "_prefab": { 68 | "__id__": 6 69 | }, 70 | "groupIndex": 2 71 | }, 72 | { 73 | "__type__": "cc.Sprite", 74 | "_name": "", 75 | "_objFlags": 0, 76 | "node": { 77 | "__id__": 1 78 | }, 79 | "_enabled": true, 80 | "_spriteFrame": { 81 | "__uuid__": "4c993fe7-1278-42a8-985a-7e69688be01c" 82 | }, 83 | "_type": 0, 84 | "_sizeMode": 1, 85 | "_fillType": 0, 86 | "_fillCenter": { 87 | "__type__": "cc.Vec2", 88 | "x": 0, 89 | "y": 0 90 | }, 91 | "_fillStart": 0, 92 | "_fillRange": 0, 93 | "_isTrimmedMode": true, 94 | "_srcBlendFactor": 770, 95 | "_dstBlendFactor": 771, 96 | "_atlas": { 97 | "__uuid__": "ebb25974-78f8-469f-a4b8-bac08387f220" 98 | } 99 | }, 100 | { 101 | "__type__": "14abee9CoxCobWl/nmeEUv8", 102 | "_name": "", 103 | "_objFlags": 0, 104 | "node": { 105 | "__id__": 1 106 | }, 107 | "_enabled": true, 108 | "scoreDisplay": null, 109 | "xMinSpeed": 0, 110 | "xMaxSpeed": 0, 111 | "yMinSpeed": -50, 112 | "yMaxSpeed": -50, 113 | "initHP": 16, 114 | "initSpriteFrame": { 115 | "__uuid__": "4c993fe7-1278-42a8-985a-7e69688be01c" 116 | }, 117 | "score": 16000, 118 | "enemyDownClip": { 119 | "__uuid__": "3168eee7-445c-43a8-bc5b-e8b080296087" 120 | } 121 | }, 122 | { 123 | "__type__": "cc.PolygonCollider", 124 | "_name": "", 125 | "_objFlags": 0, 126 | "node": { 127 | "__id__": 1 128 | }, 129 | "_enabled": true, 130 | "tag": 0, 131 | "_offset": { 132 | "__type__": "cc.Vec2", 133 | "x": 0, 134 | "y": 0 135 | }, 136 | "points": [ 137 | { 138 | "__type__": "cc.Vec2", 139 | "x": -69, 140 | "y": -47 141 | }, 142 | { 143 | "__type__": "cc.Vec2", 144 | "x": -68, 145 | "y": 121 146 | }, 147 | { 148 | "__type__": "cc.Vec2", 149 | "x": 67.2, 150 | "y": 121 151 | }, 152 | { 153 | "__type__": "cc.Vec2", 154 | "x": 66.3, 155 | "y": -45.5 156 | }, 157 | { 158 | "__type__": "cc.Vec2", 159 | "x": 82.3, 160 | "y": -63.9 161 | }, 162 | { 163 | "__type__": "cc.Vec2", 164 | "x": 82.4, 165 | "y": -74.6 166 | }, 167 | { 168 | "__type__": "cc.Vec2", 169 | "x": 39.8, 170 | "y": -117.2 171 | }, 172 | { 173 | "__type__": "cc.Vec2", 174 | "x": 23.3, 175 | "y": -117 176 | }, 177 | { 178 | "__type__": "cc.Vec2", 179 | "x": 16.2, 180 | "y": -108.9 181 | }, 182 | { 183 | "__type__": "cc.Vec2", 184 | "x": -14.2, 185 | "y": -109.5 186 | }, 187 | { 188 | "__type__": "cc.Vec2", 189 | "x": -20, 190 | "y": -116 191 | }, 192 | { 193 | "__type__": "cc.Vec2", 194 | "x": -40, 195 | "y": -117 196 | }, 197 | { 198 | "__type__": "cc.Vec2", 199 | "x": -85, 200 | "y": -70 201 | } 202 | ] 203 | }, 204 | { 205 | "__type__": "cc.Animation", 206 | "_name": "", 207 | "_objFlags": 0, 208 | "node": { 209 | "__id__": 1 210 | }, 211 | "_enabled": true, 212 | "_defaultClip": null, 213 | "_clips": [ 214 | { 215 | "__uuid__": "5b769dce-9364-409d-8788-b246d24a807a" 216 | } 217 | ], 218 | "playOnLoad": false 219 | }, 220 | { 221 | "__type__": "cc.PrefabInfo", 222 | "root": { 223 | "__id__": 1 224 | }, 225 | "asset": { 226 | "__uuid__": "2dc6d514-b864-4cf9-a91c-8b4de0254f43" 227 | }, 228 | "fileId": "3fd73RfifJL0Y8+fB4/bB76" 229 | } 230 | ] -------------------------------------------------------------------------------- /assets/Script/main.js: -------------------------------------------------------------------------------- 1 | 2 | cc.Class({ 3 | 4 | extends: cc.Component, 5 | 6 | properties:()=>({ 7 | pause: cc.Button, 8 | btnSprite: { 9 | default: [], 10 | type: cc.SpriteFrame, 11 | tooltip:'暂停按钮不同状态的图片', 12 | }, 13 | bomb: cc.Node, 14 | gameMusic: { 15 | default: null, 16 | type: cc.AudioSource 17 | }, 18 | useBombClip: cc.AudioClip, 19 | enemyGroup: { 20 | default: null, 21 | type: require('enemyGroup'), 22 | }, 23 | hero: { 24 | default: null, 25 | type: require('hero'), 26 | }, 27 | ufoGroup: { 28 | default: null, 29 | type: require('ufoGroup'), 30 | }, 31 | bulletGroup: { 32 | default: null, 33 | type: require('bulletGroup'), 34 | }, 35 | scoreDisplay:cc.Label, 36 | bombNoDisplay:cc.Label, 37 | }), 38 | 39 | // use this for initialization 40 | onLoad: function () { 41 | 42 | this.score = 0; 43 | this.bombNo = 0; 44 | this.scoreDisplay.string = this.score; 45 | this.bombNoDisplay.string = this.bombNo; 46 | this.eState = D.commonInfo.gameState.start; 47 | 48 | this.enemyGroup.startAction(); 49 | this.bulletGroup.startAction(); 50 | this.ufoGroup.startAction(); 51 | this.bomb.on('touchstart',this.bombOnclick,this); 52 | this.gameMusic.play(); 53 | }, 54 | 55 | bombOnclick: function(){ 56 | var bombNoLabel = this.bomb.getChildByName('bombNo').getComponent(cc.Label); 57 | var bombNo = parseInt(bombNoLabel.string); 58 | 59 | if (bombNo>0){ 60 | bombNoLabel.string = bombNo-1; 61 | this.removeEnemy(); 62 | cc.audioEngine.playEffect(this.useBombClip, false); 63 | } else { 64 | console.log('没有子弹'); 65 | } 66 | }, 67 | // called every frame, uncomment this function to activate update callback 68 | //update: function (dt) { 69 | 70 | //}, 71 | 72 | //暂停按钮点击事件 73 | pauseClick: function () {//暂停 继续 74 | 75 | if(this.eState == D.commonInfo.gameState.pause){ 76 | this.resumeAction(); 77 | this.eState = D.commonInfo.gameState.start; 78 | } else if(this.eState == D.commonInfo.gameState.start) { 79 | this.pauseAction(); 80 | this.eState = D.commonInfo.gameState.pause; 81 | } 82 | }, 83 | //游戏继续 84 | resumeAction: function(){ 85 | this.enemyGroup.resumeAction(); 86 | this.bulletGroup.resumeAction(); 87 | this.ufoGroup.resumeAction(); 88 | this.hero.onDrag(); 89 | this.gameMusic.resume(); 90 | this.pause.normalSprite = this.btnSprite[0]; 91 | this.pause.pressedSprite = this.btnSprite[1]; 92 | this.pause.hoverSprite = this.btnSprite[1]; 93 | }, 94 | //游戏暂停 95 | pauseAction: function(){ 96 | this.enemyGroup.pauseAction(); 97 | this.bulletGroup.pauseAction(); 98 | this.hero.offDrag(); 99 | this.gameMusic.pause(); 100 | this.ufoGroup.pauseAction(); 101 | this.pause.normalSprite = this.btnSprite[2]; 102 | this.pause.pressedSprite = this.btnSprite[3]; 103 | this.pause.hoverSprite = this.btnSprite[3]; 104 | 105 | }, 106 | //增加分数 107 | gainScore: function (scoreno) { 108 | this.score += scoreno; 109 | //更新 scoreDisplay Label 的文字 110 | this.scoreDisplay.string = this.score.toString(); 111 | }, 112 | //get分数 113 | getScore: function(){ 114 | return parseInt(this.scoreDisplay.string); 115 | }, 116 | //分数写到本地( 当前分 最高分 历史记录) 117 | updateScore: function() { 118 | var currentScore = this.scoreDisplay.string; 119 | var scoreData = { 120 | 'score':currentScore, 121 | 'time': D.common.timeFmt(new Date(),'yyyy-MM-dd hh:mm:ss'), 122 | }; 123 | var preData = cc.sys.localStorage.getItem('score'); 124 | var preTopScore = cc.sys.localStorage.getItem('topScore'); 125 | if (!preTopScore || parseInt(preTopScore) < parseInt(currentScore)){ 126 | cc.sys.localStorage.setItem('topScore', currentScore); 127 | } 128 | if(!preData){ 129 | preData = []; 130 | preData.unshift(scoreData); 131 | 132 | } else { 133 | preData = JSON.parse(preData); 134 | if (!(preData instanceof Array)){ 135 | preData = []; 136 | } 137 | preData.unshift(scoreData); 138 | } 139 | cc.sys.localStorage.setItem('currentScore', currentScore); 140 | cc.sys.localStorage.setItem('score', JSON.stringify(preData)); 141 | }, 142 | //炸弹清除敌机 143 | removeEnemy: function() { 144 | this.enemyGroup.node.removeAllChildren(); 145 | }, 146 | //接到炸弹 147 | getUfoBomb: function() { 148 | if (parseInt(this.bombNoDisplay.string)<3){//多于三个炸弹就不累加 149 | this.bombNoDisplay.string += 1; 150 | } 151 | }, 152 | //游戏结束 153 | gameOver: function(){ 154 | this.pauseAction(); 155 | this.updateScore(); 156 | cc.director.loadScene('end'); 157 | }, 158 | }); 159 | -------------------------------------------------------------------------------- /assets/Texture/shoot_background.plist.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.4", 3 | "uuid": "52b6bc4e-b6e1-4b65-8636-c2c1275b59f8", 4 | "rawTextureUuid": "4e5b22eb-be6b-4c6a-9779-0ea81e8708b2", 5 | "size": { 6 | "width": 512, 7 | "height": 2048 8 | }, 9 | "type": "Texture Packer", 10 | "subMetas": { 11 | "background.png": { 12 | "ver": "1.0.3", 13 | "uuid": "21ab00d1-178a-4ac2-ba2a-032f0f8bbe7b", 14 | "rawTextureUuid": "4e5b22eb-be6b-4c6a-9779-0ea81e8708b2", 15 | "trimType": "auto", 16 | "trimThreshold": 1, 17 | "rotated": false, 18 | "offsetX": 0, 19 | "offsetY": 0, 20 | "trimX": 2, 21 | "trimY": 856, 22 | "width": 480, 23 | "height": 852, 24 | "rawWidth": 480, 25 | "rawHeight": 852, 26 | "borderTop": 0, 27 | "borderBottom": 0, 28 | "borderLeft": 0, 29 | "borderRight": 0, 30 | "spriteType": "normal", 31 | "subMetas": {} 32 | }, 33 | "btn_finish.png": { 34 | "ver": "1.0.3", 35 | "uuid": "a0848ad6-7737-4bed-941f-0967a6cfbf8d", 36 | "rawTextureUuid": "4e5b22eb-be6b-4c6a-9779-0ea81e8708b2", 37 | "trimType": "auto", 38 | "trimThreshold": 1, 39 | "rotated": true, 40 | "offsetX": 0, 41 | "offsetY": 0, 42 | "trimX": 2, 43 | "trimY": 1901, 44 | "width": 140, 45 | "height": 48, 46 | "rawWidth": 150, 47 | "rawHeight": 48, 48 | "borderTop": 0, 49 | "borderBottom": 0, 50 | "borderLeft": 0, 51 | "borderRight": 0, 52 | "spriteType": "normal", 53 | "subMetas": {} 54 | }, 55 | "game_loading1.png": { 56 | "ver": "1.0.3", 57 | "uuid": "8d917615-d6b2-45f9-922e-0a51173bcb02", 58 | "rawTextureUuid": "4e5b22eb-be6b-4c6a-9779-0ea81e8708b2", 59 | "trimType": "auto", 60 | "trimThreshold": 1, 61 | "rotated": false, 62 | "offsetX": -69, 63 | "offsetY": 0, 64 | "trimX": 433, 65 | "trimY": 1710, 66 | "width": 48, 67 | "height": 36, 68 | "rawWidth": 186, 69 | "rawHeight": 38, 70 | "borderTop": 0, 71 | "borderBottom": 0, 72 | "borderLeft": 0, 73 | "borderRight": 0, 74 | "spriteType": "normal", 75 | "subMetas": {} 76 | }, 77 | "game_loading2.png": { 78 | "ver": "1.0.3", 79 | "uuid": "10f90b01-34f0-4f8a-aabe-2b73e25aec2e", 80 | "rawTextureUuid": "4e5b22eb-be6b-4c6a-9779-0ea81e8708b2", 81 | "trimType": "auto", 82 | "trimThreshold": 1, 83 | "rotated": true, 84 | "offsetX": -35, 85 | "offsetY": 0, 86 | "trimX": 52, 87 | "trimY": 1901, 88 | "width": 108, 89 | "height": 37, 90 | "rawWidth": 186, 91 | "rawHeight": 37, 92 | "borderTop": 0, 93 | "borderBottom": 0, 94 | "borderLeft": 0, 95 | "borderRight": 0, 96 | "spriteType": "normal", 97 | "subMetas": {} 98 | }, 99 | "game_loading3.png": { 100 | "ver": "1.0.3", 101 | "uuid": "52a3d043-c16d-416b-8574-01c8ac9ed923", 102 | "rawTextureUuid": "4e5b22eb-be6b-4c6a-9779-0ea81e8708b2", 103 | "trimType": "auto", 104 | "trimThreshold": 1, 105 | "rotated": true, 106 | "offsetX": 4, 107 | "offsetY": 0, 108 | "trimX": 433, 109 | "trimY": 1748, 110 | "width": 176, 111 | "height": 36, 112 | "rawWidth": 186, 113 | "rawHeight": 38, 114 | "borderTop": 0, 115 | "borderBottom": 0, 116 | "borderLeft": 0, 117 | "borderRight": 0, 118 | "spriteType": "normal", 119 | "subMetas": {} 120 | }, 121 | "game_loading4.png": { 122 | "ver": "1.0.3", 123 | "uuid": "d8c4024c-a38d-431e-8694-271f243f5984", 124 | "rawTextureUuid": "4e5b22eb-be6b-4c6a-9779-0ea81e8708b2", 125 | "trimType": "auto", 126 | "trimThreshold": 1, 127 | "rotated": true, 128 | "offsetX": -51, 129 | "offsetY": -8, 130 | "trimX": 484, 131 | "trimY": 2, 132 | "width": 2, 133 | "height": 4, 134 | "rawWidth": 114, 135 | "rawHeight": 28, 136 | "borderTop": 0, 137 | "borderBottom": 0, 138 | "borderLeft": 0, 139 | "borderRight": 0, 140 | "spriteType": "normal", 141 | "subMetas": {} 142 | }, 143 | "gameover.png": { 144 | "ver": "1.0.3", 145 | "uuid": "c5d55a51-1df8-4462-bad5-cd13280d182b", 146 | "rawTextureUuid": "4e5b22eb-be6b-4c6a-9779-0ea81e8708b2", 147 | "trimType": "auto", 148 | "trimThreshold": 1, 149 | "rotated": false, 150 | "offsetX": 0, 151 | "offsetY": 0, 152 | "trimX": 2, 153 | "trimY": 2, 154 | "width": 480, 155 | "height": 852, 156 | "rawWidth": 480, 157 | "rawHeight": 852, 158 | "borderTop": 0, 159 | "borderBottom": 0, 160 | "borderLeft": 0, 161 | "borderRight": 0, 162 | "spriteType": "normal", 163 | "subMetas": {} 164 | }, 165 | "shoot_copyright.png": { 166 | "ver": "1.0.3", 167 | "uuid": "dc395799-2e0e-4a7d-b0d2-e191742f3266", 168 | "rawTextureUuid": "4e5b22eb-be6b-4c6a-9779-0ea81e8708b2", 169 | "trimType": "auto", 170 | "trimThreshold": 1, 171 | "rotated": false, 172 | "offsetX": -1, 173 | "offsetY": -15, 174 | "trimX": 2, 175 | "trimY": 1710, 176 | "width": 429, 177 | "height": 189, 178 | "rawWidth": 441, 179 | "rawHeight": 225, 180 | "borderTop": 0, 181 | "borderBottom": 0, 182 | "borderLeft": 0, 183 | "borderRight": 0, 184 | "spriteType": "normal", 185 | "subMetas": {} 186 | } 187 | } 188 | } -------------------------------------------------------------------------------- /assets/prefab/itemTemplate.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": "itemTemplate", 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.5, 28 | "y": 0.5 29 | }, 30 | "_contentSize": { 31 | "__type__": "cc.Size", 32 | "width": 640, 33 | "height": 70 34 | }, 35 | "_children": [ 36 | { 37 | "__id__": 2 38 | }, 39 | { 40 | "__id__": 6 41 | } 42 | ], 43 | "_rotationX": 0, 44 | "_rotationY": 0, 45 | "_scaleX": 1, 46 | "_scaleY": 1, 47 | "_position": { 48 | "__type__": "cc.Vec2", 49 | "x": 320, 50 | "y": -40 51 | }, 52 | "_skewX": 0, 53 | "_skewY": 0, 54 | "_localZOrder": 0, 55 | "_globalZOrder": 0, 56 | "_tag": -1, 57 | "_opacityModifyRGB": false, 58 | "_id": "", 59 | "_active": true, 60 | "_components": [ 61 | { 62 | "__id__": 10 63 | }, 64 | { 65 | "__id__": 11 66 | }, 67 | { 68 | "__id__": 12 69 | } 70 | ], 71 | "_prefab": { 72 | "__id__": 13 73 | }, 74 | "groupIndex": 0 75 | }, 76 | { 77 | "__type__": "cc.Node", 78 | "_name": "score", 79 | "_objFlags": 0, 80 | "_opacity": 255, 81 | "_color": { 82 | "__type__": "cc.Color", 83 | "r": 233, 84 | "g": 19, 85 | "b": 19, 86 | "a": 255 87 | }, 88 | "_cascadeOpacityEnabled": true, 89 | "_parent": { 90 | "__id__": 1 91 | }, 92 | "_anchorPoint": { 93 | "__type__": "cc.Vec2", 94 | "x": 0.5, 95 | "y": 0.5 96 | }, 97 | "_contentSize": { 98 | "__type__": "cc.Size", 99 | "width": 97.87, 100 | "height": 40 101 | }, 102 | "_children": [], 103 | "_rotationX": 0, 104 | "_rotationY": 0, 105 | "_scaleX": 1, 106 | "_scaleY": 1, 107 | "_position": { 108 | "__type__": "cc.Vec2", 109 | "x": -271.065, 110 | "y": 15 111 | }, 112 | "_skewX": 0, 113 | "_skewY": 0, 114 | "_localZOrder": 0, 115 | "_globalZOrder": 0, 116 | "_tag": -1, 117 | "_opacityModifyRGB": false, 118 | "_id": "", 119 | "_active": true, 120 | "_components": [ 121 | { 122 | "__id__": 3 123 | }, 124 | { 125 | "__id__": 4 126 | } 127 | ], 128 | "_prefab": { 129 | "__id__": 5 130 | }, 131 | "groupIndex": 0 132 | }, 133 | { 134 | "__type__": "cc.Label", 135 | "_name": "", 136 | "_objFlags": 0, 137 | "node": { 138 | "__id__": 2 139 | }, 140 | "_enabled": true, 141 | "_useOriginalSize": false, 142 | "_actualFontSize": 40, 143 | "_fontSize": 40, 144 | "_lineHeight": 40, 145 | "_enableWrapText": true, 146 | "_N$file": null, 147 | "_isSystemFontUsed": true, 148 | "_N$string": "Label", 149 | "_N$horizontalAlign": 0, 150 | "_N$verticalAlign": 1, 151 | "_N$overflow": 0 152 | }, 153 | { 154 | "__type__": "cc.Widget", 155 | "_name": "", 156 | "_objFlags": 0, 157 | "node": { 158 | "__id__": 2 159 | }, 160 | "_enabled": true, 161 | "isAlignOnce": true, 162 | "_alignFlags": 9, 163 | "_left": 0, 164 | "_right": 0, 165 | "_top": 0, 166 | "_bottom": 10, 167 | "_verticalCenter": 0, 168 | "_horizontalCenter": 0, 169 | "_isAbsLeft": true, 170 | "_isAbsRight": true, 171 | "_isAbsTop": true, 172 | "_isAbsBottom": true, 173 | "_isAbsHorizontalCenter": true, 174 | "_isAbsVerticalCenter": true, 175 | "_originalWidth": 0, 176 | "_originalHeight": 40 177 | }, 178 | { 179 | "__type__": "cc.PrefabInfo", 180 | "root": { 181 | "__id__": 1 182 | }, 183 | "asset": { 184 | "__uuid__": "ea4a8ff3-acbc-4992-b780-46cc5b831715" 185 | }, 186 | "fileId": "6d9fc6ZLIFJUK8cJs28PKMf" 187 | }, 188 | { 189 | "__type__": "cc.Node", 190 | "_name": "time", 191 | "_objFlags": 0, 192 | "_opacity": 255, 193 | "_color": { 194 | "__type__": "cc.Color", 195 | "r": 238, 196 | "g": 91, 197 | "b": 91, 198 | "a": 255 199 | }, 200 | "_cascadeOpacityEnabled": true, 201 | "_parent": { 202 | "__id__": 1 203 | }, 204 | "_anchorPoint": { 205 | "__type__": "cc.Vec2", 206 | "x": 0.5, 207 | "y": 0.5 208 | }, 209 | "_contentSize": { 210 | "__type__": "cc.Size", 211 | "width": 73.4, 212 | "height": 30 213 | }, 214 | "_children": [], 215 | "_rotationX": 0, 216 | "_rotationY": 0, 217 | "_scaleX": 1, 218 | "_scaleY": 1, 219 | "_position": { 220 | "__type__": "cc.Vec2", 221 | "x": -283.3, 222 | "y": -30 223 | }, 224 | "_skewX": 0, 225 | "_skewY": 0, 226 | "_localZOrder": 0, 227 | "_globalZOrder": 0, 228 | "_tag": -1, 229 | "_opacityModifyRGB": false, 230 | "_id": "", 231 | "_active": true, 232 | "_components": [ 233 | { 234 | "__id__": 7 235 | }, 236 | { 237 | "__id__": 8 238 | } 239 | ], 240 | "_prefab": { 241 | "__id__": 9 242 | }, 243 | "groupIndex": 0 244 | }, 245 | { 246 | "__type__": "cc.Label", 247 | "_name": "", 248 | "_objFlags": 0, 249 | "node": { 250 | "__id__": 6 251 | }, 252 | "_enabled": true, 253 | "_useOriginalSize": false, 254 | "_actualFontSize": 30, 255 | "_fontSize": 30, 256 | "_lineHeight": 30, 257 | "_enableWrapText": true, 258 | "_N$file": null, 259 | "_isSystemFontUsed": true, 260 | "_N$string": "Label", 261 | "_N$horizontalAlign": 0, 262 | "_N$verticalAlign": 1, 263 | "_N$overflow": 0 264 | }, 265 | { 266 | "__type__": "cc.Widget", 267 | "_name": "", 268 | "_objFlags": 0, 269 | "node": { 270 | "__id__": 6 271 | }, 272 | "_enabled": true, 273 | "isAlignOnce": true, 274 | "_alignFlags": 9, 275 | "_left": 0, 276 | "_right": 0, 277 | "_top": 50, 278 | "_bottom": 0, 279 | "_verticalCenter": 0, 280 | "_horizontalCenter": 0, 281 | "_isAbsLeft": true, 282 | "_isAbsRight": true, 283 | "_isAbsTop": true, 284 | "_isAbsBottom": true, 285 | "_isAbsHorizontalCenter": true, 286 | "_isAbsVerticalCenter": true, 287 | "_originalWidth": 0, 288 | "_originalHeight": 0 289 | }, 290 | { 291 | "__type__": "cc.PrefabInfo", 292 | "root": { 293 | "__id__": 1 294 | }, 295 | "asset": { 296 | "__uuid__": "ea4a8ff3-acbc-4992-b780-46cc5b831715" 297 | }, 298 | "fileId": "05c349xvfFKr5fXfngR+tjH" 299 | }, 300 | { 301 | "__type__": "e7aaajpGBdAAaGaUimU4MnH", 302 | "_name": "", 303 | "_objFlags": 0, 304 | "node": { 305 | "__id__": 1 306 | }, 307 | "_enabled": true, 308 | "itemScore": { 309 | "__id__": 3 310 | }, 311 | "itemTime": { 312 | "__id__": 7 313 | } 314 | }, 315 | { 316 | "__type__": "cc.Layout", 317 | "_name": "", 318 | "_objFlags": 0, 319 | "node": { 320 | "__id__": 1 321 | }, 322 | "_enabled": false, 323 | "_layoutSize": { 324 | "__type__": "cc.Size", 325 | "width": 640, 326 | "height": 70 327 | }, 328 | "_resize": 0, 329 | "_N$layoutType": 2, 330 | "_N$cellSize": { 331 | "__type__": "cc.Size", 332 | "width": 40, 333 | "height": 40 334 | }, 335 | "_N$startAxis": 0, 336 | "_N$padding": 0, 337 | "_N$spacingX": 0, 338 | "_N$spacingY": 0, 339 | "_N$verticalDirection": 1, 340 | "_N$horizontalDirection": 0 341 | }, 342 | { 343 | "__type__": "cc.Widget", 344 | "_name": "", 345 | "_objFlags": 0, 346 | "node": { 347 | "__id__": 1 348 | }, 349 | "_enabled": true, 350 | "isAlignOnce": true, 351 | "_alignFlags": 40, 352 | "_left": 0, 353 | "_right": 0, 354 | "_top": 0, 355 | "_bottom": -40, 356 | "_verticalCenter": 0, 357 | "_horizontalCenter": 0, 358 | "_isAbsLeft": true, 359 | "_isAbsRight": true, 360 | "_isAbsTop": true, 361 | "_isAbsBottom": true, 362 | "_isAbsHorizontalCenter": true, 363 | "_isAbsVerticalCenter": true, 364 | "_originalWidth": 300, 365 | "_originalHeight": 0 366 | }, 367 | { 368 | "__type__": "cc.PrefabInfo", 369 | "root": { 370 | "__id__": 1 371 | }, 372 | "asset": { 373 | "__uuid__": "ea4a8ff3-acbc-4992-b780-46cc5b831715" 374 | }, 375 | "fileId": "af779RV9J9M05Ep6vbN9si4" 376 | } 377 | ] -------------------------------------------------------------------------------- /assets/Scene/start.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 | "_objFlags": 0, 14 | "_opacity": 255, 15 | "_color": { 16 | "__type__": "cc.Color", 17 | "r": 255, 18 | "g": 255, 19 | "b": 255, 20 | "a": 255 21 | }, 22 | "_cascadeOpacityEnabled": true, 23 | "_parent": null, 24 | "_anchorPoint": { 25 | "__type__": "cc.Vec2", 26 | "x": 0, 27 | "y": 0 28 | }, 29 | "_contentSize": { 30 | "__type__": "cc.Size", 31 | "width": 0, 32 | "height": 0 33 | }, 34 | "_children": [ 35 | { 36 | "__id__": 2 37 | } 38 | ], 39 | "_localZOrder": 0, 40 | "_globalZOrder": 0, 41 | "_tag": -1, 42 | "_opacityModifyRGB": false, 43 | "_id": "2d2f792f-a40c-49bb-a189-ed176a246e49", 44 | "autoReleaseAssets": false 45 | }, 46 | { 47 | "__type__": "cc.Node", 48 | "_name": "Canvas", 49 | "_objFlags": 0, 50 | "_opacity": 255, 51 | "_color": { 52 | "__type__": "cc.Color", 53 | "r": 252, 54 | "g": 252, 55 | "b": 252, 56 | "a": 255 57 | }, 58 | "_cascadeOpacityEnabled": true, 59 | "_parent": { 60 | "__id__": 1 61 | }, 62 | "_anchorPoint": { 63 | "__type__": "cc.Vec2", 64 | "x": 0.5, 65 | "y": 0.5 66 | }, 67 | "_contentSize": { 68 | "__type__": "cc.Size", 69 | "width": 640, 70 | "height": 1136 71 | }, 72 | "_children": [ 73 | { 74 | "__id__": 3 75 | }, 76 | { 77 | "__id__": 6 78 | }, 79 | { 80 | "__id__": 9 81 | }, 82 | { 83 | "__id__": 12 84 | }, 85 | { 86 | "__id__": 14 87 | } 88 | ], 89 | "_rotationX": 0, 90 | "_rotationY": 0, 91 | "_scaleX": 1, 92 | "_scaleY": 1, 93 | "_position": { 94 | "__type__": "cc.Vec2", 95 | "x": 320, 96 | "y": 568 97 | }, 98 | "_skewX": 0, 99 | "_skewY": 0, 100 | "_localZOrder": 0, 101 | "_globalZOrder": 0, 102 | "_tag": -1, 103 | "_opacityModifyRGB": false, 104 | "_id": "a286bbGknJLZpRpxROV6M94", 105 | "_active": true, 106 | "_components": [ 107 | { 108 | "__id__": 21 109 | } 110 | ], 111 | "_prefab": null, 112 | "groupIndex": 0 113 | }, 114 | { 115 | "__type__": "cc.Node", 116 | "_name": "background", 117 | "_objFlags": 0, 118 | "_opacity": 255, 119 | "_color": { 120 | "__type__": "cc.Color", 121 | "r": 255, 122 | "g": 255, 123 | "b": 255, 124 | "a": 255 125 | }, 126 | "_cascadeOpacityEnabled": true, 127 | "_parent": { 128 | "__id__": 2 129 | }, 130 | "_anchorPoint": { 131 | "__type__": "cc.Vec2", 132 | "x": 0.5, 133 | "y": 0.5 134 | }, 135 | "_contentSize": { 136 | "__type__": "cc.Size", 137 | "width": 640, 138 | "height": 1136 139 | }, 140 | "_children": [], 141 | "_rotationX": 0, 142 | "_rotationY": 0, 143 | "_scaleX": 1, 144 | "_scaleY": 1, 145 | "_position": { 146 | "__type__": "cc.Vec2", 147 | "x": 0, 148 | "y": 0 149 | }, 150 | "_skewX": 0, 151 | "_skewY": 0, 152 | "_localZOrder": 0, 153 | "_globalZOrder": 0, 154 | "_tag": -1, 155 | "_opacityModifyRGB": false, 156 | "_id": "00ca46whcRLpZzHHeQs0Wg+", 157 | "_active": true, 158 | "_components": [ 159 | { 160 | "__id__": 4 161 | }, 162 | { 163 | "__id__": 5 164 | } 165 | ], 166 | "_prefab": null, 167 | "groupIndex": 0 168 | }, 169 | { 170 | "__type__": "cc.Widget", 171 | "_name": "", 172 | "_objFlags": 0, 173 | "node": { 174 | "__id__": 3 175 | }, 176 | "_enabled": true, 177 | "isAlignOnce": true, 178 | "_alignFlags": 45, 179 | "_left": 0, 180 | "_right": 0, 181 | "_top": 0, 182 | "_bottom": 0, 183 | "_verticalCenter": 0, 184 | "_horizontalCenter": 0, 185 | "_isAbsLeft": true, 186 | "_isAbsRight": true, 187 | "_isAbsTop": true, 188 | "_isAbsBottom": true, 189 | "_isAbsHorizontalCenter": true, 190 | "_isAbsVerticalCenter": true, 191 | "_originalWidth": 200, 192 | "_originalHeight": 150 193 | }, 194 | { 195 | "__type__": "cc.Sprite", 196 | "_name": "", 197 | "_objFlags": 0, 198 | "node": { 199 | "__id__": 3 200 | }, 201 | "_enabled": true, 202 | "_spriteFrame": { 203 | "__uuid__": "21ab00d1-178a-4ac2-ba2a-032f0f8bbe7b" 204 | }, 205 | "_type": 1, 206 | "_sizeMode": 0, 207 | "_fillType": 0, 208 | "_fillCenter": { 209 | "__type__": "cc.Vec2", 210 | "x": 0, 211 | "y": 0 212 | }, 213 | "_fillStart": 0, 214 | "_fillRange": 0, 215 | "_isTrimmedMode": true, 216 | "_srcBlendFactor": 770, 217 | "_dstBlendFactor": 771, 218 | "_atlas": { 219 | "__uuid__": "52b6bc4e-b6e1-4b65-8636-c2c1275b59f8" 220 | } 221 | }, 222 | { 223 | "__type__": "cc.Node", 224 | "_name": "banner", 225 | "_objFlags": 0, 226 | "_opacity": 255, 227 | "_color": { 228 | "__type__": "cc.Color", 229 | "r": 255, 230 | "g": 255, 231 | "b": 255, 232 | "a": 255 233 | }, 234 | "_cascadeOpacityEnabled": true, 235 | "_parent": { 236 | "__id__": 2 237 | }, 238 | "_anchorPoint": { 239 | "__type__": "cc.Vec2", 240 | "x": 0.5, 241 | "y": 0.5 242 | }, 243 | "_contentSize": { 244 | "__type__": "cc.Size", 245 | "width": 429, 246 | "height": 189 247 | }, 248 | "_children": [], 249 | "_rotationX": 0, 250 | "_rotationY": 0, 251 | "_scaleX": 1, 252 | "_scaleY": 1, 253 | "_position": { 254 | "__type__": "cc.Vec2", 255 | "x": 0, 256 | "y": 323.5 257 | }, 258 | "_skewX": 0, 259 | "_skewY": 0, 260 | "_localZOrder": 0, 261 | "_globalZOrder": 0, 262 | "_tag": -1, 263 | "_opacityModifyRGB": false, 264 | "_id": "6e100v7dZ9NxauPir5Y3fno", 265 | "_active": true, 266 | "_components": [ 267 | { 268 | "__id__": 7 269 | }, 270 | { 271 | "__id__": 8 272 | } 273 | ], 274 | "_prefab": null, 275 | "groupIndex": 0 276 | }, 277 | { 278 | "__type__": "cc.Sprite", 279 | "_name": "", 280 | "_objFlags": 0, 281 | "node": { 282 | "__id__": 6 283 | }, 284 | "_enabled": true, 285 | "_spriteFrame": { 286 | "__uuid__": "dc395799-2e0e-4a7d-b0d2-e191742f3266" 287 | }, 288 | "_type": 0, 289 | "_sizeMode": 1, 290 | "_fillType": 0, 291 | "_fillCenter": { 292 | "__type__": "cc.Vec2", 293 | "x": 0, 294 | "y": 0 295 | }, 296 | "_fillStart": 0, 297 | "_fillRange": 0, 298 | "_isTrimmedMode": true, 299 | "_srcBlendFactor": 770, 300 | "_dstBlendFactor": 771, 301 | "_atlas": { 302 | "__uuid__": "52b6bc4e-b6e1-4b65-8636-c2c1275b59f8" 303 | } 304 | }, 305 | { 306 | "__type__": "cc.Widget", 307 | "_name": "", 308 | "_objFlags": 0, 309 | "node": { 310 | "__id__": 6 311 | }, 312 | "_enabled": true, 313 | "isAlignOnce": true, 314 | "_alignFlags": 17, 315 | "_left": 108.5, 316 | "_right": 102.5, 317 | "_top": 150, 318 | "_bottom": 0, 319 | "_verticalCenter": 0, 320 | "_horizontalCenter": 0, 321 | "_isAbsLeft": true, 322 | "_isAbsRight": true, 323 | "_isAbsTop": true, 324 | "_isAbsBottom": true, 325 | "_isAbsHorizontalCenter": true, 326 | "_isAbsVerticalCenter": true, 327 | "_originalWidth": 429, 328 | "_originalHeight": 0 329 | }, 330 | { 331 | "__type__": "cc.Node", 332 | "_name": "game_loading", 333 | "_objFlags": 0, 334 | "_opacity": 255, 335 | "_color": { 336 | "__type__": "cc.Color", 337 | "r": 255, 338 | "g": 255, 339 | "b": 255, 340 | "a": 255 341 | }, 342 | "_cascadeOpacityEnabled": true, 343 | "_parent": { 344 | "__id__": 2 345 | }, 346 | "_anchorPoint": { 347 | "__type__": "cc.Vec2", 348 | "x": 0.5, 349 | "y": 0.5 350 | }, 351 | "_contentSize": { 352 | "__type__": "cc.Size", 353 | "width": 48, 354 | "height": 36 355 | }, 356 | "_children": [], 357 | "_rotationX": 0, 358 | "_rotationY": 0, 359 | "_scaleX": 1, 360 | "_scaleY": 1, 361 | "_position": { 362 | "__type__": "cc.Vec2", 363 | "x": 0, 364 | "y": 0 365 | }, 366 | "_skewX": 0, 367 | "_skewY": 0, 368 | "_localZOrder": 0, 369 | "_globalZOrder": 0, 370 | "_tag": -1, 371 | "_opacityModifyRGB": false, 372 | "_id": "0e698hvul9LTYQZD1tNCZMQ", 373 | "_active": true, 374 | "_components": [ 375 | { 376 | "__id__": 10 377 | }, 378 | { 379 | "__id__": 11 380 | } 381 | ], 382 | "_prefab": null, 383 | "groupIndex": 0 384 | }, 385 | { 386 | "__type__": "cc.Sprite", 387 | "_name": "", 388 | "_objFlags": 0, 389 | "node": { 390 | "__id__": 9 391 | }, 392 | "_enabled": true, 393 | "_spriteFrame": { 394 | "__uuid__": "8d917615-d6b2-45f9-922e-0a51173bcb02" 395 | }, 396 | "_type": 0, 397 | "_sizeMode": 1, 398 | "_fillType": 0, 399 | "_fillCenter": { 400 | "__type__": "cc.Vec2", 401 | "x": 0, 402 | "y": 0 403 | }, 404 | "_fillStart": 0, 405 | "_fillRange": 0, 406 | "_isTrimmedMode": true, 407 | "_srcBlendFactor": 770, 408 | "_dstBlendFactor": 771, 409 | "_atlas": { 410 | "__uuid__": "52b6bc4e-b6e1-4b65-8636-c2c1275b59f8" 411 | } 412 | }, 413 | { 414 | "__type__": "cc.Animation", 415 | "_name": "", 416 | "_objFlags": 0, 417 | "node": { 418 | "__id__": 9 419 | }, 420 | "_enabled": true, 421 | "_defaultClip": { 422 | "__uuid__": "773c26bf-25ff-4c77-8a7c-00c98fcaab5d" 423 | }, 424 | "_clips": [ 425 | { 426 | "__uuid__": "773c26bf-25ff-4c77-8a7c-00c98fcaab5d" 427 | } 428 | ], 429 | "playOnLoad": true 430 | }, 431 | { 432 | "__type__": "cc.Node", 433 | "_name": "start", 434 | "_objFlags": 0, 435 | "_opacity": 255, 436 | "_color": { 437 | "__type__": "cc.Color", 438 | "r": 255, 439 | "g": 255, 440 | "b": 255, 441 | "a": 255 442 | }, 443 | "_cascadeOpacityEnabled": true, 444 | "_parent": { 445 | "__id__": 2 446 | }, 447 | "_anchorPoint": { 448 | "__type__": "cc.Vec2", 449 | "x": 0.5, 450 | "y": 0.5 451 | }, 452 | "_contentSize": { 453 | "__type__": "cc.Size", 454 | "width": 0, 455 | "height": 0 456 | }, 457 | "_children": [], 458 | "_rotationX": 0, 459 | "_rotationY": 0, 460 | "_scaleX": 1, 461 | "_scaleY": 1, 462 | "_position": { 463 | "__type__": "cc.Vec2", 464 | "x": 0, 465 | "y": 0 466 | }, 467 | "_skewX": 0, 468 | "_skewY": 0, 469 | "_localZOrder": 0, 470 | "_globalZOrder": 0, 471 | "_tag": -1, 472 | "_opacityModifyRGB": false, 473 | "_id": "2a752Y9oWFEqbckayRaztqN", 474 | "_active": true, 475 | "_components": [ 476 | { 477 | "__id__": 13 478 | } 479 | ], 480 | "_prefab": null, 481 | "groupIndex": 0 482 | }, 483 | { 484 | "__type__": "280c3rsZJJKnZ9RqbALVwtK", 485 | "_name": "", 486 | "_objFlags": 0, 487 | "node": { 488 | "__id__": 12 489 | }, 490 | "_enabled": true, 491 | "game_loading": { 492 | "__id__": 9 493 | } 494 | }, 495 | { 496 | "__type__": "cc.Node", 497 | "_name": "Button", 498 | "_objFlags": 0, 499 | "_opacity": 255, 500 | "_color": { 501 | "__type__": "cc.Color", 502 | "r": 196, 503 | "g": 201, 504 | "b": 202, 505 | "a": 255 506 | }, 507 | "_cascadeOpacityEnabled": true, 508 | "_parent": { 509 | "__id__": 2 510 | }, 511 | "_anchorPoint": { 512 | "__type__": "cc.Vec2", 513 | "x": 0.5, 514 | "y": 0.5 515 | }, 516 | "_contentSize": { 517 | "__type__": "cc.Size", 518 | "width": 200, 519 | "height": 50 520 | }, 521 | "_children": [ 522 | { 523 | "__id__": 15 524 | } 525 | ], 526 | "_rotationX": 0, 527 | "_rotationY": 0, 528 | "_scaleX": 1, 529 | "_scaleY": 1, 530 | "_position": { 531 | "__type__": "cc.Vec2", 532 | "x": 0, 533 | "y": -253 534 | }, 535 | "_skewX": 0, 536 | "_skewY": 0, 537 | "_localZOrder": 0, 538 | "_globalZOrder": 0, 539 | "_tag": -1, 540 | "_opacityModifyRGB": false, 541 | "_id": "53089T+AeBHbJ6yaCeU1W0C", 542 | "_active": true, 543 | "_components": [ 544 | { 545 | "__id__": 17 546 | }, 547 | { 548 | "__id__": 18 549 | }, 550 | { 551 | "__id__": 20 552 | } 553 | ], 554 | "_prefab": null, 555 | "groupIndex": 0 556 | }, 557 | { 558 | "__type__": "cc.Node", 559 | "_name": "Label", 560 | "_objFlags": 0, 561 | "_opacity": 255, 562 | "_color": { 563 | "__type__": "cc.Color", 564 | "r": 0, 565 | "g": 0, 566 | "b": 0, 567 | "a": 255 568 | }, 569 | "_cascadeOpacityEnabled": true, 570 | "_parent": { 571 | "__id__": 14 572 | }, 573 | "_anchorPoint": { 574 | "__type__": "cc.Vec2", 575 | "x": 0.5, 576 | "y": 0.5 577 | }, 578 | "_contentSize": { 579 | "__type__": "cc.Size", 580 | "width": 160, 581 | "height": 40 582 | }, 583 | "_children": [], 584 | "_rotationX": 0, 585 | "_rotationY": 0, 586 | "_scaleX": 1, 587 | "_scaleY": 1, 588 | "_position": { 589 | "__type__": "cc.Vec2", 590 | "x": 0, 591 | "y": 0 592 | }, 593 | "_skewX": 0, 594 | "_skewY": 0, 595 | "_localZOrder": 0, 596 | "_globalZOrder": 0, 597 | "_tag": -1, 598 | "_opacityModifyRGB": false, 599 | "_id": "08d38Zvn/VMQJdtvrzWSMVa", 600 | "_active": true, 601 | "_components": [ 602 | { 603 | "__id__": 16 604 | } 605 | ], 606 | "_prefab": null, 607 | "groupIndex": 0 608 | }, 609 | { 610 | "__type__": "cc.Label", 611 | "_name": "", 612 | "_objFlags": 0, 613 | "node": { 614 | "__id__": 15 615 | }, 616 | "_enabled": true, 617 | "_useOriginalSize": false, 618 | "_actualFontSize": 20, 619 | "_fontSize": 20, 620 | "_lineHeight": 40, 621 | "_enableWrapText": false, 622 | "_N$file": null, 623 | "_isSystemFontUsed": true, 624 | "_N$string": "开始游戏", 625 | "_N$horizontalAlign": 1, 626 | "_N$verticalAlign": 1, 627 | "_N$overflow": 1 628 | }, 629 | { 630 | "__type__": "cc.Sprite", 631 | "_name": "", 632 | "_objFlags": 0, 633 | "node": { 634 | "__id__": 14 635 | }, 636 | "_enabled": true, 637 | "_spriteFrame": { 638 | "__uuid__": "59b849cf-915d-40e7-bf98-dc10713ef61a" 639 | }, 640 | "_type": 1, 641 | "_sizeMode": 0, 642 | "_fillType": 0, 643 | "_fillCenter": { 644 | "__type__": "cc.Vec2", 645 | "x": 0, 646 | "y": 0 647 | }, 648 | "_fillStart": 0, 649 | "_fillRange": 1, 650 | "_isTrimmedMode": true, 651 | "_srcBlendFactor": 770, 652 | "_dstBlendFactor": 771, 653 | "_atlas": null 654 | }, 655 | { 656 | "__type__": "cc.Button", 657 | "_name": "", 658 | "_objFlags": 0, 659 | "node": { 660 | "__id__": 14 661 | }, 662 | "_enabled": true, 663 | "transition": 1, 664 | "pressedColor": { 665 | "__type__": "cc.Color", 666 | "r": 196, 667 | "g": 201, 668 | "b": 202, 669 | "a": 255 670 | }, 671 | "hoverColor": { 672 | "__type__": "cc.Color", 673 | "r": 196, 674 | "g": 201, 675 | "b": 202, 676 | "a": 255 677 | }, 678 | "duration": 0.1, 679 | "pressedSprite": { 680 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 681 | }, 682 | "hoverSprite": { 683 | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" 684 | }, 685 | "clickEvents": [ 686 | { 687 | "__id__": 19 688 | } 689 | ], 690 | "_N$interactable": true, 691 | "_N$normalColor": { 692 | "__type__": "cc.Color", 693 | "r": 196, 694 | "g": 201, 695 | "b": 202, 696 | "a": 255 697 | }, 698 | "_N$disabledColor": { 699 | "__type__": "cc.Color", 700 | "r": 196, 701 | "g": 201, 702 | "b": 202, 703 | "a": 255 704 | }, 705 | "_N$normalSprite": null, 706 | "_N$disabledSprite": { 707 | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" 708 | }, 709 | "_N$target": { 710 | "__id__": 14 711 | } 712 | }, 713 | { 714 | "__type__": "cc.ClickEvent", 715 | "target": { 716 | "__id__": 12 717 | }, 718 | "component": "start", 719 | "handler": "startGame" 720 | }, 721 | { 722 | "__type__": "cc.Widget", 723 | "_name": "", 724 | "_objFlags": 0, 725 | "node": { 726 | "__id__": 14 727 | }, 728 | "_enabled": true, 729 | "isAlignOnce": true, 730 | "_alignFlags": 16, 731 | "_left": 0, 732 | "_right": 0, 733 | "_top": 0, 734 | "_bottom": 0, 735 | "_verticalCenter": 0, 736 | "_horizontalCenter": 0, 737 | "_isAbsLeft": true, 738 | "_isAbsRight": true, 739 | "_isAbsTop": true, 740 | "_isAbsBottom": true, 741 | "_isAbsHorizontalCenter": true, 742 | "_isAbsVerticalCenter": true, 743 | "_originalWidth": 0, 744 | "_originalHeight": 0 745 | }, 746 | { 747 | "__type__": "cc.Canvas", 748 | "_name": "", 749 | "_objFlags": 0, 750 | "node": { 751 | "__id__": 2 752 | }, 753 | "_enabled": true, 754 | "_designResolution": { 755 | "__type__": "cc.Size", 756 | "width": 640, 757 | "height": 1136 758 | }, 759 | "_fitWidth": true, 760 | "_fitHeight": true 761 | } 762 | ] -------------------------------------------------------------------------------- /assets/Texture/shoot.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | frames 6 | 7 | bomb.png 8 | 9 | frame 10 | {{495,2},{63,53}} 11 | offset 12 | {0,0} 13 | rotated 14 | 15 | sourceColorRect 16 | {{0,2},{63,53}} 17 | sourceSize 18 | {63,57} 19 | 20 | bullet1.png 21 | 22 | frame 23 | {{25,2},{9,21}} 24 | offset 25 | {0,0} 26 | rotated 27 | 28 | sourceColorRect 29 | {{0,0},{9,21}} 30 | sourceSize 31 | {9,21} 32 | 33 | bullet2.png 34 | 35 | frame 36 | {{2,2},{9,21}} 37 | offset 38 | {0,0} 39 | rotated 40 | 41 | sourceColorRect 42 | {{0,0},{9,21}} 43 | sourceSize 44 | {9,21} 45 | 46 | enemy1.png 47 | 48 | frame 49 | {{187,2},{51,39}} 50 | offset 51 | {0,-1} 52 | rotated 53 | 54 | sourceColorRect 55 | {{3,3},{51,39}} 56 | sourceSize 57 | {57,43} 58 | 59 | enemy1_down1.png 60 | 61 | frame 62 | {{134,2},{51,39}} 63 | offset 64 | {0,-2} 65 | rotated 66 | 67 | sourceColorRect 68 | {{3,8},{51,39}} 69 | sourceSize 70 | {57,51} 71 | 72 | enemy1_down2.png 73 | 74 | frame 75 | {{383,2},{51,47}} 76 | offset 77 | {0,-2} 78 | rotated 79 | 80 | sourceColorRect 81 | {{3,4},{51,47}} 82 | sourceSize 83 | {57,51} 84 | 85 | enemy1_down3.png 86 | 87 | frame 88 | {{436,2},{57,51}} 89 | offset 90 | {0,0} 91 | rotated 92 | 93 | sourceColorRect 94 | {{0,0},{57,51}} 95 | sourceSize 96 | {57,51} 97 | 98 | enemy1_down4.png 99 | 100 | frame 101 | {{240,2},{47,39}} 102 | offset 103 | {0,-3} 104 | rotated 105 | 106 | sourceColorRect 107 | {{5,9},{47,39}} 108 | sourceSize 109 | {57,51} 110 | 111 | enemy2.png 112 | 113 | frame 114 | {{835,2},{69,89}} 115 | offset 116 | {0,3} 117 | rotated 118 | 119 | sourceColorRect 120 | {{0,2},{69,89}} 121 | sourceSize 122 | {69,99} 123 | 124 | enemy2_down1.png 125 | 126 | frame 127 | {{2,42},{69,93}} 128 | offset 129 | {0,0} 130 | rotated 131 | 132 | sourceColorRect 133 | {{0,1},{69,93}} 134 | sourceSize 135 | {69,95} 136 | 137 | enemy2_down2.png 138 | 139 | frame 140 | {{926,2},{69,93}} 141 | offset 142 | {0,0} 143 | rotated 144 | 145 | sourceColorRect 146 | {{0,1},{69,93}} 147 | sourceSize 148 | {69,95} 149 | 150 | enemy2_down3.png 151 | 152 | frame 153 | {{273,46},{69,95}} 154 | offset 155 | {0,0} 156 | rotated 157 | 158 | sourceColorRect 159 | {{0,0},{69,95}} 160 | sourceSize 161 | {69,95} 162 | 163 | enemy2_down4.png 164 | 165 | frame 166 | {{194,43},{69,77}} 167 | offset 168 | {0,-4} 169 | rotated 170 | 171 | sourceColorRect 172 | {{0,13},{69,77}} 173 | sourceSize 174 | {69,95} 175 | 176 | enemy2_hit.png 177 | 178 | frame 179 | {{97,43},{69,95}} 180 | offset 181 | {0,0} 182 | rotated 183 | 184 | sourceColorRect 185 | {{0,2},{69,95}} 186 | sourceSize 187 | {69,99} 188 | 189 | enemy3_down1.png 190 | 191 | frame 192 | {{2,324},{165,255}} 193 | offset 194 | {0,1} 195 | rotated 196 | 197 | sourceColorRect 198 | {{0,2},{165,255}} 199 | sourceSize 200 | {165,261} 201 | 202 | enemy3_down2.png 203 | 204 | frame 205 | {{464,164},{165,255}} 206 | offset 207 | {0,2} 208 | rotated 209 | 210 | sourceColorRect 211 | {{0,1},{165,255}} 212 | sourceSize 213 | {165,261} 214 | 215 | enemy3_down3.png 216 | 217 | frame 218 | {{259,331},{165,256}} 219 | offset 220 | {0,2} 221 | rotated 222 | 223 | sourceColorRect 224 | {{0,0},{165,256}} 225 | sourceSize 226 | {165,260} 227 | 228 | enemy3_down4.png 229 | 230 | frame 231 | {{207,157},{165,255}} 232 | offset 233 | {0,2} 234 | rotated 235 | 236 | sourceColorRect 237 | {{0,1},{165,255}} 238 | sourceSize 239 | {165,261} 240 | 241 | enemy3_down5.png 242 | 243 | frame 244 | {{2,498},{166,256}} 245 | offset 246 | {0,2} 247 | rotated 248 | 249 | sourceColorRect 250 | {{0,0},{166,256}} 251 | sourceSize 252 | {166,260} 253 | 254 | enemy3_down6.png 255 | 256 | frame 257 | {{2,114},{144,203}} 258 | offset 259 | {-8,18} 260 | rotated 261 | 262 | sourceColorRect 263 | {{3,11},{144,203}} 264 | sourceSize 265 | {166,261} 266 | 267 | enemy3_hit.png 268 | 269 | frame 270 | {{721,175},{165,256}} 271 | offset 272 | {0,0} 273 | rotated 274 | 275 | sourceColorRect 276 | {{2,1},{165,256}} 277 | sourceSize 278 | {169,258} 279 | 280 | enemy3_n1.png 281 | 282 | frame 283 | {{517,342},{165,246}} 284 | offset 285 | {0,4} 286 | rotated 287 | 288 | sourceColorRect 289 | {{2,2},{165,246}} 290 | sourceSize 291 | {169,258} 292 | 293 | enemy3_n2.png 294 | 295 | frame 296 | {{765,342},{165,250}} 297 | offset 298 | {0,3} 299 | rotated 300 | 301 | sourceColorRect 302 | {{2,1},{165,250}} 303 | sourceSize 304 | {169,258} 305 | 306 | game_pause_nor.png 307 | 308 | frame 309 | {{336,2},{42,45}} 310 | offset 311 | {-1,0} 312 | rotated 313 | 314 | sourceColorRect 315 | {{8,0},{42,45}} 316 | sourceSize 317 | {60,45} 318 | 319 | game_pause_pressed.png 320 | 321 | frame 322 | {{289,2},{42,45}} 323 | offset 324 | {-1,0} 325 | rotated 326 | 327 | sourceColorRect 328 | {{8,0},{42,45}} 329 | sourceSize 330 | {60,45} 331 | 332 | game_resume_nor.png 333 | 334 | frame 335 | {{91,2},{38,41}} 336 | offset 337 | {3,0} 338 | rotated 339 | 340 | sourceColorRect 341 | {{14,2},{38,41}} 342 | sourceSize 343 | {60,45} 344 | 345 | game_resume_pressed.png 346 | 347 | frame 348 | {{48,2},{38,41}} 349 | offset 350 | {3,0} 351 | rotated 352 | 353 | sourceColorRect 354 | {{14,2},{38,41}} 355 | sourceSize 356 | {60,45} 357 | 358 | hero1.png 359 | 360 | frame 361 | {{872,73},{100,124}} 362 | offset 363 | {0,0} 364 | rotated 365 | 366 | sourceColorRect 367 | {{1,1},{100,124}} 368 | sourceSize 369 | {102,126} 370 | 371 | hero2.png 372 | 373 | frame 374 | {{370,55},{100,122}} 375 | offset 376 | {0,1} 377 | rotated 378 | 379 | sourceColorRect 380 | {{1,1},{100,122}} 381 | sourceSize 382 | {102,126} 383 | 384 | hero_blowup_n1.png 385 | 386 | frame 387 | {{746,73},{98,124}} 388 | offset 389 | {0,-1} 390 | rotated 391 | 392 | sourceColorRect 393 | {{2,2},{98,124}} 394 | sourceSize 395 | {102,126} 396 | 397 | hero_blowup_n2.png 398 | 399 | frame 400 | {{620,64},{98,124}} 401 | offset 402 | {0,-1} 403 | rotated 404 | 405 | sourceColorRect 406 | {{2,2},{98,124}} 407 | sourceSize 408 | {102,126} 409 | 410 | hero_blowup_n3.png 411 | 412 | frame 413 | {{494,62},{98,124}} 414 | offset 415 | {0,-1} 416 | rotated 417 | 418 | sourceColorRect 419 | {{2,2},{98,124}} 420 | sourceSize 421 | {102,126} 422 | 423 | hero_blowup_n4.png 424 | 425 | frame 426 | {{755,2},{66,78}} 427 | offset 428 | {0,5} 429 | rotated 430 | 431 | sourceColorRect 432 | {{18,19},{66,78}} 433 | sourceSize 434 | {102,126} 435 | 436 | ufo1.png 437 | 438 | frame 439 | {{560,2},{58,88}} 440 | offset 441 | {0,0} 442 | rotated 443 | 444 | sourceColorRect 445 | {{0,0},{58,88}} 446 | sourceSize 447 | {58,88} 448 | 449 | ufo2.png 450 | 451 | frame 452 | {{650,2},{60,103}} 453 | offset 454 | {0,0} 455 | rotated 456 | 457 | sourceColorRect 458 | {{0,2},{60,103}} 459 | sourceSize 460 | {60,107} 461 | 462 | 463 | metadata 464 | 465 | format 466 | 2 467 | realTextureFileName 468 | shoot.png 469 | size 470 | {1024,1024} 471 | smartupdate 472 | $TexturePacker:SmartUpdate:87d444c59521eb5a7a705a003be80f6f$ 473 | textureFileName 474 | shoot.png 475 | 476 | 477 | 478 | -------------------------------------------------------------------------------- /assets/Scene/historyScore.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 | "_objFlags": 0, 14 | "_opacity": 255, 15 | "_color": { 16 | "__type__": "cc.Color", 17 | "r": 255, 18 | "g": 255, 19 | "b": 255, 20 | "a": 255 21 | }, 22 | "_cascadeOpacityEnabled": true, 23 | "_parent": null, 24 | "_anchorPoint": { 25 | "__type__": "cc.Vec2", 26 | "x": 0, 27 | "y": 0 28 | }, 29 | "_contentSize": { 30 | "__type__": "cc.Size", 31 | "width": 0, 32 | "height": 0 33 | }, 34 | "_children": [ 35 | { 36 | "__id__": 2 37 | } 38 | ], 39 | "_localZOrder": 0, 40 | "_globalZOrder": 0, 41 | "_tag": -1, 42 | "_opacityModifyRGB": false, 43 | "_id": "b2280733-4857-43c7-8f25-6f40c8ea5c6b", 44 | "autoReleaseAssets": false 45 | }, 46 | { 47 | "__type__": "cc.Node", 48 | "_name": "Canvas", 49 | "_objFlags": 0, 50 | "_opacity": 255, 51 | "_color": { 52 | "__type__": "cc.Color", 53 | "r": 255, 54 | "g": 255, 55 | "b": 255, 56 | "a": 255 57 | }, 58 | "_cascadeOpacityEnabled": true, 59 | "_parent": { 60 | "__id__": 1 61 | }, 62 | "_anchorPoint": { 63 | "__type__": "cc.Vec2", 64 | "x": 0.5, 65 | "y": 0.5 66 | }, 67 | "_contentSize": { 68 | "__type__": "cc.Size", 69 | "width": 640, 70 | "height": 1136 71 | }, 72 | "_children": [ 73 | { 74 | "__id__": 3 75 | }, 76 | { 77 | "__id__": 8 78 | }, 79 | { 80 | "__id__": 23 81 | } 82 | ], 83 | "_rotationX": 0, 84 | "_rotationY": 0, 85 | "_scaleX": 1, 86 | "_scaleY": 1, 87 | "_position": { 88 | "__type__": "cc.Vec2", 89 | "x": 320, 90 | "y": 568 91 | }, 92 | "_skewX": 0, 93 | "_skewY": 0, 94 | "_localZOrder": 0, 95 | "_globalZOrder": 0, 96 | "_tag": -1, 97 | "_opacityModifyRGB": false, 98 | "_id": "9c785j8+6tBEIfwa08MRYbR", 99 | "_active": true, 100 | "_components": [ 101 | { 102 | "__id__": 25 103 | } 104 | ], 105 | "_prefab": null, 106 | "groupIndex": 0 107 | }, 108 | { 109 | "__type__": "cc.Node", 110 | "_name": "historyScore", 111 | "_objFlags": 0, 112 | "_opacity": 255, 113 | "_color": { 114 | "__type__": "cc.Color", 115 | "r": 255, 116 | "g": 255, 117 | "b": 255, 118 | "a": 255 119 | }, 120 | "_cascadeOpacityEnabled": true, 121 | "_parent": { 122 | "__id__": 2 123 | }, 124 | "_anchorPoint": { 125 | "__type__": "cc.Vec2", 126 | "x": 0.5, 127 | "y": 0.5 128 | }, 129 | "_contentSize": { 130 | "__type__": "cc.Size", 131 | "width": 0, 132 | "height": 0 133 | }, 134 | "_children": [], 135 | "_rotationX": 0, 136 | "_rotationY": 0, 137 | "_scaleX": 1, 138 | "_scaleY": 1, 139 | "_position": { 140 | "__type__": "cc.Vec2", 141 | "x": 0, 142 | "y": 0 143 | }, 144 | "_skewX": 0, 145 | "_skewY": 0, 146 | "_localZOrder": 0, 147 | "_globalZOrder": 0, 148 | "_tag": -1, 149 | "_opacityModifyRGB": false, 150 | "_id": "ed97bGu0UtK94F5JxkO35dC", 151 | "_active": true, 152 | "_components": [ 153 | { 154 | "__id__": 4 155 | } 156 | ], 157 | "_prefab": null, 158 | "groupIndex": 0 159 | }, 160 | { 161 | "__type__": "c11abrWZANO2aVZSE4dxEvW", 162 | "_name": "", 163 | "_objFlags": 0, 164 | "node": { 165 | "__id__": 3 166 | }, 167 | "_enabled": true, 168 | "itemPrefab": { 169 | "__uuid__": "ea4a8ff3-acbc-4992-b780-46cc5b831715" 170 | }, 171 | "scrollContent": { 172 | "__id__": 5 173 | }, 174 | "backGame": { 175 | "__id__": 23 176 | } 177 | }, 178 | { 179 | "__type__": "cc.Node", 180 | "_name": "content", 181 | "_objFlags": 0, 182 | "_opacity": 255, 183 | "_color": { 184 | "__type__": "cc.Color", 185 | "r": 255, 186 | "g": 255, 187 | "b": 255, 188 | "a": 255 189 | }, 190 | "_cascadeOpacityEnabled": true, 191 | "_parent": { 192 | "__id__": 6 193 | }, 194 | "_anchorPoint": { 195 | "__type__": "cc.Vec2", 196 | "x": 0.5, 197 | "y": 1 198 | }, 199 | "_contentSize": { 200 | "__type__": "cc.Size", 201 | "width": 500, 202 | "height": 80 203 | }, 204 | "_children": [], 205 | "_rotationX": 0, 206 | "_rotationY": 0, 207 | "_scaleX": 1, 208 | "_scaleY": 1, 209 | "_position": { 210 | "__type__": "cc.Vec2", 211 | "x": 0, 212 | "y": 383 213 | }, 214 | "_skewX": 0, 215 | "_skewY": 0, 216 | "_localZOrder": 0, 217 | "_globalZOrder": 0, 218 | "_tag": -1, 219 | "_opacityModifyRGB": false, 220 | "_id": "47e33+5oORKHIgnQxlLTXRb", 221 | "_active": true, 222 | "_components": [ 223 | { 224 | "__id__": 21 225 | }, 226 | { 227 | "__id__": 22 228 | } 229 | ], 230 | "_prefab": null, 231 | "groupIndex": 0 232 | }, 233 | { 234 | "__type__": "cc.Node", 235 | "_name": "view", 236 | "_objFlags": 0, 237 | "_opacity": 255, 238 | "_color": { 239 | "__type__": "cc.Color", 240 | "r": 255, 241 | "g": 255, 242 | "b": 255, 243 | "a": 255 244 | }, 245 | "_cascadeOpacityEnabled": true, 246 | "_parent": { 247 | "__id__": 7 248 | }, 249 | "_anchorPoint": { 250 | "__type__": "cc.Vec2", 251 | "x": 0.5, 252 | "y": 0.5 253 | }, 254 | "_contentSize": { 255 | "__type__": "cc.Size", 256 | "width": 500, 257 | "height": 846 258 | }, 259 | "_children": [ 260 | { 261 | "__id__": 5 262 | } 263 | ], 264 | "_rotationX": 0, 265 | "_rotationY": 0, 266 | "_scaleX": 1, 267 | "_scaleY": 1, 268 | "_position": { 269 | "__type__": "cc.Vec2", 270 | "x": 0, 271 | "y": 0 272 | }, 273 | "_skewX": 0, 274 | "_skewY": 0, 275 | "_localZOrder": 0, 276 | "_globalZOrder": 0, 277 | "_tag": -1, 278 | "_opacityModifyRGB": false, 279 | "_id": "49953JcLzJIp6WincM2W5XN", 280 | "_active": true, 281 | "_components": [ 282 | { 283 | "__id__": 19 284 | }, 285 | { 286 | "__id__": 20 287 | } 288 | ], 289 | "_prefab": null, 290 | "groupIndex": 0 291 | }, 292 | { 293 | "__type__": "cc.Node", 294 | "_name": "score", 295 | "_objFlags": 0, 296 | "_opacity": 255, 297 | "_color": { 298 | "__type__": "cc.Color", 299 | "r": 184, 300 | "g": 184, 301 | "b": 184, 302 | "a": 255 303 | }, 304 | "_cascadeOpacityEnabled": true, 305 | "_parent": { 306 | "__id__": 8 307 | }, 308 | "_anchorPoint": { 309 | "__type__": "cc.Vec2", 310 | "x": 0.5, 311 | "y": 0.5 312 | }, 313 | "_contentSize": { 314 | "__type__": "cc.Size", 315 | "width": 540, 316 | "height": 886 317 | }, 318 | "_children": [ 319 | { 320 | "__id__": 10 321 | }, 322 | { 323 | "__id__": 6 324 | } 325 | ], 326 | "_rotationX": 0, 327 | "_rotationY": 0, 328 | "_scaleX": 1, 329 | "_scaleY": 1, 330 | "_position": { 331 | "__type__": "cc.Vec2", 332 | "x": 0, 333 | "y": -75 334 | }, 335 | "_skewX": 0, 336 | "_skewY": 0, 337 | "_localZOrder": 0, 338 | "_globalZOrder": 0, 339 | "_tag": -1, 340 | "_opacityModifyRGB": false, 341 | "_id": "1b897Po9+lKvYlJUhiJ16hk", 342 | "_active": true, 343 | "_components": [ 344 | { 345 | "__id__": 17 346 | }, 347 | { 348 | "__id__": 14 349 | }, 350 | { 351 | "__id__": 18 352 | } 353 | ], 354 | "_prefab": null, 355 | "groupIndex": 0 356 | }, 357 | { 358 | "__type__": "cc.Node", 359 | "_name": "background", 360 | "_objFlags": 0, 361 | "_opacity": 255, 362 | "_color": { 363 | "__type__": "cc.Color", 364 | "r": 255, 365 | "g": 255, 366 | "b": 255, 367 | "a": 255 368 | }, 369 | "_cascadeOpacityEnabled": true, 370 | "_parent": { 371 | "__id__": 2 372 | }, 373 | "_anchorPoint": { 374 | "__type__": "cc.Vec2", 375 | "x": 0.5, 376 | "y": 0.5 377 | }, 378 | "_contentSize": { 379 | "__type__": "cc.Size", 380 | "width": 640, 381 | "height": 1136 382 | }, 383 | "_children": [ 384 | { 385 | "__id__": 7 386 | } 387 | ], 388 | "_rotationX": 0, 389 | "_rotationY": 0, 390 | "_scaleX": 1, 391 | "_scaleY": 1, 392 | "_position": { 393 | "__type__": "cc.Vec2", 394 | "x": 0, 395 | "y": 0 396 | }, 397 | "_skewX": 0, 398 | "_skewY": 0, 399 | "_localZOrder": 0, 400 | "_globalZOrder": 0, 401 | "_tag": -1, 402 | "_opacityModifyRGB": false, 403 | "_id": "2f4e6+tQAVDIrePXaTsCvSG", 404 | "_active": true, 405 | "_components": [ 406 | { 407 | "__id__": 9 408 | } 409 | ], 410 | "_prefab": null, 411 | "groupIndex": 0 412 | }, 413 | { 414 | "__type__": "cc.Sprite", 415 | "_name": "", 416 | "_objFlags": 0, 417 | "node": { 418 | "__id__": 8 419 | }, 420 | "_enabled": true, 421 | "_spriteFrame": { 422 | "__uuid__": "21ab00d1-178a-4ac2-ba2a-032f0f8bbe7b" 423 | }, 424 | "_type": 0, 425 | "_sizeMode": 0, 426 | "_fillType": 0, 427 | "_fillCenter": { 428 | "__type__": "cc.Vec2", 429 | "x": 0, 430 | "y": 0 431 | }, 432 | "_fillStart": 0, 433 | "_fillRange": 0, 434 | "_isTrimmedMode": true, 435 | "_srcBlendFactor": 770, 436 | "_dstBlendFactor": 771, 437 | "_atlas": { 438 | "__uuid__": "52b6bc4e-b6e1-4b65-8636-c2c1275b59f8" 439 | } 440 | }, 441 | { 442 | "__type__": "cc.Node", 443 | "_name": "scrollBar", 444 | "_objFlags": 0, 445 | "_opacity": 255, 446 | "_color": { 447 | "__type__": "cc.Color", 448 | "r": 238, 449 | "g": 217, 450 | "b": 227, 451 | "a": 255 452 | }, 453 | "_cascadeOpacityEnabled": true, 454 | "_parent": { 455 | "__id__": 7 456 | }, 457 | "_anchorPoint": { 458 | "__type__": "cc.Vec2", 459 | "x": 1, 460 | "y": 0.5 461 | }, 462 | "_contentSize": { 463 | "__type__": "cc.Size", 464 | "width": 12, 465 | "height": 886 466 | }, 467 | "_children": [ 468 | { 469 | "__id__": 11 470 | } 471 | ], 472 | "_rotationX": 0, 473 | "_rotationY": 0, 474 | "_scaleX": 1, 475 | "_scaleY": 1, 476 | "_position": { 477 | "__type__": "cc.Vec2", 478 | "x": 270, 479 | "y": 0 480 | }, 481 | "_skewX": 0, 482 | "_skewY": 0, 483 | "_localZOrder": 0, 484 | "_globalZOrder": 0, 485 | "_tag": -1, 486 | "_opacityModifyRGB": false, 487 | "_id": "f21f7EA49tIn42RHamI70Ue", 488 | "_active": true, 489 | "_components": [ 490 | { 491 | "__id__": 13 492 | }, 493 | { 494 | "__id__": 15 495 | }, 496 | { 497 | "__id__": 16 498 | } 499 | ], 500 | "_prefab": null, 501 | "groupIndex": 0 502 | }, 503 | { 504 | "__type__": "cc.Node", 505 | "_name": "bar", 506 | "_objFlags": 0, 507 | "_opacity": 255, 508 | "_color": { 509 | "__type__": "cc.Color", 510 | "r": 236, 511 | "g": 241, 512 | "b": 245, 513 | "a": 255 514 | }, 515 | "_cascadeOpacityEnabled": true, 516 | "_parent": { 517 | "__id__": 10 518 | }, 519 | "_anchorPoint": { 520 | "__type__": "cc.Vec2", 521 | "x": 0, 522 | "y": 0 523 | }, 524 | "_contentSize": { 525 | "__type__": "cc.Size", 526 | "width": 12, 527 | "height": 156.9992 528 | }, 529 | "_children": [], 530 | "_rotationX": 0, 531 | "_rotationY": 0, 532 | "_scaleX": 1, 533 | "_scaleY": 1, 534 | "_position": { 535 | "__type__": "cc.Vec2", 536 | "x": -12, 537 | "y": 286.0008 538 | }, 539 | "_skewX": 0, 540 | "_skewY": 0, 541 | "_localZOrder": 0, 542 | "_globalZOrder": 0, 543 | "_tag": -1, 544 | "_opacityModifyRGB": false, 545 | "_id": "578edFDYQVF5YSvRL4x+KAN", 546 | "_active": true, 547 | "_components": [ 548 | { 549 | "__id__": 12 550 | } 551 | ], 552 | "_prefab": null, 553 | "groupIndex": 0 554 | }, 555 | { 556 | "__type__": "cc.Sprite", 557 | "_name": "", 558 | "_objFlags": 0, 559 | "node": { 560 | "__id__": 11 561 | }, 562 | "_enabled": true, 563 | "_spriteFrame": { 564 | "__uuid__": "5c3bb932-6c3c-468f-88a9-c8c61d458641" 565 | }, 566 | "_type": 1, 567 | "_sizeMode": 0, 568 | "_fillType": 0, 569 | "_fillCenter": { 570 | "__type__": "cc.Vec2", 571 | "x": 0, 572 | "y": 0 573 | }, 574 | "_fillStart": 0, 575 | "_fillRange": 0, 576 | "_isTrimmedMode": true, 577 | "_srcBlendFactor": 770, 578 | "_dstBlendFactor": 771, 579 | "_atlas": null 580 | }, 581 | { 582 | "__type__": "cc.Scrollbar", 583 | "_name": "", 584 | "_objFlags": 0, 585 | "node": { 586 | "__id__": 10 587 | }, 588 | "_enabled": true, 589 | "_scrollView": { 590 | "__id__": 14 591 | }, 592 | "_touching": false, 593 | "_opacity": 255, 594 | "enableAutoHide": true, 595 | "autoHideTime": 1, 596 | "_N$handle": { 597 | "__id__": 12 598 | }, 599 | "_N$direction": 1 600 | }, 601 | { 602 | "__type__": "cc.ScrollView", 603 | "_name": "", 604 | "_objFlags": 0, 605 | "node": { 606 | "__id__": 7 607 | }, 608 | "_enabled": true, 609 | "content": { 610 | "__id__": 5 611 | }, 612 | "horizontal": false, 613 | "vertical": true, 614 | "inertia": true, 615 | "brake": 0.75, 616 | "elastic": true, 617 | "bounceDuration": 0.23, 618 | "scrollEvents": [], 619 | "cancelInnerEvents": true, 620 | "_N$horizontalScrollBar": null, 621 | "_N$verticalScrollBar": { 622 | "__id__": 13 623 | } 624 | }, 625 | { 626 | "__type__": "cc.Widget", 627 | "_name": "", 628 | "_objFlags": 0, 629 | "node": { 630 | "__id__": 10 631 | }, 632 | "_enabled": true, 633 | "isAlignOnce": true, 634 | "_alignFlags": 37, 635 | "_left": 350.07654921020657, 636 | "_right": 0, 637 | "_top": 0, 638 | "_bottom": 0, 639 | "_verticalCenter": 0, 640 | "_horizontalCenter": 0, 641 | "_isAbsLeft": true, 642 | "_isAbsRight": true, 643 | "_isAbsTop": true, 644 | "_isAbsBottom": true, 645 | "_isAbsHorizontalCenter": true, 646 | "_isAbsVerticalCenter": true, 647 | "_originalWidth": 0, 648 | "_originalHeight": 237 649 | }, 650 | { 651 | "__type__": "cc.Sprite", 652 | "_name": "", 653 | "_objFlags": 0, 654 | "node": { 655 | "__id__": 10 656 | }, 657 | "_enabled": true, 658 | "_spriteFrame": { 659 | "__uuid__": "5fe5dcaa-b513-4dc5-a166-573627b3a159" 660 | }, 661 | "_type": 1, 662 | "_sizeMode": 0, 663 | "_fillType": 0, 664 | "_fillCenter": { 665 | "__type__": "cc.Vec2", 666 | "x": 0, 667 | "y": 0 668 | }, 669 | "_fillStart": 0, 670 | "_fillRange": 0, 671 | "_isTrimmedMode": true, 672 | "_srcBlendFactor": 770, 673 | "_dstBlendFactor": 771, 674 | "_atlas": null 675 | }, 676 | { 677 | "__type__": "cc.Sprite", 678 | "_name": "", 679 | "_objFlags": 0, 680 | "node": { 681 | "__id__": 7 682 | }, 683 | "_enabled": true, 684 | "_spriteFrame": { 685 | "__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69" 686 | }, 687 | "_type": 1, 688 | "_sizeMode": 0, 689 | "_fillType": 0, 690 | "_fillCenter": { 691 | "__type__": "cc.Vec2", 692 | "x": 0, 693 | "y": 0 694 | }, 695 | "_fillStart": 0, 696 | "_fillRange": 0, 697 | "_isTrimmedMode": true, 698 | "_srcBlendFactor": 770, 699 | "_dstBlendFactor": 771, 700 | "_atlas": null 701 | }, 702 | { 703 | "__type__": "cc.Widget", 704 | "_name": "", 705 | "_objFlags": 0, 706 | "node": { 707 | "__id__": 7 708 | }, 709 | "_enabled": true, 710 | "isAlignOnce": false, 711 | "_alignFlags": 45, 712 | "_left": 50, 713 | "_right": 50, 714 | "_top": 200, 715 | "_bottom": 50, 716 | "_verticalCenter": 0, 717 | "_horizontalCenter": 0, 718 | "_isAbsLeft": true, 719 | "_isAbsRight": true, 720 | "_isAbsTop": true, 721 | "_isAbsBottom": true, 722 | "_isAbsHorizontalCenter": true, 723 | "_isAbsVerticalCenter": true, 724 | "_originalWidth": 505, 725 | "_originalHeight": 890 726 | }, 727 | { 728 | "__type__": "cc.Mask", 729 | "_name": "", 730 | "_objFlags": 0, 731 | "node": { 732 | "__id__": 6 733 | }, 734 | "_enabled": true, 735 | "_type": 0, 736 | "_segements": 64 737 | }, 738 | { 739 | "__type__": "cc.Widget", 740 | "_name": "", 741 | "_objFlags": 0, 742 | "node": { 743 | "__id__": 6 744 | }, 745 | "_enabled": true, 746 | "isAlignOnce": true, 747 | "_alignFlags": 45, 748 | "_left": 20, 749 | "_right": 20, 750 | "_top": 20, 751 | "_bottom": 20, 752 | "_verticalCenter": 0, 753 | "_horizontalCenter": 0, 754 | "_isAbsLeft": true, 755 | "_isAbsRight": true, 756 | "_isAbsTop": true, 757 | "_isAbsBottom": true, 758 | "_isAbsHorizontalCenter": true, 759 | "_isAbsVerticalCenter": true, 760 | "_originalWidth": 240, 761 | "_originalHeight": 250 762 | }, 763 | { 764 | "__type__": "cc.Layout", 765 | "_name": "", 766 | "_objFlags": 0, 767 | "node": { 768 | "__id__": 5 769 | }, 770 | "_enabled": true, 771 | "_layoutSize": { 772 | "__type__": "cc.Size", 773 | "width": 500, 774 | "height": 80 775 | }, 776 | "_resize": 1, 777 | "_N$layoutType": 2, 778 | "_N$cellSize": { 779 | "__type__": "cc.Size", 780 | "width": 40, 781 | "height": 40 782 | }, 783 | "_N$startAxis": 0, 784 | "_N$padding": 20, 785 | "_N$spacingX": 0, 786 | "_N$spacingY": 60, 787 | "_N$verticalDirection": 1, 788 | "_N$horizontalDirection": 0 789 | }, 790 | { 791 | "__type__": "cc.Widget", 792 | "_name": "", 793 | "_objFlags": 0, 794 | "node": { 795 | "__id__": 5 796 | }, 797 | "_enabled": false, 798 | "isAlignOnce": true, 799 | "_alignFlags": 41, 800 | "_left": 0, 801 | "_right": 0, 802 | "_top": 40, 803 | "_bottom": 0, 804 | "_verticalCenter": 0, 805 | "_horizontalCenter": 0, 806 | "_isAbsLeft": true, 807 | "_isAbsRight": true, 808 | "_isAbsTop": true, 809 | "_isAbsBottom": true, 810 | "_isAbsHorizontalCenter": true, 811 | "_isAbsVerticalCenter": true, 812 | "_originalWidth": 220, 813 | "_originalHeight": 0 814 | }, 815 | { 816 | "__type__": "cc.Node", 817 | "_name": "btn_finish", 818 | "_objFlags": 0, 819 | "_opacity": 255, 820 | "_color": { 821 | "__type__": "cc.Color", 822 | "r": 255, 823 | "g": 255, 824 | "b": 255, 825 | "a": 255 826 | }, 827 | "_cascadeOpacityEnabled": true, 828 | "_parent": { 829 | "__id__": 2 830 | }, 831 | "_anchorPoint": { 832 | "__type__": "cc.Vec2", 833 | "x": 0.5, 834 | "y": 0.5 835 | }, 836 | "_contentSize": { 837 | "__type__": "cc.Size", 838 | "width": 140, 839 | "height": 48 840 | }, 841 | "_children": [], 842 | "_rotationX": 0, 843 | "_rotationY": 0, 844 | "_scaleX": 1, 845 | "_scaleY": 1, 846 | "_position": { 847 | "__type__": "cc.Vec2", 848 | "x": -1, 849 | "y": 437 850 | }, 851 | "_skewX": 0, 852 | "_skewY": 0, 853 | "_localZOrder": 0, 854 | "_globalZOrder": 0, 855 | "_tag": -1, 856 | "_opacityModifyRGB": false, 857 | "_id": "0961b7LaDVFbKzxoh3tBzGj", 858 | "_active": true, 859 | "_components": [ 860 | { 861 | "__id__": 24 862 | } 863 | ], 864 | "_prefab": null, 865 | "groupIndex": 0 866 | }, 867 | { 868 | "__type__": "cc.Sprite", 869 | "_name": "", 870 | "_objFlags": 0, 871 | "node": { 872 | "__id__": 23 873 | }, 874 | "_enabled": true, 875 | "_spriteFrame": { 876 | "__uuid__": "a0848ad6-7737-4bed-941f-0967a6cfbf8d" 877 | }, 878 | "_type": 0, 879 | "_sizeMode": 1, 880 | "_fillType": 0, 881 | "_fillCenter": { 882 | "__type__": "cc.Vec2", 883 | "x": 0, 884 | "y": 0 885 | }, 886 | "_fillStart": 0, 887 | "_fillRange": 0, 888 | "_isTrimmedMode": true, 889 | "_srcBlendFactor": 770, 890 | "_dstBlendFactor": 771, 891 | "_atlas": { 892 | "__uuid__": "52b6bc4e-b6e1-4b65-8636-c2c1275b59f8" 893 | } 894 | }, 895 | { 896 | "__type__": "cc.Canvas", 897 | "_name": "", 898 | "_objFlags": 0, 899 | "node": { 900 | "__id__": 2 901 | }, 902 | "_enabled": true, 903 | "_designResolution": { 904 | "__type__": "cc.Size", 905 | "width": 640, 906 | "height": 1136 907 | }, 908 | "_fitWidth": true, 909 | "_fitHeight": true 910 | } 911 | ] -------------------------------------------------------------------------------- /assets/Texture/shoot.plist.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.4", 3 | "uuid": "ebb25974-78f8-469f-a4b8-bac08387f220", 4 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 5 | "size": { 6 | "width": 1024, 7 | "height": 1024 8 | }, 9 | "type": "Texture Packer", 10 | "subMetas": { 11 | "bomb.png": { 12 | "ver": "1.0.3", 13 | "uuid": "fac76ba3-628e-410e-9877-3a848ba7793c", 14 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 15 | "trimType": "auto", 16 | "trimThreshold": 1, 17 | "rotated": false, 18 | "offsetX": 0, 19 | "offsetY": 0, 20 | "trimX": 495, 21 | "trimY": 2, 22 | "width": 63, 23 | "height": 53, 24 | "rawWidth": 63, 25 | "rawHeight": 57, 26 | "borderTop": 0, 27 | "borderBottom": 0, 28 | "borderLeft": 0, 29 | "borderRight": 0, 30 | "spriteType": "normal", 31 | "subMetas": {} 32 | }, 33 | "bullet1.png": { 34 | "ver": "1.0.3", 35 | "uuid": "a39e0e8d-c932-4858-b7cf-c7eb56341d03", 36 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 37 | "trimType": "auto", 38 | "trimThreshold": 1, 39 | "rotated": true, 40 | "offsetX": 0, 41 | "offsetY": 0, 42 | "trimX": 25, 43 | "trimY": 2, 44 | "width": 9, 45 | "height": 21, 46 | "rawWidth": 9, 47 | "rawHeight": 21, 48 | "borderTop": 0, 49 | "borderBottom": 0, 50 | "borderLeft": 0, 51 | "borderRight": 0, 52 | "spriteType": "normal", 53 | "subMetas": {} 54 | }, 55 | "bullet2.png": { 56 | "ver": "1.0.3", 57 | "uuid": "deace260-f255-436b-9672-d920111e0bed", 58 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 59 | "trimType": "auto", 60 | "trimThreshold": 1, 61 | "rotated": true, 62 | "offsetX": 0, 63 | "offsetY": 0, 64 | "trimX": 2, 65 | "trimY": 2, 66 | "width": 9, 67 | "height": 21, 68 | "rawWidth": 9, 69 | "rawHeight": 21, 70 | "borderTop": 0, 71 | "borderBottom": 0, 72 | "borderLeft": 0, 73 | "borderRight": 0, 74 | "spriteType": "normal", 75 | "subMetas": {} 76 | }, 77 | "enemy1.png": { 78 | "ver": "1.0.3", 79 | "uuid": "88181abf-694c-4789-aaff-b5b0337f7748", 80 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 81 | "trimType": "auto", 82 | "trimThreshold": 1, 83 | "rotated": false, 84 | "offsetX": 0, 85 | "offsetY": -1, 86 | "trimX": 187, 87 | "trimY": 2, 88 | "width": 51, 89 | "height": 39, 90 | "rawWidth": 57, 91 | "rawHeight": 43, 92 | "borderTop": 0, 93 | "borderBottom": 0, 94 | "borderLeft": 0, 95 | "borderRight": 0, 96 | "spriteType": "normal", 97 | "subMetas": {} 98 | }, 99 | "enemy1_down1.png": { 100 | "ver": "1.0.3", 101 | "uuid": "edbcc507-1257-499d-af25-b2016ea1d487", 102 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 103 | "trimType": "auto", 104 | "trimThreshold": 1, 105 | "rotated": false, 106 | "offsetX": 0, 107 | "offsetY": -2, 108 | "trimX": 134, 109 | "trimY": 2, 110 | "width": 51, 111 | "height": 39, 112 | "rawWidth": 57, 113 | "rawHeight": 51, 114 | "borderTop": 0, 115 | "borderBottom": 0, 116 | "borderLeft": 0, 117 | "borderRight": 0, 118 | "spriteType": "normal", 119 | "subMetas": {} 120 | }, 121 | "enemy1_down2.png": { 122 | "ver": "1.0.3", 123 | "uuid": "e4c3cf6c-513e-4b20-a449-f728eef0ee0b", 124 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 125 | "trimType": "auto", 126 | "trimThreshold": 1, 127 | "rotated": false, 128 | "offsetX": 0, 129 | "offsetY": -2, 130 | "trimX": 383, 131 | "trimY": 2, 132 | "width": 51, 133 | "height": 47, 134 | "rawWidth": 57, 135 | "rawHeight": 51, 136 | "borderTop": 0, 137 | "borderBottom": 0, 138 | "borderLeft": 0, 139 | "borderRight": 0, 140 | "spriteType": "normal", 141 | "subMetas": {} 142 | }, 143 | "enemy1_down3.png": { 144 | "ver": "1.0.3", 145 | "uuid": "652086ef-7f79-4230-8e02-5d854addaab2", 146 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 147 | "trimType": "auto", 148 | "trimThreshold": 1, 149 | "rotated": false, 150 | "offsetX": 0, 151 | "offsetY": 0, 152 | "trimX": 436, 153 | "trimY": 2, 154 | "width": 57, 155 | "height": 51, 156 | "rawWidth": 57, 157 | "rawHeight": 51, 158 | "borderTop": 0, 159 | "borderBottom": 0, 160 | "borderLeft": 0, 161 | "borderRight": 0, 162 | "spriteType": "normal", 163 | "subMetas": {} 164 | }, 165 | "enemy1_down4.png": { 166 | "ver": "1.0.3", 167 | "uuid": "5fb87426-3d6f-42b0-a3ad-8d966b9a438f", 168 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 169 | "trimType": "auto", 170 | "trimThreshold": 1, 171 | "rotated": false, 172 | "offsetX": 0, 173 | "offsetY": -3, 174 | "trimX": 240, 175 | "trimY": 2, 176 | "width": 47, 177 | "height": 39, 178 | "rawWidth": 57, 179 | "rawHeight": 51, 180 | "borderTop": 0, 181 | "borderBottom": 0, 182 | "borderLeft": 0, 183 | "borderRight": 0, 184 | "spriteType": "normal", 185 | "subMetas": {} 186 | }, 187 | "enemy2.png": { 188 | "ver": "1.0.3", 189 | "uuid": "7fb818d3-02f2-4d5f-823c-cef57f25f7fa", 190 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 191 | "trimType": "auto", 192 | "trimThreshold": 1, 193 | "rotated": true, 194 | "offsetX": 0, 195 | "offsetY": 3, 196 | "trimX": 835, 197 | "trimY": 2, 198 | "width": 69, 199 | "height": 89, 200 | "rawWidth": 69, 201 | "rawHeight": 99, 202 | "borderTop": 0, 203 | "borderBottom": 0, 204 | "borderLeft": 0, 205 | "borderRight": 0, 206 | "spriteType": "normal", 207 | "subMetas": {} 208 | }, 209 | "enemy2_down1.png": { 210 | "ver": "1.0.3", 211 | "uuid": "2d114de7-5202-4b92-9d04-4cab45b3079f", 212 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 213 | "trimType": "auto", 214 | "trimThreshold": 1, 215 | "rotated": true, 216 | "offsetX": 0, 217 | "offsetY": 0, 218 | "trimX": 2, 219 | "trimY": 42, 220 | "width": 69, 221 | "height": 93, 222 | "rawWidth": 69, 223 | "rawHeight": 95, 224 | "borderTop": 0, 225 | "borderBottom": 0, 226 | "borderLeft": 0, 227 | "borderRight": 0, 228 | "spriteType": "normal", 229 | "subMetas": {} 230 | }, 231 | "enemy2_down2.png": { 232 | "ver": "1.0.3", 233 | "uuid": "dc6aa4ce-f260-49e6-ae20-19f0034c5f90", 234 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 235 | "trimType": "auto", 236 | "trimThreshold": 1, 237 | "rotated": true, 238 | "offsetX": 0, 239 | "offsetY": 0, 240 | "trimX": 926, 241 | "trimY": 2, 242 | "width": 69, 243 | "height": 93, 244 | "rawWidth": 69, 245 | "rawHeight": 95, 246 | "borderTop": 0, 247 | "borderBottom": 0, 248 | "borderLeft": 0, 249 | "borderRight": 0, 250 | "spriteType": "normal", 251 | "subMetas": {} 252 | }, 253 | "enemy2_down3.png": { 254 | "ver": "1.0.3", 255 | "uuid": "6b39ddfa-65a6-411b-a525-1caeba8acfb7", 256 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 257 | "trimType": "auto", 258 | "trimThreshold": 1, 259 | "rotated": true, 260 | "offsetX": 0, 261 | "offsetY": 0, 262 | "trimX": 273, 263 | "trimY": 46, 264 | "width": 69, 265 | "height": 95, 266 | "rawWidth": 69, 267 | "rawHeight": 95, 268 | "borderTop": 0, 269 | "borderBottom": 0, 270 | "borderLeft": 0, 271 | "borderRight": 0, 272 | "spriteType": "normal", 273 | "subMetas": {} 274 | }, 275 | "enemy2_down4.png": { 276 | "ver": "1.0.3", 277 | "uuid": "e8748e52-d5c1-44e9-99b5-114792a66a4c", 278 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 279 | "trimType": "auto", 280 | "trimThreshold": 1, 281 | "rotated": true, 282 | "offsetX": 0, 283 | "offsetY": -4, 284 | "trimX": 194, 285 | "trimY": 43, 286 | "width": 69, 287 | "height": 77, 288 | "rawWidth": 69, 289 | "rawHeight": 95, 290 | "borderTop": 0, 291 | "borderBottom": 0, 292 | "borderLeft": 0, 293 | "borderRight": 0, 294 | "spriteType": "normal", 295 | "subMetas": {} 296 | }, 297 | "enemy2_hit.png": { 298 | "ver": "1.0.3", 299 | "uuid": "8451d70c-488d-4cf4-b5f7-280781f3372d", 300 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 301 | "trimType": "auto", 302 | "trimThreshold": 1, 303 | "rotated": true, 304 | "offsetX": 0, 305 | "offsetY": 0, 306 | "trimX": 97, 307 | "trimY": 43, 308 | "width": 69, 309 | "height": 95, 310 | "rawWidth": 69, 311 | "rawHeight": 99, 312 | "borderTop": 0, 313 | "borderBottom": 0, 314 | "borderLeft": 0, 315 | "borderRight": 0, 316 | "spriteType": "normal", 317 | "subMetas": {} 318 | }, 319 | "enemy3_down1.png": { 320 | "ver": "1.0.3", 321 | "uuid": "5476395a-8bc5-4aa1-991a-60752acb9bfa", 322 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 323 | "trimType": "auto", 324 | "trimThreshold": 1, 325 | "rotated": true, 326 | "offsetX": 0, 327 | "offsetY": 1, 328 | "trimX": 2, 329 | "trimY": 324, 330 | "width": 165, 331 | "height": 255, 332 | "rawWidth": 165, 333 | "rawHeight": 261, 334 | "borderTop": 0, 335 | "borderBottom": 0, 336 | "borderLeft": 0, 337 | "borderRight": 0, 338 | "spriteType": "normal", 339 | "subMetas": {} 340 | }, 341 | "enemy3_down2.png": { 342 | "ver": "1.0.3", 343 | "uuid": "e4f28c7f-b9bd-4a10-a451-7cf578d0ae19", 344 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 345 | "trimType": "auto", 346 | "trimThreshold": 1, 347 | "rotated": true, 348 | "offsetX": 0, 349 | "offsetY": 2, 350 | "trimX": 464, 351 | "trimY": 164, 352 | "width": 165, 353 | "height": 255, 354 | "rawWidth": 165, 355 | "rawHeight": 261, 356 | "borderTop": 0, 357 | "borderBottom": 0, 358 | "borderLeft": 0, 359 | "borderRight": 0, 360 | "spriteType": "normal", 361 | "subMetas": {} 362 | }, 363 | "enemy3_down3.png": { 364 | "ver": "1.0.3", 365 | "uuid": "a3eaf3c0-7da2-4a52-951f-317c7cb418e5", 366 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 367 | "trimType": "auto", 368 | "trimThreshold": 1, 369 | "rotated": true, 370 | "offsetX": 0, 371 | "offsetY": 2, 372 | "trimX": 259, 373 | "trimY": 331, 374 | "width": 165, 375 | "height": 256, 376 | "rawWidth": 165, 377 | "rawHeight": 260, 378 | "borderTop": 0, 379 | "borderBottom": 0, 380 | "borderLeft": 0, 381 | "borderRight": 0, 382 | "spriteType": "normal", 383 | "subMetas": {} 384 | }, 385 | "enemy3_down4.png": { 386 | "ver": "1.0.3", 387 | "uuid": "cb4a5430-be95-4feb-b6ec-edcdaa814343", 388 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 389 | "trimType": "auto", 390 | "trimThreshold": 1, 391 | "rotated": true, 392 | "offsetX": 0, 393 | "offsetY": 2, 394 | "trimX": 207, 395 | "trimY": 157, 396 | "width": 165, 397 | "height": 255, 398 | "rawWidth": 165, 399 | "rawHeight": 261, 400 | "borderTop": 0, 401 | "borderBottom": 0, 402 | "borderLeft": 0, 403 | "borderRight": 0, 404 | "spriteType": "normal", 405 | "subMetas": {} 406 | }, 407 | "enemy3_down5.png": { 408 | "ver": "1.0.3", 409 | "uuid": "f3b7ba7b-d000-421b-b83f-0d5b4e656f44", 410 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 411 | "trimType": "auto", 412 | "trimThreshold": 1, 413 | "rotated": true, 414 | "offsetX": 0, 415 | "offsetY": 2, 416 | "trimX": 2, 417 | "trimY": 498, 418 | "width": 166, 419 | "height": 256, 420 | "rawWidth": 166, 421 | "rawHeight": 260, 422 | "borderTop": 0, 423 | "borderBottom": 0, 424 | "borderLeft": 0, 425 | "borderRight": 0, 426 | "spriteType": "normal", 427 | "subMetas": {} 428 | }, 429 | "enemy3_down6.png": { 430 | "ver": "1.0.3", 431 | "uuid": "de446ff8-25ca-4363-9139-bc11f4190a3a", 432 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 433 | "trimType": "auto", 434 | "trimThreshold": 1, 435 | "rotated": true, 436 | "offsetX": -8, 437 | "offsetY": 18, 438 | "trimX": 2, 439 | "trimY": 114, 440 | "width": 144, 441 | "height": 203, 442 | "rawWidth": 166, 443 | "rawHeight": 261, 444 | "borderTop": 0, 445 | "borderBottom": 0, 446 | "borderLeft": 0, 447 | "borderRight": 0, 448 | "spriteType": "normal", 449 | "subMetas": {} 450 | }, 451 | "enemy3_hit.png": { 452 | "ver": "1.0.3", 453 | "uuid": "bb029e21-8aa0-4a7a-8e95-5495b55b45be", 454 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 455 | "trimType": "auto", 456 | "trimThreshold": 1, 457 | "rotated": true, 458 | "offsetX": 0, 459 | "offsetY": 0, 460 | "trimX": 721, 461 | "trimY": 175, 462 | "width": 165, 463 | "height": 256, 464 | "rawWidth": 169, 465 | "rawHeight": 258, 466 | "borderTop": 0, 467 | "borderBottom": 0, 468 | "borderLeft": 0, 469 | "borderRight": 0, 470 | "spriteType": "normal", 471 | "subMetas": {} 472 | }, 473 | "enemy3_n1.png": { 474 | "ver": "1.0.3", 475 | "uuid": "4c993fe7-1278-42a8-985a-7e69688be01c", 476 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 477 | "trimType": "auto", 478 | "trimThreshold": 1, 479 | "rotated": true, 480 | "offsetX": 0, 481 | "offsetY": 4, 482 | "trimX": 517, 483 | "trimY": 342, 484 | "width": 165, 485 | "height": 246, 486 | "rawWidth": 169, 487 | "rawHeight": 258, 488 | "borderTop": 0, 489 | "borderBottom": 0, 490 | "borderLeft": 0, 491 | "borderRight": 0, 492 | "spriteType": "normal", 493 | "subMetas": {} 494 | }, 495 | "enemy3_n2.png": { 496 | "ver": "1.0.3", 497 | "uuid": "dd7c645a-7b7d-46f0-a9b1-0092d9f6857f", 498 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 499 | "trimType": "auto", 500 | "trimThreshold": 1, 501 | "rotated": true, 502 | "offsetX": 0, 503 | "offsetY": 3, 504 | "trimX": 765, 505 | "trimY": 342, 506 | "width": 165, 507 | "height": 250, 508 | "rawWidth": 169, 509 | "rawHeight": 258, 510 | "borderTop": 0, 511 | "borderBottom": 0, 512 | "borderLeft": 0, 513 | "borderRight": 0, 514 | "spriteType": "normal", 515 | "subMetas": {} 516 | }, 517 | "game_pause_nor.png": { 518 | "ver": "1.0.3", 519 | "uuid": "d55183ac-b855-4334-b3a8-4f8820374582", 520 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 521 | "trimType": "auto", 522 | "trimThreshold": 1, 523 | "rotated": true, 524 | "offsetX": -1, 525 | "offsetY": 0, 526 | "trimX": 336, 527 | "trimY": 2, 528 | "width": 42, 529 | "height": 45, 530 | "rawWidth": 60, 531 | "rawHeight": 45, 532 | "borderTop": 0, 533 | "borderBottom": 0, 534 | "borderLeft": 0, 535 | "borderRight": 0, 536 | "spriteType": "normal", 537 | "subMetas": {} 538 | }, 539 | "game_pause_pressed.png": { 540 | "ver": "1.0.3", 541 | "uuid": "230f65ec-0a1a-4865-8e07-6180292a1684", 542 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 543 | "trimType": "auto", 544 | "trimThreshold": 1, 545 | "rotated": true, 546 | "offsetX": -1, 547 | "offsetY": 0, 548 | "trimX": 289, 549 | "trimY": 2, 550 | "width": 42, 551 | "height": 45, 552 | "rawWidth": 60, 553 | "rawHeight": 45, 554 | "borderTop": 0, 555 | "borderBottom": 0, 556 | "borderLeft": 0, 557 | "borderRight": 0, 558 | "spriteType": "normal", 559 | "subMetas": {} 560 | }, 561 | "game_resume_nor.png": { 562 | "ver": "1.0.3", 563 | "uuid": "4c1586d5-b712-45cf-a350-01fd27ad481f", 564 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 565 | "trimType": "auto", 566 | "trimThreshold": 1, 567 | "rotated": true, 568 | "offsetX": 3, 569 | "offsetY": 0, 570 | "trimX": 91, 571 | "trimY": 2, 572 | "width": 38, 573 | "height": 41, 574 | "rawWidth": 60, 575 | "rawHeight": 45, 576 | "borderTop": 0, 577 | "borderBottom": 0, 578 | "borderLeft": 0, 579 | "borderRight": 0, 580 | "spriteType": "normal", 581 | "subMetas": {} 582 | }, 583 | "game_resume_pressed.png": { 584 | "ver": "1.0.3", 585 | "uuid": "c6573f9c-31c9-4569-8949-28a168ff3cc1", 586 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 587 | "trimType": "auto", 588 | "trimThreshold": 1, 589 | "rotated": true, 590 | "offsetX": 3, 591 | "offsetY": 0, 592 | "trimX": 48, 593 | "trimY": 2, 594 | "width": 38, 595 | "height": 41, 596 | "rawWidth": 60, 597 | "rawHeight": 45, 598 | "borderTop": 0, 599 | "borderBottom": 0, 600 | "borderLeft": 0, 601 | "borderRight": 0, 602 | "spriteType": "normal", 603 | "subMetas": {} 604 | }, 605 | "hero1.png": { 606 | "ver": "1.0.3", 607 | "uuid": "ccbb3308-e31b-4258-a3d6-a5537a42a99f", 608 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 609 | "trimType": "auto", 610 | "trimThreshold": 1, 611 | "rotated": true, 612 | "offsetX": 0, 613 | "offsetY": 0, 614 | "trimX": 872, 615 | "trimY": 73, 616 | "width": 100, 617 | "height": 124, 618 | "rawWidth": 102, 619 | "rawHeight": 126, 620 | "borderTop": 0, 621 | "borderBottom": 0, 622 | "borderLeft": 0, 623 | "borderRight": 0, 624 | "spriteType": "normal", 625 | "subMetas": {} 626 | }, 627 | "hero2.png": { 628 | "ver": "1.0.3", 629 | "uuid": "c12465aa-c3a1-4128-bc11-1ea23ca149ed", 630 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 631 | "trimType": "auto", 632 | "trimThreshold": 1, 633 | "rotated": true, 634 | "offsetX": 0, 635 | "offsetY": 1, 636 | "trimX": 370, 637 | "trimY": 55, 638 | "width": 100, 639 | "height": 122, 640 | "rawWidth": 102, 641 | "rawHeight": 126, 642 | "borderTop": 0, 643 | "borderBottom": 0, 644 | "borderLeft": 0, 645 | "borderRight": 0, 646 | "spriteType": "normal", 647 | "subMetas": {} 648 | }, 649 | "hero_blowup_n1.png": { 650 | "ver": "1.0.3", 651 | "uuid": "d6d68609-87fe-4443-b10e-dc10feae833a", 652 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 653 | "trimType": "auto", 654 | "trimThreshold": 1, 655 | "rotated": true, 656 | "offsetX": 0, 657 | "offsetY": -1, 658 | "trimX": 746, 659 | "trimY": 73, 660 | "width": 98, 661 | "height": 124, 662 | "rawWidth": 102, 663 | "rawHeight": 126, 664 | "borderTop": 0, 665 | "borderBottom": 0, 666 | "borderLeft": 0, 667 | "borderRight": 0, 668 | "spriteType": "normal", 669 | "subMetas": {} 670 | }, 671 | "hero_blowup_n2.png": { 672 | "ver": "1.0.3", 673 | "uuid": "bb54bdef-6d73-4ec6-bc16-9152c6a7ac41", 674 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 675 | "trimType": "auto", 676 | "trimThreshold": 1, 677 | "rotated": true, 678 | "offsetX": 0, 679 | "offsetY": -1, 680 | "trimX": 620, 681 | "trimY": 64, 682 | "width": 98, 683 | "height": 124, 684 | "rawWidth": 102, 685 | "rawHeight": 126, 686 | "borderTop": 0, 687 | "borderBottom": 0, 688 | "borderLeft": 0, 689 | "borderRight": 0, 690 | "spriteType": "normal", 691 | "subMetas": {} 692 | }, 693 | "hero_blowup_n3.png": { 694 | "ver": "1.0.3", 695 | "uuid": "413ff423-50cf-4348-9a28-fe4ee6c1ad37", 696 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 697 | "trimType": "auto", 698 | "trimThreshold": 1, 699 | "rotated": true, 700 | "offsetX": 0, 701 | "offsetY": -1, 702 | "trimX": 494, 703 | "trimY": 62, 704 | "width": 98, 705 | "height": 124, 706 | "rawWidth": 102, 707 | "rawHeight": 126, 708 | "borderTop": 0, 709 | "borderBottom": 0, 710 | "borderLeft": 0, 711 | "borderRight": 0, 712 | "spriteType": "normal", 713 | "subMetas": {} 714 | }, 715 | "hero_blowup_n4.png": { 716 | "ver": "1.0.3", 717 | "uuid": "776dbf77-9943-43a7-bcc5-4855e177eca2", 718 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 719 | "trimType": "auto", 720 | "trimThreshold": 1, 721 | "rotated": true, 722 | "offsetX": 0, 723 | "offsetY": 5, 724 | "trimX": 755, 725 | "trimY": 2, 726 | "width": 66, 727 | "height": 78, 728 | "rawWidth": 102, 729 | "rawHeight": 126, 730 | "borderTop": 0, 731 | "borderBottom": 0, 732 | "borderLeft": 0, 733 | "borderRight": 0, 734 | "spriteType": "normal", 735 | "subMetas": {} 736 | }, 737 | "ufo1.png": { 738 | "ver": "1.0.3", 739 | "uuid": "7a10badf-a3c7-4d5e-8380-7d669229aea4", 740 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 741 | "trimType": "auto", 742 | "trimThreshold": 1, 743 | "rotated": true, 744 | "offsetX": 0, 745 | "offsetY": 0, 746 | "trimX": 560, 747 | "trimY": 2, 748 | "width": 58, 749 | "height": 88, 750 | "rawWidth": 58, 751 | "rawHeight": 88, 752 | "borderTop": 0, 753 | "borderBottom": 0, 754 | "borderLeft": 0, 755 | "borderRight": 0, 756 | "spriteType": "normal", 757 | "subMetas": {} 758 | }, 759 | "ufo2.png": { 760 | "ver": "1.0.3", 761 | "uuid": "ffab0ce9-8f5e-4a0c-89fc-1e73a97bc0e5", 762 | "rawTextureUuid": "2474df7b-96e4-4faf-9fb8-6b4f0bf3c9b4", 763 | "trimType": "auto", 764 | "trimThreshold": 1, 765 | "rotated": true, 766 | "offsetX": 0, 767 | "offsetY": 0, 768 | "trimX": 650, 769 | "trimY": 2, 770 | "width": 60, 771 | "height": 103, 772 | "rawWidth": 60, 773 | "rawHeight": 107, 774 | "borderTop": 0, 775 | "borderBottom": 0, 776 | "borderLeft": 0, 777 | "borderRight": 0, 778 | "spriteType": "normal", 779 | "subMetas": {} 780 | } 781 | } 782 | } --------------------------------------------------------------------------------