★ TouchArcade needs your help. Click here to support us on Patreon.

Getting started

08-31-2009, 12:09 PM
#1
Joined: Mar 2009
Posts: 7
Getting started

Well, I've spent a good amount of time studding Apples API and learning Objective C. So should I just build my game engine in full Objective C and then later on convert the higher level data structures into C or C++ as needed? I'm going to be building a scene graph and a BSD/Octree data structure... Thanks
09-01-2009, 10:41 AM
#2
Quote:
Originally Posted by MrRage View Post
Well, I've spent a good amount of time studding Apples API and learning Objective C. So should I just build my game engine in full Objective C and then later on convert the higher level data structures into C or C++ as needed? I'm going to be building a scene graph and a BSD/Octree data structure... Thanks
Yes. The only reason to convert to C++ would be for portability, and C for some data structures that don't work well as objects and for OpenGL stuff.

I've seen some dire statements about the speed of Objective-C, but I haven't run into any problems myself. Just don't put yourself in a situation where you're creating and destroying thousands of objects a second.
09-01-2009, 12:22 PM
#3
Joined: Mar 2009
Posts: 7
Quote:
Originally Posted by smasher View Post
Yes. The only reason to convert to C++ would be for portability, and C for some data structures that don't work well as objects and for OpenGL stuff.

I've seen some dire statements about the speed of Objective-C, but I haven't run into any problems myself. Just don't put yourself in a situation where you're creating and destroying thousands of objects a second.
Cool thanks a lot, I'll keep that in mind when I'm building my apps.