peteshand / haxe-starling

NOTE: development has moved to: https://github.com/openfl/starling
47 stars 13 forks source link

Mobile plans #13

Open chichilatte opened 9 years ago

chichilatte commented 9 years ago

Hi there, this is very premature, but at http://blog.peteshand.net/starling-for-haxe it mentions alpha support for 'native', with a windows example. Could this mean that there may be native mobile support planned? That would be very cool, since it would give people a clear pathway away from AIR to OpenFL, enabling a relatively painless port of tons of existing Starling as3 work (and any Starling work people are still doing because they don't have full confidence in OpenFL yet).

+Many thanks for your great work!

peteshand commented 9 years ago

Hi @chichilatte. Currently I've not really tested native mobile support, but in theory it should be relatively easy to add support for Android seeing as OpenFL supports Android out of the box... I'm not sure what the deal is with iOS. But regardless there is actually no huge need to completely move away from AIR if you're wanting to use Haxe... you can still develop you applications in Haxe and target AIR (Win and Mac Desktop, Android, iOS), which is awesome because you know it's going to behave exactly the same on all the targets.

The same bunnymark example that is shown at: http://blog.peteshand.net/starling-for-haxe/ can also be compiled to an air application. You can download an example here. http://peteshand.net/downloads/haxe-starling-bunnymark/air/bunnymark-air.air

I've added the source for this to the haxe startling github, but I haven't pushed it yet due to the fact that I'm seeing a lot of errors since updating to the latest version of openfl.. so I'll probably wait until the next openfl release and hopefully it's a bit more stable by then.

chichilatte commented 9 years ago

That's great to hear it might be easy to do. I mentioned people moving from AIR to native mobile (using OpenFL) because AIR's future isn't very predictable! But for now AIR still seems like a great cross-platform, er, platform.

+Cool to see your AIR bunnymark :) One thing: if I wanted to use filters I'd probs have to stick with a starling.swc library – until haxe-starling filters are in.

peteshand commented 8 years ago

Hi Chichilatte. Filters are now supported in Flash/AIR/HTML5

chichilatte commented 8 years ago

Wow that's really great news, thank you pete!