View Single Post
Old 05-23-2010, 03:30 PM   #12
LaunchingPadTim
Launching Pad Games
 
Join Date: Apr 2010
Location: Wellington, New Zealand
Posts: 11
Default

Quote:
Originally Posted by mylesb View Post
What do you mean makes it harder?
It's not that Objective-C can't be made to do adventure-gamey type things, there's just a lot of typing required and the syntax makes scripting... well, awkward, even when I do my best to simplify matters.

A good example is the creation of arrays, say an array of strings. Where in Python or Ruby I can write:
Code:
flowers = ['Rose', 'Petunia', 'Orchid']
In Objective-C the very least I can get away with writing is:
Code:
id flowers = [NSArray arrayWithObjects: @"Rose", @"Petunia", @"Orchid", nil];
As you know, in an adventure game you're dealing with arrays and especially strings a lot, and all that typing and those syntactical marks are wearying.

Code:
@ [ ] ( ) NSArray " " retain release *
LaunchingPadTim is offline