The Cocos2d-x Programmers Guide

You should really forget about applying OOP paradigms and not trying to model your game after the real world.
Even sticking to plain C can be a much better thing.

Data oriented design is what you want.
If you want a good read on how things are implemented, mistakes you can make, approaches and what should be considered, you should check out those links:
http://cellperformance.beyond3d.com/articles/2008/03/three-big-lies.html
http://www.insomniacgames.com/three-big-lies-typical-design-failures-in-game-programming-gdc10/



http://www.asawicki.info/news_1422_data-oriented_design_-_links_and_thoughts.html

1 Like

Thanks for providing these articles/videos @IQD.

You welcome. Maybe we should create a section, where people can share/provide links to interesting articles/videos.

It would be very interesting how cocos2d-x could benefit from DOD. The Ogre Node redesign showed a speedup of 5x, which was very impressive.

Here are the old instructions: http://slackmoehrle.github.io/B/

Iā€™m working on creating specific Windows instructions for Android development.

What layout approach is best?

Windows
-step1
-step2
-step3

Unix
-step1
-step2
-step3

or

step1
-windows
-unix

step2
-windows
-unix

etcā€¦

Thanks!

I think the first example is the best.
If I want to use Unix/Windows, the Windows/Unix steps arenā€™t important for me.
The possibility is given that they are confusing me.

Thanks Michael.

Yes, even I feel the first example is better

@slackmoehrle
in http://cocos2d-x.org/programmersguide/3/ under Tools for creating Sprite Sheets
you can add great tool im using that is free called ShoeBox
http://renderhjs.net/shoebox/

also i will be happy to know if there is free command like tool for creating Sprite Sheets

I donā€™t know if this is the right place to post a question, though I canā€™t post anywhere else for some reason soā€¦
The guide shows that to set up the project for Windows I have to set ā€œTestCppā€ as startup project, but what i have is:
cpp-empty-test and cpp-tests so wich one should I use? I guess empty

Iā€™ll add it

What is your question though? Are you trying to create a new project?

You can use the cocos tool to do this, then build it with the instructions you are using substituting your new project in place of cpp-tests, cpp-empty-test

@2Noob4ThisWebsite
cpp-tests is the project that contains all the examples
set this to be the startup project and hit F5 ( compile and run )

Ok I feel if you want to check out Chipmunk complete usage you can check the game, http://codecanyon.net/item/hill-climb-bike-chipmunk-physics-game-cocos2d-x/9997328 you can get good understanding on how chipmunk physics can be used easily.

guysā€¦
I donā€™t see chapter 6 and 7 there.
Is there a guide to implement cocos studio scene file into cocos2d-x?
I am confuse seeing the cpp-tests code in Extension folder, especially SceneEditorTest.cpp
Please add guide to use cocos studio scene file, armature and ui, along with its libraries needed to run.
Thank you very much.

Chapters 6 and 7 are at http://slackmoehrle.github.io.

I stage here for a bit before I move live to http://cocos2d-x.org/programmersguide

Iā€™m planning to move a whole new version live Tuesday 2/17!

Ty, ty very much slackmoehrle.

Where can I have more info abt itā€¦ I am not able to find on net!!
Help me

Packt Publishing has cocos2d-x books.

I feel the quality of the book varies greatly depending upon author. Also, there are not many covering 3.x.

One of our users here wrote a book I actually think is good. I was going to buy a printed copy next time Packt offers me a discount code. @siddharthshekar care to comment? :slight_smile:

  1. hahaā€¦ Iā€™ve read that bookā€¦ It is updated tp v3.x a few while back only but I already had read thatā€¦
    Noā€¦ I am not asking specifically from you but from the whole community.

  2. The book I told is v3.x which can be a very nice start.

  3. Also, sonarsystems have one book but it is very very naive and not usableā€¦ because the game taught is extremely basicā€¦

But I am unaware of other books if there exists any!! :stuck_out_tongue:

Time to write our own :wink: