Questions regarding flash

Member
Posts: 75
Joined: 2009.01
Post: #1
Hi!
Im pretty new to the apple world.
I've used windows for 8 years and just switched to mac.
I was wondering if it was possible to program and design a game in flash using AS3 and then somehow "convert/switch" that someting you can you use with Xcode and all the good stuff that comes with iphone SDK.

I thought I read somewhere that this was possible? but not widely used as flash is more in the web development area.

If not i'll just have to stick with the info i've collected: ObjC (which I really hate and would prefer something else but i'm assuming it is the language I need to learn to program games for the iphone), openGL ES (still VERY confused about this), openAL (this is like openGL but for sound, right?), and Xcode.
Quote this message in a reply
Moderator
Posts: 3,571
Joined: 2003.06
Post: #2
There's no magic convert/switch technique between flash and iPhone. ... well, at least not as far as I've ever heard, but I'd be pretty effing impressed if there is one! I just spent the last three months converting flash design demos to iPhone, so I'd like to see a good implementation of something like that.

My advice is: Don't hate Objective-C. That's like hating C#. Really not a good mind-set to be in on the Mac, any more than hating C# would be on Windows. You can complain about the funky brackets all day long, but the fact and reality is that it's a great programming language.

OpenAL has nothing to do with OpenGL. They're not anything at all alike (well, maybe just a teeny-weeny bit), even though that seems to be the intention of OpenAL.

My language ingredients for iPhone are approximately: 95% C, 5% ObjC
My approximate API ingredients are: 5% Cocoa Touch, 5% OpenGL, 0.1% OpenAL, everything else abstracted or local code.

That might not make much sense to others reading this (and maybe even a little exaggerated), but really, I hardly do any actual OpenGL calls. Most of my code is local transforms and logic nowadays.
Quote this message in a reply
Member
Posts: 75
Joined: 2009.01
Post: #3
I figured this would be he case Mad

Here's my mind set:
Learn C.
Learn ObjC. (this step should be short after I learn C?)
Learn OpenGL ES.

I've read the sticky above and im the kind of person who needs a yes or no from someone LOL
Am I missing anything to make a game for the iTouch?

Sigh... AS3 was so easy...
Quote this message in a reply
Moderator
Posts: 3,571
Joined: 2003.06
Post: #4
Yes, those look like the steps you'll need to take, although you won't need to master ObjC -- an afternoon's worth of it is probably enough to get by on iPhone if you're mainly doing OpenGL game programming. You just need enough ObjC to access a few important system API calls. C is most important and must be learned first (then tack on some ObjC), and OpenGL has a notoriously steep learning curve which you can get into after you've learned C.
Quote this message in a reply
Member
Posts: 75
Joined: 2009.01
Post: #5
I've read about coreanimation and people seem to dislike it...
But, I thought it my be useful for me so I wanted to ask what are the disadvantages of it?

Would you consider the game "tetris" for iphone 2d or 3d?
Quote this message in a reply
Moderator
Posts: 3,571
Joined: 2003.06
Post: #6
The main disadvantage to CoreAnimation is that it can't perform as well as OpenGL when you want to get into more intensive stuff, which means that with all the time you spend learning CoreAnimation you could just as well learn OpenGL in the first place. Otherwise, yeah, it can be used for basic games. I've tested it myself so I know it's capable of handling at least basic games, although I didn't push it to its limits. Two nice advantages to CoreAnimation is that it takes care of all the timing and tweening for you.

I haven't actually seen Tetris on iPhone so I can't say whether it's 2D or 3D (or even 2.5D).
Quote this message in a reply
Member
Posts: 34
Joined: 2009.01
Post: #7
jeonghyunhan Wrote:I figured this would be he case Mad

Here's my mind set:
Learn C.
Learn ObjC. (this step should be short after I learn C?)
Learn OpenGL ES.

I've read the sticky above and im the kind of person who needs a yes or no from someone LOL
Am I missing anything to make a game for the iTouch?

Sigh... AS3 was so easy...

You forgot an important step:

- Write a game engine that lets you do for the iPhone what was so simple to do in Flash.

That's probably where you'll be spending most of your time. Wink
Quote this message in a reply
Moderator
Posts: 623
Joined: 2007.09
Post: #8
What's with hating Obj-C because of the brackets?

Maybe it's that I started on Obj-C rather than C. Rolleyes

- Lincoln Green
http://www.binkworks.com/
Quote this message in a reply
Post Reply