goodbye flash, hello openfl: next generation cross-platform game development

23
Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development Craig Robinson VP Mobile Games FlowPlay

Upload: jessica-tams

Post on 18-Jan-2017

79 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Goodbye Flash, Hello OpenFL:Next Generation Cross-Platform Game Development

Craig RobinsonVP Mobile Games

FlowPlay

Page 2: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

About FlowPlay

Page 3: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Why?

Page 4: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

First Apple said no iOS Safari support

http://shirt.woot.com/offers/poison-apple

"Flash is a spaghetti-ball piece of technology that has lousy performance and really bad security problems.” – Steve Jobs

Page 5: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Native apps with Adobe AIR, FTW!

Page 6: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Desktop browsers turn against

Page 7: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Et tu, Google?

Page 8: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Player approval required to run

Page 9: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Player approval required to run

Page 10: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development
Page 11: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Flash is (not quite) dead, but…•Web games still have an audience•We also need to be able to serve a mobile audience•And, we want to use a single codebase

• Furthermore, we’ve got• About a million lines of existing as3 code• A team of as3 developers• An asset pipeline designed to work with Flash

Page 12: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

We’ve got a serious problem!

Page 13: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

We’ve got a serious problem!

Page 14: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Haxe and OpenFl to the rescue!

Haxe

OpenF

L

AS3 Haxe

Flash API OpenFL

Page 15: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

What is ?• Modern, high-level, strictly typed programming language• Open source• Cross-platform compiler and standard library• Provides access to native platform capabilities• Supports many targets

Page 16: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

What is ?• Haxe library mimicking the Flash

API• Open source• Works well with Adobe Animate

(Formerly Flash) and other Adobe tools• Supports hardware accelerated

rendering• Goes where Flash can’t

Page 17: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Hello, OpenFL!openfl test flashopenfl test html5openfl test macopenfl test windowsopenfl test iosopenfl test androidopenfl test linuxopenfl test ...

Page 18: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Vegas World Slots• Written from scratch in Haxe and

OpenFL• Hand ported some of our AS3 libs• Built a number of Haxe Extensions• Targets:

• SWF – internal testing• HTML5 (Windows Universal)• iOS• Android (Google Play & Kindle)

Page 19: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Vegas World• Port in progress• ~1 million lines of as3 code• Using as3hx to mechanically

translate from as3 to Haxe• Speeds process dramatically, but

requires manual cleanup

• Will target SWF, HTML5, iOS and Android

Page 20: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Some things we’ve learned…Advantages• It works!• Performance is quite good• Easy for as3 programmers to get

up to speed• Easy to port from as3 code• Works well with our existing asset

pipeline• Community is quite responsive

Page 21: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Some things we’ve learned…Advantages• It works!• Performance is quite good• Easy for as3 programmers to get

up to speed• Easy to port from as3 code• Works well with our existing asset

pipeline• Community is quite responsive

Gotchas• Native extensions can be a pain

and hard for new devs to learn• Native debugging is doable, but

not straightforward• Documentation/example code is

sparse compared to as3

Page 22: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

We’re all in

• FlowPlay is throwing its support behind Haxe/OpenFL in a big way• Joshua Granick, founder and managing director of OpenFL is now

Scientist in Residence at FlowPlay• Hosting local OpenFL meetups in Seattle• Promoting the platform at trade shows• We contributed code including our port of DragonBones to Haxe• Will soon contribute a number of native extensions for analytics

and monetization SDKs

Page 23: Goodbye Flash, Hello OpenFL: Next Generation Cross-Platform Game Development

Resources

http://www.haxe.orghttp://github.com/haxeFoundation

http://www.openfl.orghttp://github.com/openfl