What language/api should I use? - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Tools & Technology (/forum-10.html)
+--- Thread: What language/api should I use? (/thread-7126.html)
What language/api should I use? - cheez0r - Apr 25, 2003 06:33 AM
Being new to mac, but not all that new to programming, specifically C++, I wanted to learn how to create a game for the mac by doing.
I plan on making a 4X Space Game [I've been playing Galactic Civilizations on my PC, and just need a game like that for my mac ;P] so I decided to do that while learning programming.
My question is... what API and Language should I use?
I want to use OpenGL, so I was thinking of using Cocoa and Obj-C, but is this a good solution? I realize with Cocoa, it'll only work on OS X, but I don't really care about that... it's a learning project after all.
Or should I stick to something C++ish? I just basically want to know, what's a good hting to know for the ffuture?
What language/api should I use? - OneSadCookie - Apr 25, 2003 06:38 AM
Cocoa/ObjC is by far the most efficient way to make GUI programs on the Mac. If you want an immersive full-screen experience, though, Carbon is probably easier.
What language/api should I use? - cheez0r - Apr 25, 2003 07:02 AM
well most likely, i'd like to make it a Window-able, but mainly fullscreen game...
I'm assuming Carbon WOULD be better than, but would I use C++ or Obj-C?
What language/api should I use? - Carlos Camacho - Apr 25, 2003 08:48 AM
OSC, didn't you write an article on this subject on this site?
What language/api should I use? - cheez0r - Apr 25, 2003 10:12 AM
Reading that Article, I don't find my solution
What language/api should I use? - skyhawk - Apr 25, 2003 10:28 AM
Quote:Originally posted by cheez0r
for carbon you would use C++. If you used Cocoa, you would have the option of not only using Obj-C but also C++.
What language/api should I use? - cheez0r - Apr 25, 2003 10:34 AM
Cocoa seems more geared towards windowed applicatoins that use mac os x controls for the GUI correct?
I'd like to use cocoa cause it sounds neat, and is 'newer' than carbon, but on ther other hand, if there's no point to using cocoa on a fullscreen app, then i might aswell not.
oh well. i'll figure something out
Is either any easier with OpenGL?
What language/api should I use? - skyhawk - Apr 25, 2003 10:47 AM
I have found Cocoa EXTREMELY easy to use in conjunction with OpenGL. Which is why I use Cocoa and OpenGL for all my games now
What language/api should I use? - cheez0r - Apr 25, 2003 10:55 AM
do you find yourself ainly using Obj-C or C++? Or do use what i've seen referred to as "Obj-C++" ?
The reason I'm asking, I just want to see how much 'learning' i'm in for heh.
What language/api should I use? - Josh - Apr 25, 2003 11:06 AM
Quote:Originally posted by cheez0rIf you already know C++, then I don't think Objective-C will be very hard for you to learn. All the code I have seen that uses Obj-C++ is very, how shall I say it, messy. It seems like the whole reason to use Obj-C is to have an object oriented language that is not C++ so why someone would want to mix the two, I don't know.
What language/api should I use? - cheez0r - Apr 25, 2003 11:22 AM
Yeah, as strange as it is, I WANT to learn Obj-C and just use it... but I don't want to cripple my programs. From the looks of things, if I wanted to ues Cocoa and Obj-C [and using OpenGL], i'd be fine.
What language/api should I use? - skyhawk - Apr 25, 2003 11:31 AM
Quote:Originally posted by jabber
HEY! my program is very organized and pretty (well as far as I go). My only complaint is that it takes at least twice as long to compile. ugh, I'm hating this 30 second compile time. if you have one of those spiffy new computers that can compile in seconds.... well... I just hate you :envy:
What language/api should I use? - OneSadCookie - Apr 25, 2003 02:19 PM
I have a dual 867, so I can compile two ObjC++ files simultaneously, and it's still mind-bogglingly slow!
What language/api should I use? - Mars_999 - Apr 25, 2003 06:12 PM
Quote:Originally posted by OneSadCookie
OSC if you wouldn't mind, send me a project that you have that has ObjC++ and a time for it to do a complete compile from scratch. I will time it on my Dual and post the difference. I am curious to see how much difference their is between our systems?
What language/api should I use? - OneSadCookie - Apr 25, 2003 06:48 PM
I don't have any ObjC++ projects, the couple of times I tried it it was too slow to compile so I just used C instead of C++, and the other times I've compiled ObjC++ have been as help for forum members here.