Im thinking of trying my hand at iphone/pad game development esp opengl (which Ive used for over 10 years)
My Background -
heres some of the games Ive written (excluding commercial games)
http://anarchistsunited.com/games/propaganda/
so Im pretty experienced in a variety of techniques/languages.
A/
One thing I dont know is objective C, now Ive looked at it a little bit and it doesnt seem to click for some reason, this isnt my code, but surely you can write the obj-c function much cleaner (something like the c way),
if so how?
c++ ///////////////
objective c ///////////
B/
I see some ppl have programmed on the iphone with 99% c++ (and just using obj-c to setup the basis) are there any issues with doing it this way?
cheers zed
My Background -
heres some of the games Ive written (excluding commercial games)
http://anarchistsunited.com/games/propaganda/
so Im pretty experienced in a variety of techniques/languages.
A/
One thing I dont know is objective C, now Ive looked at it a little bit and it doesnt seem to click for some reason, this isnt my code, but surely you can write the obj-c function much cleaner (something like the c way),
if so how?
c++ ///////////////
Code:
a = new A[10];
for(int i=0; i<10; i++)
a[i] = whatever;
objective c ///////////
Code:
a = [[NSMutableArray alloc] initWithCapacity:10];
for(int i=0; i<10; i++) {
A *myObj = [[A alloc] init];
myObj = whatever;
[a addObject:myObj];
[myObj release];
}
B/
I see some ppl have programmed on the iphone with 99% c++ (and just using obj-c to setup the basis) are there any issues with doing it this way?
cheers zed
Last edited by a moderator: