Kobold2D v1.0.1 now available!

On December 15, 2011, in Kobold2D, by Steffen Itterheim

Kobold2D v1.0.1 is now available from the Kobold2D Download page or via github! You’ll find the Release Notes in the usual place.

The most important new features are:

Almost all bugs reported so far have also been squashed. Mainly several fixes related to KKInput, a crash with CCMenuItem* and blocks and an issue that caused Retina mode not being properly enabled.

A few minor convenience methods have also been added, for example CCDirector now has a continuously updated frameCount property that returns the number of frames drawn since the app started, and KKInput now has the anyTouchLocation property if you just want the touch location of any (the) finger on the screen.

Kobold2D: Polling User Input with KKInput

On September 15, 2011, in cocos2d, Kobold2D, Programming, by Steffen Itterheim

Kobold2D is about solving annoying, recurring problems, or simply making all things Cocos2D more convenient. The new KKInput class does both! (*)

Continue reading »

Kobold2D: Upgrading your Projects is easy!

On September 3, 2011, in cocos2d, Kobold2D, tools, by Steffen Itterheim

A couple months ago I wrote a tutorial explaining how to upgrade Cocos2D in an existing project.

I was able to cut the description down to only five concrete steps, but there’s still a lot of text to follow and caveats to consider. I designed Kobold2D exactly to make it easy to solve the issue of upgrading projects to newer versions of the game engine.

Continue reading »

Tagged with:  

My eBook’s being pirated. I’m taking advantage of that.

On December 6, 2010, in book, cocos2d, Marketing, by Steffen Itterheim

Discuss this topic on Cocos2D Central.

My Learn iPhone and iPad Cocos2D Game Development book is out and that inevitably meant it would appear on websites offering download links to illegal copies of the book.

Since there’s really nothing that can be done about it that actually works, and because I understand (but not necessarily condone) the reasons for downloading ebooks illegally, I wanted to take a different stance. And so I’m posting my thoughts on the matter on forums and websites, where a link to an illegal download of my ebook is shared.

That way, I hope to convert a minority of the downloaders to buying customers. But my actual goal is to use their websites as marketing instruments. Shamelessly placing my links on their websites and asking their users to come here is just fair and square. If they enable illegal downloads the very least they can do for me is to allow me to enable users to more easily come here, or on rare occassions to actually buy the book. Who said that illegal downloads can’t also be a mutual relationship?

Here’s what I’ve been posting to “warez” and “free ebooks” websites offering downloads or download links of my book:

My Response on Illegal Download Sites

I’m Steffen Itterheim, author of the Learn iPhone and iPad Cocos2D Game Development book.

I see that my book is offered here for download illegally, either directly or via linking to an externally hosted file. I wanted to share my thoughts on this matter.

1) I’m not offended, disappointed or furious.
Why should I be? It’s to be expected. I’ve been working long enough in the software industry to have come to accept piracy as something that shouldn’t affect you at all.

2) I don’t judge you.
A lot of people download(ed) things from the Internet that they shouldn’t have. For some, it’s part of their culture. For others, it’s the only way to take part in a world that they couldn’t otherwise afford to join. For a few, it’s simply a hobby, or a habit. Some claim it’s for research and trying things out before buying, but quite honestly I think they fall in one of the aforementioned categories. Or they’re merely being pragmatic about their spendings, cutting corners where they can.

3) I won’t lecture you either.
Piracy is a fact. It’s not even a market because if piracy wouldn’t exist, most pirated products wouldn’t be selling noticeably better anyway. Only very few pirates would ever buy a product they downloaded.

Those are my convictions on piracy. I think it’s pointless to complain about piracy, and it would be especially stupid of me if I did so in the lion’s den, so to speak. :)

I’m a realist. I understand that some percentage of you will download the book just to have it. You’re the collectors, you may skim over the book before you set it aside in your amazingly well-assorted, categorized archive of eBooks. Enjoy it. Then there’s a percentage of you who download the book on a hunch that you might need it soon, or that it might spark your interest (again) in game development or programming for iOS devices. You probably wouldn’t buy it either. Except for a select few for whom the book did spark a flame – but how could you know beforehand?

To everyone else who truly want to read the book, I can only encourage you to buy the book in hindsight, after the fact. I know it costs quite an effort to pay for something you have already used, or read in this case. I still hope some of you will, I’d be grateful for that.

And what I’d really like you to do, regardless of where you got the book from and what your intentions are, is to stop by and visit my website Learn & Master Cocos2D Game Development:

http://www.learn-cocos2d.com

I also want to make it very convenient to those who *might* consider buying the book, to actually do so. I know that one aspect of piracy that shouldn’t be neglected is merely convenience. So for that reason I’ll give you the links that lead you to Amazon and other websites all around the world which carry the book, as well as links to eBook versions of the book The Learn iPhone and iPad Cocos2D Game Development:

Purchase the print book via Amazon:

Amazon.com (United States)
http://www.amazon.com/Learn-iPhone-iPad-Cocos2D-Development/dp/1430233036/ref=sr_1_1?ie=UTF8&s=books&qid=1284664414&sr=8-1

Amazon.ca (Canada)
http://www.amazon.ca/Learn-iPhone-iPad-Cocos2D-Development/dp/1430233036/ref=sr_1_1?ie=UTF8&s=books&qid=1284664526&sr=8-1

Amazon.co.uk (United Kingdom)
http://www.amazon.co.uk/Learn-iPhone-iPad-Cocos2D-Development/dp/1430233036/ref=sr_1_1?ie=UTF8&s=books&qid=1284664462&sr=8-1

Amazon.de (Germany)
http://www.amazon.de/Learn-Iphone-Ipad-Cocos2d-Development/dp/1430233036/ref=sr_1_1?ie=UTF8&s=books-intl-de&qid=1284664401&sr=8-1

Amazon.fr (France)
http://www.amazon.fr/Learn-Iphone-Ipad-Cocos2d-Development/dp/1430233036/ref=sr_1_1?ie=UTF8&s=english-books&qid=1284664539&sr=8-1

Amazon.co.jp (Japan)
http://www.amazon.co.jp/Learn-iPhone-iPad-Cocos2D-Development/dp/1430233036/ref=sr_1_1?ie=UTF8&s=english-books&qid=1284664550&sr=8-1

Purchase the eBook:
From Apress (PDF): http://apress.com/ecommerce/cart?act=add&bid=1524
NOTE: the Apress PDF eBook has no DRM, it is not copy-protected or password-protected. It’s probably the exact same file that is being shared here.

From Amazon (Kindle): http://www.amazon.com/Learn-iPhone-Cocos2D-Development-ebook/dp/B004E0Z4YY

I hope you understand that if you offer my book for download illegally, it’s just fair to reply to that with promotion of my websites and making it a bit more convenient for the few people who tend to download books exactly because it’s convenient. At least this way I’m getting something positive out of it.

Thank you for your time and for allowing this message to be posted.
Steffen Itterheim

Tagged with:  

Cocos2D Xcode Project on Github

On November 4, 2010, in cocos2d, tools, Xcode, by Steffen Itterheim

My Cocos2D Xcode project is now on Github. Open-source, free, properly MIT Licensed, includes the rootViewController and supports Cocos2D v0.99.5 rc0.

I’m also working on (with) a greatly enhanced version of the Xcode project. It integrates wax (Lua) and a Game Object Component System that i termed “gocos”. Also comes with a lot more useful convenience classes.

But the big idea is to actually upload (or link within github, if I can figure out if and how that works) all dependent projects into one repository, so that you can download everything at once and it works out of the box. Currently there are 3 projects referenced by cocos2d-project: gocos (let’s call it a library of convenience and gameplay code for Cocos2D), wax (Lua support) and obviously cocos2d-iphone. So everything that’s needed is going to be bundled in one big package, which voids all of the version incompatibility issues.

You can still experiment with different versions of these libraries but in that case I think you know what you’re doing and that issues are to be expected. But being a github repository, you can of course clone and commit changes.

Appetizer

Here’s what I’ve done with Lua. I’m currently using it only as a better plist replacement for settings. It’s better than plist because you can comment on each item, you can sort them easily, you can run functions and algorithms to generate values or load additional data, and in general it’s a lot easier to work with than the plist editor. Here’s a reduced config.lua that is loaded at runtime into a hierarchy of NSDictionary objects:

[cc lang=”lua”]
local config =
{
AccelerometerControls =
{
UpdatesPerSecond = 60, — 60 Hz
Responsiveness = 0.997,
SensitivityX = -2,
SensitivityY = 2,
MaxVelocity = 100,
},
}

return config
[/cc]

And this line of code loads these values and assigns them to the correspondingly named properties of the target class:

[cc lang=”objc”]
[Config loadPropertiesFromKeyPath:@”AccelerometerControls” target:self];
[/cc]

That’s all you need to do to transfer the values from config.lua into a class instance. Huge timesaver! The only drawback is that it currently can’t differentiate between float, int and bool (due to NSNumber), so it currently only supports float properties.

Tagged with: