Why you use game engines ……..

Gaming engines are software frameworks which provide/simplify repeated used features in games such as transitions, animations, sound, physics, flow control, text rendering, surface rendering etc. When we set out to create games, we want to focus more on the game logic, game experience and storyline … rather than dwelling on how to animate the tile across the screen. Examples of gaming engines include Adventure Game Studio (C++), Agate lib (.NET), Allegro (C), Cocos2D (Python) etc.

Cocos2d is an open source framework for building 2D games, demos, and other graphical/interactive applications. Originally developed using python, some of its main features(also supported by many other game engines) include :

Flow control : Manage the flow control between different scenes in an easy way
Sprites : Fast and easy sprites
Actions : Just tell sprites what you want them to do. Composable actions like move, rotate, scale and much more
Effects : Effects like waves, twirl, lens and much more
Other features include Tiled Maps, Transitions, Menus ,Text Rendering , OpenGL based and aBuilt-in Python Interpreter..

Why choose Cocos2D for Mobile Game Development ???

Cocos2D is the crossplatform ports available, ease of use (I was able to get familiar with it and modify the libraries in a couple weeks), and its demonstrated power/quality. Regarding power, there are a list of popular mobile games developed with cocos2D.

Cocos 2D for android is a port of the Cocos2D-iphone essentially written in Java. The porting process is supported by a small/young open source community (November 2010) and aims to port latest cocos2d-iphone code, to the android platform. Main features currently achieved include : Flow control, Sprites, Maps, Transitions, Menus, Text Rendering, BSD License, OpenGL Based: Hardware Acceleration. An updated version of the project is managed by ZhouWeikuan and can be downloaded from the project’s download link on Github .

setting up your first Cocos2D for android project .

 

[notify_box font_size=”18px” style=”green”]Checklist….[/notify_box]

  1. Download Cocos2D-android library from Github
  2. Download Eclipse IDE for Java Developers
  3. Download the Android SDK , and Install the Android Developer Tools (ADT Plugin) by following this tutorial by Google
  4. Setup an Android Virtual Device (AVD) Simulator for testing .
  5. In Eclipse, choose Window > Android SDK and AVD Manager. Select Virtual Devices in the left panel.Click New.The Create New AVD dialog appears.Type the name of the AVD, such as “my_avd”.Choose a target. The target is the platform (that is, the version of the Android SDK, such as 2.1) you want to run on the emulator. It is recommended to use Android 2.1 and above for Cocos2d development.
  6. Detailed information on testing android applications using an actual android device such as an android tablet pc or mobile phone can be found here .

 

Goto Part 2.