Posts

[New] Cocos2DX vs. Unity. What to Choose for 2D Development?

So I recently found that my previous post has been getting comparatively higher hits. Since the post is a bit old and Cocos Creator has since become stable, I think it's about time to write an updated post with the comparisons. This time however, I'll give a verdict straight away first. If you want to create a 2D Game, then... (1) Unity: Choose Unity if you have all or most of the below Already have a Unity License (or are willing to make do with Free version) Have good experience with Unity and don't want to learn a new platform all over again. Not comfortable with JavaScript (well it's there in Unity too. but you have other choices as well) Are not sure if your project is going to end up as a 2D game or 3D game (yeah, that happens!). Paying for Plugins/Additional OS Platforms etc. is not an issue. Around 10-15 MB addition to Build size doesn't affect your Target Audience. You want to support Consoles as well as Mobiles for your game. (2) Cocos Cr

Adding Local Notification in Cocos2DX C++ (CPP)

Image
I was trying to implement the Local Notification system in my upcoming Cocos2DX CPP game. I tried to look up for existing solutions and easily found one on Github. It supported both iOS and Android platforms. https://github.com/kobakei/CCLocalNotification Everything was awesome, except for the fact that the project was like 3 Years old, and a lot of water had passed since then. So someone had had this outdated linking issue and found a solution to it. http://discuss.cocos2d-x.org/t/cocos2d-x-local-notification/19192 Where a developer Elrinth , thankfully put up the fixed code. Linked here: http://pastebin.com/fXHTdXhZ Everything was awesome again, except for the fact that the response was again 1 year old (at the time of writing this). So when I compiled the code, I got the following error:  Error: package android.support.v4.app does not exist  Awesome! So the elusive quest for solution began again. The search was a bit annoying because most of the solutions were

List of Free Tools and Utilities for Games and Other Development

Image
Below is a list of Free Tools and Utilities that I use most of the time. I hope it helps you as well: Software Description Platforms Notepad++ King of text editors! But only available on Windows :( Windows Brackets , Atom Great text editors for Mac OSX Mac OSX Tile Map Editor Awesome 2D tile map editor (Orthographic and Isometric) Windows, Mac OSX, Linux Inkscape Awesome Vector Art Editor (SVG etc.) Windows, Mac OSX, Linux Kingsoft Office Free alternative of Microsoft Office Windows, Mac OSX, Linux Blender 3D Awesome 3D Authoring tool Windows, Mac OSX, Linux particle2dx.com Online free tool to develop particles for Cocos2dX Games Web based FileZilla Free FTP Utility Windows, Mac OSX, Linux Dia Diagramming Tool (Flowchart etc.) Windows, Mac OSX, Linux Audacity Audio authoring tool Windows, Mac OSX, Linux XAMPP / LAMP/WAMP Apache and PHP with MariaDB easy install package F

Debugging Cocos2D-X Android Builds through Command Prompt

Image
If you have developed builds for iOS, you may know how excellent XCode is as a development platform. One of its best features is its integrated Debug terminal. On Android, we have got an excellent IDE Eclipse, which has its own Debugger as well. However, due to me facing certain configuration issues with it and Cocos2D-X, I switched to the normal Text Editor+Terminal development for my personal projects. In which case, I had to struggle a bit with the debugging on terminal. So, how do you debug an Android build on Command Prompt or Terminal. The easiest way out is just entering the following to the command prompt.  > adb logcat However, this will result in you being shown all events going on within your device (including the system events). So much so that it becomes almost unusable. So we need to filter out the messages that are not coming from our game/build. For that we can use the following:  >  adb -d logcat com.yourCompany.yourApp :I *:S

Cocos Creator: First Impressions

Image
WARNING: Cocos Creator is still in Beta stage. So a new editor has been launched by the Cocos team today (2nd March 2016), and I planned to check it out for myself. So I downloaded the Mac build from the downloads page . Before proceeding I'll break the Bad News. Cocos Creator as of now ONLY supports JavaScript. (Somehow I've always been prejudiced against JavaScript as something only fit for webpage validation, despite knowing that that is not true). Disappointed, I immediately dropped a message to their FB page, asking whether CPP support is coming soon. Somehow I was worried that JS supports only Webpage/web-view games. Pestered by me, they said it'll come when it's time. And I made peace. So I was back to the editor, and the first thing it asks you is to login to your cocos account. Once you've logged in, it asks you to create/open a project, as shown below: I chose the example collection and proceeded to open the project. I realised

Links to Free/Low Cost Assets for Games

Image
Here are a few links that might help you in acquiring assets for your game development: Music & SFX If you're looking for music or Assets, search for assets that have Creative Commons (CC) license. Here are some links that provide or link to other sites that offer free SFX and BGM downloads. Before you use any asset, double verify that you've read their licenses individually and are providing the necessary credits. (Do also donate where you can :) http://incompetech.com/music/royalty-free/music.html http://www.freesound.org/ http://indiegamemusic.com/ https://www.makeschool.com/gamernews/281/top-20-best-free-music-and-sound-effect-resources http://answers.unity3d.com/questions/7743/where-can-i-find-music-or-sound-effects-for-my-gam.html https://www.jamendo.com/ http://www.pixelprospector.com/the-big-list-of-royalty-free-music-and-sounds-free-edition/ Art Below is a list of sites that provide free/low cost art. Like I said earlier, verify the licenses bef

Unity vs Cocos2d-X: What to choose for 2D Game Development [Outdated]

Image
[This Article is Outdated ] : A newer version is available at th is link : http://indivour.blogspot.com/2016/12/new-cocos2dx-vs-unity-what-to-choose.html A lot of people starting out with 2D game development are often confronted with this Cocos vs Unity question. There are already quite a lot of discussions out there to confuse you. I've been working with both these development platforms for more than 4 years now, so I'll put in my 2 cents as well (to confuse you a bit more ;). Technically speaking, there are lot of differences between both these platforms. In the end though, results matter more than the effort you've put and the path you've chosen. The end result (your game) from both the paths (platforms) can be beautiful (based on your effort). They both are pretty capable platforms with active development and community support. And with the introduction of Cocos Studio, they both provide ease of visual development. Cocos2D-X