Home › Forum › Learning iPhone Game Development with Cocos2D 3.0 › FAQ: Please Read this First
Tagged: book, CCSpriteBatchNode, Chapter 12, cocos2d-iphone, cocos2d-swift, faq
- This topic has 1 reply, 1 voice, and was last updated 10 years, 3 months ago by Kirill Muzykov.
-
AuthorPosts
-
September 19, 2014 at 11:27 am #328Kirill MuzykovKeymaster
Here are some of the Frequently Asked Questions about the book:
1. Where can I get Chapter 12?
First of all here is the link:
https://www.packtpub.com/sites/default/files/downloads/0144OS_Chapter_12.pdfUnfortunately, there was a page limit for this book. Otherwise it would fall into a different printing category, with a different price and so on. So instead we decided to make Chapter 12 (which is quite big) as a separate downloadable chapter. Good news, is that the book price stayed the same and I had no limitation on adding screenshots in this chapter!
The link to download Chapter 12 is given in Preface of th ebook, but I guess some people missed it, so I decided to add this information to FAQ.
2. CCSpriteBatchNode is Deprecated
It means that you’re using a newer version of Cocos2D-Swift (e.g. v3.2). I would recommend getting Cocos2D v3.0 and use it while you’re completing the code from the book.
After you finish the book it will be very easy to switch to the newest version of Cocos2D, but when you’re only learning it is quite hard to keep even those minor differences in mind. Believe my experience, I’ve been switching to the newer Cocos2D versions starting from v0.99 and never had any issues that couldn’t be solved by reviewing “What’s new” section or googling for 2 minutes. And there were a lot more significant changes than those from v3.0 to v3.2.
But why CCSpriteBatchNode is deprecated?
In cocos2d v3.2 you don’t have to add sprites from the spritesheet to a CCSpriteBatchNode for batching to work. Sprites are batched automatically when they share a texture, blending mode and shader settings.It means you can just add sprites to the scene directly or replace the CCSpriteBatchNode with a simple CCNode in case you still want to keep the hierarchy.
If you want to know more you can read the following thread on Cocos2D forum:
http://forum.cocos2d-swift.org/t/ccspritebatchnode-is-deprecated-in-v3-1/14216/63. I found a bug, typo,…
Well, that’s sad 🙁 We really tried to create a perfect book. However, if you did find a bug please check if it wasn’t reporter and fixed earlier using this link:
https://www.packtpub.com/books/content/support/16966If you can’t find it there please create a topic on this forum. Thank you!
- This reply was modified 10 years, 3 months ago by Kirill Muzykov.
- This reply was modified 10 years, 3 months ago by Kirill Muzykov.
- This reply was modified 10 years, 3 months ago by Kirill Muzykov.
May 13, 2014 at 12:30 am #122Kirill MuzykovKeymasterThis topic will contain Answers to Frequently Asked Questions.
- This topic was modified 10 years, 7 months ago by Kirill Muzykov.
- This topic was modified 10 years, 3 months ago by Kirill Muzykov.
-
AuthorPosts
- The forum ‘Learning iPhone Game Development with Cocos2D 3.0’ is closed to new topics and replies.