Analysis of cocos 2d and unity platforms for 2d game development. Making a basic cocos2dx game for android visualgdb. Chapter 1, installing cocos2dx, guides you through the download and installation of the cocos2dx framework. Is cocos2dx or unity better for use as a crossplatform. If youve used cocos2d iphone, its likely you enjoyed the experience. The most popular game engines for mobile systems right now are unity, marmalade, and cocos2dx. Currently the tutorial is at three parts, although this time i have made each part more indepth than i have in the past, each roughly analogous to a book chapter in length. Contribute to cocos2dcocos2d xdocs development by creating an account on github. Window titlewe can set the window title by function setviewname. Each of the six games developed in this book will take you further on the road to becoming an expert game developer with no fuss and plenty of fun. If a more visual path to development suits you better use godot or unity.
On the other hand, interest in, and usage of, unity both 2d and 3d has witnessed. Which platform to choose for your next mobile game. Also, 2d games can be made wellmatched across wide varieties of devices and platforms. Create a folder to contain the project, in my case the folder name is testcocos2dx so that the class files and the resources can stay outside of your windows project, in this folder also copy cocos2dx and cocosdenshion folder that you find in the cocos2dx library you downloaded before also download this zip contains classes and resources that you can modify. Slant unity3d vs cocos2dx and cocos creator detailed. These plugins include 2d textures, 3d models, extensions, applications, animations, materials, scripts etc which can be bought free or can even be downloaded from the official store of unity. Analysis of cocos 2d and unity platforms for 2d game. Cocos2dx is intentionally written for the developers migrating from objc.
Cocos2dx and cocos creator is ranked 8th while monogame is ranked 12th. This tutorial shows how to make a basic 2d game for android using the cocos2dx framework. It is 2d specific and has so much functionality built in that you get for free. There is a manual that serves as documentation and forums that are. Cocos is definitely considered as a decent back up. Cocos2dx is an opensource and cross platform open source free game engine for mobile game development known for its speed, stability, and ease of use. Dont get me wrong, the framework itself is pretty amazing, it is just that getting started with it is very hard since on the web you are going to find snippets that target various versions of the framework, use classes that have been.
I doubt ill have the time to really look into it just now, but maybe for next time. Unity3d vs cocos2d for 2d mobile game development yeeply. Explore the powerful features of cocos2dx and use them to your advantage tackle commonly faced problems while creating popular 2d games a stepbystep guide to help you understand and develop some of the most popular games of the industry such as angry bird. At first glance, phaser looks a bit easier, but cocos2d seems to provide a bit more control.
My suggestion is that you program your games in cocos2d html5 and use cocos2dx jsb to do the heavy lifting for you. As you wrap up the book, you will have a full working game that you can use as a reference and full functional components all along the way. Ngui is an extension to the graphical editor which contributes in saving considerable time for 2d game development. In this book you will go through the entire process of writing a game with cocos2d from zero to a full game. We will create a project based on the simplegame sample, build it on windows and android, and then do a simple modification to the game mechanics and use visual studio to debug it. Cocos2d has established itself as the most popular 2d game engine on the ios platform using objectivec. Cocos2dx and cocos creator is ranked 7th while unity3d is ranked 9th. Comparison between unity and cocos2d platforms for 2d game development casual arenas team has been developing flash game browsers since 2008.
But ill already warn you, there will be small code modifications and to create an ipa, you will need to compile using xcode, what means you will need a mac. Mac mac ios mac android windows visual studio windows android linux codeblocks linux android 17. Cocos2dx by example beginners guide second edition. If the force is within move threshold, the object will only move or topple, if the force applied is between move and partial destroy threshold, the object will have cracks appear on it, and finally if the.
Cocos2dx is open source and the documentation on the cocos2dx website is horrendous to say the least. Is cocos2dx or unity better for use as a crossplatform 2d game engine. Here it is, the cocos2dx v4 tutorial series has begun. Tilemaps, atlases, excellent examples, a 2doptimized physics engine 2 of them actually. Cocos2dx can compile to ios, android, windows phone, os x, windows. Many people push for unity, unreal and cordona as the best gaming engines around. Unity equivalent to cocos2d and sprite kit actions.
Cocos vs unity which one to choose for game development. Your game will include physics, scrolling, animations, particle systems, sound, and much more. I think most people here have already answered the question, but there is still one more thing to consider. Learn how to create a simple 2d game in this cocos2dx tutorial. Tilemaps, atlases, excellent examples, a 2d optimized physics engine 2 of them actually. Is cocos2dx a good initial choice in 2018 sonar systems.
Upgraded and updated, the powerful and popular open source crossplatform game development framework cocos2dx is better than ever. Ill brain dump my reasons for choosing cocos2dx over unity for making crossplatform 2d games. Within the past year, they have specialized in game development crossplatform mobile and tablet games, studying different technologies and specializing in cocos 2d and unity 3d. Sdkbox play is your one stop solution for crossplatform login, achievements and leaderboard integration on both ios and android platforms. Cocos2dx and box2d angry bird like game source code. This thesis covers the whole process from an idea of a game to a finished prototype. Through stepbystep tutorials youll learn how to take complete advantage of cocos2dx, to take your game development skills and projects to the next level. A changelog will be maintained so you can always see whats new. Are there any major benefits to developing a game in unity vs unreal. Amount of manual coding involved cocos2d is open source, and users. It has a very enthusiastic community, very active repository, a good commented code and good code examples.
Doesnt support horizontal alignmentbecause cocos2dxs richtext doesnt support this features. Unity is essentially a middleware supported by its developing company. It differs from cocos2dx in that it is written in the objective c programming language and only supports the ios and mac platforms. Regardless, the unity website offers excellent tutorials, and provided you put in the effort, it. We want to do very highspeed fingertracking so being able to move rendered shapes and vary their rendering as fast as you can move a finger is very important to us. When comparing unity3d vs cocos2dx and cocos creator, the slant community recommends cocos2dx and cocos creator for most people.
Cocos2dxcocos creatorcocosstudiococosstudiococos2dx v3. The cocos2dx project has taken the opposite approach, with microsofts help, of compiling glsl shaders via angle. Note that we only focus on the 2d aspects of these platforms. But i cant get comfortable with cocos2dx neither cocos2d. Real maths, not just inequations or how to resolve x. Cocos2dx running on winrt interoperability channel 9. What is the difference between cocos2d, cocos2dx, cocos. Evaluation of cocos vs unity game development frameworks. Both are platforms for game development, also for mobile games. Huge community support and huge support on other sites 15k search results on stackoverflow many famous games like monument valley, temple run 2, angry birds epic are developed on unity. As the opensource cocos2dx game engine grows it gets better and better, causing us to enhance this book.
Cocos2dx convert valuemap to string raw data and back. Creating games with cocos2dx is easy and 100 percent free. On short term, unity seems to be a good choice but what about long. Id be curious to hear opinions, though if anyone notices this post among the hundreds going past. This includes an introduction to cocos2dx, game design, ui design, ai programming, but is not limited to the aforementioned topics.
Objective comparison between the tools unity 3d and cocos2d. Some familiarity with an ide like xcode, visual studio or eclipse. What should be my choice as beginner game developer, cocos2dx. The most important reason people chose cocos2dx and cocos creator is. When comparing cocos2dx and cocos creator vs monogame, the slant community recommends cocos2dx and cocos creator for most people. Check out our detailed cocos2d vs unity3d comparative study.
Supports both 2d and 3d but mainly used for 3d only because developing 3d games on unity is very easy as compared to other platforms. There is also support for sprite packing within the unity editor. We researched tons of apisengines, including unity and building our own engine. What is the path separator i should use in cocos2dx to be platform independent. This allows game developers and publishers already using c. Cocos2dx is lack of tutorials but it has a multiplatform advantage so i dived into it. Cocos2dx is an opensource and crossplatform open source free 2d game engine for mobile game development known for its speed, stability.
Initially built for 2d games, the engine now features 3d tools for scene editing, lighting and more. Doesnt support line heightbecause cocos2dxs richtext doesnt support this features. Logo maker business card maker tshirt maker banner maker flyer maker. It also examines the ins and outs of a basic cocos2dx application and deployment to both ios and android devices. Like libgdx there are andengine, cocos2dx or playn and alternatives to unity are unreal engine, cryengine or gamemaker. Cocos2d vs unity3d comparison of the best app development.
1116 118 450 1079 151 849 589 1214 1285 486 1199 37 475 185 292 492 68 1446 1431 1224 1178 1125 1068 1074 1156 665 149 1267 638 1250 1103 266 1048 1076 1159