Mobile Device Deployment

hypersurge edited this page Nov 6, 2017 · 3 revisions

You can readily deploy your awe6 powered games to multiple mobile devices (e.g. iOS, Android). There are various approaches, each with its respective pros and cons. Please note the author of awe6 is a fan of HTML5 as it represents a ubiquitous platform that can run as web app or hybrid-native app.

Mobile Web / HTML5

Run mobile games directly in the browser using HTML5. Games can even be saved to the home-screen (using AppCache) to give the "app" experience. Benefits include no delays in App Store approval, no privacy concerns, easy social media integration. Various monetization and advertising revenue options now exist.

To make a game with awe6 that targets HTML5 use either OpenFL-html5 or the CreateJS driver and template provided in awe6 version 2.3+.

Hybrid-native apps that wrap HTML5 content can be made with various toolkits including Adobe's PhoneGap, Intel's XDK, Ludei's CocoonJS.

OpenFL

OpenFL is a Haxe homegrown solution to deploying multimedia natively to devices. The library wraps lower level libraries into a familiar Flash like API.

To use awe6 with your OpenFL project add the following line to your OpenFL project's xml file:

<haxelib name="awe6" />

Alternatively create a new awe6 OpenFL project using the templates included in the haxelib installation. See here for more information.

Please note many subtle variances currently exist between the OpenFL and Flash APIs so code methodically and consider fallbacks. Specifically avoid frequent draw(), masks, filters, negative matrix transformations or complex Sounds. The other drawback of a native approach is that existing ActionScript or JS libraries may not be available to your project.

To deploy to iOS a Mac is required.

Adobe AIR

Converts any SWF to a native app. The majority of the Flash API is available and works generally as expected. Conventional DisplayList usage can be slow, so use of flash.display.Bitmap (which has been optimised for use with mobile devices) is a basic requirement. Using GPU specific libraries (e.g. Starling or Away3D) is also increasingly effective.

Follow these steps to target your game to iOS or Android via awe6 + AIR:

  1. Install AIR SDK (2.7+).
  2. Follow the Quick Start Tutorial and build an awe6 application.
  3. Compile your application using compiler flag -D awe6Air (this disables some minor incompatible aspects within the flash driver).
  4. iOS: Build the generated swf into an AIR app using Adobe's Help.
  5. Android: Build the generated swf into an AIR app using Adobe's Help.

Note: deployment to iOS requires a valid membership of the Apple Developer iOS program. Certificate creation and application packaging can be done from either a Mac or Windows following these steps. Final push to iTunes requires a Mac (perhaps borrow a friend's, or use a cloud based VM, if you don't own one?).

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.