abitofcode

July 5, 2012
by Chris
21 Comments

Cocos2d – useful tools

Three years ago there was a dearth of tools for cocos2d development. It’s a lot better now. This is not a comprehensive list of all the tools out there but covers the ones I’ve tried and found useful. If you’re … Continue reading

May 9, 2012
by Chris
5 Comments

Cocos2d – Getting started

The following is a list of links and resources that should make finding your way around Cocos2d a little easier. Beware of older code examples and tutorials when looking for help, a lot changed between Cocos2d v0.82 and v1.0 including … Continue reading

April 30, 2012
by Chris
7 Comments

CCRenderTexture category – percentage complete

Here’s a Category to return the percentage of a CCRendertexture that is transparent i.e what percentage of the pixels have an alpha value of zero. Question originally asked on cocos2d forum. I’ve thrown together a quick example project where a … Continue reading

July 8, 2011
by Chris
4 Comments

Simple interactive depth of field effect

Writing the Irregular touch detection post brought to mind another Lingo/Flash workaround that makes use of Photoshop. The effect is a depth of field that can be adjusted between the foreground and background without having to apply any sort of … Continue reading