Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Mobile Device Deployment
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+.
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.
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:
- Install AIR SDK (2.7+).
- Follow the Quick Start Tutorial and build an awe6 application.
- Compile your application using compiler flag
-D awe6Air(this disables some minor incompatible aspects within the flash driver).
- iOS: Build the generated swf into an AIR app using Adobe's Help.
- 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?).