Y
Y
Yaroslav Losev2012-02-26 17:54:29
iPhone
Yaroslav Losev, 2012-02-26 17:54:29

Literature Cocos2d-x?

I wanted to get into game development, I chose the Cocos2D-x engine. There was a desire to read something on this topic besides documentation ... But unfortunately I did not find anything, only books for Cocos2d-iphone. It’s embarrassing that Cocos2d-x has C ++ language, and Cocos2d-iphone has Obj-C, so I’m afraid that the compiler (Cocos2d-x offers Windows MS VS as a base environment) will swear at Obj-C syntax.
And I would also like to know if the Cocos2d-x and Cocos2d-iphone code are compatible in terms of if, for example, I take some piece of code from Obj-C (cocos-iphone) and simply “translate” it into syntax in C ++ ( cocos-x)e
Thank you in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vitaly Zheltyakov, 2012-02-26
@VitaZheltyakov

It is unlikely that you will find anything other than poor official documentation - this is a well-known big minus of Cocos2d.

M
m08pvv, 2012-02-26
@m08pvv

www.raywenderlich.com/tag/cocos2d

Q
Qbit, 2012-03-06
@Qbit

> It's embarrassing that Cocos2d-x has C++, and Cocos2d-iphone has Obj-C, so I'm afraid that the compiler (Cocos2d-x offers as a base environment for Windows MS VS) will swear at the Obj-C syntax.
You don't need to be able to write in Objective-C, it's enough to be able to read it. A review article on Wikipedia and a comparison of examples of calling the Cocos2d API in Obj-C and C ++ is enough to master the syntax of Obj-C in a minimal amount.
After that, it is quite possible to read books about Cocos2d-iphone, and do interlinear translations of examples in C ++.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question