Quote:
Originally Posted by mylesb
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 *