Are C and Objective-C sufficient for creating games on the iOS?

  • Are C and Objective-C sufficient for creating games on the iOS? Chiron

    These days, I'm focusing on games development on the iOS.
    C++ is the lingua franca for games development but seriously, I prefer to code in C programming language, not in C++.

    So for iOS games development, are C and Objective-C sufficient for creating games?

  • Yes. There are numerous iOS games made with only these languages. C++ is optional if you absolutely need it.

  • the only real restriction you have while developing for iphone is the sdk apple released for iphone. other than that you will mainly use OpenGL and OpenAL which are both pure C code. in some cases you might want to use some c++ libraries (like box2d) but there are equivalents both in C and Obj-C.

    so every game you release for iphone should at least have some obj-c codes to load your application and to do some basic file read/write things, other than that you are free to use pure C, Obj-C or C++ or even a combination of those languages.

    also as jasconius said there are many games written and published using only Obj-C. there is even a opensource gameengine named cocos2d-iphone out there that powered many iOS games so far.

c++ software-engineering objective-c c
Related questions and answers
  • When it comes to mobile game development on iOS and Android NDK, some developers write their own C++ containers, while others claim that STL is more than adequate for mobile game development (For example, the author of iPhone 3D Programming uses STL rather than Objective-C in his examples. His defense is that STL is no slower than Objective-C). Then there are also mobile developers who abandon C++ entirely and develop games entirely (or mostly) in the C language (C89/C90). What are the benefits and drawbacks of each approach?

  • I have a good grasp in C++ and C and have also experience developing AAA game using C++. Now, I'm shamelessly thinking to dive into mobile game development either in iOS or Android. Unfortunately, I don't know objective-C and java and neither have courage to learn it. So, As above mentioned reason, Is there any possibility to do mobile development in C++ without using any single statement of JAVA and Objective-C ?

  • So being a primarily c/c++ developer, I've always thought that the only option for mobile game development for me was using iOS, which allows for c/c++ (and minimising objective C). I heard from a friend though, that android has a native development toolkit which allows for c++ code to work on android. Has anyone used this, and if so, how do you find it? I mean, will it "just work" like iOS, or are there more considerations that need to be taken care of due to the wide variety of android devices available?

  • I've read a couple posts on the subject and it sounds hairy. But I think people are talking about using STL containers for Objective-C objects. I'm using pure C++.

  • What is the best cross-platform game engine, being the most commercially supported, there is for free available for development on Linux? I'm planning on creating multiple, non-commercial, fps games to gain real industry experience in C++ game development.

  • I've been a software developer for 5 years, now, and I am wanting to get into iOS game development. I've played around with the iOS SDK for about 2 years, attending cocoaheads meetings, and I feel I have a good grasp on objective-c, cocoa and even c and c++. I have a game idea, and know that I will use Box2D, but I'm wondering if I should use cocos2D or not. The main reasons are: I may want to do things, graphics wise, that aren't available in cocos2d. If I roll my own game engine, I'll have more control. Of course, the main reason for using an already-existing game engine is the time

  • of wasting it on incorrect approaches. I use Softimage as my 3D authoring tool. Target platform is OpenGL ES 2.0 running on mobile devices (iOS, Android). Programming language: C++. ...After careful consideration to use middleware, I have decided on creating my own 3d file format format to export meshes from 3D authoring application (Softimage) into my game. I will need to export... intelligence, aggressivity, etc..) ..another assets.. Can I kindly ask for a hint, how to construct my custom file format. How to organize data within my files, please? Does anoybody have a good adivce

  • I'm pretty confident programming in Objective-C and C++, but I find Objective-C to be somewhat easier to use and more flexible and dynamic in nature. What would be the pros and cons when using C++ instead of Obj-C for writing games in iOS? Or rather, are there any known problems with using Obj-C as compared to C++? For instance, I suspect there might be performance issues with Obj-C compared to code written in C/C++.

  • I'm trying to figure out which language I should begin learning. I've only been programming for about 6 months, with languages like PHP, Java, and C#. I want to learn how to dev games, and while I know in most cases the answer to this would be through C++ (at least, I would think), though I'm still curious about what Objective C can offer in the sense of long term benefit. It seems like there's a chance that Objective-C may actually become more popular than C++ in a few years, and for all I know, it may become the de facto standard development language for games. Still, despite all

Data information