├── .gitattributes ├── .gitignore ├── assets ├── plugin_scripts.meta ├── plugin_scripts │ ├── NetworkUtils.js │ ├── NetworkUtils.js.meta │ ├── auxiliaries.js │ ├── auxiliaries.js.meta │ ├── conf.js.template │ ├── conf.js.template.meta │ ├── constants.js │ ├── constants.js.meta │ ├── grammerParser.meta │ ├── grammerParser │ │ ├── index.html │ │ └── index.html.meta │ ├── moment.min.js │ ├── moment.min.js.meta │ ├── protobuf.js │ └── protobuf.js.meta ├── resources.meta ├── resources │ ├── BGM.meta │ ├── BGM │ │ ├── 1.mp3 │ │ ├── 1.mp3.meta │ │ ├── buttonClick.mp3 │ │ ├── buttonClick.mp3.meta │ │ ├── collectCash.mp3 │ │ ├── collectCash.mp3.meta │ │ ├── gotCert.mp3 │ │ └── gotCert.mp3.meta │ ├── animation.meta │ ├── animation │ │ ├── Demon.meta │ │ ├── Demon │ │ │ ├── Demon_ske.json │ │ │ ├── Demon_ske.json.meta │ │ │ ├── Demon_tex.json │ │ │ ├── Demon_tex.json.meta │ │ │ ├── Demon_tex.png │ │ │ └── Demon_tex.png.meta │ │ ├── Duck.meta │ │ ├── Duck │ │ │ ├── Flying.meta │ │ │ ├── Flying │ │ │ │ ├── BottomLeft.anim │ │ │ │ ├── BottomLeft.anim.meta │ │ │ │ ├── BottomRight.anim │ │ │ │ ├── BottomRight.anim.meta │ │ │ │ ├── TopLeft.anim │ │ │ │ ├── TopLeft.anim.meta │ │ │ │ ├── TopRight.anim │ │ │ │ └── TopRight.anim.meta │ │ │ ├── Walking.meta │ │ │ └── Walking │ │ │ │ ├── BottomLeft.anim │ │ │ │ ├── BottomLeft.anim.meta │ │ │ │ ├── BottomRight.anim │ │ │ │ ├── BottomRight.anim.meta │ │ │ │ ├── TopLeft.anim │ │ │ │ ├── TopLeft.anim.meta │ │ │ │ ├── TopRight.anim │ │ │ │ └── TopRight.anim.meta │ │ ├── FlatHeadSister.meta │ │ ├── FlatHeadSister │ │ │ ├── FlatHeadSisterRunBottom.anim │ │ │ ├── FlatHeadSisterRunBottom.anim.meta │ │ │ ├── FlatHeadSisterRunBottomLeft.anim │ │ │ ├── FlatHeadSisterRunBottomLeft.anim.meta │ │ │ ├── FlatHeadSisterRunBottomRight.anim │ │ │ ├── FlatHeadSisterRunBottomRight.anim.meta │ │ │ ├── FlatHeadSisterRunLeft.anim │ │ │ ├── FlatHeadSisterRunLeft.anim.meta │ │ │ ├── FlatHeadSisterRunRight.anim │ │ │ ├── FlatHeadSisterRunRight.anim.meta │ │ │ ├── FlatHeadSisterRunTop.anim │ │ │ ├── FlatHeadSisterRunTop.anim.meta │ │ │ ├── FlatHeadSisterRunTopLeft.anim │ │ │ ├── FlatHeadSisterRunTopLeft.anim.meta │ │ │ ├── FlatHeadSisterRunTopRight.anim │ │ │ └── FlatHeadSisterRunTopRight.anim.meta │ │ ├── FrameAnimTextures.meta │ │ ├── FrameAnimTextures │ │ │ ├── Duck.meta │ │ │ ├── Duck │ │ │ │ ├── Duck.plist │ │ │ │ ├── Duck.plist.meta │ │ │ │ ├── Duck.png │ │ │ │ └── Duck.png.meta │ │ │ ├── People.meta │ │ │ └── People │ │ │ │ ├── FrameAnimPeoples.plist │ │ │ │ ├── FrameAnimPeoples.plist.meta │ │ │ │ ├── FrameAnimPeoples.png │ │ │ │ └── FrameAnimPeoples.png.meta │ │ ├── flatHeadSister.meta │ │ └── flatHeadSister │ │ │ ├── FlatHeadSisterRunBottom.anim │ │ │ ├── FlatHeadSisterRunBottom.anim.meta │ │ │ ├── FlatHeadSisterRunBottomLeft.anim │ │ │ ├── FlatHeadSisterRunBottomLeft.anim.meta │ │ │ ├── FlatHeadSisterRunBottomRight.anim │ │ │ ├── FlatHeadSisterRunBottomRight.anim.meta │ │ │ ├── FlatHeadSisterRunLeft.anim │ │ │ ├── FlatHeadSisterRunLeft.anim.meta │ │ │ ├── FlatHeadSisterRunRight.anim │ │ │ ├── FlatHeadSisterRunRight.anim.meta │ │ │ ├── FlatHeadSisterRunTop.anim │ │ │ ├── FlatHeadSisterRunTop.anim.meta │ │ │ ├── FlatHeadSisterRunTopLeft.anim │ │ │ ├── FlatHeadSisterRunTopLeft.anim.meta │ │ │ ├── FlatHeadSisterRunTopRight.anim │ │ │ └── FlatHeadSisterRunTopRight.anim.meta │ ├── font.meta │ ├── font │ │ ├── font.ttf │ │ └── font.ttf.meta │ ├── i18n.meta │ ├── i18n │ │ ├── en.js │ │ ├── en.js.meta │ │ ├── zh.js │ │ └── zh.js.meta │ ├── maps.meta │ ├── maps │ │ ├── joystick_map.meta │ │ ├── joystick_map │ │ │ ├── Tile_W256_H128_S00.png │ │ │ ├── Tile_W256_H128_S00.png.meta │ │ │ ├── Tile_W256_H128_S00.tsx │ │ │ ├── Tile_W256_H128_S00.tsx.meta │ │ │ ├── Tile_W256_H128_S01.png │ │ │ ├── Tile_W256_H128_S01.png.meta │ │ │ ├── Tile_W256_H128_S01.tsx │ │ │ ├── Tile_W256_H128_S01.tsx.meta │ │ │ ├── Tile_W256_H128_S02.png │ │ │ ├── Tile_W256_H128_S02.png.meta │ │ │ ├── Tile_W256_H128_S02.tsx │ │ │ ├── Tile_W256_H128_S02.tsx.meta │ │ │ ├── Tile_W256_H256_S00.png │ │ │ ├── Tile_W256_H256_S00.png.meta │ │ │ ├── Tile_W256_H256_S00.tsx │ │ │ ├── Tile_W256_H256_S00.tsx.meta │ │ │ ├── Tile_W256_H256_S01.png │ │ │ ├── Tile_W256_H256_S01.png.meta │ │ │ ├── Tile_W256_H256_S01.tsx │ │ │ ├── Tile_W256_H256_S01.tsx.meta │ │ │ ├── Tile_W256_H256_S02.png │ │ │ ├── Tile_W256_H256_S02.png.meta │ │ │ ├── Tile_W256_H256_S02.tsx │ │ │ ├── Tile_W256_H256_S02.tsx.meta │ │ │ ├── Tile_W256_H256_S03.png │ │ │ ├── Tile_W256_H256_S03.png.meta │ │ │ ├── Tile_W256_H256_S03.tsx │ │ │ ├── Tile_W256_H256_S03.tsx.meta │ │ │ ├── Tile_W256_H256_S04.png │ │ │ ├── Tile_W256_H256_S04.png.meta │ │ │ ├── Tile_W256_H256_S04.tsx │ │ │ ├── Tile_W256_H256_S04.tsx.meta │ │ │ ├── Tile_W256_H256_S05.png │ │ │ ├── Tile_W256_H256_S05.png.meta │ │ │ ├── Tile_W256_H256_S05.tsx │ │ │ ├── Tile_W256_H256_S05.tsx.meta │ │ │ ├── Tile_W256_H256_S06.png │ │ │ ├── Tile_W256_H256_S06.png.meta │ │ │ ├── Tile_W256_H256_S06.tsx │ │ │ ├── Tile_W256_H256_S06.tsx.meta │ │ │ ├── Tile_W512_H512_S00.png │ │ │ ├── Tile_W512_H512_S00.png.meta │ │ │ ├── Tile_W512_H512_S00.tsx │ │ │ ├── Tile_W512_H512_S00.tsx.meta │ │ │ ├── Tile_W512_H512_S01.png │ │ │ ├── Tile_W512_H512_S01.png.meta │ │ │ ├── Tile_W512_H512_S01.tsx │ │ │ ├── Tile_W512_H512_S01.tsx.meta │ │ │ ├── map.tmx │ │ │ └── map.tmx.meta │ │ ├── map_0423.meta │ │ ├── map_0423 │ │ │ ├── Tile_W256_H128_S01.png │ │ │ ├── Tile_W256_H128_S01.png.meta │ │ │ ├── Tile_W256_H128_S01.tsx │ │ │ ├── Tile_W256_H128_S01.tsx.meta │ │ │ ├── Tile_W512_H256_S01.png │ │ │ ├── Tile_W512_H256_S01.png.meta │ │ │ ├── Tile_W512_H256_S01.tsx │ │ │ ├── Tile_W512_H256_S01.tsx.meta │ │ │ ├── map.tmx │ │ │ └── map.tmx.meta │ │ ├── map_0428.meta │ │ └── map_0428 │ │ │ ├── Tile_W256_H128_S01.png │ │ │ ├── Tile_W256_H128_S01.png.meta │ │ │ ├── Tile_W256_H128_S01.tsx │ │ │ ├── Tile_W256_H128_S01.tsx.meta │ │ │ ├── Tile_W512_H256_S01.png │ │ │ ├── Tile_W512_H256_S01.png.meta │ │ │ ├── Tile_W512_H256_S01.tsx │ │ │ ├── Tile_W512_H256_S01.tsx.meta │ │ │ ├── map.tmx │ │ │ └── map.tmx.meta │ ├── pbfiles.meta │ ├── pbfiles │ │ ├── Buildable.proto │ │ └── Buildable.proto.meta │ ├── prefabs.meta │ ├── prefabs │ │ ├── BaseSkeletalAnim.prefab │ │ ├── BaseSkeletalAnim.prefab.meta │ │ ├── Loading.prefab │ │ ├── Loading.prefab.meta │ │ ├── MapRequired.meta │ │ ├── MapRequired │ │ │ ├── BuildOrUpgradeProgressBar.prefab │ │ │ ├── BuildOrUpgradeProgressBar.prefab.meta │ │ │ ├── WidgetsAboveAll.prefab │ │ │ └── WidgetsAboveAll.prefab.meta │ │ ├── SelfPlayer.prefab │ │ ├── SelfPlayer.prefab.meta │ │ ├── SimplePressToGoDialog.prefab │ │ ├── SimplePressToGoDialog.prefab.meta │ │ ├── StatefulBuildableInstance.prefab │ │ ├── StatefulBuildableInstance.prefab.meta │ │ ├── StatefulBuildableInstanceInfoPanel.prefab │ │ ├── StatefulBuildableInstanceInfoPanel.prefab.meta │ │ ├── StatelessBuildableInstanceCard.prefab │ │ ├── StatelessBuildableInstanceCard.prefab.meta │ │ ├── WidgetsAboveAllRequired.meta │ │ └── WidgetsAboveAllRequired │ │ │ ├── ImageObject.prefab │ │ │ ├── ImageObject.prefab.meta │ │ │ ├── Item.prefab │ │ │ ├── Item.prefab.meta │ │ │ ├── ItemAcceptBoundaryBarrier.prefab │ │ │ ├── ItemAcceptBoundaryBarrier.prefab.meta │ │ │ ├── ItemCell.prefab │ │ │ ├── ItemCell.prefab.meta │ │ │ ├── ItemList.prefab │ │ │ ├── ItemList.prefab.meta │ │ │ ├── PolygonBoundaryBarrier.prefab │ │ │ ├── PolygonBoundaryBarrier.prefab.meta │ │ │ ├── PolygonBoundaryShelter.prefab │ │ │ ├── PolygonBoundaryShelter.prefab.meta │ │ │ ├── PolygonBoundaryShelterZReducer.prefab │ │ │ ├── PolygonBoundaryShelterZReducer.prefab.meta │ │ │ ├── PolygonBoundaryStatefulBuildableInhibition.prefab │ │ │ ├── PolygonBoundaryStatefulBuildableInhibition.prefab.meta │ │ │ ├── StatefulBuildableFollowingNpc.prefab │ │ │ ├── StatefulBuildableFollowingNpc.prefab.meta │ │ │ ├── StatelessBuildableInstanceCardList.prefab │ │ │ ├── StatelessBuildableInstanceCardList.prefab.meta │ │ │ ├── TiledAnim.prefab │ │ │ └── TiledAnim.prefab.meta │ ├── textures.meta │ └── textures │ │ ├── GUIElements.meta │ │ ├── GUIElements │ │ ├── FoodIcon.plist │ │ ├── FoodIcon.plist.meta │ │ ├── FoodIcon.png │ │ ├── FoodIcon.png.meta │ │ ├── GUIElements-1.plist │ │ ├── GUIElements-1.plist.meta │ │ ├── GUIElements-1.png │ │ └── GUIElements-1.png.meta │ │ ├── StatelessBuildable.meta │ │ ├── StatelessBuildable │ │ ├── Barn.plist │ │ ├── Barn.plist.meta │ │ ├── Barn.png │ │ ├── Barn.png.meta │ │ ├── Barrack.plist │ │ ├── Barrack.plist.meta │ │ ├── Barrack.png │ │ ├── Barrack.png.meta │ │ ├── Farmland.plist │ │ ├── Farmland.plist.meta │ │ ├── Farmland.png │ │ ├── Farmland.png.meta │ │ ├── Headquarter.plist │ │ ├── Headquarter.plist.meta │ │ ├── Headquarter.png │ │ ├── Headquarter.png.meta │ │ ├── Laboratory.plist │ │ ├── Laboratory.plist.meta │ │ ├── Laboratory.png │ │ ├── Laboratory.png.meta │ │ ├── Restaurant.plist │ │ ├── Restaurant.plist.meta │ │ ├── Restaurant.png │ │ └── Restaurant.png.meta │ │ ├── flatHeadSister.meta │ │ └── flatHeadSister │ │ ├── flatHeadSister.plist │ │ ├── flatHeadSister.plist.meta │ │ ├── flatHeadSister.png │ │ └── flatHeadSister.png.meta ├── scenes.meta ├── scenes │ ├── CamMap.fire │ ├── CamMap.fire.meta │ ├── JoystickMap.fire │ └── JoystickMap.fire.meta ├── scripts.meta └── scripts │ ├── BasePlayer.js │ ├── BasePlayer.js.meta │ ├── BaseSkeletalAnim.js │ ├── BaseSkeletalAnim.js.meta │ ├── BuildOrUpgradeProgressBar.js │ ├── BuildOrUpgradeProgressBar.js.meta │ ├── CamMap.js │ ├── CamMap.js.meta │ ├── CameraTracker.js │ ├── CameraTracker.js.meta │ ├── Canvas.js │ ├── Canvas.js.meta │ ├── CloseableDialog.js │ ├── CloseableDialog.js.meta │ ├── DescriptionCommonLabel.js │ ├── DescriptionCommonLabel.js.meta │ ├── Item.js │ ├── Item.js.meta │ ├── ItemAcceptBoundaryBarrier.js │ ├── ItemAcceptBoundaryBarrier.js.meta │ ├── ItemList.js │ ├── ItemList.js.meta │ ├── KeyboardControls.js │ ├── KeyboardControls.js.meta │ ├── Map.js │ ├── Map.js.meta │ ├── NarrativeScenes.meta │ ├── NarrativeScenes │ ├── NarrativeScene.js │ ├── NarrativeScene.js.meta │ ├── NarrativeSceneManager.js │ ├── NarrativeSceneManager.js.meta │ ├── NarrativeSceneManagerDelegate.js │ └── NarrativeSceneManagerDelegate.js.meta │ ├── PolygonBoundaryShelter.js │ ├── PolygonBoundaryShelter.js.meta │ ├── PriorityQueue.js │ ├── PriorityQueue.js.meta │ ├── ProgressNum.js │ ├── ProgressNum.js.meta │ ├── SelfPlayer.js │ ├── SelfPlayer.js.meta │ ├── ShelterBoundary.js │ ├── ShelterBoundary.js.meta │ ├── ShelterChainCollider.js │ ├── ShelterChainCollider.js.meta │ ├── ShelterManager.js │ ├── ShelterManager.js.meta │ ├── SimplePressToGoDialog.js │ ├── SimplePressToGoDialog.js.meta │ ├── StatefulBuildableFollowingNpc.js │ ├── StatefulBuildableFollowingNpc.js.meta │ ├── StatefulBuildableInstance.js │ ├── StatefulBuildableInstance.js.meta │ ├── StatefulBuildableInstanceInfoPanel.js │ ├── StatefulBuildableInstanceInfoPanel.js.meta │ ├── StatelessBuildableInstance.js │ ├── StatelessBuildableInstance.js.meta │ ├── StatelessBuildableInstanceCard.js │ ├── StatelessBuildableInstanceCard.js.meta │ ├── StatelessBuildableInstanceCardList.js │ ├── StatelessBuildableInstanceCardList.js.meta │ ├── TileCollisionManagerSingleton.js │ ├── TileCollisionManagerSingleton.js.meta │ ├── TouchEventsManager.js │ ├── TouchEventsManager.js.meta │ ├── WalletInfo.js │ ├── WalletInfo.js.meta │ ├── WidgetsAboveAll.js │ └── WidgetsAboveAll.js.meta ├── build-templates ├── jsb-link │ └── foo.txt └── web-mobile │ └── foo.txt ├── creator.d.ts ├── jsconfig.json ├── package-lock.json ├── package.json ├── packages └── i18n-master │ ├── .gitignore │ ├── README.md │ ├── i18n │ ├── en.js │ └── zh.js │ ├── inspector │ └── localized-sprite.js │ ├── jsconfig.json │ ├── main.js │ ├── package.json │ ├── panel │ ├── component │ │ └── home.js │ ├── index.js │ ├── style │ │ ├── home.css │ │ └── home.less │ └── template │ │ └── home.html │ ├── runtime-scripts │ ├── LanguageData.js │ ├── LanguageData.js.meta │ ├── LocalizedLabel.js │ ├── LocalizedLabel.js.meta │ ├── LocalizedSprite.js │ ├── LocalizedSprite.js.meta │ ├── SpriteFrameSet.js │ ├── SpriteFrameSet.js.meta │ ├── polyglot.min.js │ └── polyglot.min.js.meta │ └── utils │ ├── event.js │ ├── language.js │ ├── package.js │ ├── scene.js │ └── template.txt ├── project.json ├── settings ├── builder.json ├── builder.panel.json ├── i18n.json ├── project.json └── services.json ├── template-banner.png └── template.json /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | * core.ignorecase=false 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | plugin_scripts/conf.js 2 | plugin_scripts/conf.js.meta 3 | 4 | *.sw* 5 | *.swo 6 | *.swp 7 | 8 | #///////////////////////////////////////////////////////////////////////////// 9 | # Fireball Projects 10 | #///////////////////////////////////////////////////////////////////////////// 11 | 12 | library/ 13 | temp/ 14 | local/ 15 | build/ 16 | 17 | */library/ 18 | */temp/ 19 | */local/ 20 | */build/ 21 | */configs/*.conf 22 | 23 | #///////////////////////////////////////////////////////////////////////////// 24 | # Logs and databases 25 | #///////////////////////////////////////////////////////////////////////////// 26 | 27 | *.log.* 28 | *.log 29 | *.sql 30 | 31 | #///////////////////////////////////////////////////////////////////////////// 32 | # files for debugger 33 | #///////////////////////////////////////////////////////////////////////////// 34 | 35 | *.sln 36 | *.csproj 37 | *.pidb 38 | *.unityproj 39 | *.suo 40 | 41 | #///////////////////////////////////////////////////////////////////////////// 42 | # OS generated files 43 | #///////////////////////////////////////////////////////////////////////////// 44 | 45 | .DS_Store 46 | ehthumbs.db 47 | Thumbs.db 48 | backend/dump.rdb 49 | 50 | #///////////////////////////////////////////////////////////////////////////// 51 | # exvim files 52 | #///////////////////////////////////////////////////////////////////////////// 53 | 54 | *UnityVS.meta 55 | *.err 56 | *.err.meta 57 | *.exvim 58 | *.exvim.meta 59 | *.vimentry 60 | *.vimentry.meta 61 | *.vimproject 62 | *.vimproject.meta 63 | .vimfiles.*/ 64 | .exvim.*/ 65 | quick_gen_project_*_autogen.bat 66 | quick_gen_project_*_autogen.bat.meta 67 | quick_gen_project_*_autogen.sh 68 | quick_gen_project_*_autogen.sh.meta 69 | .exvim.app 70 | 71 | #///////////////////////////////////////////////////////////////////////////// 72 | # webstorm files 73 | #///////////////////////////////////////////////////////////////////////////// 74 | 75 | .idea/ 76 | 77 | #////////////////////////// 78 | # VS Code 79 | #////////////////////////// 80 | 81 | .vscode/ 82 | 83 | #////////////// 84 | #node modules 85 | #////////////// 86 | */node_modules/* 87 | ./node_modules/* 88 | 89 | #////////////// 90 | #skeema 91 | #////////////// 92 | databases/*/.skeema 93 | -------------------------------------------------------------------------------- /assets/plugin_scripts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "ae26e7df-6376-453a-85cf-fd68f2ecec22", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/plugin_scripts/NetworkUtils.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "e2381fd8-c2d6-485d-b2a5-08a9494f8286", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/plugin_scripts/auxiliaries.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "c119f5bb-720a-4ac8-960f-6f5eeda0c360", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/plugin_scripts/conf.js.template: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | if (CC_DEBUG) { 3 | var backendAddress = { 4 | PROTOCOL: 'http', 5 | HOST: 'localhost', 6 | PORT: "9992", 7 | WS_PATH_PREFIX: "/cuisineconn", 8 | }; 9 | } else { 10 | /* development */ 11 | //var backendAddress = { 12 | // PROTOCOL: 'https', 13 | // HOST: 'merdan.lokcol.com', 14 | // PORT: "443", 15 | // WS_PATH_PREFIX: "/cuisineconn", 16 | //} 17 | /* production */ 18 | var backendAddress = { 19 | PROTOCOL: 'https', 20 | HOST: 'foodieclans.lokcol.com', 21 | PORT: "443", 22 | WS_PATH_PREFIX: "/cuisineconn", 23 | } 24 | } 25 | window.mainServerBackendAddress = backendAddress; 26 | window.backendAddress = backendAddress; 27 | -------------------------------------------------------------------------------- /assets/plugin_scripts/conf.js.template.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "caa9a0d3-0911-4047-8277-40cde34cf1fe", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/plugin_scripts/constants.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "d03a82d0-3acc-47de-b913-ba7e97a82eb7", 4 | "isPlugin": true, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/plugin_scripts/grammerParser.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "d36cd3d0-44bf-444f-bdd2-b63c69dd0c08", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/plugin_scripts/grammerParser/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

9 | 10 | 12 | 26 | 27 | -------------------------------------------------------------------------------- /assets/plugin_scripts/grammerParser/index.html.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "1804e111-f343-4187-a6da-c3ccc244719f", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/plugin_scripts/moment.min.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "5e927515-a5e9-47fd-92cd-f35c049b435b", 4 | "isPlugin": true, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/plugin_scripts/protobuf.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "ea9aeb29-6b58-460f-99a2-4ff8d0f583ca", 4 | "isPlugin": true, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/resources.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "eb79456b-8164-4ab9-91c9-55b486808a7c", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/BGM.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "b38de71c-6f5f-4762-8b41-bd46f34aa17d", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/BGM/1.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/BGM/1.mp3 -------------------------------------------------------------------------------- /assets/resources/BGM/1.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "72054573-aa95-4bd2-8ff9-766b5716bc31", 4 | "downloadMode": 0, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/resources/BGM/buttonClick.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/BGM/buttonClick.mp3 -------------------------------------------------------------------------------- /assets/resources/BGM/buttonClick.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "60d37619-b99a-4947-82e9-904b466b5829", 4 | "downloadMode": 0, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/resources/BGM/collectCash.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/BGM/collectCash.mp3 -------------------------------------------------------------------------------- /assets/resources/BGM/collectCash.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "3c294b26-8622-4325-81ce-f98bdd352cf1", 4 | "downloadMode": 0, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/resources/BGM/gotCert.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/BGM/gotCert.mp3 -------------------------------------------------------------------------------- /assets/resources/BGM/gotCert.mp3.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "260037b9-2de1-406e-8d22-1a97a2532933", 4 | "downloadMode": 0, 5 | "subMetas": {} 6 | } -------------------------------------------------------------------------------- /assets/resources/animation.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "8234effd-839c-47bd-bff9-d415b262edb7", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/animation/Demon.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "46d2d425-a30a-450a-a743-368ce1877900", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/animation/Demon/Demon_tex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/animation/Demon/Demon_tex.png -------------------------------------------------------------------------------- /assets/resources/animation/Demon/Demon_tex.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "55af043b-98ea-44ac-9c8b-d88d01e229c9", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Demon_tex": { 13 | "ver": "1.0.4", 14 | "uuid": "667afbde-99d1-4534-b539-60856b6eed0d", 15 | "rawTextureUuid": "55af043b-98ea-44ac-9c8b-d88d01e229c9", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": -2, 20 | "offsetY": 165, 21 | "trimX": 1, 22 | "trimY": 1, 23 | "width": 1018, 24 | "height": 692, 25 | "rawWidth": 1024, 26 | "rawHeight": 1024, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "c02aceaa-05f6-4489-b5d0-fc424d13f82f", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Flying.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "02ab504c-4cac-4a8e-befb-4532b280522d", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Flying/BottomLeft.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "BottomLeft", 4 | "_objFlags": 0, 5 | "_native": "", 6 | "_duration": 0.625, 7 | "sample": 8, 8 | "speed": 1, 9 | "wrapMode": "2", 10 | "curveData": { 11 | "comps": { 12 | "cc.Sprite": { 13 | "spriteFrame": [ 14 | { 15 | "frame": 0, 16 | "value": { 17 | "__uuid__": "e654b694-c649-4cc5-bba0-8c452189c910" 18 | } 19 | }, 20 | { 21 | "frame": 0.125, 22 | "value": { 23 | "__uuid__": "cbd39505-5e43-444e-9827-c5a6fb37a12c" 24 | } 25 | }, 26 | { 27 | "frame": 0.25, 28 | "value": { 29 | "__uuid__": "8474cd9f-3b31-47cf-a594-74f983721af8" 30 | } 31 | }, 32 | { 33 | "frame": 0.375, 34 | "value": { 35 | "__uuid__": "71c8b580-43d1-4834-abd4-3a3e27fbc3af" 36 | } 37 | }, 38 | { 39 | "frame": 0.5, 40 | "value": { 41 | "__uuid__": "1b0d6adf-ba56-48fa-8d17-14185849bf19" 42 | } 43 | } 44 | ] 45 | } 46 | } 47 | }, 48 | "events": [] 49 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Flying/BottomLeft.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "50ff476b-5d95-4c53-ba6d-6ce11cc9778d", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Flying/BottomRight.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "BottomRight", 4 | "_objFlags": 0, 5 | "_native": "", 6 | "_duration": 0.625, 7 | "sample": 8, 8 | "speed": 1, 9 | "wrapMode": "2", 10 | "curveData": { 11 | "comps": { 12 | "cc.Sprite": { 13 | "spriteFrame": [ 14 | { 15 | "frame": 0, 16 | "value": { 17 | "__uuid__": "8474cd9f-3b31-47cf-a594-74f983721af8" 18 | } 19 | }, 20 | { 21 | "frame": 0.125, 22 | "value": { 23 | "__uuid__": "cbd39505-5e43-444e-9827-c5a6fb37a12c" 24 | } 25 | }, 26 | { 27 | "frame": 0.25, 28 | "value": { 29 | "__uuid__": "e654b694-c649-4cc5-bba0-8c452189c910" 30 | } 31 | }, 32 | { 33 | "frame": 0.375, 34 | "value": { 35 | "__uuid__": "71c8b580-43d1-4834-abd4-3a3e27fbc3af" 36 | } 37 | }, 38 | { 39 | "frame": 0.5, 40 | "value": { 41 | "__uuid__": "1b0d6adf-ba56-48fa-8d17-14185849bf19" 42 | } 43 | } 44 | ] 45 | } 46 | } 47 | }, 48 | "events": [] 49 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Flying/BottomRight.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "7ebf4ea2-b6db-46e1-a379-07e2b5af0f4f", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Flying/TopLeft.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "TopLeft", 4 | "_objFlags": 0, 5 | "_native": "", 6 | "_duration": 0.625, 7 | "sample": 8, 8 | "speed": 1, 9 | "wrapMode": "2", 10 | "curveData": { 11 | "comps": { 12 | "cc.Sprite": { 13 | "spriteFrame": [ 14 | { 15 | "frame": 0, 16 | "value": { 17 | "__uuid__": "0a095f22-22d7-434d-ae84-2d74c493ba68" 18 | } 19 | }, 20 | { 21 | "frame": 0.125, 22 | "value": { 23 | "__uuid__": "b60edb89-bdd0-4a80-8ac1-387f4de839af" 24 | } 25 | }, 26 | { 27 | "frame": 0.25, 28 | "value": { 29 | "__uuid__": "021d84ad-9756-4920-9fd2-940a17758467" 30 | } 31 | }, 32 | { 33 | "frame": 0.375, 34 | "value": { 35 | "__uuid__": "91a9c9ce-9712-4e5f-a6f2-1726709a4572" 36 | } 37 | }, 38 | { 39 | "frame": 0.5, 40 | "value": { 41 | "__uuid__": "fadc4c49-c2c4-455f-8fd0-93459b1d0719" 42 | } 43 | } 44 | ] 45 | } 46 | } 47 | }, 48 | "events": [] 49 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Flying/TopLeft.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "4eb1c803-604b-41bc-9826-57af0cd23bbf", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Flying/TopRight.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "TopRight", 4 | "_objFlags": 0, 5 | "_native": "", 6 | "_duration": 0.625, 7 | "sample": 8, 8 | "speed": 1, 9 | "wrapMode": "2", 10 | "curveData": { 11 | "comps": { 12 | "cc.Sprite": { 13 | "spriteFrame": [ 14 | { 15 | "frame": 0, 16 | "value": { 17 | "__uuid__": "12206790-f8fe-43bc-af9a-16257c641d1a" 18 | } 19 | }, 20 | { 21 | "frame": 0.125, 22 | "value": { 23 | "__uuid__": "0118bc54-8160-4515-ac93-cc37030c96c1" 24 | } 25 | }, 26 | { 27 | "frame": 0.25, 28 | "value": { 29 | "__uuid__": "1ea07c72-a408-4463-a0bb-f42069c4461e" 30 | } 31 | }, 32 | { 33 | "frame": 0.375, 34 | "value": { 35 | "__uuid__": "64885d3e-ba9d-4a3d-ad18-fac3843328e0" 36 | } 37 | }, 38 | { 39 | "frame": 0.5, 40 | "value": { 41 | "__uuid__": "2b480944-3576-4815-84dd-c60e5ebb779e" 42 | } 43 | } 44 | ] 45 | } 46 | } 47 | }, 48 | "events": [] 49 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Flying/TopRight.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "08701bbb-05b2-44b9-9285-28466a64276b", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Walking.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "0f352203-f0d8-4671-aff0-bcf9ba2a3e2a", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Walking/BottomLeft.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "BottomLeft", 4 | "_objFlags": 0, 5 | "_native": "", 6 | "_duration": 0.875, 7 | "sample": 8, 8 | "speed": 1, 9 | "wrapMode": "2", 10 | "curveData": { 11 | "comps": { 12 | "cc.Sprite": { 13 | "spriteFrame": [ 14 | { 15 | "frame": 0, 16 | "value": { 17 | "__uuid__": "76cb2ae3-6431-4c7b-b639-4ac0dc5fc109" 18 | } 19 | }, 20 | { 21 | "frame": 0.125, 22 | "value": { 23 | "__uuid__": "b0716aeb-cf76-415f-8f63-1039438b38e3" 24 | } 25 | }, 26 | { 27 | "frame": 0.25, 28 | "value": { 29 | "__uuid__": "709bf28e-9fa5-4ed2-95be-fbd9eb60fd06" 30 | } 31 | }, 32 | { 33 | "frame": 0.375, 34 | "value": { 35 | "__uuid__": "5ef4ac0b-fb15-487a-92a8-89b3b58d12f8" 36 | } 37 | }, 38 | { 39 | "frame": 0.5, 40 | "value": { 41 | "__uuid__": "451b5884-67cd-4323-b2e6-3fd9b917ac21" 42 | } 43 | }, 44 | { 45 | "frame": 0.625, 46 | "value": { 47 | "__uuid__": "5ab3f598-23bc-414c-b50e-beca37a3eb9f" 48 | } 49 | }, 50 | { 51 | "frame": 0.75, 52 | "value": { 53 | "__uuid__": "83d1d904-20b3-43fd-9bfa-279c9be7aa27" 54 | } 55 | } 56 | ] 57 | } 58 | } 59 | }, 60 | "events": [] 61 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Walking/BottomLeft.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "9142b5bb-e881-451d-8316-929c84f07ad5", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Walking/BottomRight.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "BottomRight", 4 | "_objFlags": 0, 5 | "_native": "", 6 | "_duration": 0.875, 7 | "sample": 8, 8 | "speed": 1, 9 | "wrapMode": "2", 10 | "curveData": { 11 | "comps": { 12 | "cc.Sprite": { 13 | "spriteFrame": [ 14 | { 15 | "frame": 0, 16 | "value": { 17 | "__uuid__": "ca47310c-4107-4b40-bacd-cce852e7252b" 18 | } 19 | }, 20 | { 21 | "frame": 0.125, 22 | "value": { 23 | "__uuid__": "05bd6736-6f44-4adc-ba1c-4fe3a144ed99" 24 | } 25 | }, 26 | { 27 | "frame": 0.25, 28 | "value": { 29 | "__uuid__": "ba72b731-f93b-473e-a5b6-d2db28f6012a" 30 | } 31 | }, 32 | { 33 | "frame": 0.375, 34 | "value": { 35 | "__uuid__": "6234d304-25c5-43e6-a2c8-883f8dec1f64" 36 | } 37 | }, 38 | { 39 | "frame": 0.5, 40 | "value": { 41 | "__uuid__": "68eba10c-87d3-4ccd-ab5c-51a93782b098" 42 | } 43 | }, 44 | { 45 | "frame": 0.625, 46 | "value": { 47 | "__uuid__": "12ef212b-9a38-4a9a-90be-8bcb890ffa31" 48 | } 49 | }, 50 | { 51 | "frame": 0.75, 52 | "value": { 53 | "__uuid__": "5cf8c2d2-8178-4c52-bce9-37348600abba" 54 | } 55 | } 56 | ] 57 | } 58 | } 59 | }, 60 | "events": [] 61 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Walking/BottomRight.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "d80167ad-218a-457b-9a85-fbf8abdc4be1", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Walking/TopLeft.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "TopLeft", 4 | "_objFlags": 0, 5 | "_native": "", 6 | "_duration": 0.875, 7 | "sample": 8, 8 | "speed": 1, 9 | "wrapMode": "2", 10 | "curveData": { 11 | "comps": { 12 | "cc.Sprite": { 13 | "spriteFrame": [ 14 | { 15 | "frame": 0, 16 | "value": { 17 | "__uuid__": "45d4729b-86bb-45c0-82ee-4069364210d7" 18 | } 19 | }, 20 | { 21 | "frame": 0.125, 22 | "value": { 23 | "__uuid__": "4387bf1a-6523-4602-b1fb-87f05adf4228" 24 | } 25 | }, 26 | { 27 | "frame": 0.25, 28 | "value": { 29 | "__uuid__": "2bd9756a-59c5-4fd5-b800-6f43f4881689" 30 | } 31 | }, 32 | { 33 | "frame": 0.375, 34 | "value": { 35 | "__uuid__": "76676e5a-2e7e-43b7-b6d1-eb7a7a25702a" 36 | } 37 | }, 38 | { 39 | "frame": 0.5, 40 | "value": { 41 | "__uuid__": "36e836b3-076a-4967-8827-a18cc8548813" 42 | } 43 | }, 44 | { 45 | "frame": 0.625, 46 | "value": { 47 | "__uuid__": "624bee04-b12d-4405-9ffd-5913dc555575" 48 | } 49 | }, 50 | { 51 | "frame": 0.75, 52 | "value": { 53 | "__uuid__": "023e1071-69ea-42dc-b6c6-480e18f61523" 54 | } 55 | } 56 | ] 57 | } 58 | } 59 | }, 60 | "events": [] 61 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Walking/TopLeft.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "5b76b970-8142-49f2-a878-9dd1944eede8", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Walking/TopRight.anim: -------------------------------------------------------------------------------- 1 | { 2 | "__type__": "cc.AnimationClip", 3 | "_name": "TopRight", 4 | "_objFlags": 0, 5 | "_native": "", 6 | "_duration": 0.875, 7 | "sample": 8, 8 | "speed": 1, 9 | "wrapMode": "2", 10 | "curveData": { 11 | "comps": { 12 | "cc.Sprite": { 13 | "spriteFrame": [ 14 | { 15 | "frame": 0, 16 | "value": { 17 | "__uuid__": "d2ecc3ee-658a-4a16-a425-158287266354" 18 | } 19 | }, 20 | { 21 | "frame": 0.125, 22 | "value": { 23 | "__uuid__": "95976d45-6eb0-45bf-8cec-9fff747c6b82" 24 | } 25 | }, 26 | { 27 | "frame": 0.25, 28 | "value": { 29 | "__uuid__": "b6527d81-939a-4927-b3e9-31d6640ffdf0" 30 | } 31 | }, 32 | { 33 | "frame": 0.375, 34 | "value": { 35 | "__uuid__": "ca2d61b6-56c7-4911-9f18-112258ec882d" 36 | } 37 | }, 38 | { 39 | "frame": 0.5, 40 | "value": { 41 | "__uuid__": "606c1f00-2bd4-4dfc-854b-34c702599e9e" 42 | } 43 | }, 44 | { 45 | "frame": 0.625, 46 | "value": { 47 | "__uuid__": "e0ac472c-8414-4f95-9b37-6bf0d93e9e3b" 48 | } 49 | }, 50 | { 51 | "frame": 0.75, 52 | "value": { 53 | "__uuid__": "a4749c76-5393-4dc5-9681-45610bd1c3b3" 54 | } 55 | } 56 | ] 57 | } 58 | } 59 | }, 60 | "events": [] 61 | } -------------------------------------------------------------------------------- /assets/resources/animation/Duck/Walking/TopRight.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "0a70cef4-f051-4245-aff9-26feea22dae6", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/FlatHeadSister.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "4aff5f8b-7df8-4d9d-9332-c6f3edc51627", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/FlatHeadSister/FlatHeadSisterRunBottom.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "b3bda386-6898-4302-a878-6d54a0cae8d0", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/FlatHeadSister/FlatHeadSisterRunBottomLeft.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "fe3be5d3-8ae3-4944-abf0-dc00fd6de80b", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/FlatHeadSister/FlatHeadSisterRunBottomRight.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "68633085-dc6c-4c62-9722-5c1e707c0baf", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/FlatHeadSister/FlatHeadSisterRunLeft.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "d6ac2215-a5c2-4f8b-a342-527f8bbcea74", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/FlatHeadSister/FlatHeadSisterRunRight.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "3322c24a-15f8-4c21-a658-31f30c18073b", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/FlatHeadSister/FlatHeadSisterRunTop.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "02246573-f6ec-4076-9875-951c3ff7deaa", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/FlatHeadSister/FlatHeadSisterRunTopLeft.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "1a54a912-40c4-4eb8-b11d-c401545a0026", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/FlatHeadSister/FlatHeadSisterRunTopRight.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "17534ecd-11be-4f47-9d7f-03d9296c7d7f", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/FrameAnimTextures.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "43504d1e-1679-48d9-88e3-a7457b8fe76d", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/animation/FrameAnimTextures/Duck.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "aa51b3da-f5c4-4437-ad9d-9362e0162624", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/animation/FrameAnimTextures/Duck/Duck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/animation/FrameAnimTextures/Duck/Duck.png -------------------------------------------------------------------------------- /assets/resources/animation/FrameAnimTextures/Duck/Duck.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "70e3a090-3bb3-4972-bacb-e0297a2590f9", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Duck": { 13 | "ver": "1.0.4", 14 | "uuid": "efa3fe67-fbcb-4568-947b-f8ada206c501", 15 | "rawTextureUuid": "70e3a090-3bb3-4972-bacb-e0297a2590f9", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 0, 21 | "trimX": 0, 22 | "trimY": 0, 23 | "width": 455, 24 | "height": 315, 25 | "rawWidth": 455, 26 | "rawHeight": 315, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/animation/FrameAnimTextures/People.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "731733c5-dfc6-41ab-98bb-ea40d6177dbb", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/animation/FrameAnimTextures/People/FrameAnimPeoples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/animation/FrameAnimTextures/People/FrameAnimPeoples.png -------------------------------------------------------------------------------- /assets/resources/animation/FrameAnimTextures/People/FrameAnimPeoples.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "88238d37-7453-434d-a3dc-c4145f41fb3e", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "FrameAnimPeoples": { 13 | "ver": "1.0.4", 14 | "uuid": "f3b637e0-317d-4c6d-a5d3-08741b6f670c", 15 | "rawTextureUuid": "88238d37-7453-434d-a3dc-c4145f41fb3e", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 6, 20 | "offsetY": 1, 21 | "trimX": 17, 22 | "trimY": 0, 23 | "width": 1297, 24 | "height": 506, 25 | "rawWidth": 1319, 26 | "rawHeight": 508, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/animation/flatHeadSister.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "4aff5f8b-7df8-4d9d-9332-c6f3edc51627", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/flatHeadSister/FlatHeadSisterRunBottom.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "b3bda386-6898-4302-a878-6d54a0cae8d0", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/flatHeadSister/FlatHeadSisterRunBottomLeft.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "fe3be5d3-8ae3-4944-abf0-dc00fd6de80b", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/flatHeadSister/FlatHeadSisterRunBottomRight.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "68633085-dc6c-4c62-9722-5c1e707c0baf", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/flatHeadSister/FlatHeadSisterRunLeft.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "d6ac2215-a5c2-4f8b-a342-527f8bbcea74", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/flatHeadSister/FlatHeadSisterRunRight.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "3322c24a-15f8-4c21-a658-31f30c18073b", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/flatHeadSister/FlatHeadSisterRunTop.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "02246573-f6ec-4076-9875-951c3ff7deaa", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/flatHeadSister/FlatHeadSisterRunTopLeft.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "1a54a912-40c4-4eb8-b11d-c401545a0026", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/animation/flatHeadSister/FlatHeadSisterRunTopRight.anim.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.1.0", 3 | "uuid": "17534ecd-11be-4f47-9d7f-03d9296c7d7f", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/font.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "fe71e2f1-e5a2-45d5-93b9-f714f4df9ed4", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/font/font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/font/font.ttf -------------------------------------------------------------------------------- /assets/resources/font/font.ttf.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.1.0", 3 | "uuid": "12395940-bcbd-49bf-8861-db2f751cd3aa", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/i18n.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "65474f9d-a271-4abb-a828-092a78ff3f03", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/i18n/en.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "983d5b39-9954-49cc-ae2a-f8bfbc1b44b2", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/resources/i18n/zh.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "940bd19b-e24d-4994-b420-a2d04b3cfa5b", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/resources/maps.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "1d9ca713-fb87-474a-9212-2ad1108a7567", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "2f369c5e-f42c-401f-a669-ac43b53b17b5", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W256_H128_S00.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S00.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "72f5c9d4-f1b6-4088-8ab2-98c666d39836", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H128_S00": { 13 | "ver": "1.0.4", 14 | "uuid": "a25a7118-b549-4665-b413-23197ac7faf5", 15 | "rawTextureUuid": "72f5c9d4-f1b6-4088-8ab2-98c666d39836", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 0, 21 | "trimX": 0, 22 | "trimY": 0, 23 | "width": 1536, 24 | "height": 1024, 25 | "rawWidth": 1536, 26 | "rawHeight": 1024, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S00.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S00.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "5b438ded-aefe-4644-a7ca-1140666a9e79", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W256_H128_S01.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S01.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "efbe1f3d-682b-4c42-9fdb-c6a068508a85", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H128_S01": { 13 | "ver": "1.0.4", 14 | "uuid": "8a56ae3b-b8d2-4b88-aa27-52aa4cc7f983", 15 | "rawTextureUuid": "efbe1f3d-682b-4c42-9fdb-c6a068508a85", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": -15.5, 20 | "offsetY": 256, 21 | "trimX": 0, 22 | "trimY": 0, 23 | "width": 1505, 24 | "height": 512, 25 | "rawWidth": 1536, 26 | "rawHeight": 1024, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S01.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S01.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "955c34b2-2ae5-441c-b8c5-7948a02a38f7", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W256_H128_S02.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S02.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "454175e5-359c-462e-94cc-4fe692c2a366", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H128_S02": { 13 | "ver": "1.0.4", 14 | "uuid": "98483962-6b0f-4f32-9988-7b60282fb338", 15 | "rawTextureUuid": "454175e5-359c-462e-94cc-4fe692c2a366", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 641.5, 21 | "trimX": 0, 22 | "trimY": 0, 23 | "width": 2048, 24 | "height": 766, 25 | "rawWidth": 2048, 26 | "rawHeight": 2049, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S02.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H128_S02.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "d203d777-ab27-47fc-b6bd-51c7294d7494", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W256_H256_S00.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S00.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "f1e76d38-4a5e-4f25-be72-85b1224beca8", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H256_S00": { 13 | "ver": "1.0.4", 14 | "uuid": "ec51e9af-643f-4c65-8266-c0b3fa7abde2", 15 | "rawTextureUuid": "f1e76d38-4a5e-4f25-be72-85b1224beca8", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": -4.5, 20 | "offsetY": 138.5, 21 | "trimX": 0, 22 | "trimY": 16, 23 | "width": 1015, 24 | "height": 715, 25 | "rawWidth": 1024, 26 | "rawHeight": 1024, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S00.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "7cb362ab-d714-4122-b9e0-45cadb79f436", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W256_H256_S01.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S01.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "ac06c20c-f6fc-4d01-84d7-593b9580415e", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H256_S01": { 13 | "ver": "1.0.4", 14 | "uuid": "0d14ce19-b090-4d96-be32-4e2ea3afdb2c", 15 | "rawTextureUuid": "ac06c20c-f6fc-4d01-84d7-593b9580415e", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": -1, 20 | "offsetY": 139, 21 | "trimX": 0, 22 | "trimY": 24, 23 | "width": 1022, 24 | "height": 698, 25 | "rawWidth": 1024, 26 | "rawHeight": 1024, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S01.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S01.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "4a1a1fd1-5f83-4d58-a063-0ae1b26f5967", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W256_H256_S02.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S02.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "bec67062-aea9-41cd-b2c9-64756355a5f0", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H256_S02": { 13 | "ver": "1.0.4", 14 | "uuid": "9664bb09-1836-4450-ac1e-8e679267bffd", 15 | "rawTextureUuid": "bec67062-aea9-41cd-b2c9-64756355a5f0", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 137, 21 | "trimX": 0, 22 | "trimY": 37, 23 | "width": 1024, 24 | "height": 676, 25 | "rawWidth": 1024, 26 | "rawHeight": 1024, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S02.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "9b073ff4-08eb-4e97-bd27-7957823a4d67", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W256_H256_S03.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S03.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "64945807-6227-4623-8cd0-b5fc85cdb641", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H256_S03": { 13 | "ver": "1.0.4", 14 | "uuid": "713ea12e-d58e-4788-b540-4ac23aeb1a37", 15 | "rawTextureUuid": "64945807-6227-4623-8cd0-b5fc85cdb641", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0.5, 20 | "offsetY": 234.5, 21 | "trimX": 1, 22 | "trimY": 44, 23 | "width": 1023, 24 | "height": 467, 25 | "rawWidth": 1024, 26 | "rawHeight": 1024, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S03.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S03.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "c0231766-7c5f-4a24-a33e-9a1f6ecbe842", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W256_H256_S04.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S04.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "769f0d05-3481-4ea7-aa1a-52371c82b595", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H256_S04": { 13 | "ver": "1.0.4", 14 | "uuid": "f988d11d-3b09-42f2-a073-2b24d9fd51fb", 15 | "rawTextureUuid": "769f0d05-3481-4ea7-aa1a-52371c82b595", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 15.5, 20 | "offsetY": 117.5, 21 | "trimX": 33, 22 | "trimY": 38, 23 | "width": 989, 24 | "height": 713, 25 | "rawWidth": 1024, 26 | "rawHeight": 1024, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S04.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S04.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "3e6a7417-83ab-4686-be63-04774cd798f9", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W256_H256_S05.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S05.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "f0960313-6781-4465-96f2-50221b717941", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H256_S05": { 13 | "ver": "1.0.4", 14 | "uuid": "4ffce8ed-5ece-421c-8672-b4e93adcd7fd", 15 | "rawTextureUuid": "f0960313-6781-4465-96f2-50221b717941", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0.5, 20 | "offsetY": 2, 21 | "trimX": 1, 22 | "trimY": 47, 23 | "width": 1023, 24 | "height": 926, 25 | "rawWidth": 1024, 26 | "rawHeight": 1024, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S05.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S05.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "3adb947b-3dff-4130-b670-83cc8f3a04ee", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W256_H256_S06.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S06.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "0c06434f-9ca3-4715-89d7-1c0821315948", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H256_S06": { 13 | "ver": "1.0.4", 14 | "uuid": "7841dab6-6742-4f0a-a620-df918e8d7741", 15 | "rawTextureUuid": "0c06434f-9ca3-4715-89d7-1c0821315948", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 512, 21 | "trimX": 0, 22 | "trimY": 0, 23 | "width": 2048, 24 | "height": 1025, 25 | "rawWidth": 2048, 26 | "rawHeight": 2049, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S06.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W256_H256_S06.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "0c7c2d53-0adc-4f32-ac5c-b5dd85f0e3ee", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W512_H512_S00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W512_H512_S00.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W512_H512_S00.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "c857ccb8-c787-4ede-a63c-3ffa4daa620d", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W512_H512_S00": { 13 | "ver": "1.0.4", 14 | "uuid": "6b6fcd9c-4f06-4616-ad24-752c19e3b537", 15 | "rawTextureUuid": "c857ccb8-c787-4ede-a63c-3ffa4daa620d", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": -766.5, 20 | "offsetY": 768, 21 | "trimX": 70, 22 | "trimY": 2, 23 | "width": 375, 24 | "height": 508, 25 | "rawWidth": 2048, 26 | "rawHeight": 2048, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W512_H512_S00.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W512_H512_S00.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "ac6feb2a-fbcc-4a98-8791-f5ab1375f7ae", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W512_H512_S01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/joystick_map/Tile_W512_H512_S01.png -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W512_H512_S01.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "8073e337-a5c8-4d51-8ec8-e720c2b14a20", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W512_H512_S01": { 13 | "ver": "1.0.4", 14 | "uuid": "42840906-1403-42ac-8fc2-9e5ee3d66ebb", 15 | "rawTextureUuid": "8073e337-a5c8-4d51-8ec8-e720c2b14a20", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 27, 21 | "trimX": 0, 22 | "trimY": 74, 23 | "width": 1024, 24 | "height": 822, 25 | "rawWidth": 1024, 26 | "rawHeight": 1024, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W512_H512_S01.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/Tile_W512_H512_S01.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "d6461090-9e58-48fc-916b-dc9853f46ed4", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/map.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | eJztz7EBABAQwMBnGxr7b0dhBLziiuuTEhEFAAAAAHimbtkdvn379u3bt2/fvn379p3d4RsA4L7+QUOGtowPOgAAAABOmeZFD6I= 19 | 20 | 21 | 22 | 23 | eJzt1TEKgDAMBdAeRDt5Nr3/DaRQFwdRqLQ070HIkiGfDEkJAAAAxnD0XqCD/dajkDuWp9xrrRm5dyxfc+daM7j+9/JitsxsP+4yMrljkRsAAAAAAAAAgNZOHBcHxQ== 24 | 25 | 26 | 27 | 28 | eJztzsENgCAQRUFqFAT7r0QOhlCAuIbMJD+7x5cSAAAAAADAu47oAD5VogMAWOKa7rydtb78/DUy5CfO6AAAAAAAAACGG5+vA7Q= 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /assets/resources/maps/joystick_map/map.tmx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.2", 3 | "uuid": "d6cad7fe-dfa2-4781-bf60-844f6a7c09f6", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0423.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "392c74f5-05a4-4523-8cd4-9cb1e41cb9b6", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0423/Tile_W256_H128_S01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/map_0423/Tile_W256_H128_S01.png -------------------------------------------------------------------------------- /assets/resources/maps/map_0423/Tile_W256_H128_S01.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "fb144d73-07f6-4e68-9f57-9285808a692c", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H128_S01": { 13 | "ver": "1.0.4", 14 | "uuid": "790832b4-4a5e-44d6-b128-8035ccffb650", 15 | "rawTextureUuid": "fb144d73-07f6-4e68-9f57-9285808a692c", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": -2, 20 | "offsetY": 896, 21 | "trimX": 2, 22 | "trimY": 0, 23 | "width": 2040, 24 | "height": 256, 25 | "rawWidth": 2048, 26 | "rawHeight": 2048, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0423/Tile_W256_H128_S01.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/resources/maps/map_0423/Tile_W256_H128_S01.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "a5d671d3-db5d-4902-baff-8e82e033521e", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0423/Tile_W512_H256_S01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/map_0423/Tile_W512_H256_S01.png -------------------------------------------------------------------------------- /assets/resources/maps/map_0423/Tile_W512_H256_S01.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "57bc1a22-c116-4df9-8e5d-79791c171c17", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W512_H256_S01": { 13 | "ver": "1.0.4", 14 | "uuid": "336d9729-70f0-440d-a8b9-85097a153ae0", 15 | "rawTextureUuid": "57bc1a22-c116-4df9-8e5d-79791c171c17", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": -0.5, 20 | "offsetY": 496.5, 21 | "trimX": 131, 22 | "trimY": 33, 23 | "width": 1785, 24 | "height": 989, 25 | "rawWidth": 2048, 26 | "rawHeight": 2048, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0423/Tile_W512_H256_S01.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/resources/maps/map_0423/Tile_W512_H256_S01.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "c8abcc38-eb98-4b97-960b-23f11e7ef0de", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0423/map.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | eJztw7ENAAAMAiBn/z/Y3tFAQgIAAAAAAPBH7wAZKAAL 13 | 14 | 15 | 16 | 17 | eJzt17EJACAMAMFgIcT9B9YZDBGLK76/9ldELEl63HjUrS9Ps7nk4+Pj4+Pj4+Pj4+Pj4/vA1/3mFZ8kVdoABTO/ 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /assets/resources/maps/map_0423/map.tmx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.2", 3 | "uuid": "2ce6413c-b129-493e-b561-7d1677354f6b", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0428.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "59b0e7d6-4d49-49d0-bb8c-39658e9461b8", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0428/Tile_W256_H128_S01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/map_0428/Tile_W256_H128_S01.png -------------------------------------------------------------------------------- /assets/resources/maps/map_0428/Tile_W256_H128_S01.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "6d658cfc-49f6-43af-bcfe-3b7b97274147", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W256_H128_S01": { 13 | "ver": "1.0.4", 14 | "uuid": "5ef16f8e-467c-4fab-9ca6-b411d66fa2fe", 15 | "rawTextureUuid": "6d658cfc-49f6-43af-bcfe-3b7b97274147", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": -2, 20 | "offsetY": 895.5, 21 | "trimX": 2, 22 | "trimY": 0, 23 | "width": 2040, 24 | "height": 257, 25 | "rawWidth": 2048, 26 | "rawHeight": 2048, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0428/Tile_W256_H128_S01.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/resources/maps/map_0428/Tile_W256_H128_S01.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "82efc350-0295-4eea-b034-85221df17a08", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0428/Tile_W512_H256_S01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/maps/map_0428/Tile_W512_H256_S01.png -------------------------------------------------------------------------------- /assets/resources/maps/map_0428/Tile_W512_H256_S01.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "72d00caf-e0b4-434b-919c-a79910ae8732", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Tile_W512_H256_S01": { 13 | "ver": "1.0.4", 14 | "uuid": "41836fb3-d000-4748-9923-feed523a409d", 15 | "rawTextureUuid": "72d00caf-e0b4-434b-919c-a79910ae8732", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": -1, 20 | "offsetY": 496.5, 21 | "trimX": 131, 22 | "trimY": 33, 23 | "width": 1784, 24 | "height": 989, 25 | "rawWidth": 2048, 26 | "rawHeight": 2048, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0428/Tile_W512_H256_S01.tsx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/resources/maps/map_0428/Tile_W512_H256_S01.tsx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "b204bcfd-d33d-4026-a752-8b703467bc6b", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/maps/map_0428/map.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | eJzt17EJACAMAMFgZ8D919UZDBGLK76/9jMiUpIeNx5165un1dzk4+Pj4+Pj4+Pj4+Pj4/vA1/3mFZ8kVdoLEEN/ 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | eJztzgENAAAIA6AXsH9dY1w3SEACAAAAAHw07QDAYQtb1AAO 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /assets/resources/maps/map_0428/map.tmx.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.2", 3 | "uuid": "e191e72d-6bad-4790-9aab-1654aca04eac", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/pbfiles.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "07664aff-f791-4ba4-b878-bf95f9ce1e29", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/pbfiles/Buildable.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package foodieclans; 3 | 4 | message Buildable { 5 | int32 id = 1; 6 | int32 type = 2; 7 | int32 discreteWidth = 3; 8 | int32 discreteHeight = 4; 9 | string displayName = 5; 10 | } 11 | 12 | message BuildableLevelBinding { 13 | int32 id = 1; 14 | Buildable buildable = 2; 15 | int32 level = 3; 16 | int32 buildingOrUpgradingDuration = 4; 17 | int32 buildingOrUpgradingRequiredGold = 5; 18 | int32 buildingOrUpgradingRequiredResidentsCount = 6; 19 | double baseGoldProductionRate = 7; 20 | int32 baseFoodProductionRate = 8; 21 | int32 baseRiflemanProductionRequiredGold = 9; 22 | int32 baseRiflemanProductionDuration = 10; 23 | } 24 | 25 | message PlayerBuildableBinding { 26 | int32 id = 1; 27 | int32 topmostTileDiscretePositionX = 2; 28 | int32 topmostTileDiscretePositionY = 3; 29 | int32 playerId = 4; 30 | Buildable buildable = 5; 31 | int32 currentLevel = 6; 32 | int32 state = 7; 33 | int64 buildingOrUpgradingStartedAt = 8; 34 | int32 immediateGoldProductionRate = 9; 35 | int32 immediateRifleProductionRequiredGold = 10; 36 | int32 immediateRifleProductionDuration = 11; 37 | } 38 | 39 | message SyncDataStruct { 40 | repeated PlayerBuildableBinding playerBuildableBindingList = 1; 41 | } 42 | 43 | message BuildableLevelConfStruct { 44 | repeated BuildableLevelBinding levelConfList = 1; 45 | } 46 | 47 | message AddPlayerBuildableBindingReqStruct { 48 | int32 buildableId = 1; 49 | int32 topmostTileDiscretePositionX = 2; 50 | int32 topmostTileDiscretePositionY = 3; 51 | } 52 | 53 | message ModifyPlayerBuildableBindingReqStruct { 54 | int32 playerBuildableBindingid = 1; 55 | int32 topmostTileDiscretePositionX = 2; 56 | int32 topmostTileDiscretePositionY = 3; 57 | } 58 | 59 | message BuildableUpgradeReqStruct { 60 | int32 playerBuildableBindingId = 1; 61 | int32 upgradedLevel = 2; 62 | } 63 | 64 | message BuildableLevelBindingReqStruct { 65 | int32 playerBuildableBindingId = 1; 66 | int32 upgradedLevel = 2; 67 | } -------------------------------------------------------------------------------- /assets/resources/pbfiles/Buildable.proto.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.0.0", 3 | "uuid": "1c70d2c4-4a2a-4d8c-896b-45aa7dfd4a4b", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/prefabs.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "09a53a66-aa9d-4c40-b9e7-93fd42265c65", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/BaseSkeletalAnim.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "bb9ab9f9-bcd1-4b1a-95e7-26d7d49f5d3c", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/Loading.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "e4c21340-8a3e-4e30-b2e8-fe7c29a19a60", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/MapRequired.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "cff59c48-5cf7-443d-9e37-e716ce644d7e", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/MapRequired/BuildOrUpgradeProgressBar.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "a4fff44d-7dd4-49a9-89be-4e0d26b47948", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/MapRequired/WidgetsAboveAll.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "d603b359-c602-4d9c-8751-acce02222312", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/SelfPlayer.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "8b400cb3-9119-4269-b86b-0aa2a659b691", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/SimplePressToGoDialog.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "24d7c0af-73ef-4fd7-a6c6-45413155a38c", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/StatefulBuildableInstance.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "ec3c97e2-9ae1-456f-b710-abd7d1d361e5", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/StatefulBuildableInstanceInfoPanel.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "6b722be9-9aca-4d9b-bde4-8eee7b53fb25", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/StatelessBuildableInstanceCard.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "1fe1af52-ca00-445f-a7d4-3d006ab2a427", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "bfde24d4-bb6e-4e30-982c-439f9904f0df", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/ImageObject.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "1249be39-4bbd-4b24-b30e-023c5f107d5c", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/Item.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "6331dfb6-8379-446f-89b3-60725df5886d", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/ItemAcceptBoundaryBarrier.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "data": { 8 | "__id__": 1 9 | }, 10 | "optimizationPolicy": 0, 11 | "asyncLoadAssets": false 12 | }, 13 | { 14 | "__type__": "cc.Node", 15 | "_name": "ItemAcceptBoundaryBarrier", 16 | "_objFlags": 0, 17 | "_parent": null, 18 | "_children": [], 19 | "_active": true, 20 | "_level": 1, 21 | "_components": [ 22 | { 23 | "__id__": 2 24 | } 25 | ], 26 | "_prefab": { 27 | "__id__": 3 28 | }, 29 | "_opacity": 255, 30 | "_color": { 31 | "__type__": "cc.Color", 32 | "r": 255, 33 | "g": 255, 34 | "b": 255, 35 | "a": 255 36 | }, 37 | "_contentSize": { 38 | "__type__": "cc.Size", 39 | "width": 0, 40 | "height": 0 41 | }, 42 | "_anchorPoint": { 43 | "__type__": "cc.Vec2", 44 | "x": 0.5, 45 | "y": 0.5 46 | }, 47 | "_quat": { 48 | "__type__": "cc.Quat", 49 | "x": 0, 50 | "y": 0, 51 | "z": 0, 52 | "w": 1 53 | }, 54 | "_skewX": 0, 55 | "_skewY": 0, 56 | "groupIndex": 10, 57 | "_id": "", 58 | "_trs": { 59 | "__type__": "TypedArray", 60 | "ctor": "Float64Array", 61 | "array": [ 62 | 0, 63 | 0, 64 | 0, 65 | 0, 66 | 0, 67 | 0, 68 | 1, 69 | 1, 70 | 1, 71 | 1 72 | ] 73 | } 74 | }, 75 | { 76 | "__type__": "d6a9c7+OkRAXbyjW2OeChIQ", 77 | "_name": "", 78 | "_objFlags": 0, 79 | "node": { 80 | "__id__": 1 81 | }, 82 | "_enabled": true, 83 | "tag": 0, 84 | "_offset": { 85 | "__type__": "cc.Vec2", 86 | "x": 0, 87 | "y": 0 88 | }, 89 | "points": [ 90 | { 91 | "__type__": "cc.Vec2", 92 | "x": -50, 93 | "y": -50 94 | }, 95 | { 96 | "__type__": "cc.Vec2", 97 | "x": 50, 98 | "y": -50 99 | }, 100 | { 101 | "__type__": "cc.Vec2", 102 | "x": 50, 103 | "y": 50 104 | }, 105 | { 106 | "__type__": "cc.Vec2", 107 | "x": -50, 108 | "y": 50 109 | } 110 | ], 111 | "_id": "" 112 | }, 113 | { 114 | "__type__": "cc.PrefabInfo", 115 | "root": { 116 | "__id__": 1 117 | }, 118 | "asset": { 119 | "__uuid__": "0ef7fc2e-883f-43d2-81e5-5a84e3c16e9f" 120 | }, 121 | "fileId": "de4Csi00JOPoU6mrIrkRip", 122 | "sync": false 123 | } 124 | ] -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/ItemAcceptBoundaryBarrier.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "0ef7fc2e-883f-43d2-81e5-5a84e3c16e9f", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/ItemCell.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "data": { 8 | "__id__": 1 9 | }, 10 | "optimizationPolicy": 0, 11 | "asyncLoadAssets": false 12 | }, 13 | { 14 | "__type__": "cc.Node", 15 | "_name": "ItemCell", 16 | "_objFlags": 0, 17 | "_parent": null, 18 | "_children": [], 19 | "_active": true, 20 | "_level": 1, 21 | "_components": [ 22 | { 23 | "__id__": 2 24 | } 25 | ], 26 | "_prefab": { 27 | "__id__": 3 28 | }, 29 | "_opacity": 255, 30 | "_color": { 31 | "__type__": "cc.Color", 32 | "r": 255, 33 | "g": 255, 34 | "b": 255, 35 | "a": 255 36 | }, 37 | "_contentSize": { 38 | "__type__": "cc.Size", 39 | "width": 300, 40 | "height": 120 41 | }, 42 | "_anchorPoint": { 43 | "__type__": "cc.Vec2", 44 | "x": 0.5, 45 | "y": 0.5 46 | }, 47 | "_quat": { 48 | "__type__": "cc.Quat", 49 | "x": 0, 50 | "y": 0, 51 | "z": 0, 52 | "w": 1 53 | }, 54 | "_skewX": 0, 55 | "_skewY": 0, 56 | "groupIndex": 0, 57 | "_id": "", 58 | "_trs": { 59 | "__type__": "TypedArray", 60 | "ctor": "Float64Array", 61 | "array": [ 62 | 0, 63 | -111, 64 | 0, 65 | 0, 66 | 0, 67 | 0, 68 | 1, 69 | 1, 70 | 1, 71 | 1 72 | ] 73 | } 74 | }, 75 | { 76 | "__type__": "cc.Sprite", 77 | "_name": "", 78 | "_objFlags": 0, 79 | "node": { 80 | "__id__": 1 81 | }, 82 | "_enabled": true, 83 | "_srcBlendFactor": 770, 84 | "_dstBlendFactor": 771, 85 | "_spriteFrame": { 86 | "__uuid__": "be7fba76-2c00-42e9-8297-45d30a1cb493" 87 | }, 88 | "_type": 0, 89 | "_sizeMode": 0, 90 | "_fillType": 0, 91 | "_fillCenter": { 92 | "__type__": "cc.Vec2", 93 | "x": 0, 94 | "y": 0 95 | }, 96 | "_fillStart": 0, 97 | "_fillRange": 0, 98 | "_isTrimmedMode": true, 99 | "_state": 0, 100 | "_atlas": { 101 | "__uuid__": "cc2d02c7-392b-4d4c-aee0-3f3827e5ce34" 102 | }, 103 | "_id": "" 104 | }, 105 | { 106 | "__type__": "cc.PrefabInfo", 107 | "root": { 108 | "__id__": 1 109 | }, 110 | "asset": { 111 | "__uuid__": "6cb6213a-f1b9-48ef-ab24-24ebb61376c3" 112 | }, 113 | "fileId": "59wbZwWsFPoKtyC3iSkPvB", 114 | "sync": false 115 | } 116 | ] -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/ItemCell.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "6cb6213a-f1b9-48ef-ab24-24ebb61376c3", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/ItemList.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "586e7c94-b0fd-4403-848e-7cb35b2ffb05", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/PolygonBoundaryBarrier.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": "PolygonBoundaryBarrier", 14 | "_objFlags": 0, 15 | "_parent": null, 16 | "_children": [], 17 | "_tag": -1, 18 | "_active": true, 19 | "_components": [ 20 | { 21 | "__id__": 2 22 | } 23 | ], 24 | "_prefab": { 25 | "__id__": 3 26 | }, 27 | "_id": "", 28 | "_opacity": 255, 29 | "_color": { 30 | "__type__": "cc.Color", 31 | "r": 255, 32 | "g": 255, 33 | "b": 255, 34 | "a": 255 35 | }, 36 | "_cascadeOpacityEnabled": true, 37 | "_anchorPoint": { 38 | "__type__": "cc.Vec2", 39 | "x": 0.5, 40 | "y": 0.5 41 | }, 42 | "_contentSize": { 43 | "__type__": "cc.Size", 44 | "width": 0, 45 | "height": 0 46 | }, 47 | "_skewX": 0, 48 | "_skewY": 0, 49 | "_localZOrder": 0, 50 | "_globalZOrder": 0, 51 | "_opacityModifyRGB": false, 52 | "groupIndex": 1, 53 | "_trs": { 54 | "__type__": "TypedArray", 55 | "ctor": "Float64Array", 56 | "array": [ 57 | 0, 58 | 0, 59 | 0, 60 | 0, 61 | 0, 62 | 0, 63 | 1, 64 | 1, 65 | 1, 66 | 1 67 | ] 68 | } 69 | }, 70 | { 71 | "__type__": "cc.PolygonCollider", 72 | "_name": "", 73 | "_objFlags": 0, 74 | "node": { 75 | "__id__": 1 76 | }, 77 | "_enabled": true, 78 | "tag": 0, 79 | "_offset": { 80 | "__type__": "cc.Vec2", 81 | "x": 0, 82 | "y": 0 83 | }, 84 | "points": [ 85 | { 86 | "__type__": "cc.Vec2", 87 | "x": -50, 88 | "y": -50 89 | }, 90 | { 91 | "__type__": "cc.Vec2", 92 | "x": 50, 93 | "y": -50 94 | }, 95 | { 96 | "__type__": "cc.Vec2", 97 | "x": 50, 98 | "y": 50 99 | }, 100 | { 101 | "__type__": "cc.Vec2", 102 | "x": -50, 103 | "y": 50 104 | } 105 | ] 106 | }, 107 | { 108 | "__type__": "cc.PrefabInfo", 109 | "root": { 110 | "__id__": 1 111 | }, 112 | "asset": { 113 | "__id__": 0 114 | }, 115 | "fileId": "e6gF9LdulAgYGTgO3/Pye8", 116 | "sync": false 117 | } 118 | ] -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/PolygonBoundaryBarrier.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "4154eec0-d644-482f-a889-c00ae6b69958", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/PolygonBoundaryShelter.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "data": { 8 | "__id__": 1 9 | }, 10 | "optimizationPolicy": 0, 11 | "asyncLoadAssets": false 12 | }, 13 | { 14 | "__type__": "cc.Node", 15 | "_name": "PolygonBoundaryShelter", 16 | "_objFlags": 0, 17 | "_parent": null, 18 | "_children": [], 19 | "_active": true, 20 | "_level": 1, 21 | "_components": [ 22 | { 23 | "__id__": 2 24 | }, 25 | { 26 | "__id__": 3 27 | } 28 | ], 29 | "_prefab": { 30 | "__id__": 4 31 | }, 32 | "_opacity": 255, 33 | "_color": { 34 | "__type__": "cc.Color", 35 | "r": 255, 36 | "g": 255, 37 | "b": 255, 38 | "a": 255 39 | }, 40 | "_contentSize": { 41 | "__type__": "cc.Size", 42 | "width": 0, 43 | "height": 0 44 | }, 45 | "_anchorPoint": { 46 | "__type__": "cc.Vec2", 47 | "x": 0.5, 48 | "y": 0.5 49 | }, 50 | "_quat": { 51 | "__type__": "cc.Quat", 52 | "x": 0, 53 | "y": 0, 54 | "z": 0, 55 | "w": 1 56 | }, 57 | "_skewX": 0, 58 | "_skewY": 0, 59 | "groupIndex": 4, 60 | "_id": "", 61 | "_trs": { 62 | "__type__": "TypedArray", 63 | "ctor": "Float64Array", 64 | "array": [ 65 | -192, 66 | 43, 67 | 0, 68 | 0, 69 | 0, 70 | 0, 71 | 1, 72 | 1, 73 | 1, 74 | 1 75 | ] 76 | } 77 | }, 78 | { 79 | "__type__": "cc.PolygonCollider", 80 | "_name": "", 81 | "_objFlags": 0, 82 | "node": { 83 | "__id__": 1 84 | }, 85 | "_enabled": true, 86 | "tag": 0, 87 | "_offset": { 88 | "__type__": "cc.Vec2", 89 | "x": 0, 90 | "y": 0 91 | }, 92 | "points": [ 93 | { 94 | "__type__": "cc.Vec2", 95 | "x": -50, 96 | "y": -50 97 | }, 98 | { 99 | "__type__": "cc.Vec2", 100 | "x": 50, 101 | "y": -50 102 | }, 103 | { 104 | "__type__": "cc.Vec2", 105 | "x": 50, 106 | "y": 50 107 | }, 108 | { 109 | "__type__": "cc.Vec2", 110 | "x": -50, 111 | "y": 50 112 | } 113 | ], 114 | "_id": "" 115 | }, 116 | { 117 | "__type__": "98852On5bhMCaueSyYW/uz9", 118 | "_name": "", 119 | "_objFlags": 0, 120 | "node": { 121 | "__id__": 1 122 | }, 123 | "_enabled": true, 124 | "_id": "" 125 | }, 126 | { 127 | "__type__": "cc.PrefabInfo", 128 | "root": { 129 | "__id__": 1 130 | }, 131 | "asset": { 132 | "__uuid__": "f820a6ec-e7a9-46cf-9b8a-331aa3e21487" 133 | }, 134 | "fileId": "f8scmoFllMboAtkaldeiym", 135 | "sync": false 136 | } 137 | ] -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/PolygonBoundaryShelter.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "f820a6ec-e7a9-46cf-9b8a-331aa3e21487", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/PolygonBoundaryShelterZReducer.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "data": { 8 | "__id__": 1 9 | }, 10 | "optimizationPolicy": 0, 11 | "asyncLoadAssets": false 12 | }, 13 | { 14 | "__type__": "cc.Node", 15 | "_name": "PolygonBoundaryShelterZReducer", 16 | "_objFlags": 0, 17 | "_parent": null, 18 | "_children": [], 19 | "_active": true, 20 | "_level": 1, 21 | "_components": [ 22 | { 23 | "__id__": 2 24 | } 25 | ], 26 | "_prefab": { 27 | "__id__": 3 28 | }, 29 | "_opacity": 255, 30 | "_color": { 31 | "__type__": "cc.Color", 32 | "r": 255, 33 | "g": 255, 34 | "b": 255, 35 | "a": 255 36 | }, 37 | "_contentSize": { 38 | "__type__": "cc.Size", 39 | "width": 0, 40 | "height": 0 41 | }, 42 | "_anchorPoint": { 43 | "__type__": "cc.Vec2", 44 | "x": 0.5, 45 | "y": 0.5 46 | }, 47 | "_quat": { 48 | "__type__": "cc.Quat", 49 | "x": 0, 50 | "y": 0, 51 | "z": 0, 52 | "w": 1 53 | }, 54 | "_skewX": 0, 55 | "_skewY": 0, 56 | "_zIndex": 0, 57 | "groupIndex": 3, 58 | "_id": "", 59 | "_trs": { 60 | "__type__": "TypedArray", 61 | "ctor": "Float64Array", 62 | "array": [ 63 | 0, 64 | 0, 65 | 0, 66 | 0, 67 | 0, 68 | 0, 69 | 1, 70 | 1, 71 | 1, 72 | 1 73 | ] 74 | } 75 | }, 76 | { 77 | "__type__": "cc.PolygonCollider", 78 | "_name": "", 79 | "_objFlags": 0, 80 | "node": { 81 | "__id__": 1 82 | }, 83 | "_enabled": true, 84 | "tag": 0, 85 | "_offset": { 86 | "__type__": "cc.Vec2", 87 | "x": 0, 88 | "y": 0 89 | }, 90 | "points": [ 91 | { 92 | "__type__": "cc.Vec2", 93 | "x": -50, 94 | "y": -50 95 | }, 96 | { 97 | "__type__": "cc.Vec2", 98 | "x": 50, 99 | "y": -50 100 | }, 101 | { 102 | "__type__": "cc.Vec2", 103 | "x": 50, 104 | "y": 50 105 | }, 106 | { 107 | "__type__": "cc.Vec2", 108 | "x": -50, 109 | "y": 50 110 | } 111 | ], 112 | "_id": "e6q3kwlllDC425mW1I4/O5" 113 | }, 114 | { 115 | "__type__": "cc.PrefabInfo", 116 | "root": { 117 | "__id__": 1 118 | }, 119 | "asset": { 120 | "__uuid__": "a36d024b-a979-4d18-b089-19af313ffb82" 121 | }, 122 | "fileId": "fajJ28qMxI0YDyTCPlWINd", 123 | "sync": false 124 | } 125 | ] -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/PolygonBoundaryShelterZReducer.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "a36d024b-a979-4d18-b089-19af313ffb82", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/PolygonBoundaryStatefulBuildableInhibition.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "data": { 8 | "__id__": 1 9 | }, 10 | "optimizationPolicy": 0, 11 | "asyncLoadAssets": false 12 | }, 13 | { 14 | "__type__": "cc.Node", 15 | "_name": "PolygonBoundaryStatefulBuildableInhibition", 16 | "_objFlags": 0, 17 | "_parent": null, 18 | "_children": [], 19 | "_active": true, 20 | "_level": 1, 21 | "_components": [ 22 | { 23 | "__id__": 2 24 | } 25 | ], 26 | "_prefab": { 27 | "__id__": 3 28 | }, 29 | "_opacity": 255, 30 | "_color": { 31 | "__type__": "cc.Color", 32 | "r": 255, 33 | "g": 255, 34 | "b": 255, 35 | "a": 255 36 | }, 37 | "_contentSize": { 38 | "__type__": "cc.Size", 39 | "width": 0, 40 | "height": 0 41 | }, 42 | "_anchorPoint": { 43 | "__type__": "cc.Vec2", 44 | "x": 0.5, 45 | "y": 0.5 46 | }, 47 | "_quat": { 48 | "__type__": "cc.Quat", 49 | "x": 0, 50 | "y": 0, 51 | "z": 0, 52 | "w": 1 53 | }, 54 | "_skewX": 0, 55 | "_skewY": 0, 56 | "groupIndex": 8, 57 | "_id": "", 58 | "_trs": { 59 | "__type__": "TypedArray", 60 | "ctor": "Float64Array", 61 | "array": [ 62 | 0, 63 | 0, 64 | 0, 65 | 0, 66 | 0, 67 | 0, 68 | 1, 69 | 1, 70 | 1, 71 | 1 72 | ] 73 | } 74 | }, 75 | { 76 | "__type__": "cc.PolygonCollider", 77 | "_name": "", 78 | "_objFlags": 0, 79 | "node": { 80 | "__id__": 1 81 | }, 82 | "_enabled": true, 83 | "tag": 0, 84 | "_offset": { 85 | "__type__": "cc.Vec2", 86 | "x": 0, 87 | "y": 0 88 | }, 89 | "points": [ 90 | { 91 | "__type__": "cc.Vec2", 92 | "x": -50, 93 | "y": -50 94 | }, 95 | { 96 | "__type__": "cc.Vec2", 97 | "x": 50, 98 | "y": -50 99 | }, 100 | { 101 | "__type__": "cc.Vec2", 102 | "x": 50, 103 | "y": 50 104 | }, 105 | { 106 | "__type__": "cc.Vec2", 107 | "x": -50, 108 | "y": 50 109 | } 110 | ], 111 | "_id": "" 112 | }, 113 | { 114 | "__type__": "cc.PrefabInfo", 115 | "root": { 116 | "__id__": 1 117 | }, 118 | "asset": { 119 | "__uuid__": "8c95c45e-4707-4cc5-bf29-8fe26a3b6fc6" 120 | }, 121 | "fileId": "e6gF9LdulAgYGTgO3/Pye8", 122 | "sync": false 123 | } 124 | ] -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/PolygonBoundaryStatefulBuildableInhibition.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "8c95c45e-4707-4cc5-bf29-8fe26a3b6fc6", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/StatefulBuildableFollowingNpc.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "fe16b892-3e21-410b-9d71-bf220543abb3", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/StatelessBuildableInstanceCardList.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "78a5cdc0-5903-424d-b243-333ae20bada1", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/TiledAnim.prefab: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__type__": "cc.Prefab", 4 | "_name": "", 5 | "_objFlags": 0, 6 | "_native": "", 7 | "data": { 8 | "__id__": 1 9 | }, 10 | "optimizationPolicy": 0, 11 | "asyncLoadAssets": false 12 | }, 13 | { 14 | "__type__": "cc.Node", 15 | "_name": "TiledAnim", 16 | "_objFlags": 0, 17 | "_parent": null, 18 | "_children": [], 19 | "_active": true, 20 | "_level": 1, 21 | "_components": [ 22 | { 23 | "__id__": 2 24 | }, 25 | { 26 | "__id__": 3 27 | } 28 | ], 29 | "_prefab": { 30 | "__id__": 4 31 | }, 32 | "_opacity": 255, 33 | "_color": { 34 | "__type__": "cc.Color", 35 | "r": 255, 36 | "g": 255, 37 | "b": 255, 38 | "a": 255 39 | }, 40 | "_contentSize": { 41 | "__type__": "cc.Size", 42 | "width": 64, 43 | "height": 100 44 | }, 45 | "_anchorPoint": { 46 | "__type__": "cc.Vec2", 47 | "x": 0.5, 48 | "y": 0.5 49 | }, 50 | "_quat": { 51 | "__type__": "cc.Quat", 52 | "x": 0, 53 | "y": 0, 54 | "z": 0, 55 | "w": 1 56 | }, 57 | "_skewX": 0, 58 | "_skewY": 0, 59 | "_zIndex": 0, 60 | "groupIndex": 0, 61 | "_id": "", 62 | "_trs": { 63 | "__type__": "TypedArray", 64 | "ctor": "Float64Array", 65 | "array": [ 66 | 0, 67 | 0, 68 | 0, 69 | 0, 70 | 0, 71 | 0, 72 | 1, 73 | 1, 74 | 1, 75 | 1 76 | ] 77 | } 78 | }, 79 | { 80 | "__type__": "cc.Sprite", 81 | "_name": "", 82 | "_objFlags": 0, 83 | "node": { 84 | "__id__": 1 85 | }, 86 | "_enabled": true, 87 | "_srcBlendFactor": 770, 88 | "_dstBlendFactor": 771, 89 | "_spriteFrame": { 90 | "__uuid__": "40384f54-7ec4-48af-a957-93110cc5ec16" 91 | }, 92 | "_type": 0, 93 | "_sizeMode": 1, 94 | "_fillType": 0, 95 | "_fillCenter": { 96 | "__type__": "cc.Vec2", 97 | "x": 0, 98 | "y": 0 99 | }, 100 | "_fillStart": 0, 101 | "_fillRange": 0, 102 | "_isTrimmedMode": true, 103 | "_state": 0, 104 | "_atlas": { 105 | "__uuid__": "9ac3f60c-bea4-4c69-997e-0a7a56e5ea9e" 106 | }, 107 | "_id": "e8bzNMIoFDEa87KubiQXY+" 108 | }, 109 | { 110 | "__type__": "cc.Animation", 111 | "_name": "", 112 | "_objFlags": 0, 113 | "node": { 114 | "__id__": 1 115 | }, 116 | "_enabled": true, 117 | "_defaultClip": { 118 | "__uuid__": "b3bda386-6898-4302-a878-6d54a0cae8d0" 119 | }, 120 | "_clips": [ 121 | { 122 | "__uuid__": "fe3be5d3-8ae3-4944-abf0-dc00fd6de80b" 123 | } 124 | ], 125 | "playOnLoad": true, 126 | "_id": "03rqHv6O9He5umNx1m6cJC" 127 | }, 128 | { 129 | "__type__": "cc.PrefabInfo", 130 | "root": { 131 | "__id__": 1 132 | }, 133 | "asset": { 134 | "__uuid__": "0a634d7e-2c5d-45db-896f-e3de32ff0ac8" 135 | }, 136 | "fileId": "60dCvhukpIsL1FtdnqBIor", 137 | "sync": false 138 | } 139 | ] -------------------------------------------------------------------------------- /assets/resources/prefabs/WidgetsAboveAllRequired/TiledAnim.prefab.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "0a634d7e-2c5d-45db-896f-e3de32ff0ac8", 4 | "optimizationPolicy": "AUTO", 5 | "asyncLoadAssets": false, 6 | "readonly": false, 7 | "subMetas": {} 8 | } -------------------------------------------------------------------------------- /assets/resources/textures.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "f5453eec-0968-4917-8879-54d8c8f51120", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/textures/GUIElements.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "2dc27bc4-f136-4ff0-9e17-d326d9b6df8c", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/textures/GUIElements/FoodIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/textures/GUIElements/FoodIcon.png -------------------------------------------------------------------------------- /assets/resources/textures/GUIElements/FoodIcon.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "bf638297-74b6-4729-81e2-2deafcb95c8f", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "FoodIcon": { 13 | "ver": "1.0.4", 14 | "uuid": "be658013-6473-4012-9b40-8ae55f2de690", 15 | "rawTextureUuid": "bf638297-74b6-4729-81e2-2deafcb95c8f", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 1, 21 | "trimX": 0, 22 | "trimY": 0, 23 | "width": 256, 24 | "height": 1228, 25 | "rawWidth": 256, 26 | "rawHeight": 1230, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/textures/GUIElements/GUIElements-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/textures/GUIElements/GUIElements-1.png -------------------------------------------------------------------------------- /assets/resources/textures/GUIElements/GUIElements-1.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "3e028dcb-cfbc-4905-a92e-03b754475639", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "GUIElements-1": { 13 | "ver": "1.0.4", 14 | "uuid": "e930d070-e8ca-4d66-8a8d-c5190462b70f", 15 | "rawTextureUuid": "3e028dcb-cfbc-4905-a92e-03b754475639", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 0, 21 | "trimX": 0, 22 | "trimY": 0, 23 | "width": 1255, 24 | "height": 934, 25 | "rawWidth": 1255, 26 | "rawHeight": 934, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "e809dadb-b04f-450d-b07d-eb34e47098fd", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Barn.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | frames 6 | 7 | 1.png 8 | 9 | aliases 10 | 11 | spriteOffset 12 | {-49,46} 13 | spriteSize 14 | {154,158} 15 | spriteSourceSize 16 | {256,256} 17 | textureRect 18 | {{1,1},{154,158}} 19 | textureRotated 20 | 21 | 22 | 2.png 23 | 24 | aliases 25 | 26 | spriteOffset 27 | {-62,24} 28 | spriteSize 29 | {126,76} 30 | spriteSourceSize 31 | {256,128} 32 | textureRect 33 | {{1,161},{126,76}} 34 | textureRotated 35 | 36 | 37 | 38 | metadata 39 | 40 | format 41 | 3 42 | pixelFormat 43 | RGBA8888 44 | premultiplyAlpha 45 | 46 | realTextureFileName 47 | Barn.png 48 | size 49 | {156,238} 50 | smartupdate 51 | $TexturePacker:SmartUpdate:7febf7f02d7adb62f34e3f87abec785c:f51788c0d7bca45cc8aacfb03a94d3e4:f0ab44166bfa5db68aa2442be09381a1$ 52 | textureFileName 53 | Barn.png 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Barn.plist.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.4", 3 | "uuid": "49ea6472-b038-4c04-9c55-20aa42f3c95a", 4 | "rawTextureUuid": "6cf75d65-a044-4ec8-b291-e1e4a226141b", 5 | "size": { 6 | "width": 156, 7 | "height": 238 8 | }, 9 | "type": "Texture Packer", 10 | "subMetas": { 11 | "1.png": { 12 | "ver": "1.0.4", 13 | "uuid": "17a8d409-39f7-4705-a27e-0bb07eae4df1", 14 | "rawTextureUuid": "6cf75d65-a044-4ec8-b291-e1e4a226141b", 15 | "trimType": "auto", 16 | "trimThreshold": 1, 17 | "rotated": false, 18 | "offsetX": -49, 19 | "offsetY": 46, 20 | "trimX": 1, 21 | "trimY": 1, 22 | "width": 154, 23 | "height": 158, 24 | "rawWidth": 256, 25 | "rawHeight": 256, 26 | "borderTop": 0, 27 | "borderBottom": 0, 28 | "borderLeft": 0, 29 | "borderRight": 0, 30 | "spriteType": "normal", 31 | "subMetas": {} 32 | }, 33 | "2.png": { 34 | "ver": "1.0.4", 35 | "uuid": "c6b7e9c1-48cf-4399-bee5-fded0e5aa5fb", 36 | "rawTextureUuid": "6cf75d65-a044-4ec8-b291-e1e4a226141b", 37 | "trimType": "auto", 38 | "trimThreshold": 1, 39 | "rotated": false, 40 | "offsetX": -62, 41 | "offsetY": 24, 42 | "trimX": 1, 43 | "trimY": 161, 44 | "width": 126, 45 | "height": 76, 46 | "rawWidth": 256, 47 | "rawHeight": 128, 48 | "borderTop": 0, 49 | "borderBottom": 0, 50 | "borderLeft": 0, 51 | "borderRight": 0, 52 | "spriteType": "normal", 53 | "subMetas": {} 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Barn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/textures/StatelessBuildable/Barn.png -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Barn.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "6cf75d65-a044-4ec8-b291-e1e4a226141b", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Barn": { 13 | "ver": "1.0.4", 14 | "uuid": "beca8aca-7c7b-4b8f-a52f-37f00b1cdc1c", 15 | "rawTextureUuid": "6cf75d65-a044-4ec8-b291-e1e4a226141b", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 0, 21 | "trimX": 2, 22 | "trimY": 2, 23 | "width": 152, 24 | "height": 234, 25 | "rawWidth": 156, 26 | "rawHeight": 238, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Barrack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/textures/StatelessBuildable/Barrack.png -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Barrack.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "526433f1-9461-4a4b-96f9-a5bf814bd49f", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Barrack": { 13 | "ver": "1.0.4", 14 | "uuid": "fe14529b-41b5-46f6-acfe-4fa8e6d326a4", 15 | "rawTextureUuid": "526433f1-9461-4a4b-96f9-a5bf814bd49f", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 0, 21 | "trimX": 0, 22 | "trimY": 0, 23 | "width": 737, 24 | "height": 487, 25 | "rawWidth": 737, 26 | "rawHeight": 487, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Farmland.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/textures/StatelessBuildable/Farmland.png -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Farmland.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "97a6222e-4b84-4f45-8f1b-a228b82d364f", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Farmland": { 13 | "ver": "1.0.4", 14 | "uuid": "9417a091-a007-47fe-89cd-bbce478607de", 15 | "rawTextureUuid": "97a6222e-4b84-4f45-8f1b-a228b82d364f", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0.5, 20 | "offsetY": 0, 21 | "trimX": 3, 22 | "trimY": 2, 23 | "width": 237, 24 | "height": 732, 25 | "rawWidth": 242, 26 | "rawHeight": 736, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Headquarter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/textures/StatelessBuildable/Headquarter.png -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Headquarter.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "8b75cef7-d6b5-4056-86bf-1539de5c48d2", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Headquarter": { 13 | "ver": "1.0.4", 14 | "uuid": "73883909-cd1c-4cd8-bf9a-914369464eaf", 15 | "rawTextureUuid": "8b75cef7-d6b5-4056-86bf-1539de5c48d2", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 0, 21 | "trimX": 0, 22 | "trimY": 0, 23 | "width": 1675, 24 | "height": 258, 25 | "rawWidth": 1675, 26 | "rawHeight": 258, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Laboratory.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | frames 6 | 7 | 1.png 8 | 9 | aliases 10 | 11 | spriteOffset 12 | {0,-13} 13 | spriteSize 14 | {282,230} 15 | spriteSourceSize 16 | {282,256} 17 | textureRect 18 | {{1,1},{282,230}} 19 | textureRotated 20 | 21 | 22 | 23 | metadata 24 | 25 | format 26 | 3 27 | pixelFormat 28 | RGBA8888 29 | premultiplyAlpha 30 | 31 | realTextureFileName 32 | Laboratory.png 33 | size 34 | {284,232} 35 | smartupdate 36 | $TexturePacker:SmartUpdate:6d583b8b585c7e52a9349fd0b96b2427:db80dc2145e05385c2faf6c6cb993964:3c9a1bb27137d3383e13333dd1a6cc6a$ 37 | textureFileName 38 | Laboratory.png 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Laboratory.plist.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.4", 3 | "uuid": "d1a2db6c-5be5-4de2-be93-ba730c2d106d", 4 | "rawTextureUuid": "7e339fe3-8970-4af1-bccc-01edf5d9b6f6", 5 | "size": { 6 | "width": 284, 7 | "height": 232 8 | }, 9 | "type": "Texture Packer", 10 | "subMetas": { 11 | "1.png": { 12 | "ver": "1.0.4", 13 | "uuid": "d24b653e-0e53-409b-9b69-e906b776249f", 14 | "rawTextureUuid": "7e339fe3-8970-4af1-bccc-01edf5d9b6f6", 15 | "trimType": "auto", 16 | "trimThreshold": 1, 17 | "rotated": false, 18 | "offsetX": 0, 19 | "offsetY": -13, 20 | "trimX": 1, 21 | "trimY": 1, 22 | "width": 282, 23 | "height": 230, 24 | "rawWidth": 282, 25 | "rawHeight": 256, 26 | "borderTop": 0, 27 | "borderBottom": 0, 28 | "borderLeft": 0, 29 | "borderRight": 0, 30 | "spriteType": "normal", 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Laboratory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/textures/StatelessBuildable/Laboratory.png -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Laboratory.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "7e339fe3-8970-4af1-bccc-01edf5d9b6f6", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Laboratory": { 13 | "ver": "1.0.4", 14 | "uuid": "123c1e32-1190-43d4-a2fb-f204a08ef3e6", 15 | "rawTextureUuid": "7e339fe3-8970-4af1-bccc-01edf5d9b6f6", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": -1.5, 21 | "trimX": 0, 22 | "trimY": 3, 23 | "width": 284, 24 | "height": 229, 25 | "rawWidth": 284, 26 | "rawHeight": 232, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Restaurant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/textures/StatelessBuildable/Restaurant.png -------------------------------------------------------------------------------- /assets/resources/textures/StatelessBuildable/Restaurant.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "72c0e7a5-fcc6-4377-b806-3bcb692fe4d4", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "Restaurant": { 13 | "ver": "1.0.4", 14 | "uuid": "e823c7f1-d1ae-4993-b9fd-890043e4bb95", 15 | "rawTextureUuid": "72c0e7a5-fcc6-4377-b806-3bcb692fe4d4", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 0, 21 | "trimX": 0, 22 | "trimY": 0, 23 | "width": 774, 24 | "height": 465, 25 | "rawWidth": 774, 26 | "rawHeight": 465, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/resources/textures/flatHeadSister.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "19057259-de22-4341-8594-bc199b1bf0f1", 4 | "subMetas": {} 5 | } -------------------------------------------------------------------------------- /assets/resources/textures/flatHeadSister/flatHeadSister.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/assets/resources/textures/flatHeadSister/flatHeadSister.png -------------------------------------------------------------------------------- /assets/resources/textures/flatHeadSister/flatHeadSister.png.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "2.3.3", 3 | "uuid": "a528c4f5-9aea-4f8d-a150-111c564809bd", 4 | "type": "sprite", 5 | "wrapMode": "clamp", 6 | "filterMode": "bilinear", 7 | "premultiplyAlpha": false, 8 | "genMipmaps": false, 9 | "packable": true, 10 | "platformSettings": {}, 11 | "subMetas": { 12 | "flatHeadSister": { 13 | "ver": "1.0.4", 14 | "uuid": "05694d02-9dcb-4bad-82b5-f216e2502497", 15 | "rawTextureUuid": "a528c4f5-9aea-4f8d-a150-111c564809bd", 16 | "trimType": "auto", 17 | "trimThreshold": 1, 18 | "rotated": false, 19 | "offsetX": 0, 20 | "offsetY": 0, 21 | "trimX": 2, 22 | "trimY": 2, 23 | "width": 2030, 24 | "height": 718, 25 | "rawWidth": 2034, 26 | "rawHeight": 722, 27 | "borderTop": 0, 28 | "borderBottom": 0, 29 | "borderLeft": 0, 30 | "borderRight": 0, 31 | "subMetas": {} 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /assets/scenes.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "35633ab0-acd3-42a7-88ad-bc94166a8332", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/scenes/CamMap.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "93540cdb-e11d-4257-adbe-36ae64d82a46", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/scenes/JoystickMap.fire.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.2.5", 3 | "uuid": "92160186-3e0d-4e0a-ae20-97286170ba58", 4 | "asyncLoadAssets": false, 5 | "autoReleaseAssets": false, 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/scripts.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "c2d62395-85c6-4417-a8aa-093c85b35029", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/scripts/BasePlayer.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "2fa4ffbb-5654-4c7a-b7f3-a27d1303b019", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/BaseSkeletalAnim.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | mainArmature: { 6 | type: dragonBones.ArmatureDisplay, 7 | default: null, 8 | }, 9 | }, 10 | 11 | start() {}, 12 | 13 | onLoad() {}, 14 | }); 15 | -------------------------------------------------------------------------------- /assets/scripts/BaseSkeletalAnim.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "bbdc3a9f-f0a2-4f83-afc5-60b56890f4d6", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/BuildOrUpgradeProgressBar.js: -------------------------------------------------------------------------------- 1 | const ProgressNum = require('./ProgressNum'); 2 | const i18n = require('LanguageData'); 3 | 4 | cc.Class({ 5 | extends: ProgressNum, 6 | 7 | properties: { 8 | onCompleted: { 9 | type: cc.Object, 10 | default: null, 11 | }, 12 | boostButton: { 13 | type: cc.Button, 14 | default: null, 15 | }, 16 | musicEffect: { 17 | type: cc.AudioClip, 18 | default: null, 19 | }, 20 | isForElapsedTimeProgress: { 21 | default: true, 22 | override: true, 23 | }, 24 | instantStart: { 25 | default: true, 26 | override: true, 27 | }, 28 | }, 29 | 30 | setData(startedAtMillis, durationMillis) { 31 | ProgressNum.prototype.setData.call(this, 0, durationMillis, startedAtMillis); 32 | }, 33 | 34 | playMusicEffect(evt) { 35 | if (this.musicEffect) { 36 | cc.audioEngine.playEffect(this.musicEffect, false, 1); 37 | } 38 | }, 39 | 40 | update(dt) { 41 | const self = this; 42 | ProgressNum.prototype.update.apply(self, arguments); 43 | if (null !== self.maxValue && self.currentlyDisplayingQuantity >= self.maxValue) { 44 | self.onCompleted && self.onCompleted(); 45 | } 46 | }, 47 | }); 48 | 49 | -------------------------------------------------------------------------------- /assets/scripts/BuildOrUpgradeProgressBar.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "08cded33-d5e1-42b5-a80a-10cd707b6777", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/CamMap.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "64150adb-a43d-4a49-a3b5-e7d7a8485733", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/CameraTracker.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | mapNode: { 6 | type: cc.Node, 7 | default: null 8 | } 9 | }, 10 | 11 | onLoad() { 12 | this.mainCamera = this.mapNode.parent.getChildByName("Main Camera").getComponent(cc.Camera); 13 | this.mapScriptIns = this.mapNode.getComponent("Map"); 14 | }, 15 | 16 | start() {}, 17 | 18 | update(dt) { 19 | const self = this; 20 | if (!self.mainCamera) return; 21 | if (!self.mapScriptIns) return; 22 | const selfPlayerNode = self.mapScriptIns.selfPlayerNode; 23 | if (!selfPlayerNode) return; 24 | self.mainCamera.node.setPosition(selfPlayerNode.position); 25 | } 26 | }); 27 | 28 | -------------------------------------------------------------------------------- /assets/scripts/CameraTracker.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "ccfb1974-a83e-4b26-bc6c-09fba91735d2", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/Canvas.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "8ac0809b-f98d-4cff-a66c-3bd9e218ecd6", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/CloseableDialog.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "e8a107e9-c883-4e2b-a77c-52c2e2d2071b", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/DescriptionCommonLabel.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Label, 3 | 4 | properties: { 5 | }, 6 | 7 | onLoad() { 8 | const labelComp = this.node.getComponent(cc.Label); 9 | labelComp.overflow = cc.Label.Overflow.RESIZE_HEIGHT; 10 | labelComp.verticalAlign = cc.Label.VerticalAlign.CENTER; 11 | labelComp.horizontalAlign= cc.Label.HorizontalAlign.LEFT; 12 | /** TODO: 其他需要统一的样式 **/ 13 | 14 | }, 15 | 16 | }); 17 | -------------------------------------------------------------------------------- /assets/scripts/DescriptionCommonLabel.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "a24d125b-b542-4913-ae32-29a1f4e2593c", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/Item.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "b17a4d36-3f6b-4506-8b4f-352617b3aaf2", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/ItemAcceptBoundaryBarrier.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.PolygonCollider, 3 | properties: {}, 4 | 5 | init(mapIns, statefulBuildableInstance) { 6 | const self = this; 7 | self.mapIns = mapIns; 8 | self.statefulBuildableInstance = statefulBuildableInstance; 9 | }, 10 | 11 | onCollisionEnter(other, self) { 12 | self.mapIns.onItemAcceptIn(self.statefulBuildableInstance); 13 | }, 14 | 15 | onCollisionStay(other, self) { 16 | self.mapIns.onItemAcceptIn(self.statefulBuildableInstance); 17 | }, 18 | 19 | onCollisionExit(other, self) { 20 | self.mapIns.onItemAcceptOut(self.statefulBuildableInstance); 21 | 22 | } 23 | 24 | }); 25 | -------------------------------------------------------------------------------- /assets/scripts/ItemAcceptBoundaryBarrier.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "d6a9cefe-3a44-405d-bca3-5b639e0a1210", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/ItemList.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | properties: { 4 | itemPrefab: { 5 | type: cc.Prefab, 6 | default: null, 7 | }, 8 | itemCellPrefab: { 9 | type: cc.Prefab, 10 | default: null, 11 | }, 12 | cellCount: 3, 13 | }, 14 | 15 | init(mapIns) { 16 | const self = this; 17 | self.mapIns = mapIns; 18 | }, 19 | 20 | onLoad() { 21 | const self = this; 22 | self.node.removeAllChildren(); 23 | for (let i = 0; i < self.cellCount; i++) { 24 | let cellNode = cc.instantiate(self.itemCellPrefab); 25 | safelyAddChild(self.node, cellNode); 26 | } 27 | }, 28 | 29 | refreshItemList(itemListData) { 30 | const self = this, cells = self.node.children; 31 | self.emptyCells(); 32 | itemListData.forEach((itemData, index) => { 33 | if (index >= cells.length) { 34 | cc.warn('Item cell not enough, max is', self.cellCount); 35 | return; 36 | } 37 | let itemNode = cc.instantiate(self.itemPrefab); 38 | let itemIns = itemNode.getComponent('Item'); 39 | itemIns.init(self.mapIns); 40 | itemIns.setData(itemData); 41 | safelyAddChild(cells[index], itemNode); 42 | }); 43 | }, 44 | 45 | emptyCells() { 46 | const self = this, cells = self.node.children; 47 | for (let i = 0; i < cells.length; i++) { 48 | cells[i].removeAllChildren(); 49 | } 50 | }, 51 | 52 | }) 53 | -------------------------------------------------------------------------------- /assets/scripts/ItemList.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "f889221e-d4b7-415b-8ea9-f5bc4f55d29c", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/KeyboardControls.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: {}, 5 | 6 | setInputControls: function() { 7 | const self = this; 8 | // add keyboard event listener 9 | // When there is a key being pressed down, judge if it's the designated directional button and set up acceleration in the corresponding direction 10 | cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, function(event) { 11 | switch (event.keyCode) { 12 | case cc.macro.KEY.w: 13 | self.activeDirection.dy = +1.0; 14 | break; 15 | case cc.macro.KEY.s: 16 | self.activeDirection.dy = -1.0; 17 | break; 18 | case cc.macro.KEY.a: 19 | self.activeDirection.dx = -2.0; 20 | break; 21 | case cc.macro.KEY.d: 22 | self.activeDirection.dx = +2.0; 23 | break; 24 | default: 25 | break; 26 | } 27 | }, self.node); 28 | 29 | // when releasing the button, stop acceleration in this direction 30 | cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP, function(event) { 31 | switch (event.keyCode) { 32 | case cc.macro.KEY.w: 33 | if (+1.0 == self.activeDirection.dy) { 34 | self.activeDirection.dy = 0.0; 35 | } 36 | break; 37 | case cc.macro.KEY.s: 38 | if (-1.0 == self.activeDirection.dy) { 39 | self.activeDirection.dy = 0.0; 40 | } 41 | break; 42 | case cc.macro.KEY.a: 43 | if (-2.0 == self.activeDirection.dx) { 44 | self.activeDirection.dx = 0.0; 45 | } 46 | break; 47 | case cc.macro.KEY.d: 48 | if (+2.0 == self.activeDirection.dx) { 49 | self.activeDirection.dx = 0.0; 50 | } 51 | break; 52 | default: 53 | break; 54 | } 55 | }, self.node); 56 | }, 57 | 58 | // LIFE-CYCLE CALLBACKS: 59 | 60 | onLoad() { 61 | // Properties deliberately hidden from GUI panel. 62 | this.activeDirection = { 63 | dy: 0.0, 64 | dx: 0.0 65 | }; 66 | this.setInputControls(); 67 | } 68 | }); 69 | 70 | -------------------------------------------------------------------------------- /assets/scripts/KeyboardControls.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "4561a173-bfd2-4f64-b7ba-888cce0e4d9d", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/Map.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "41d304ce-6a68-4d2d-92ab-5219de6e8638", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/NarrativeScenes.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.1", 3 | "uuid": "48377498-d628-4919-9622-c840400699f6", 4 | "isSubpackage": false, 5 | "subpackageName": "", 6 | "subMetas": {} 7 | } -------------------------------------------------------------------------------- /assets/scripts/NarrativeScenes/NarrativeScene.js: -------------------------------------------------------------------------------- 1 | module.exports = cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | maskLayer: { 6 | type: cc.Node, 7 | default: null 8 | }, 9 | transitButton: { 10 | type: cc.Button, 11 | default: null 12 | }, 13 | statement: { 14 | type: cc.Label, 15 | default: null 16 | }, 17 | }, 18 | 19 | // LIFE-CYCLE CALLBACKS: 20 | onLoad() { 21 | // TODO 22 | }, 23 | }); 24 | 25 | -------------------------------------------------------------------------------- /assets/scripts/NarrativeScenes/NarrativeScene.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "fef38bb5-f500-4c59-b09d-e76c48a50597", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/NarrativeScenes/NarrativeSceneManager.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "b52e5f98-aa1f-4c93-b740-e5bf049a0ae6", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/NarrativeScenes/NarrativeSceneManagerDelegate.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "88c4dc66-ed07-43a3-b3d9-afa996de66bc", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/PolygonBoundaryShelter.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | // LIFE-CYCLE CALLBACKS: 4 | start() { 5 | }, 6 | 7 | onLoad() { 8 | }, 9 | 10 | update(dt) { 11 | }, 12 | 13 | onCollisionEnter(other, self) { 14 | const playerScriptIns = self.getComponent(self.node.name); 15 | switch (other.node.name) { 16 | case "PolygonBoundaryShelter": 17 | if (null == other.node.tailOrHead) { 18 | break; 19 | } 20 | if (null == self.node.tailOrHead) { 21 | break; 22 | } 23 | let theTailColliderNode = null; 24 | let theHeadColliderNode = null; 25 | if ("head" == other.node.tailOrHead && "tail" == self.node.tailOrHead) { 26 | theTailColliderNode = self.node; 27 | theHeadColliderNode = other.node; 28 | } else if ("tail" == other.node.tailOrHead && "head" == self.node.tailOrHead) { 29 | theTailColliderNode = other.node; 30 | theHeadColliderNode = self.node; 31 | } else { 32 | break; 33 | } 34 | const theToBeTailVertice = globalShelterChainVerticeMap[theTailColliderNode.imageObject.imageObjectNode.uuid]; 35 | const theToBeHeadVertice = globalShelterChainVerticeMap[theHeadColliderNode.boundaryObj.imageObject.imageObjectNode.uuid]; 36 | 37 | theToBeHeadVertice.appendVertice(theToBeTailVertice); 38 | break; 39 | default: 40 | break; 41 | } 42 | }, 43 | 44 | onCollisionStay(other, self) { 45 | // TBD. 46 | }, 47 | 48 | onCollisionExit(other, self) { 49 | const playerScriptIns = self.getComponent(self.node.name); 50 | switch (other.node.name) { 51 | // TODO 52 | default: 53 | break; 54 | } 55 | } 56 | }); 57 | -------------------------------------------------------------------------------- /assets/scripts/PolygonBoundaryShelter.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "988523a7-e5b8-4c09-ab9e-4b2616feecfd", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/PriorityQueue.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "cb4de4c3-d7f3-46e5-b393-8f44437d02be", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/ProgressNum.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "a1c7b3ec-802f-4316-a8ba-63d32e0d9f3e", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/SelfPlayer.js: -------------------------------------------------------------------------------- 1 | const BasePlayer = require("./BasePlayer"); 2 | 3 | cc.Class({ 4 | extends: BasePlayer, 5 | properties: { 6 | joystickInputControllerNode: { 7 | type: cc.Node, 8 | default: null, 9 | }, 10 | }, 11 | 12 | // LIFE-CYCLE CALLBACKS: 13 | start() { 14 | BasePlayer.prototype.start.call(this); 15 | }, 16 | 17 | onLoad() { 18 | BasePlayer.prototype.onLoad.call(this); 19 | this.clips = { 20 | '01': 'FlatHeadSisterRunTop', 21 | '0-1': 'FlatHeadSisterRunBottom', 22 | '-20': 'FlatHeadSisterRunLeft', 23 | '20': 'FlatHeadSisterRunRight', 24 | '-21': 'FlatHeadSisterRunTopLeft', 25 | '21': 'FlatHeadSisterRunTopRight', 26 | '-2-1': 'FlatHeadSisterRunBottomLeft', 27 | '2-1': 'FlatHeadSisterRunBottomRight' 28 | }; 29 | }, 30 | 31 | _canMoveBy(vecToMoveBy) { 32 | return BasePlayer.prototype._canMoveBy.call(this, vecToMoveBy); 33 | }, 34 | 35 | update(dt) { 36 | const self = this; 37 | BasePlayer.prototype.update.call(this, dt); 38 | 39 | const vecToMoveBy = self._calculateVecToMoveBy(dt); 40 | if (self._canMoveBy(vecToMoveBy)) { 41 | self.node.position = self.computedNewDifferentPosLocalToParentWithinCurrentFrame; 42 | } 43 | 44 | const labelNode = this.node.getChildByName("CoordinateLabel"); 45 | labelNode.getComponent(cc.Label).string = "M_(" + this.node.x.toFixed(2) + ", " + this.node.y.toFixed(2) + ")"; 46 | }, 47 | 48 | onCollisionEnter(other, selfCollider) { 49 | const self = this; 50 | BasePlayer.prototype.onCollisionEnter.call(this, other, selfCollider); 51 | const mapIns = self.mapNode.getComponent('Map'); 52 | const tiledMapIns = self.mapNode.getComponent(cc.TiledMap); 53 | switch (other.node.name) { 54 | case "PolygonBoundaryShelter": 55 | window.previewShelter(mapIns, self.mapNode, other.node.pTiledLayer, other.node.tileDiscretePos); 56 | break; 57 | default: 58 | break; 59 | } 60 | }, 61 | 62 | onCollisionExit(other, selfCollider) { 63 | const self = this; 64 | BasePlayer.prototype.onCollisionExit.call(this, other, selfCollider); 65 | const mapIns = self.mapNode.getComponent('Map'); 66 | switch (other.node.name) { 67 | case "PolygonBoundaryShelter": 68 | window.cancelPreviewingOfShelter(mapIns, self.mapNode, other.node.pTiledLayer, other.node.tileDiscretePos); 69 | break; 70 | default: 71 | break; 72 | } 73 | }, 74 | }); 75 | -------------------------------------------------------------------------------- /assets/scripts/SelfPlayer.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "b74b0e58-0ea6-4546-8e0e-919445657f24", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/ShelterBoundary.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | // LIFE-CYCLE CALLBACKS: 5 | 6 | onLoad() {}, 7 | 8 | start() { 9 | this.contactedPlayersCount = 0; 10 | }, 11 | 12 | update(dt) {}, 13 | 14 | onCollisionEnter(other, selfCollider) { 15 | const self = this; 16 | const isPlayer = (-1 != other.node.name.indexOf("Player")) ? true : false; 17 | if (isPlayer) { 18 | if (0 == this.contactedPlayersCount) { 19 | if (this.node.spriteNode) { 20 | setLocalZOrder(this.node.spriteNode, 15); 21 | } 22 | } 23 | this.contactedPlayersCount++; 24 | } 25 | }, 26 | 27 | onCollisionExit(other, selfCollider) { 28 | const isPlayer = (-1 != other.node.name.indexOf("Player")) ? true : false; 29 | if (isPlayer) { 30 | if (1 == this.contactedPlayersCount) { 31 | if (this.node.spriteNode) { 32 | setLocalZOrder(this.node.spriteNode, 5); 33 | } 34 | } 35 | this.contactedPlayersCount--; 36 | } 37 | }, 38 | }); 39 | -------------------------------------------------------------------------------- /assets/scripts/ShelterBoundary.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "1cbc4cc3-ad6f-4956-a31e-cf27be967454", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/ShelterChainCollider.js: -------------------------------------------------------------------------------- 1 | module.export = cc.Class({ 2 | extends: cc.Component, 3 | 4 | onCollisionEnter(other, self) { 5 | switch (other.node.name) { 6 | case "PolygonBoundaryShelter": 7 | if (null == other.node.tailOrHead) { 8 | break; 9 | } 10 | const thePlayerNode = self.node.thePlayerNode; // This is currently a dirty hack! 11 | const thePlayerVertice = globalShelterChainVerticeMap[thePlayerNode.uuid]; 12 | const theImageObjectNode = other.node.imageObject.imageObjectNode; 13 | switch (other.node.tailOrHead) { 14 | case "head": 15 | const theHeadVertice = globalShelterChainVerticeMap[theImageObjectNode.uuid]; 16 | theHeadVertice.appendVertice(thePlayerVertice); 17 | window.updateLayerIndex(window.globalShelterChainVerticeMap); 18 | break; 19 | case "tail": 20 | const theTailVertice = globalShelterChainVerticeMap[theImageObjectNode.uuid]; 21 | thePlayerVertice.appendVertice(theTailVertice); 22 | window.updateLayerIndex(window.globalShelterChainVerticeMap); 23 | break; 24 | default: 25 | break; 26 | } 27 | break; 28 | default: 29 | break; 30 | } 31 | }, 32 | 33 | onCollisionExit(other, self) { 34 | switch (other.node.name) { 35 | case "PolygonBoundaryShelter": 36 | if (null == other.node.tailOrHead) { 37 | break; 38 | } 39 | const thePlayerNode = self.node.thePlayerNode; // This is currently a dirty hack! 40 | const thePlayerVertice = globalShelterChainVerticeMap[thePlayerNode.uuid]; 41 | const theImageObjectNode = other.node.imageObject.imageObjectNode; 42 | switch (other.node.tailOrHead) { 43 | case "head": 44 | const theHeadVertice = globalShelterChainVerticeMap[theImageObjectNode.uuid]; 45 | theHeadVertice.removeAppendedVertice(thePlayerVertice); 46 | window.updateLayerIndex(window.globalShelterChainVerticeMap); 47 | break; 48 | case "tail": 49 | const theTailVertice = globalShelterChainVerticeMap[theImageObjectNode.uuid]; 50 | thePlayerVertice.removeAppendedVertice(theTailVertice); 51 | window.updateLayerIndex(window.globalShelterChainVerticeMap); 52 | break; 53 | default: 54 | break; 55 | } 56 | break; 57 | default: 58 | break; 59 | } 60 | }, 61 | }); 62 | -------------------------------------------------------------------------------- /assets/scripts/ShelterChainCollider.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "7f0f3ae2-78bc-4a24-ac4b-470b33a1cc68", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/ShelterManager.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "b3082cfb-c02f-4b3c-b362-53fb9bb1c9b2", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/SimplePressToGoDialog.js: -------------------------------------------------------------------------------- 1 | const CloseableDialog = require('./CloseableDialog'); 2 | 3 | cc.Class({ 4 | extends: CloseableDialog, 5 | properties: { 6 | hintLabel: { 7 | type: cc.Label, 8 | default: null 9 | }, 10 | yesButtonLabel: { 11 | type: cc.Label, 12 | default: null 13 | }, 14 | }, 15 | 16 | onLoad() { 17 | CloseableDialog.prototype.onLoad.call(this); 18 | }, 19 | 20 | setHintLabel(str) { 21 | this.hintLabel.string = str; 22 | }, 23 | 24 | setYesButtonLabel(str) { 25 | this.yesButtonLabel.string = str; 26 | }, 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /assets/scripts/SimplePressToGoDialog.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "92b61e11-e906-484c-86a5-c532362c19c9", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/StatefulBuildableFollowingNpc.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "c3ffb841-03e1-44fe-98e0-164c870313c6", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/StatefulBuildableInstance.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "d82a43c2-c8bd-45aa-bdff-3029fbc1e553", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/StatefulBuildableInstanceInfoPanel.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "0fac3f9e-e757-412f-9e83-d18883c261a6", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/StatelessBuildableInstance.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "df17b9bb-68d3-48f3-a057-cfc484c428ef", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/StatelessBuildableInstanceCard.js: -------------------------------------------------------------------------------- 1 | module.export = cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | activeAppearanceSprite: { 6 | type: cc.Sprite, 7 | default: null, 8 | }, 9 | displayNameLabel: { 10 | type: cc.Label, 11 | default: null, 12 | }, 13 | buildingOrUpgradingRequiredResidentsCountLabel: { 14 | type: cc.Label, 15 | default: null, 16 | }, 17 | requiredTimeLabel: { 18 | type: cc.Label, 19 | default: null, 20 | }, 21 | requiredGoldLabel: { 22 | type: cc.Label, 23 | default: null, 24 | }, 25 | }, 26 | 27 | init(mapIns, statelessBuildableInstanceCardListScriptIns, fromStatelessBuildableInstance) { 28 | const defaultLv = 1; 29 | this.mapIns = mapIns; 30 | this.statelessBuildableInstanceCardListScriptIns = statelessBuildableInstanceCardListScriptIns; 31 | this.displayNameLabel.string = fromStatelessBuildableInstance.displayName; 32 | this.buildingOrUpgradingRequiredResidentsCountLabel.string = fromStatelessBuildableInstance.buildingOrUpgradingRequiredResidentsCount[defaultLv]; 33 | this.requiredTimeLabel.string = window.secondsToNaturalExp(fromStatelessBuildableInstance.buildingOrUpgradingDuration[defaultLv], false); 34 | this.activeAppearanceSprite.spriteFrame = fromStatelessBuildableInstance.appearance[defaultLv]; 35 | this.singleStatelessBuildableInstance = fromStatelessBuildableInstance; 36 | }, 37 | 38 | onCardClicked(evt) { 39 | const self = this; 40 | self.mapIns.startPositioningNewStatefulBuildableInstance(self.singleStatelessBuildableInstance); 41 | self.statelessBuildableInstanceCardListScriptIns.onCloseClicked(); 42 | }, 43 | 44 | }); 45 | -------------------------------------------------------------------------------- /assets/scripts/StatelessBuildableInstanceCard.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "6d95daca-091a-47fc-b838-cb4888f81403", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/StatelessBuildableInstanceCardList.js: -------------------------------------------------------------------------------- 1 | const CloseableDialog = require('./CloseableDialog'); 2 | const StatelessBuildableInstance = require('./StatelessBuildableInstance'); 3 | 4 | cc.Class({ 5 | extends: CloseableDialog, 6 | properties: { 7 | listNode: { 8 | type: cc.Node, 9 | default: null, 10 | }, 11 | statelessBuildableInstanceCardPrefab: { 12 | type: cc.Prefab, 13 | default: null, 14 | } 15 | }, 16 | 17 | onLoad() { 18 | CloseableDialog.prototype.onLoad.call(this); 19 | }, 20 | 21 | refreshStatelessBuildableInstanceCardListNode(mapIns, allStatelessBuildableInstances, ownedStatefulBuildableInstances) { 22 | const self = this; 23 | this.mapIns = mapIns; 24 | const statelessBuildableInstanceCardListNode = this.node; 25 | let initialXOffset = -200; 26 | const constSpacingX = 10; 27 | let localCount = 0; 28 | this.listNode.removeAllChildren(); 29 | for (let singleStatelessBuildableInstance of allStatelessBuildableInstances) { 30 | const singleStatelessBuildableInstanceCardNode = cc.instantiate(this.statelessBuildableInstanceCardPrefab); 31 | const singleStatelessBuildableInstanceCardScriptIns = singleStatelessBuildableInstanceCardNode.getComponent("StatelessBuildableInstanceCard"); 32 | singleStatelessBuildableInstanceCardScriptIns.init(mapIns, this, singleStatelessBuildableInstance); 33 | singleStatelessBuildableInstanceCardNode.setPosition( 34 | cc.v2( 35 | initialXOffset + localCount * (constSpacingX + singleStatelessBuildableInstanceCardNode.width), 36 | 0 37 | ) 38 | ); 39 | safelyAddChild(self.listNode, singleStatelessBuildableInstanceCardNode); 40 | ++localCount; 41 | } 42 | }, 43 | }); 44 | -------------------------------------------------------------------------------- /assets/scripts/StatelessBuildableInstanceCardList.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "f483a4b3-62b7-4eb8-a504-fc930a1f7570", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/TileCollisionManagerSingleton.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "0b881c8d-1aa3-4f22-a2a5-0c47c521f1ce", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/TouchEventsManager.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "1e84acd7-a63e-499f-98fe-ed31465dd79b", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/WalletInfo.js: -------------------------------------------------------------------------------- 1 | cc.Class({ 2 | extends: cc.Component, 3 | 4 | properties: { 5 | mapNode: { 6 | type: cc.Node, 7 | default: null 8 | }, 9 | goldNode: { 10 | type: cc.Node, 11 | default: null 12 | }, 13 | energyNode: { 14 | type: cc.Node, 15 | default: null 16 | }, 17 | goldLabel: { 18 | type: cc.Label, 19 | default: null 20 | }, 21 | energyLabel:{ 22 | type: cc.Label, 23 | default: null 24 | }, 25 | diamondLabel:{ 26 | type: cc.Label, 27 | default: null 28 | }, 29 | goldTip:{ 30 | type: cc.Node, 31 | default: null 32 | }, 33 | energyTip:{ 34 | type: cc.Node, 35 | default: null 36 | }, 37 | currentEnergyLimitLabel : { 38 | type: cc.Label, 39 | default: null, 40 | }, 41 | currentGoldLimitLabel : { 42 | type: cc.Label, 43 | default: null, 44 | }, 45 | }, 46 | 47 | updateWalletInfo(wallet) { 48 | /** update gold [begins] **/ 49 | const goldProgressNumScriptIns = this.goldNode.getComponent("ProgressNum"); 50 | const currentDisplayGold = this.goldLabel.string; 51 | if(!currentDisplayGold) { 52 | return; 53 | } 54 | this.currentGoldValue = parseInt(currentDisplayGold); 55 | goldProgressNumScriptIns.setData(wallet.gold, wallet.currentGoldLimit); 56 | this.currentGoldLimitLabel.string = wallet.currentGoldLimit; 57 | /** update gold [ends] **/ 58 | 59 | /** update energy [begins] **/ 60 | const energyProgressNumScriptIns = this.energyNode.getComponent("ProgressNum"); 61 | const currentDisplayEnergy = this.energyLabel.string; 62 | if(!currentDisplayEnergy) { 63 | return; 64 | } 65 | this.currentEnergyValue = parseInt(currentDisplayEnergy); 66 | energyProgressNumScriptIns.setData(wallet.energy, wallet.currentEnergyLimit); 67 | this.currentEnergyLimitLabel.string = wallet.currentEnergyLimit; 68 | /** update energy [ends] **/ 69 | 70 | /** update diamond [begins] **/ 71 | this.diamondLabel.string = wallet.diamond; 72 | /** update diamond [ends] **/ 73 | }, 74 | goldButtonOnClick() { 75 | const self = this; 76 | if(true == this.goldTip.active) { 77 | window.removeCurrentlyShowingQuantityLimitPopup(); 78 | }else { 79 | window.showQuantityLimitPopup(self.goldTip); 80 | this.mapScriptIns.onSignlePointTouchended = () => { 81 | window.removeCurrentlyShowingQuantityLimitPopup(); 82 | self.mapScriptIns.onSignlePointTouchended = undefined; 83 | }; 84 | } 85 | }, 86 | 87 | energyButtonOnClick() { 88 | const self = this; 89 | if(true == this.energyTip.active) { 90 | window.removeCurrentlyShowingQuantityLimitPopup(); 91 | }else { 92 | window.showQuantityLimitPopup(self.energyTip); 93 | this.mapScriptIns.onSignlePointTouchended = () => { 94 | window.removeCurrentlyShowingQuantityLimitPopup(); 95 | self.mapScriptIns.onSignlePointTouchended = undefined; 96 | }; 97 | } 98 | }, 99 | 100 | }); 101 | -------------------------------------------------------------------------------- /assets/scripts/WalletInfo.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "b5ba11ed-32ea-41c0-98ce-cdcff1f9c234", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /assets/scripts/WidgetsAboveAll.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "79ebc17e-df62-4cdd-b3ae-64bdd6a43465", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /build-templates/jsb-link/foo.txt: -------------------------------------------------------------------------------- 1 | FOO 2 | -------------------------------------------------------------------------------- /build-templates/web-mobile/foo.txt: -------------------------------------------------------------------------------- 1 | FOO 2 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "module": "commonjs", 5 | "experimentalDecorators": true 6 | }, 7 | "exclude": [ 8 | "node_modules", 9 | ".vscode", 10 | "library", 11 | "local", 12 | "settings", 13 | "temp" 14 | ] 15 | } -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "lockfileVersion": 1 3 | } 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "frontend", 3 | "version": "0.0.1", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "genxium@hotmail.com", 10 | "license": "ISC" 11 | } 12 | -------------------------------------------------------------------------------- /packages/i18n-master/.gitignore: -------------------------------------------------------------------------------- 1 | /typings 2 | /node_modules 3 | /.vscode -------------------------------------------------------------------------------- /packages/i18n-master/README.md: -------------------------------------------------------------------------------- 1 | # i18n for Cocos Creator 2 | 3 | > 本仓库已暂停维护,仅供存档,建议开发者们在项目层面自行实现多语言切换。 4 | 5 | Cocos Creator 编辑器扩展:实现 Label 和 Sprite 组件的多语言国际化(i18n)。 6 | 7 | 注意,多语言国际化和本地化的区别是,国际化需要软件里包括多种语言的文本和图片数据,并根据用户所用设备的默认语言或菜单选择来进行实时切换。而本地化是在发布软件时针对某一特定语言的版本定制文本和图片内容。 8 | 9 | 本插件是多语言支持插件,因此不包括构建项目时去除一部分多语言数据的功能。 10 | 11 | ## 插件安装方法 12 | 13 | 请参考 [扩展编辑器:安装与分享](http://www.cocos.com/docs/creator/extension/install-and-share.html) 文档。 14 | 15 | ## 语言配置 16 | 17 | 首先从主菜单打开 i18n 面板: `插件->i18n`。 18 | 19 | 20 | 然后需要创建包含多语言翻译数据的 JSON 文件(为了方便使用采用 .js 格式存储): 21 | 22 | - 在 `Manage Languages` 部分的 `New Language ID` 输入框里输入新增语言的 ID,如 `zh`(代表中文),`en`(代表英文)等。 23 | - 输入 ID 后点击 `Create` 按钮,会在相关的语言选择菜单里增加一种语言,并且会在项目的 `resources/i18n` 目录下创建对应语言的翻译数据模板,如 `resources/i18n/zh.js` 24 | 25 | 接下来在 i18n 面板的 `Preview Language` 部分的下拉菜单里就可以选择编辑器里预览时的语言了。 26 | 27 | ## 本地化 Label 文本 28 | 29 | ### 添加 Localize 组件 30 | 31 | i18n 插件提供了两种组件分别用于配合 [Label](http://www.cocos.com/docs/creator/components/label.html) 和 [Sprite](http://www.cocos.com/docs/creator/components/sprite.html) 来显示多语言内容。 32 | 33 | 我们从 Label 开始,我们可以在场景或 prefab 中任何 Label 组件所在的节点上添加 `i18n/LocalizedLabel` 组件。这个组件只需要输入翻译数据索引的 dataID 就可以根据当前语言来更新 Label 的字符串显示。 34 | 35 | 下面我们来介绍如何配置 dataID。 36 | 37 | ### 翻译数据 38 | 39 | 插件创建的翻译数据模板是这样的: 40 | 41 | ```js 42 | // zh.js 43 | 44 | if (!window.i18n) window.i18n = {}; 45 | window.i18n.zh={ 46 | // write your key value pairs here 47 | "label_text": { 48 | "hello": "你好!", 49 | "bye": "再见!" 50 | } 51 | }; 52 | ``` 53 | 54 | 其中 `window.i18n.zh` 全局变量的写法让我们可以在脚本中随时访问到这些数据,而不需要进行异步的加载。 55 | 56 | 在大括号里面的内容是用户需要添加的翻译键值对,我们使用了 AirBnb 公司开发的 [Polyglot](http://airbnb.io/polyglot.js/) 库来进行国际化的字符串查找,翻译键值对支持对象嵌套、参数传递和动态修改数据等功能,非常强大。更多用法请阅读上面链接里的文档。 57 | 58 | 如果像上面例子里一样设置我们的翻译数据,那么就会生成如下的键值对: 59 | 60 | - "label_text.hello" : "你好!" 61 | - "label_text.bye" : "再见!" 62 | 63 | 64 | ### 查看效果 65 | 66 | 接下来我们只要在 LocalizedLabel 组件的 `dataID` 属性里写入 `label_text.hello`,其所在节点上的 Label 组件就会显示 `你好!` 文字。 67 | 68 | 运行时如果需要修改 Label 渲染的文字,也请对 `LocalizedLabel.dataID` 进行赋值,而不要直接更新 `Label.string`。 69 | 70 | 当需要预览其他语言的显示效果时,打开 i18n 面板,并切换 `Preview Language` 里的语言,场景中的 Label 显示就会自动更新。 71 | 72 | ### 运行时设置语言 73 | 74 | 游戏运行时可以根据用户操作系统语言或菜单选择来设置语言,在获取到需要使用的语言 ID 后,需要用以下的代码来进行初始化: 75 | 76 | ```js 77 | const i18n = require('LanguageData'); 78 | i18n.init('zh'); // languageID should be equal to the one we input in New Language ID input field 79 | ``` 80 | 81 | 需要在之后动态切换语言时也可以调用 `i18n.init()`。 82 | 83 | 如果切换后需要马上更新当前场景,可以调用 `i18n.updateSceneRenderer()`。 84 | 85 | 注意运行时必须保证 `i18n.init(language)` 在包含有 LocalizedLabel 组件的场景加载前执行,否则将会因为组件上无法加载到数据而报错。 86 | 87 | ### 脚本中使用翻译键值对获取字符串 88 | 89 | 除了和 LocalizedLabel 配合使用解决场景中静态 Label 的多语言问题,`LanguageData` 模块还可以单独在脚本中使用,提供运行时的翻译: 90 | 91 | ```js 92 | const i18n = require('LanguageData'); 93 | i18n.init('en'); 94 | let myGreeting = i18n.t('label_text.hello'); 95 | cc.log(myGreeting); // Hello! 96 | ``` 97 | 98 | 99 | ## 本地化 Sprite 图片 100 | 101 | ### 添加 LocalizedSprite 组件 102 | 103 | 首先在场景或 prefab 中任何 Sprite 组件所在的节点上添加 `i18n/LocalizedSprite` 组件。该组件需要我们手动添加一组语言 id 和 SpriteFrame 的映射,就可以在编辑器预览和运行时显示正确语言的图片了。 104 | 105 | ### 添加语言图片映射 106 | 107 | 负责承载语言到贴图映射的属性 `spriteFrameSet` 是一个数组,我们可以像操作其他数组属性一样来添加新的映射 108 | 109 | - 首先设置数组的大小,要和语言种类相等 110 | - 为每一项里的 `language` 属性填入对应语言的 id,如 `en` 或 `zh` 111 | - 将语言对应的贴图(或 SpriteFrame)拖拽到 `spriteFrame` 属性里。 112 | 113 | 完成设置后,点击下面的 `Refresh` 按钮,就可以在场景中看到效果了。 114 | 115 | 和 `LocalizedLabel` 一样,当我们在 i18n 面板设更改了预览语言时,当前场景里所有的 `LocalizedSprite` 也会自动刷新,显示当前语言对应的图片。 116 | -------------------------------------------------------------------------------- /packages/i18n-master/i18n/en.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | current: 'Current language: ', 5 | create_language: 'New language', 6 | language: 'Language', 7 | create: 'Create', 8 | cancel: 'Cancel', 9 | }; -------------------------------------------------------------------------------- /packages/i18n-master/i18n/zh.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | current: '当前语言:', 5 | create_language: '创建新语言', 6 | language: '语言名称', 7 | create: '创建', 8 | cancel: '取消', 9 | }; -------------------------------------------------------------------------------- /packages/i18n-master/inspector/localized-sprite.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Vue.component('localized-sprite', { 4 | template: ` 5 | 6 | 7 | 11 | Refresh 12 | 13 | 14 | `, 15 | 16 | props: { 17 | target: { 18 | twoWay: true, 19 | type: Object, 20 | }, 21 | }, 22 | 23 | methods: { 24 | refresh: function () { 25 | let i18n = window.require('LanguageData'); 26 | i18n.updateSceneRenderers(); 27 | } 28 | } 29 | }); -------------------------------------------------------------------------------- /packages/i18n-master/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es2015", 4 | "module": "es2015" 5 | }, 6 | "exclude": [ 7 | "node_modules", 8 | "library", 9 | "local", 10 | "settings", 11 | "temp" 12 | ] 13 | } -------------------------------------------------------------------------------- /packages/i18n-master/main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const Package = require('./utils/package'); 4 | 5 | const Fs = require('fire-fs'); 6 | const Path = require('path'); 7 | 8 | module.exports = { 9 | load () { 10 | Package.mount(); 11 | }, 12 | 13 | unload () { 14 | Package.unmount(); 15 | }, 16 | 17 | // register your ipc messages here 18 | messages: { 19 | 'open' () { 20 | // open entry panel registered in package.json 21 | Editor.Panel.open('i18n'); 22 | Package.metrics(); 23 | }, 24 | 'import-asset' (event, path) { 25 | Editor.assetdb.refresh(path, (err, results) => { 26 | if (err) { 27 | Editor.assetdb.error('Failed to reimport asset %s, %s', path, err.stack); 28 | return; 29 | } 30 | Editor.assetdb._handleRefreshResults(results); 31 | 32 | let metaPath = path + '.meta'; 33 | if (Fs.existsSync(Editor.url(metaPath))) { 34 | let meta = Fs.readJsonSync(Editor.url(metaPath)); 35 | meta.isPlugin = true; 36 | Fs.outputJsonSync(Editor.url(metaPath), meta); 37 | } else { 38 | Editor.log('Failed to set language data file to plugin script'); 39 | return; 40 | } 41 | }); 42 | } 43 | }, 44 | }; -------------------------------------------------------------------------------- /packages/i18n-master/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "i18n", 3 | "version": "0.1.0", 4 | "description": "The package template for getting started.", 5 | "author": "Cocos Creator", 6 | "main": "main.js", 7 | "main-menu": { 8 | "i18n:MAIN_MENU.package.title/i18n": { 9 | "message": "i18n:open" 10 | } 11 | }, 12 | "runtime-resource": { 13 | "path": "runtime-scripts", 14 | "name": "plugin" 15 | }, 16 | "reload": { 17 | "ignore": [ 18 | "runtime-scripts/**/*" 19 | ] 20 | }, 21 | "scene-script": "utils/scene.js", 22 | "panel": { 23 | "main": "panel/index.js", 24 | "type": "dockable", 25 | "title": "i18n", 26 | "width": 400, 27 | "height": 300, 28 | "min-width": 300, 29 | "min-height": 300 30 | }, 31 | "profiles": { 32 | "project": { 33 | "languages": [ 34 | ], 35 | "default_language": "" 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /packages/i18n-master/panel/component/home.js: -------------------------------------------------------------------------------- 1 | 'use strcit'; 2 | 3 | const Fs = require('fs'); 4 | const Path = require('path'); 5 | 6 | const Language = require('../../utils/language'); 7 | const Event = require('../../utils/event'); 8 | 9 | exports.template = Fs.readFileSync(Path.join(__dirname, '../template/home.html'), 'utf-8'); 10 | 11 | exports.props = []; 12 | 13 | exports.data = function () { 14 | return { 15 | state: 'normal', 16 | 17 | languages: [], 18 | current: '', 19 | 20 | _language: '', 21 | } 22 | }; 23 | 24 | exports.watch = { 25 | current () { 26 | Event.emit('language-changed', this.current); 27 | } 28 | }; 29 | 30 | exports.methods = { 31 | _t (key) { 32 | return Editor.T(`i18n.${key}`); 33 | }, 34 | 35 | _getLanguagePath (language) { 36 | return Path.join('resources/i18n/', `${language}.js`); 37 | }, 38 | 39 | changeEdit () { 40 | if (this.state === 'edit') { 41 | this.state = 'normal'; 42 | } else { 43 | this.state = 'edit'; 44 | } 45 | }, 46 | 47 | changeCreate () { 48 | if (this.state === 'create') { 49 | this.state = 'normal'; 50 | this._language = ''; 51 | } else { 52 | this.state = 'create'; 53 | this._language = ''; 54 | } 55 | }, 56 | 57 | /** 58 | * 创建一个新的语言包 59 | * @param {string} name 60 | */ 61 | createLanguage (name) { 62 | // 检查是否不存在 63 | if (!name) { 64 | return alert('创建语言失败 - 名称不能为空'); 65 | } 66 | // 检查是否重名 67 | if (this.languages.indexOf(name) !== -1) { 68 | return alert('创建语言失败 - 该语言已经存在'); 69 | } 70 | 71 | Language.create(name).then(() => { 72 | this.languages.push(name); 73 | if (!this.current) { 74 | this.current = this.languages[0]; 75 | } 76 | Event.emit('languages-changed', this.languages); 77 | this._language = ''; 78 | this.state = 'normal'; 79 | }).catch(() => { 80 | this._language = ''; 81 | this.state = 'normal'; 82 | // todo 错误提示 83 | }); 84 | }, 85 | 86 | /** 87 | * 删除一个已存在的语言包 88 | * @param {string} name 89 | */ 90 | deleteLanguage (name) { 91 | // 检查是否存在 92 | if (this.languages.indexOf(name) === -1) { 93 | return alert('删除语言失败 - 该语言不存在'); 94 | } 95 | 96 | // 弹窗提示 97 | let code = Editor.Dialog.messageBox({ 98 | type: 'warning', 99 | buttons: ['Cancel', 'OK'], 100 | title: 'Delete Language Data', 101 | message: 'Delete i18n language data, this cannot be undone!', 102 | detail: name, 103 | noLink: true 104 | }); 105 | 106 | if (code === 0) { 107 | return; 108 | } 109 | // 删除 profile 110 | Language.remove(name).then(() => { 111 | let index = this.languages.indexOf(name); 112 | this.languages.splice(index, 1); 113 | Event.emit('languages-changed', this.languages); 114 | if (name === this.current) { 115 | this.current = this.languages[0] || ''; 116 | } 117 | }).catch(() => { 118 | // todo 错误提示 119 | }); 120 | }, 121 | }; 122 | 123 | exports.ready = function () {}; -------------------------------------------------------------------------------- /packages/i18n-master/panel/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const Fs = require('fs'); 4 | 5 | const Event = Editor.require('packages://i18n/utils/event'); 6 | 7 | const Home = Editor.require('packages://i18n/panel/component/home'); 8 | 9 | Editor.Panel.extend({ 10 | 11 | style: Fs.readFileSync(Editor.url('packages://i18n/panel/style/home.css')), 12 | 13 | template: Home.template, 14 | 15 | $: {}, 16 | 17 | ready () { 18 | if (!window.Vue) { 19 | // todo 错误信息 20 | return; 21 | } 22 | Home.el = this.shadowRoot; 23 | Home.data = Home.data(); 24 | delete Home.props; 25 | delete Home.template; 26 | Home.components = {}; 27 | this._vm = new Vue(Home); 28 | window.vm = this._vm 29 | 30 | let profile = this.profiles.project; 31 | if (profile.data.languages) { 32 | profile.data.languages.forEach((name) => { 33 | this._vm.languages.push(name) 34 | }); 35 | } 36 | 37 | let current = profile.data['default_language']; 38 | if (this._vm.languages.indexOf(current) === -1) { 39 | this._vm.current = this._vm.languages[0]; 40 | Editor.warn(`Language is not found - ${current}`); 41 | } else { 42 | this._vm.current = current; 43 | } 44 | 45 | Event.on('language-changed', (name) => { 46 | profile.data['default_language'] = name; 47 | profile.save(); 48 | Editor.Scene.callSceneScript('i18n', 'update-default-language', name, function (err, result) { 49 | // console.log(result); 50 | }); 51 | }); 52 | 53 | Event.on('languages-changed', (languages) => { 54 | profile.data.languages = languages.map((name) => { 55 | return name; 56 | }); 57 | profile.save(); 58 | }) 59 | }, 60 | }); -------------------------------------------------------------------------------- /packages/i18n-master/panel/style/home.css: -------------------------------------------------------------------------------- 1 | @import url('app://bower_components/fontawesome/css/font-awesome.min.css'); 2 | :host { 3 | display: flex; 4 | } 5 | .home { 6 | position: relative; 7 | display: flex; 8 | flex-direction: column; 9 | flex: 1; 10 | padding: 10px; 11 | } 12 | .home header { 13 | border-bottom: 1px solid #666; 14 | padding: 10px 5px; 15 | } 16 | .home .control { 17 | padding: 8px 4px; 18 | } 19 | .home .control i { 20 | padding: 4px 6px; 21 | cursor: pointer; 22 | transition: color 0.3s; 23 | } 24 | .home .control .fa-pencil-square-o[edit] { 25 | color: #cc0000; 26 | } 27 | .home .list { 28 | overflow: auto; 29 | background: #333; 30 | padding: 0; 31 | flex: 1; 32 | } 33 | .home .list ul { 34 | padding: 0; 35 | margin: 0; 36 | } 37 | .home .list ul li { 38 | padding: 5px 12px; 39 | line-height: 20px; 40 | display: flex; 41 | list-style: none; 42 | } 43 | .home .list ul li:hover { 44 | background: #282828; 45 | } 46 | .home .list ul li .edit { 47 | width: 0; 48 | opacity: 0; 49 | font-size: 15px; 50 | transition: opacity 0.3s, width 0.3s; 51 | overflow: hidden; 52 | margin-right: 5px; 53 | } 54 | .home .list ul li .edit i { 55 | padding: 3px; 56 | cursor: pointer; 57 | color: #cc0000; 58 | } 59 | .home .list ul li .edit[edit] { 60 | width: 18px; 61 | opacity: 1; 62 | } 63 | .home .list ul li .name { 64 | width: 110px; 65 | overflow: hidden; 66 | text-overflow: ellipsis; 67 | } 68 | .home .popup { 69 | position: absolute; 70 | top: 0; 71 | left: 0; 72 | height: 100%; 73 | width: 100%; 74 | display: none; 75 | } 76 | .home .popup .mask { 77 | position: absolute; 78 | top: 0; 79 | left: 0; 80 | height: 100%; 81 | width: 100%; 82 | background: #474747; 83 | opacity: 0.9; 84 | } 85 | .home .popup .language { 86 | position: absolute; 87 | width: 260px; 88 | left: 50%; 89 | top: 45%; 90 | margin: -50px 0 0 -130px; 91 | } 92 | .home .popup .language h3 { 93 | margin: 0 0 12px 0; 94 | text-align: center; 95 | } 96 | .home .popup .language .button { 97 | text-align: right; 98 | display: flex; 99 | } 100 | .home .popup .language .button ui-button { 101 | margin: 10px; 102 | flex: 1; 103 | } 104 | .home .popup[active] { 105 | display: block; 106 | } 107 | -------------------------------------------------------------------------------- /packages/i18n-master/panel/template/home.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | {{_t('current')}} 5 | 6 | 9 | 12 | 13 | 14 |
15 | 16 |
17 | 21 | 24 |
25 | 26 |
27 | 46 |
47 | 48 | 72 | 73 |
-------------------------------------------------------------------------------- /packages/i18n-master/runtime-scripts/LanguageData.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "61de0eb6-9f87-49ed-933d-fd776e9a8ce7", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /packages/i18n-master/runtime-scripts/LocalizedLabel.js: -------------------------------------------------------------------------------- 1 | const i18n = require('LanguageData'); 2 | 3 | // Returns a function, that, as long as it continues to be invoked, will not 4 | // be triggered. The function will be called after it stops being called for 5 | // N milliseconds. If `immediate` is passed, trigger the function on the 6 | // leading edge, instead of the trailing. 7 | function debounce(func, wait, immediate) { 8 | var timeout; 9 | return function() { 10 | var context = this, args = arguments; 11 | var later = function() { 12 | timeout = null; 13 | if (!immediate) func.apply(context, args); 14 | }; 15 | var callNow = immediate && !timeout; 16 | clearTimeout(timeout); 17 | timeout = setTimeout(later, wait); 18 | if (callNow) func.apply(context, args); 19 | }; 20 | } 21 | 22 | cc.Class({ 23 | extends: cc.Component, 24 | 25 | editor: { 26 | executeInEditMode: true, 27 | menu: 'i18n/LocalizedLabel' 28 | }, 29 | 30 | properties: { 31 | dataID: { 32 | get () { 33 | return this._dataID; 34 | }, 35 | set (val) { 36 | if (this._dataID !== val) { 37 | this._dataID = val; 38 | if (CC_EDITOR) { 39 | this._debouncedUpdateLabel(); 40 | } else { 41 | this.updateLabel(); 42 | } 43 | } 44 | } 45 | }, 46 | _dataID: '' 47 | }, 48 | 49 | onLoad () { 50 | if(CC_EDITOR) { 51 | this._debouncedUpdateLabel = debounce(this.updateLabel, 200); 52 | } 53 | if (!i18n.inst) { 54 | i18n.init(); 55 | } 56 | // cc.log('dataID: ' + this.dataID + ' value: ' + i18n.t(this.dataID)); 57 | this.fetchRender(); 58 | }, 59 | 60 | fetchRender () { 61 | let label = this.getComponent(cc.Label); 62 | if (label) { 63 | this.label = label; 64 | this.updateLabel(); 65 | return; 66 | } 67 | }, 68 | 69 | updateLabel () { 70 | if (!this.label) { 71 | cc.error('Failed to update localized label, label component is invalid!'); 72 | return; 73 | } 74 | let localizedString = i18n.t(this.dataID); 75 | if (localizedString) { 76 | this.label.string = i18n.t(this.dataID); 77 | } 78 | } 79 | }); -------------------------------------------------------------------------------- /packages/i18n-master/runtime-scripts/LocalizedLabel.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "744dcb38-0c27-4da6-b361-1b4c70aba14a", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /packages/i18n-master/runtime-scripts/LocalizedSprite.js: -------------------------------------------------------------------------------- 1 | const SpriteFrameSet = require('SpriteFrameSet'); 2 | 3 | cc.Class({ 4 | extends: cc.Component, 5 | 6 | editor: { 7 | executeInEditMode: true, 8 | inspector: 'packages://i18n/inspector/localized-sprite.js', 9 | menu: 'i18n/LocalizedSprite' 10 | }, 11 | 12 | properties: { 13 | spriteFrameSet: { 14 | default: [], 15 | type: SpriteFrameSet 16 | } 17 | }, 18 | 19 | onLoad () { 20 | this.fetchRender(); 21 | }, 22 | 23 | fetchRender () { 24 | let sprite = this.getComponent(cc.Sprite); 25 | if (sprite) { 26 | this.sprite = sprite; 27 | this.updateSprite(window.i18n.curLang); 28 | return; 29 | } 30 | }, 31 | 32 | getSpriteFrameByLang (lang) { 33 | for (let i = 0; i < this.spriteFrameSet.length; ++i) { 34 | if (this.spriteFrameSet[i].language === lang) { 35 | return this.spriteFrameSet[i].spriteFrame; 36 | } 37 | } 38 | }, 39 | 40 | updateSprite (language) { 41 | if (!this.sprite) { 42 | cc.error('Failed to update localized sprite, sprite component is invalid!'); 43 | return; 44 | } 45 | 46 | let spriteFrame = this.getSpriteFrameByLang(language); 47 | 48 | if (!spriteFrame && this.spriteFrameSet[0]) { 49 | spriteFrame = this.spriteFrameSet[0].spriteFrame; 50 | } 51 | 52 | this.sprite.spriteFrame = spriteFrame; 53 | } 54 | }); -------------------------------------------------------------------------------- /packages/i18n-master/runtime-scripts/LocalizedSprite.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "f34acd86-1a25-4e05-b1ba-5e57ef8183f8", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /packages/i18n-master/runtime-scripts/SpriteFrameSet.js: -------------------------------------------------------------------------------- 1 | const SpriteFrameSet = cc.Class({ 2 | name: 'SpriteFrameSet', 3 | properties: { 4 | language: '', 5 | spriteFrame: cc.SpriteFrame 6 | } 7 | }); 8 | 9 | module.exports = SpriteFrameSet; -------------------------------------------------------------------------------- /packages/i18n-master/runtime-scripts/SpriteFrameSet.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "9701943c-d23a-44d9-87f3-e336ee09906a", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /packages/i18n-master/runtime-scripts/polyglot.min.js: -------------------------------------------------------------------------------- 1 | // (c) 2012 Airbnb, Inc. 2 | // 3 | // polyglot.js may be freely distributed under the terms of the BSD 4 | // license. For all licensing information, details, and documention: 5 | // http://airbnb.github.com/polyglot.js 6 | // 7 | // 8 | // Polyglot.js is an I18n helper library written in JavaScript, made to 9 | // work both in the browser and in Node. It provides a simple solution for 10 | // interpolation and pluralization, based off of Airbnb's 11 | // experience adding I18n functionality to its Backbone.js and Node apps. 12 | // 13 | // Polylglot is agnostic to your translation backend. It doesn't perform any 14 | // translation; it simply gives you a way to manage translated phrases from 15 | // your client- or server-side JavaScript application. 16 | // 17 | (function(e,t){typeof define=="function"&&define.amd?define([],function(){return t(e)}):typeof exports=="object"?module.exports=t(e):e.Polyglot=t(e)})(this,function(e){"use strict";function t(e){e=e||{},this.phrases={},this.extend(e.phrases||{}),this.currentLocale=e.locale||"en",this.allowMissing=!!e.allowMissing,this.warn=e.warn||c}function s(e){var t,n,r,i={};for(t in e)if(e.hasOwnProperty(t)){n=e[t];for(r in n)i[n[r]]=t}return i}function o(e){var t=/^\s+|\s+$/g;return e.replace(t,"")}function u(e,t,r){var i,s,u;return r!=null&&e?(s=e.split(n),u=s[f(t,r)]||s[0],i=o(u)):i=e,i}function a(e){var t=s(i);return t[e]||t.en}function f(e,t){return r[a(e)](t)}function l(e,t){for(var n in t)n!=="_"&&t.hasOwnProperty(n)&&(e=e.replace(new RegExp("%\\{"+n+"\\}","g"),t[n]));return e}function c(t){e.console&&e.console.warn&&e.console.warn("WARNING: "+t)}function h(e){var t={};for(var n in e)t[n]=e[n];return t}t.VERSION="0.4.3",t.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},t.prototype.extend=function(e,t){var n;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],t&&(r=t+"."+r),typeof n=="object"?this.extend(n,r):this.phrases[r]=n)},t.prototype.clear=function(){this.phrases={}},t.prototype.replace=function(e){this.clear(),this.extend(e)},t.prototype.t=function(e,t){var n,r;return t=t==null?{}:t,typeof t=="number"&&(t={smart_count:t}),typeof this.phrases[e]=="string"?n=this.phrases[e]:typeof t._=="string"?n=t._:this.allowMissing?n=e:(this.warn('Missing translation for key: "'+e+'"'),r=e),typeof n=="string"&&(t=h(t),r=u(n,this.currentLocale,t.smart_count),r=l(r,t)),r},t.prototype.has=function(e){return e in this.phrases};var n="||||",r={chinese:function(e){return 0},german:function(e){return e!==1?1:0},french:function(e){return e>1?1:0},russian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){return e===1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0}},i={chinese:["fa","id","ja","ko","lo","ms","th","tr","zh"],german:["da","de","en","es","fi","el","he","hu","it","nl","no","pt","sv"],french:["fr","tl","pt-br"],russian:["hr","ru"],czech:["cs"],polish:["pl"],icelandic:["is"]};return t}); -------------------------------------------------------------------------------- /packages/i18n-master/runtime-scripts/polyglot.min.js.meta: -------------------------------------------------------------------------------- 1 | { 2 | "ver": "1.0.5", 3 | "uuid": "e26fdf72-cbae-40e2-adff-264a559c5620", 4 | "isPlugin": false, 5 | "loadPluginInWeb": true, 6 | "loadPluginInNative": true, 7 | "loadPluginInEditor": false, 8 | "subMetas": {} 9 | } -------------------------------------------------------------------------------- /packages/i18n-master/utils/event.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const Events = require('events'); 4 | 5 | module.exports = new Events.EventEmitter; -------------------------------------------------------------------------------- /packages/i18n-master/utils/language.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const Fs = require('fs'); 4 | const Path = require('path'); 5 | 6 | let template = Fs.readFileSync(Path.join(__dirname, './template.txt'), 'utf-8'); 7 | 8 | /** 9 | * 创建新的语言包 10 | * @param {string} name 11 | * @return {Promise} 12 | */ 13 | let create = function (name) { 14 | let js = template.replace('{{name}}', name); 15 | let url = `db://assets/resources/i18n/${name}.js`; 16 | return new Promise((resolve, reject) => { 17 | Editor.assetdb.create(url, js, (error) => { 18 | if (error) { 19 | Editor.assetdb.error('Failed to create asset %s, %s', url, error.stack); 20 | reject(); 21 | return; 22 | } 23 | resolve(); 24 | }); 25 | }); 26 | }; 27 | 28 | /** 29 | * 删除语言包 30 | * @param {string} name 31 | */ 32 | let remove = function (name) { 33 | let url = `db://assets/resources/i18n/${name}.js`; 34 | return new Promise((resolve, reject) => { 35 | Editor.assetdb.delete([url], (error, results) => { 36 | if (error) { 37 | Editor.assetdb.error('Failed to delete asset %s, %s', path, error.stack); 38 | reject(); 39 | return; 40 | } 41 | resolve(); 42 | }); 43 | }); 44 | 45 | }; 46 | 47 | exports.create = create; 48 | exports.remove = remove; -------------------------------------------------------------------------------- /packages/i18n-master/utils/package.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const Fs = require('fire-fs'); 4 | const Path = require('path'); 5 | 6 | // adapter project path 7 | let projectPath = Editor.projectPath; 8 | if (!projectPath) { 9 | projectPath = Editor.Project.path; 10 | } 11 | 12 | let PATH = Path.join(projectPath, './assets/resources/i18n'); 13 | 14 | let mount = function () { 15 | // 创建目录,保证目录存在 16 | Fs.ensureDirSync(PATH); 17 | }; 18 | 19 | let unmount = function () { 20 | // 如果目录为空则删除目录 21 | if (!Fs.existsSync(PATH)) { 22 | return; 23 | } 24 | if (Fs.readdirSync(PATH).length === 0) { 25 | Fs.unlink(PATH); 26 | } 27 | }; 28 | 29 | let metrics = function () { 30 | Editor.Metrics.trackEvent({ 31 | category: 'Packages', 32 | label: 'i18n', 33 | action: 'Panel Open' 34 | }, null); 35 | }; 36 | 37 | exports.mount = mount; 38 | exports.unmount = unmount; 39 | exports.metrics = metrics; 40 | -------------------------------------------------------------------------------- /packages/i18n-master/utils/scene.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | let message = {}; 4 | 5 | message['update-default-language'] = function (event, language) { 6 | let i18n = cc.require('LanguageData'); 7 | i18n.init(language); 8 | i18n.updateSceneRenderers(); 9 | if (!event.reply) { 10 | return; 11 | } 12 | 13 | if (language) { 14 | event.reply(null, 'successful'); 15 | } else { 16 | event.reply(new Error('language not specified!')); 17 | } 18 | }; 19 | 20 | module.exports = message; -------------------------------------------------------------------------------- /packages/i18n-master/utils/template.txt: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (!window.i18n) { 4 | window.i18n = {}; 5 | } 6 | 7 | if (!window.i18n.languages) { 8 | window.i18n.languages = {}; 9 | } 10 | 11 | window.i18n.languages['{{name}}'] = { 12 | // write your key value pairs here 13 | }; -------------------------------------------------------------------------------- /project.json: -------------------------------------------------------------------------------- 1 | { 2 | "engine": "cocos2d-html5", 3 | "packages": "packages", 4 | "version": "2.2.1", 5 | "id": "4a2d4e0e-1614-4eb8-8c7b-ac6b8239659c" 6 | } -------------------------------------------------------------------------------- /settings/builder.json: -------------------------------------------------------------------------------- 1 | { 2 | "android-instant": { 3 | "REMOTE_SERVER_ROOT": "", 4 | "host": "", 5 | "pathPattern": "", 6 | "recordPath": "", 7 | "scheme": "https", 8 | "skipRecord": false 9 | }, 10 | "appBundle": false, 11 | "baidugame": { 12 | "REMOTE_SERVER_ROOT": "", 13 | "appid": "testappid", 14 | "orientation": "portrait", 15 | "subContext": "" 16 | }, 17 | "encryptJs": true, 18 | "excludeScenes": [], 19 | "fb-instant-games": {}, 20 | "includeSDKBox": false, 21 | "inlineSpriteFrames": true, 22 | "inlineSpriteFrames_native": false, 23 | "md5Cache": true, 24 | "mergeStartScene": false, 25 | "optimizeHotUpdate": false, 26 | "orientation": { 27 | "landscapeLeft": false, 28 | "landscapeRight": false, 29 | "portrait": true, 30 | "upsideDown": false 31 | }, 32 | "packageName": "FoodieClans", 33 | "qqplay": { 34 | "REMOTE_SERVER_ROOT": "", 35 | "orientation": "portrait" 36 | }, 37 | "startScene": "93540cdb-e11d-4257-adbe-36ae64d82a46", 38 | "title": "FoodieClans", 39 | "webOrientation": "portrait", 40 | "wechatgame": { 41 | "REMOTE_SERVER_ROOT": "", 42 | "appid": "wx6ac3f5090a6b99c5", 43 | "orientation": "landscape" 44 | }, 45 | "xxteaKey": "4d54a3d5-e6f3-49", 46 | "zipCompressJs": true 47 | } -------------------------------------------------------------------------------- /settings/builder.panel.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludeScenes": [], 3 | "packageName": "FoodieClans", 4 | "platform": "web-mobile", 5 | "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49", 6 | "title": "CuisineMaster" 7 | } 8 | -------------------------------------------------------------------------------- /settings/i18n.json: -------------------------------------------------------------------------------- 1 | { 2 | "default_language": "en", 3 | "languages": [ 4 | "zh", 5 | "en" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /settings/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "assets-sort-type": "name", 3 | "collision-matrix": [ 4 | [ 5 | false, 6 | null, 7 | null, 8 | null, 9 | null, 10 | null, 11 | null, 12 | false 13 | ], 14 | [ 15 | false, 16 | false, 17 | true 18 | ], 19 | [ 20 | false, 21 | true, 22 | true, 23 | true, 24 | false, 25 | true, 26 | null, 27 | true 28 | ], 29 | [ 30 | false, 31 | false, 32 | true, 33 | false 34 | ], 35 | [ 36 | false, 37 | false, 38 | false, 39 | false, 40 | true, 41 | null, 42 | true 43 | ], 44 | [ 45 | false, 46 | false, 47 | true, 48 | false, 49 | false, 50 | false 51 | ], 52 | [ 53 | false, 54 | false, 55 | false, 56 | false, 57 | true, 58 | false, 59 | false, 60 | false 61 | ], 62 | [ 63 | false, 64 | false, 65 | true, 66 | false, 67 | false, 68 | false, 69 | false, 70 | false 71 | ], 72 | [ 73 | false, 74 | false, 75 | false, 76 | false, 77 | false, 78 | false, 79 | false, 80 | false, 81 | false 82 | ], 83 | [ 84 | false, 85 | false, 86 | false, 87 | false, 88 | false, 89 | false, 90 | false, 91 | false, 92 | false, 93 | false, 94 | true 95 | ], 96 | [ 97 | false, 98 | false, 99 | false, 100 | false, 101 | false, 102 | false, 103 | false, 104 | false, 105 | false, 106 | true, 107 | false 108 | ] 109 | ], 110 | "design-resolution-height": 640, 111 | "design-resolution-width": 960, 112 | "excluded-modules": [ 113 | "ParticleSystem", 114 | "Spine Skeleton", 115 | "MotionStreak", 116 | "PageView", 117 | "PageViewIndicator", 118 | "Slider", 119 | "VideoPlayer", 120 | "WebView", 121 | "Physics", 122 | "StudioComponent", 123 | "Geom Utils", 124 | "3D", 125 | "3D Primitive" 126 | ], 127 | "facebook": { 128 | "appID": "", 129 | "audience": { 130 | "enable": false 131 | }, 132 | "enable": false, 133 | "live": { 134 | "enable": false 135 | } 136 | }, 137 | "fit-height": true, 138 | "fit-width": false, 139 | "group-list": [ 140 | "default", 141 | "barrier", 142 | "player", 143 | "shelter_z_reducer", 144 | "shelter", 145 | "restaurant", 146 | "player_shelter_chain", 147 | "transparent", 148 | "stateful_buildable_inhibition", 149 | "Item", 150 | "ItemAccept" 151 | ], 152 | "last-module-event-record-time": 0, 153 | "simulator-orientation": false, 154 | "simulator-resolution": { 155 | "height": 640, 156 | "width": 960 157 | }, 158 | "use-customize-simulator": true, 159 | "use-project-simulator-setting": false, 160 | "start-scene": "current" 161 | } 162 | -------------------------------------------------------------------------------- /settings/services.json: -------------------------------------------------------------------------------- 1 | { 2 | "services": [ 3 | { 4 | "service_id": "242", 5 | "service_name": "Agora Voice", 6 | "service_icon": "https://account.cocos.com/uploads/client_icon/2019-07-16/273952d155b4cdb72d2b1bc61de91ade.png", 7 | "service_desc": "Build the future of communications with the world’s leading voice、video、and interactive broadcasting platform. Agora delivers easy to embed Real-Time Engagement APIs which includes all the development tools and cloud infrastructure needed for mobile、web、and desktop applications.", 8 | "service_title": "SDKBuilt-in real-time Audio SDK", 9 | "service_guide_url": "https://docs.agora.io/en/Interactive Gaming/game_c?platform=Cocos Creator", 10 | "service_sample_url": "https://github.com/AgoraIO/Voice-Call-for-Mobile-Gaming/tree/master/Basic-Voice-Call-for-Gaming/Hello-CocosCreator-Voice-Agora", 11 | "service_dev_url": "https://sso.agora.io/api/oauth/cocos/login", 12 | "service_type": "3", 13 | "service_type_zh": "公司和个人游戏", 14 | "support_platform": [ 15 | "Android", 16 | "iOS", 17 | "HTML5" 18 | ], 19 | "package_download_url": "http://download.cocos.com/CocosServices/plugins/service-agora/1.0.2_2.2.3.20_2.5.2.zip", 20 | "package_version_desc": "解决Bug:onAudioVolumeIndication 回调收不到.", 21 | "service_component_name": "service-agora", 22 | "package_versions": [ 23 | "1.0.1_2.2.3.20_2.5.2", 24 | "1.0.2_2.2.3.20_2.5.2" 25 | ], 26 | "build_platform": [ 27 | "web-mobile", 28 | "web-desktop", 29 | "android", 30 | "ios" 31 | ], 32 | "require_verify": 1, 33 | "service_price": "The service according to usage billing, billing rules ,the fees incurred by the third party from your Cocos balances .", 34 | "packpage_version_desc": "", 35 | "service_protocol": "Game for the first time to open the service,the Cocos after notification service for game on service and initialization parameters,service party may according to need to get your Cocos account information,such as account basic information,game basic information,account balance,click on the confirm open button that is seen as you agree to the service to access your account information,See < a href='http://auth.cocos.com/CocosServiceAgreement.html'>Cocos user service agreement and Cocos privacy policy " 36 | } 37 | ], 38 | "game": { 39 | "name": "UNKNOW GAME", 40 | "appid": "UNKNOW" 41 | } 42 | } -------------------------------------------------------------------------------- /template-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/genxium/CocosCreatorMapTypeDemo/fb8c09d579642bb241c775fa322fb1aa76c583ee/template-banner.png -------------------------------------------------------------------------------- /template.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TEMPLATES.helloworld.name", 3 | "desc": "TEMPLATES.helloworld.desc", 4 | "banner": "template-banner.png" 5 | } --------------------------------------------------------------------------------