Category Archives: Objective C

Bezier Curve functions for cocos2d

I needed to draw a curve tonight in cocos2d. The Primitives file has a few basic OpenGL based drawing methods, but no curves. So I created these two methods: [c] #import #import #import #import void drawQuadBezier(CGPoint origin, CGPoint control, CGPoint … Continue reading

Posted in iPhone, Objective C | 4 Comments

Fix for cocos2d color banding

In my first tutorial, I brought up an issue with color banding in gradient pngs used in Sprites in cocos2d. I mentioned a hack that I was using that involved changing a line in the Textures2D class. But I just … Continue reading

Posted in iPhone, Objective C | 8 Comments

Cocos2d – Part 4: Menus and Transitions

Menus OK, let’s talk menus. Because some people might have a preconceived idea of what a menu is, let’s define it in this context as a collection of visual items that can be tapped on to make a choice. This … Continue reading

Posted in iPhone, Objective C | 22 Comments

cocos2d Tutorials – TOC

Might as well gather these all together in one spot. Part 1 Part 2 Part 3 Part 4 More to come.

Posted in iPhone, Objective C | 7 Comments

Cocos2d – Part 3

Let’s make things move. If you’ve read my books or seen me speak, you’ll know I love balls. By which, I mean that I love to make circular objects for the purpose of demonstrating basic motion concepts. So I made … Continue reading

Posted in iPhone, Objective C | 22 Comments

Cocos2D – Part 2

I wanted to go a bit more into the base classes of the framework. So far we’ve seen a bit of scenes and sprites. Let’s look at one of the most important base classes, CocosNode. CocosNode is “the main element. … Continue reading

Posted in iPhone, Objective C | 13 Comments

Cocos2d – 2D OpenGL for the iPhone made Easy. Part 1.

[NOTE: I checked the cocos2d source out through svn, which I discovered gives you version 0.8. If you download the source, it looks like the latest version available is 0.7.2. I’m not sure how many differences you’ll run into, but … Continue reading

Posted in Flash, iPhone, Objective C | 26 Comments

Creating Lite Versions of iPhone Games / Apps

Another one of those, “I’m going to post it so I know where to find it next time” posts. 🙂 This was largely taken from a post at the iPhoneDevSDK forums, but I’ve clarified a few things, handled a few … Continue reading

Posted in iPhone, Objective C | 22 Comments

Flash on Tap Workshop: From Flash to iPhone

As mentioned, I’ll be doing a workshop at the upcoming Flash on Tap conference here in Boston. The name of the workshop is “From Flash to iPhone”, which gives you a pretty good idea what we are going to cover. … Continue reading

Posted in Conferences, Flash, iPhone, Objective C | 10 Comments

Evolution / De-Evolution Part 2

My last post was intended to be pretty tongue-in-cheek, but I’m guessing that a lot of people won’t get my dry humor, so I better explain. First of all, I wasn’t complaining about Objective-C or saying there’s anything wrong with … Continue reading

Posted in ActionScript, General, iPhone, Objective C | 14 Comments