IPhone Games

It is best to program the game for the iPhone in Objective-C or C ++.
What language should the game be written in, for example Flight Control? In what format should the graphics be displayed in order to correctly display and load quickly on the iPhone?

+3
source share
6 answers

Games, such as Flight Control, are usually written in Objective-C with some C calls to OpenGL and other C APIs. Graphics can be saved in PNG or JPEG. I would stay out of C ++ if I didn’t have to use any C ++ code or have developers with good knowledge of C ++. In my experience, a bottleneck is rarely found in the language, so you have nothing to win by switching to C ++.

+5
source

You cannot avoid using Objective-C or Objective-C ++, because of the many APIs you will have to interact with. Regardless of whether you use C ++ for the core of your game, the experience and tools of third-party developers that you plan to use largely depend.

++, , — ; C. , ++ , , Objective-C. , , , .

, , ++ - . , .., . , / Objective-C PITA, ++ RAII.

WRT, . PNG , . iPhone. .

+3

Objective C Objective ++. API Apple .

, C, Core Graphics OpenGL.

+2
+1

, , , , - #. MonoTouch - , , MonoTouch Unity framework iPhone .

, "" ( ...)

# (, Droid) . C , Apple. AppStore - iPhone4 iPad, Android , , ...

. Android.

= . , Objective C ++, ...

0

.

++ Objective C, , Objective C iPhone.

My background is "gasp" COBOL85 (among other secret languages). I would prefer that someone already speaks fluently about the iPhone apps in the game, but I would suggest that the development costs will make this a bit prohibitive. I have a request to participate in the tender with a "pseudo-code" if someone out there wants to see it and give a quote. Meanwhile, there seems to be no benefit for C ++ Ken clean37@hotmail.com

0
source

Source: https://habr.com/ru/post/1750779/


All Articles