I used this the last time i wrote a game but it has gotten soooo. Cocos2dhtml5 and cocos2dx javascript bindings jsb, and cocos2dhtml5 is a pure javascript engine for web, and cocos2d jsb is for native app. Cocos2d html5 and cocos2d x javascript bindings jsb, and cocos2d html5 is a pure javascript engine for web, and cocos2d jsb is for native app. It supports full cocos2d x functionality with a set of simplified javascript friendly apis. Hello everyone, im writing here because i would like to know your opinion about what game engine would be best for me to make a 2d game with the following assumptions. Example1 generates a unity logo sprite, gameobject1. Its like comparing chalk and cheese except the chalk has gone mouldy and so has some cheese on it. On short term, unity seems to be a good choice but what about long. I did some reading about cocos2d and looks like it evolved quite a lot.
This is probably one of the most controversial topics in the unity 2d development world. It supports full cocos2dx functionality with a set of simplified javascript friendly apis. Cocos is the most popular open source game engine in the industry. Cocos2dx development notes creating a scene with physics. Cocos2dx is an opensource and crossplatform open source free 2d game engine for mobile game development known for its speed, stability, and ease of use unity use unity to build highquality 3d and 2d games, deploy them across mobile, desktop, vrar, consoles or the web, and connect with loyal and enthusiastic players and customers. You position it 10% from the left edge of the screen, centered vertically. Mac mac ios mac android windows visual studio windows android linux codeblocks linux android 17.
Ive spent the better part of about 5 years playing around with 2d in unity and while the potential has grown exponentially, there is still room for growth. To navigate the 2d space in the editor window, use the middle mouse button to pan, and the scroll wheel to zoom. I am a professional game developer who use cocos2dx game engine to build my. Many famous games like 2048,badland are developed using cocos2dx. It is also something i see a great deal of questions about. Unity for 3d without a doubt but there is no way i would even consider unity for a 2d game with cocos2d available. At first, i was unwilling to move into cocos2d x because, in my opinion, it was still maturing. The minimum size of game developed on cocos2dx can be as low as 1. Is cocos2dx or unity better for use as a crossplatform. Use this if you plan to modify or contribute to the github source. It can be used to build games, apps and other cross platform gui based interactive programs.
How good is cocos2dx for building 2d games for the android. Using the most recent version of cocos2dx you can target windows, mac, linux, ios and android. Cocos2dx and cocos creator is ranked 7th while unity3d is ranked 9th. Cocos2d contains many branches with the best known being cocos2dobjc, cocos2dx, cocos2dhtml5 and cocos2dxna. 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. Extract the files into the top level directory of your cocos2dx project, the same directory that contains your proj.
If you are already familiar with cocos2d x, you can skip ahead to the next chapter. Mac mac ios mac android windows visual studio windows android linux codeblocks linux android. The most important reason people chose cocos2dx and cocos creator is. Two major players of the mobile game engine market. This section looks at getting cocos2dx setup and running. Then it presents a minimal hello world example, showing the basics of how a cocos2dx application works. This section describes how you can get cocos2d x running on a mac with xcode. Slant unity3d vs cocos2dx and cocos creator detailed. New create a sprite here ccanimation anim ccanimationanimation. For my parallax layers, i have one 512x512 image that i position. O cocos2d contem muitas ramificacoes com os mais conhecidos sendo cocos2dswift, cocos2dx, cocos2dhtml5 e cocos2dxna.
Here it is, the cocos2dx v4 tutorial series has begun. May 11, 2020 cocos2d x is a multiplatform framework for building 2d games, interactive books, demos and other graphical applications. Comparison between unity and cocos2d platforms for 2d game development casual arenas team has been developing flash game browsers since 2008. Its free, communityfriendly, and cross platform supportive.
The cocos2d x renderer is optimized for 2d graphics with opengl. This sprite is collided with by the example2 sprite, gameobject2. This has changed and i have decided to use cocos2d x for the duration, as long as it continues to be supported. Cocos2dx is a suite of opensource, crossplatform, gamedevelopment tools used by millions of developers all over the world.
It gives a bit of an overview of cocos2dxs history. Cocos2dx and cocos creator is ranked 5th while unity 2d is ranked 31st. Tilemaps, atlases, excellent examples, a 2d optimized physics engine 2 of them actually. Create once and publish to 21 platforms, including all mobile platforms, webgl, mac, pc and linux desktop, web or consoles. Also what i was another concerning about is some bug of coco. Unity renders app content at the resolution set by script or by user selection when the built application launches, but scales it to fill the window.
For a starter, it is open source and allows its user to build games for multiple platforms including ios, android, mac osx, windows, just to name a few. I have been using cocos2dx since 2011 and its evolution is indeed stunning. One of the changes that happened between cocos2d x 2. On the other hand, unity is detailed as unity brings stateoftheart, affordable multiplatform tools and services to.
Making a basic cocos2dx game for android visualgdb. Cocos2dx is a tool in the game development category of a tech stack. 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. Cocos2d x is a highperformance cross platform 2d 3d game engine that supports multiple platforms such as ios, android, winxp78, wp8, blackberry, meego, marmelade, webos, mac os x. The engine provides rich functions such as graphics rendering, gui, audio, network, physics, user input, etc. Objective comparison between the tools unity 3d and cocos2d. Is cocos2dx or unity better for use as a crossplatform 2d.
This tutorial shows how to make a basic 2d game for android using the cocos2dx framework. The new build system creates projects under the cocos2d x installation at least on mac and that is where the project files appear to reference them. There are some independent editors in the cocos2d community, such as those contributing in the. Each development team has a variety of tools and frameworks they use. The unity engine integrates into one unparalleled platform to create 2d and 3d games and interactive content. Cocos2d xna is a simple game engine typically used for 2d games, educational software and 2d visualizations. Naturally, i decided to search for a more 2d optimized engine. This section looks at how to draw a sprite in cocos2dx. This month, brian moakley, marin todorov, and myself will demonstrate these three popular frameworks used to make 2d ios games and then have a. It can be used to publish games for mobile devices and desktops, including iphone, ipad, android, kindle, windows and mac. The point i was trying to make, poorly obviously, is that if you are comparing the two, one would stand up better if it was improved on. The new versions of unity have certain specific functionalities which have made it equally popular in the zone of 2d games.
Comparison between unity and cocos2d platforms for 2d. Unity as compared to cocos2dx is highly advanced and can be used for creating both 2d and 3d games. A changelog will be maintained so you can always see whats new. Ive used unity for small to medium sized commercial industry projects 3d, vr tours etc. If you dont need the console and stuff, you can stick to the 2. For older version no longer supported go here software requirements. On the other hand, unity is detailed as unity brings stateoftheart, affordable multiplatform tools and services to developers of interactive content everywhere.
It will help to more advantages of our important partnerships with the leading industries in the world to rule the online and medias topmost like. Analysis of cocos 2d and unity platforms for 2d game. If you want to make 2d games with unique designs, immersive gameplay and across platforms then unity will be your most suitable option. I am intending to build a 2d project for the raspberry pi sbc and i am only familiar with unity. Download history versions of cocos2dx cocos2dhtml5 cocos. Therefore, if you choose to install android studio, you will still need to install the stand alone tools to use with cocos 2d x. Like our content and want to support us more directly. Godot hit my radar, but after reading posts like the one linked below, im questioning if i should invest time into it over another engine. Unreal engine vs unity learn the top 6 useful differences. What should be my choice as beginner game developer, cocos2dx vs libgdx vs unity. It is possible that some search terms could be used in multiple areas and that could skew some graphs. Give your games a larger target audience with almost no extra hassle. The following steps explain how to import the firebase sdk into a newly created cocos2dx ios project. Cocos2d is a family of opensource software frameworks for.
Its predecessor was limited to the apple family but with cocos2d x you can take your applications to all major app stores, with minimum extra work. Cocos2d js is cocos2d x engines javascript version. As the opensource cocos2dx game engine grows it gets better and better, causing us to enhance this book. It works on ios, android, windows phone, os x, windows and linux. Its because most of the cocos2dx veterans are chinese.
Unity 3d is paid while cocos2dx is an opensource game. Learn how to create a simple 2d game in this cocos2dx tutorial. Cocos2d js is cocos2d x engines javascript version, maintained by cocos2d x team. Unreal engine vs unity played a major role in continues updates to create new features and improvements. How to make a simple 2d game in unity career karma. When scaling, unity adds black bars to the rendered output to match the aspect ratio the relationship of an images proportional dimensions, such. Ill describe how to set up cocos2d x for a build and create a basic project in this section. Download unity to start creating today and get access to the unity platform and ecosystem.
Cocos2dx is a mature open source crossplatform game development framework that supports 2d and 3d game creation. 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. The following two script examples create an ontriggerenter2d demo. Other engines that you should try are unity, unreal and neoaxis.
Unity is essentially a middleware supported by its developing company. If you want to experience the magic and excitement of 2d games, then you have to hire cocos2d game. Previous versions enabled you to target even more targets including blackberry and. Most cocos2d implementations let you manipulate the size, scale, position, and other effects of the sprite. It is 2d specific and has so much functionality built in that you get for free. Unitys primary advantage over cocos 2d is that it has a great level layout and.
Which one would be suitable for 2d game development. Use unity to build highquality 3d and 2d games, deploy them across mobile, desktop, vrar, consoles or the web, and connect with loyal and enthusiastic players and customers. Less community support but good support on other sites 3k search results on stackoverflow. The good news is that only one game code base has to be writte. Some familiarity with an ide like xcode, visual studio or eclipse. I think most people here have already answered the question, but there is still one more thing to consider. Game engine competition behind the outbreak of china mobile. This package will add the cocos2d xna dependencies to a windows xna game.
985 897 375 59 115 267 1528 583 1321 775 1194 786 1017 204 102 946 95 843 786 1216 44 189 962 1562 152 1196 131 767 979 631 929 1279 580 1039 1461 234 396 744