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

牽著老婆滿街逛

嚴以律己,寬以待人. 三思而后行.
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)  編輯 收藏 引用


只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   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>
            91久久久精品| 午夜视频久久久| 在线中文字幕一区| 亚洲精品美女在线观看| 伊人夜夜躁av伊人久久| 欧美h视频在线| 久久精品亚洲| 牛牛影视久久网| 欧美激情综合| 中文在线不卡视频| 欧美综合二区| 免费久久99精品国产| 欧美视频在线观看视频极品| 欧美日韩三级| 一区二区三区在线视频免费观看| 在线精品高清中文字幕| 亚洲人成在线影院| 欧美中文在线视频| 亚洲成人在线视频网站| 夜夜嗨一区二区| 久久久99国产精品免费| 久久性色av| 亚洲精品国产精品乱码不99| 亚洲深夜福利网站| 欧美激情久久久久久| 国产欧美一区二区色老头| 狠狠色噜噜狠狠色综合久| 日韩亚洲精品在线| 欧美成人a视频| 欧美一区二区三区在线看| 欧美va天堂在线| 一区二区视频欧美| 久久香蕉国产线看观看av| 亚洲一区二区三区高清 | 国产精品色在线| 99热这里只有成人精品国产| 欧美日韩另类在线| 亚洲精品美女久久7777777| 鲁鲁狠狠狠7777一区二区| 久久激情网站| 国产日韩欧美综合精品| 欧美一区二区福利在线| 小处雏高清一区二区三区| 国产精品国产三级国产普通话99| 99精品欧美一区| 日韩小视频在线观看| 欧美日韩国产综合久久| 亚洲在线中文字幕| 欧美一区二区三区啪啪| 尤物在线观看一区| 999在线观看精品免费不卡网站| 欧美韩日精品| 欧美一区二区三区精品| 久久精品一二三区| 乱中年女人伦av一区二区| 最新成人在线| 亚洲综合999| 91久久精品国产91久久性色| 一区二区三区高清| 1769国产精品| 亚洲欧美一区二区视频| 91久久在线播放| 欧美在线观看一二区| 亚洲一区三区在线观看| 久久九九久精品国产免费直播| 日韩视频一区二区| 久久久久九九九九| 午夜精品久久久久久| 欧美激情一区二区三区 | 99国产精品久久久| 国产日韩欧美一区二区三区在线观看 | 欧美在线免费观看亚洲| 亚洲一级高清| 欧美揉bbbbb揉bbbbb| 亚洲二区免费| 亚洲国产精品久久久久久女王| 亚洲欧美视频在线观看| 欧美在线一二三四区| 国产精品综合色区在线观看| 一区二区三区精品久久久| 亚洲视频在线观看网站| 欧美日韩在线精品| 一区二区欧美视频| 欧美中在线观看| 国语自产精品视频在线看| 久久成人羞羞网站| 久久久99爱| 亚洲国产精品久久久久秋霞影院 | 一区二区三区四区精品| 欧美插天视频在线播放| 一区二区三区免费观看| 久久久国产91| 99视频国产精品免费观看| 国产精品v日韩精品v欧美精品网站| 亚洲精品久久久久久久久久久久久 | 欧美成人日韩| 性色av一区二区三区| 激情一区二区三区| 欧美激情精品久久久久久免费印度 | 国产精品视频xxx| 午夜一区不卡| 亚洲高清激情| 久久精品国产综合| 中文av字幕一区| 激情综合网址| 国产欧美在线观看一区| 欧美激情二区三区| 久久野战av| 欧美一区二区视频97| 亚洲午夜电影| 亚洲欧美成人在线| 一区二区三区日韩精品| 亚洲激情第一页| 亚洲第一福利在线观看| 免费在线观看精品| 久久久综合网站| 国产欧美精品国产国产专区| 欧美日韩免费高清| 国产精品中文字幕在线观看| 国产精品久久久久久超碰| 欧美午夜美女看片| 国产精品欧美久久| 国产精品午夜av在线| 国产情人综合久久777777| 一区二区三区在线免费视频| 在线看欧美日韩| 夜夜嗨av一区二区三区中文字幕| 亚洲黄色影片| 亚洲欧美日韩精品久久| 欧美一级视频| 免费观看在线综合| 一区二区日韩| 久久在线91| 国产精品日韩欧美一区二区三区 | 一区二区欧美亚洲| 欧美一区二区高清在线观看| 老牛嫩草一区二区三区日本| 亚洲黄色性网站| 欧美一区二区三区四区在线观看地址| 欧美在线免费观看亚洲| 欧美日韩一区二区视频在线观看 | 国产精品腿扒开做爽爽爽挤奶网站| 国产三级精品三级| 亚洲综合不卡| 亚洲国产经典视频| 久久精品国产在热久久| 国产精品久久久久毛片大屁完整版| 好男人免费精品视频| 欧美亚洲三级| 亚洲色图自拍| 国产精品www网站| 99视频超级精品| 亚洲精品国产欧美| 欧美福利网址| 久久精品欧美日韩精品| 国产精品日本精品| 欧美一区二区三区在线| 亚洲欧美日韩电影| 国产自产2019最新不卡| 久久―日本道色综合久久| 亚洲一区二区三区精品视频 | 亚洲一区二区三区在线看| 欧美日韩大片| 午夜伦欧美伦电影理论片| 亚洲性图久久| 亚洲国产精品嫩草影院| 久久精品一区二区| 国产精品午夜在线| 国产毛片一区| 亚洲精品偷拍| 久久国产欧美| 欧美日韩在线第一页| 国产精品黄色| 国产日韩精品视频一区二区三区 | 99精品国产高清一区二区| 精品动漫3d一区二区三区免费| 国产精品视频不卡| 一区二区三区自拍| 狼人社综合社区| 99re热精品| 中文一区字幕| 亚洲激情av| 欧美一区二区观看视频| 亚洲黄色在线| 久久国产视频网站| 亚洲视频欧美视频| 欧美不卡视频一区| 久久精品一区二区三区不卡牛牛| 美女久久网站| 欧美高清在线一区二区| 国产亚洲欧美日韩一区二区| 亚洲国产第一| 久久久久久网站| 香蕉免费一区二区三区在线观看| 欧美激情视频一区二区三区在线播放 | 亚洲精品一区二区三区在线观看| 亚洲一区二区免费| 欧美亚洲在线观看| 国产精品中文字幕欧美| 亚洲一区日韩在线|