Jump to content
  • Advertisement
Sign in to follow this  
Ansman

Choosing a language for my game engine

This topic is 2527 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm writing a game for the iOS platform.

I'm just about to start writing the core game engine, the things that are specific to game logic and not so much the platform itself.
The question is which language do I choose.

Objective-C(++)
I like Objective-C very much and I think it's a beautiful language.

Pros is it's platform native meaning I can use built in types (which in turn means better integration with other components) and it's memory management is awesome.

Cons is it sort of locks me in on iOS/Mac and even though no ports are planned it might be in the future and that it can be slower than C++


C++
I have no trouble writing C++ albeit it is a bit ugly.

Pros are speed and portability seeing as almost every platform supports it.

Cons are the memory management (writing your own Objective-C style memory management isn't hard though) and messier code.

C
No... just no.

---

Any input/suggestions?
Should I write it in ObjC for now and worry about porting later or be on the safe side with C++?

Share this post


Link to post
Share on other sites
Advertisement
It sounds like you're comfortable with Objective-C and you don't currently have any plans to port your game(s) to other platforms. Based on that, I would suggest you go with Objective-C.

Worry about porting if you get to it later on -- even with C++ you'd still have some work to do to port from iOS to another platform, and as you're not currently planning to port this may not be a concern anyway.

Share this post


Link to post
Share on other sites
My advice is to go with objective-c. Not only are you more comfortable with it, but it's generally what a lot of the iOS community uses as well. So searching for information, asking questions on stackoverflow might be more relevant to use the language of choice for that platform.

The benefits for learning C++ would be if you want to use that language for other projects as well. Such as building a desktop 2d game. Though if you target Mac only, you can build desktop games using objective c as well.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!