A very easy manner of making animation using sprite image in Corona lab. A sprite is largely a ground of pictures composed into one huge image, where every item represents a inclose timeline. By enjoying these frame one by one in no time, we have a tendency to produce an illusion of animation. Well, that is the same Persistence of Vision the factor the primary Projectors accustomed to work on…
Its necessary to grasp the various parts of your game and what goes where! For the foremost part, you’ll be coping with layers (CClayer class) adding nodes, sprites, animations etc to that. this is often wherever the magic happens. however its conjointly necessary to comprehend that each one of this happens on one android Activity (a page) that is your primary access purpose to the android OS context. All the screen changes are all done by the CCDirector category that swaps in (and out) completely different scenes and layers. Continue Reading ->
Before you proceed, it would help if you understood The Anatomy of a Cocos2D for the android Game.
We will be looking a step by step guide a way to develop an easy game from scratch – variety slider puzzle game. the game logic is easy. we are going to provide players a scattered 3X3 matrix slider puzzle and their task is to properly set up the numbers so as of accelerating magnitude. we conjointly keep track of the quantity of your time accustomed to complete the task.
Lets get started…
- Download Cocos2D-android library from Github
- Download Eclipse IDE for Java Developers
- Download the Android SDK , and Install the Android Developer Tools (ADT Plugin) by following this tutorial by Google
- Setup an Android Virtual Device (AVD) Simulator for testing. 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. Detailed information on testing android applications using an actual android device such as an android tablet pc or mobile phone can be found here.
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..