青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

牽著老婆滿街逛

嚴以律己,寬以待人. 三思而后行.
GMail/GTalk: yanglinbo#google.com;
MSN/Email: tx7do#yahoo.com.cn;
QQ: 3 0 3 3 9 6 9 2 0 .

Cocos2d-x Visual Studio Android Project

轉載自:https://blogs.msdn.microsoft.com/vcblog/2016/07/12/cocos2d-x-visual-studio-android-project/

In the world of game development , Cocos2d is one of the biggest names out there. The open source Cocos2d framework has been the backbone of a vast number of top selling apps and games, provides support for a number of programming languages, and targets a massive variety of devices. Currently, Cocos2d-x (the C++ version of Cocos2d) provides starter projects for Android targets for Eclipse and Android Studio and starter projects for Win32, Windows 8.1,  and Windows 10 targets for Visual Studio. Starting with Visual Studio 2015,  Visual Studio has added in a wealth of support for C++ projects that target not only Windows platforms but Android and iOS platforms as well. With some new Android support added in Visual Studio Update 2, this seemed like the perfect opportunity to allow Cocos2d-x users a chance to utilize Visual Studio’s  incredible editing, debugging, and deployment support for their Android development work. To this end, we’ve provided a starter project that can be dropped in with the Cocos2d basic template projects to allow for a quick start with Android Cocos2d-x development using Visual Studio. This starter project is intended to work with Cocos2d-x version 3.13.1 and will need manual adjustments to work with other versions of Cocos2s-x (there is an older version that works with 3.12 provided at the bottom of this post).

The first step in this process is to set up a new Cocos2d-x project following the standard pattern.

First off, download the newest version of Cocos2d-x and unzip the file to your convenient location of choice.

A1-Download

Next, take a command prompt and navigate to the Cocos2d-x directory that you unzipped into. From that directory, run setup.py to set up the development environment for Cocos2d-x, making sure that you have python installed on your system first. When the environment is set, the cocos command line tool can be used to create a new empty Cocos2d-x project.

C:>cocos new MyNewGame –l cpp –d projects

This command will create a new game directory called MyNewGame in the projects directory. The –l variable indicates that this is a C++ project that we want created. In this new directory, you will see the see the following directory structure.

B1-CocosDirectories

This structure breaks down in the following way. The cocos2d directory contains the Cocos2d-x framework code. The engine code, platform- specific code, third party libraries, and things of that nature all go in here. Must of the time you’d hope to not have to change this framework code during development, but the great thing about Cocos2d-x being open source is that all the framework code is right there to debug into and edit if needed. The Classes folder contains the actual user C++ code that contains the code for the game. For the Cocos2d-x example, this is just a super basic scene which puts Hello World text and a static sprite image on a splash screen along with an FPS ticker and a close button. This is the directory where the user is expected to add and work with their game code. The Resources directory contains the various resources that will be a part of the game. Images, resources, music files, models, and all the like go here. And finally we have all the proj.* directories. These directories contain project files for targeting the various platforms that Cocos2d-x supports. These project have only a small amount of platform or  build specific files in them. Most of what these project files do is to reference the platform code in the cocos2d directory, the shared game code in the Classes directory, and the shared game assets in the Resources directory. The nice thing about this layout is that you can switch between various build tools and targets while maintaining the same game code and assets.

At this point we want to add in our Android targeting Visual Studio project to this layout. This file can be downloaded below:

proj.visualstudio (Cocos2d-x 3.13.1)

Move the proj.visualstudio.zip file from where it was downloaded into the main project directory and unzip it side by side with the other project types. Make sure that the solution is located in a proj.visualstudio directory directly under your main game directory. You don’t want the duplicate of the project folder name as this will mess up relative paths for the project so make sure that the Cocos2d.sln file is located under project\MyNewGame\proj.visualstudio.

Unzipped

Since we are just unzipping this side by side, we don’t participate in the template project renaming that the cocos command line does for the other project types. As a result, the solution and project files have more general names (Cocos2d.sln instead of MyNewGame.sln), and you’ll have to rename them manually to have them match up. Opening Cocos2d.sln will open up the project in Visual Studio 2015 Update 2. If Update 2 is not installed, then one of the projects will not load, so just right click the project and follow the prompts to update Visual Studio with the needed project types.

D1-AndroidSolution

In this solution (I’ve expanded out a few folders for illustration) we have a Visual Studio Android ANT project called Cocos2d. This project contains links to the java platform code in the cocos2d directory as well as to the assets in the Resources directory that need to be included in the apk. The only non-shared code under the src directory is the org.cocos2dx.cpp\AppActivity.java class which extends Cocos2dxActivity and gets the engine up and running on the device. The Cocos2d java project references a Cocos2dcpp shared object project also included in this solution. In the jni directory of this project resides the project- specific main.cpp/h as well as linked files to the AppDelegate and HelloWorldScene files in the project  shared Classes directory. In the cocos directory are links to all the cocos2d C++ framework code from the shared cocos2d directory. At this point you can build your project and deploy it to the device of your choice with Visual Studio debugging support.

Screenshot_20160120-033612

cpp-test project screenshots:

Screenshot_20160120-054802Screenshot_20160120-054838Screenshot_20160120-054952

This version of proj.visualstudio works with Cocos version 3.12.

proj.visualstudio (Cocos2d-x 3.12)

posted on 2016-12-27 16:05 楊粼波 閱讀(395) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發(fā)表評論。
網(wǎng)站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            久久精品国产99国产精品澳门| 久久久久久网站| 国产欧美综合一区二区三区| 欧美日韩国产在线观看| 欧美啪啪一区| 欧美日韩中文字幕在线视频| 国产精品都在这里| 国产欧美日韩高清| 一区二区三区在线视频播放| 亚洲激情影院| 中文av一区二区| 欧美一区二区三区四区在线观看地址 | 一区二区三区精品久久久| 一区二区不卡在线视频 午夜欧美不卡'| 99re热精品| 午夜精品福利在线| 蜜臀久久99精品久久久久久9| 亚洲第一黄网| 一本大道久久a久久综合婷婷| 亚洲一区二区av电影| 日韩视频免费大全中文字幕| 久久视频在线看| 久久综合狠狠综合久久激情| 亚洲高清av在线| 一区二区三区国产| 欧美中在线观看| 欧美日韩国产三区| 在线免费观看成人网| 亚洲综合色网站| 欧美成人久久| 亚洲欧美日韩视频一区| 欧美国产日韩亚洲一区| 国产一区二区剧情av在线| 99re成人精品视频| 免费日韩成人| 午夜精品免费| 欧美午夜视频| 亚洲国产毛片完整版| 欧美一区免费| 亚洲精品在线三区| 久久亚洲美女| 国产欧美丝祙| 亚洲专区一区| 亚洲伦理在线观看| 欧美激情视频免费观看| 亚洲电影欧美电影有声小说| 久久精品91| 亚洲综合三区| 国产精品久久激情| 亚洲一区二区三区乱码aⅴ| 亚洲国产另类久久久精品极度| 久久国产精品一区二区| 国产欧美日韩在线播放| 午夜在线一区二区| 在线天堂一区av电影| 欧美日韩理论| 亚洲最新视频在线播放| 亚洲国产精品v| 免费观看亚洲视频大全| 亚洲第一黄网| 欧美国产精品劲爆| 欧美大胆a视频| 亚洲精品国产视频| 亚洲国产成人精品久久久国产成人一区| 久久久久久999| 在线观看一区二区视频| 欧美成年人网| 欧美成人伊人久久综合网| 亚洲精品国产品国语在线app| 欧美激情成人在线视频| 免费亚洲一区二区| 一道本一区二区| 在线一区观看| 国产欧美视频一区二区三区| 久久久久久亚洲精品中文字幕 | 亚洲国产欧美日韩精品| 老司机67194精品线观看| 欧美激情精品久久久久久免费印度| 在线精品视频一区二区三四| 久久婷婷成人综合色| 久久午夜国产精品| 亚洲看片网站| 亚洲尤物在线| 极品少妇一区二区| 亚洲国产经典视频| 国产精品成人一区二区三区吃奶 | 在线亚洲激情| 国产真实精品久久二三区| 欧美国产1区2区| 欧美性大战久久久久久久| 久久狠狠一本精品综合网| 老司机久久99久久精品播放免费 | 亚洲国产精品久久久久婷婷老年| 欧美午夜不卡在线观看免费 | 日韩系列欧美系列| 午夜精品视频在线| 亚洲乱码国产乱码精品精天堂| 一区二区三区高清在线| 一区二区三区亚洲| 中文av字幕一区| 亚洲国产一区二区三区青草影视| 中文高清一区| 最新日韩在线视频| 午夜免费日韩视频| 一区二区毛片| 久久噜噜亚洲综合| 午夜精品久久久久久久白皮肤| 久久精品在线观看| 午夜视频久久久久久| 欧美国产日韩亚洲一区| 久久久噜噜噜久久中文字免| 欧美另类在线播放| 欧美电影在线观看| 国产午夜精品福利| 亚洲在线国产日韩欧美| 一区二区三区视频在线观看| 久久免费一区| 久久视频精品在线| 国产区精品在线观看| 亚洲视频你懂的| 亚洲色在线视频| 欧美精品一区二区三区在线看午夜 | 中文欧美日韩| 欧美成人69av| 欧美国产丝袜视频| 精品9999| 亚洲精品一区中文| 亚洲一区二区视频在线| 亚洲第一区在线观看| 欧美一级片在线播放| 宅男噜噜噜66国产日韩在线观看| 欧美aⅴ一区二区三区视频| 久久亚洲私人国产精品va| 国产精品欧美一区喷水| 亚洲特色特黄| 亚洲欧美视频在线观看| 国产精品美女一区二区| 一区二区欧美国产| 亚洲欧洲99久久| 国产欧美精品一区二区色综合| 亚洲一区二区伦理| 欧美一级二级三级蜜桃| 国产一区在线免费观看| 久久久精品网| 亚洲福利视频网站| 亚洲一二三区在线观看| 国产精品白丝av嫩草影院| 一区二区三区视频在线| 午夜国产不卡在线观看视频| 国产欧美一区二区三区久久 | 欧美日韩精品免费观看| 亚洲免费高清视频| 亚洲欧美日韩另类精品一区二区三区 | 亚洲一区二区在线免费观看| 国产精品ⅴa在线观看h| 亚洲一区二区免费视频| 久久久久久久一区二区| 激情丁香综合| 欧美极品在线观看| 亚洲一区观看| 嫩草成人www欧美| 在线亚洲高清视频| 国产精品一页| 免费观看成人网| 亚洲美女毛片| 欧美在线国产精品| 亚洲国产高清一区| 欧美无乱码久久久免费午夜一区| 亚洲欧美成人综合| 欧美阿v一级看视频| 亚洲婷婷在线| 国产一区二区三区在线免费观看| 米奇777超碰欧美日韩亚洲| 日韩午夜免费视频| 久久久久久久999| 99热在线精品观看| 国产一二精品视频| 欧美区在线播放| 欧美在线亚洲综合一区| 亚洲欧洲精品天堂一级| 亚洲欧美日韩精品久久久| 亚洲激情二区| 国产在线精品一区二区夜色| 欧美日韩亚洲不卡| 麻豆freexxxx性91精品| 欧美亚洲综合在线| 亚洲天堂成人在线视频| 亚洲高清视频在线观看| 久久综合久久综合久久| 亚洲欧美欧美一区二区三区| 亚洲免费电影在线| 在线日韩av片| 国产一区二区精品久久99| 国产精品国产精品| 欧美日韩国产一中文字不卡| 亚洲精品欧洲| 国产精品一区=区| 亚洲一区区二区| 欧美日韩亚洲国产精品| 久久蜜桃资源一区二区老牛|