Author Topic: What does it involve to put a flixel game on iOS?  (Read 3174 times)

Philoski

  • Member
  • **
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Well, this post is going to come off major noob and possibly ignorant, but I am a major noob and don't quite get what the flixel iOS port means.

What does flixel iOS actually do? Can you make a flixel game with AS3 and all the tools you use on a computer and just compile it as an iPhone game (If that makes sense?) or does it just let you use the framework (I still don't quite understand what flixel as a framework even means) on iPhone but doesn't let you program with AS3 because I read somewhere that on iPhone you have to program in Objective C?

I don't know...

Sorry that this post is a bit incoherent but it's because I barely understand what I'm talking about so it's hard to ask the question in a way that makes sense.

Feel free to point me to some necessary reading material. :P

initials

  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.
Re: What does it involve to put a flixel game on iOS?
« Reply #1 on: Sun, Jun 12, 2011 »
Using Flash CS5 you can take an actionscript flixel game and export for iPhone. It's possible, but not advisable. My experience is that it's super slow. Although there was a post somewhere here about a game that was done this way and was headed to the app store. I can't find the link to that game, can't really remember, but it's around.

Now, there are two flavours of flixel. One for actionscript, one for iOS. If you want to see the difference between the two, it might be best illustrated with FlxInvaders.

Here is the Actionscript 3.0 version:
http://www.flixel.org/flxinvaders/

and here is the iOS version:
https://github.com/initials/FlxiOSInvaders

So my answer is:
games run much nicer if you can program in Objective C.
It is possible to export actionscript 3.0 to iPhone using Flash CS5 but I found it sluggish and unresponsive. Saying that, I am open to being proven wrong. Maybe it was my code that was not optimised.

Here is how Mode runs on iOS using Flixel-iOS

http://vimeo.com/24951494

Also have a look at these people using AIR to export to iOS:

http://www.youtube.com/watch?v=ME9KDB5Qpuc

http://johnlindquist.com/2011/03/29/flixel-on-the-ipad/

Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart

felipe

  • Member
  • **
  • Posts: 36
  • Karma: +0/-0
  • games!
    • View Profile
    • i love pixel
Re: What does it involve to put a flixel game on iOS?
« Reply #2 on: Sun, Jun 12, 2011 »
Some games are better to be made on a native lenguage because of the performance. But if you are doing a simple game that doesn't require much resources you can code it in as3 and just pack it in Flash cs5 or Flash Builder ( which is a better option if you want to do this), it will run as decent as a native lenguage. This goes for every mobile device you aim.