Showing posts with label 2DGame. Show all posts
Showing posts with label 2DGame. Show all posts

Gamification and cocos2dx updates


Well that is a nice course on gamificaiton got a good idea how this domain is works and speeding up.

And mean while in the cocos2dx they had released a new version.

I am porting the code to the new version and you can follow it from here
https://paruthidotexe@code.google.com/p/bubbleburstcocos2dx/

you can use mercurial to download and add this project to your cocos2dx solution folder
That is it you check the code and output from there on.

I will have 3 post per week from this point onwards for this cocos2dx tutorial.

cheers,
Paruthi{.exe}

Step 6: Technical Design of the game

Now what we have to do is Technical Design. What are classes we going to use. And how there are linked and interact among them.

We will have Four Scenes
  1. MainMenu Scene
    1. Main menu layer( which has Three Items )
      1. New Game
      2. Options
      3. Quit Game
  2. Option Scene
    1. Option menu layer( which has following Items )
      1. Sound on / off
      2. Music on / off
      3. Full Screen / window mode
      4. Go Back(to main menu)
  3. Game Scene
    1. HUD layer( which has following Items )
      1. Displays score
      2. Menu button
    2. Game layer( which has following Items )
      1. Game logics
      2. Sprites, Effects etc
  4. Game Over Scene
    1. Game over layer
      1. Label (to indicate game lost or game won)
      2. Replay game
      3. Go Back(to main menu)

Game Flow

  1. First we load MainMenu Scene with the Director.
  2. "New Game" will unload MainMenu Scene and load the "Game Scene".
  3. On clicking "Options" will push the "Options scene" over the "MainMenu Scene".
  4. On clicking "Back" in the "Options Scene" will pop the "Options Scene" and display the "MainMenu Scene" again.
  5. When our game is over, we will unload the "Game Scene" and  load the "Game Over Scene

GOTO Tutorial Index

How to develop a 2D game

First question when we want  to develop a game is
Should i write my own game engine?
or
Should i start wit existing game engine?

What to learn or what knowledge you should have?
If you want to create a game engine from scratch you have to learn to code Renderer, Input system, Audio,  Physics, Memory management, etc..
and if you target for more than one platform you have to write/port all these for every platform
or
You have to learn the architecture of the game engine and how to work with the game engine you had choosen.

List of game engines to consider http://paruthidotexe.blogspot.com/2012/08/list-of-game-engines.html

1. I am choosing cocos2dx....  why cocos2dx ?
  • Cross platform Windows, Linux, IOS, Android, Bada, Blackberry, WoPhone etc.
  • Constant updates from the developers.
  • Has various choice of languages for development C++, Java Script, Lua etc.
  •  Lot of successfully published games. A List of games published http://www.cocos2d-x.org/projects/cocos2d-x/apps

So as a first step lets install and learn how to do a game in Cocos2dx

Go to tutorial Index
Tutorials will be posted every 2nd or 3rd day...
Always open to feedback...